847
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Serial Communications Instructions
3
PMCR
PMCR
Applicable Program Areas
Operands
C1: Control word 1
Note Automatic allocation can only be used on CJ2 CPU Units and Lot No. 020601 (manufactured June 1, 2002)
or later of CS1-H, CJ1-H, CJ1M, and CS1D (for Single CPU System) CPU Units.
C2: Control word 2
Instruction Mnemonic Variations
Function
code
Function
PROTOCOL MACRO PMCR @PMCR 260
Calls and executes a communications sequence
registered in a Serial Communications Board
(CS Series only) or Serial Communications Unit.
Symbol
PMCR
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
C1 Control word 1 UINT 1
C2 Control word 2 UINT 1
S First send word UINT Variable
R First receive word UINT Variable
C1: Control word 1
PMCR(260)
C1
C2
S
R
R: First receive word
S: First send word
C2: Control word 2
15 8 011 37412
C1
Unit address of communications partner
CS1 CPU Bus Unit: Unit number + 10 hex
Inner Board: E1 hex (CS Series only)
Serial port number (physical port)
1 to 2 hex (1 hex: Port 1, 2 hex: Port 2)
Communications port number (logical port)
0 to 7 hex (F hex: Automatic allocation)
15 0
C2
Communications sequence number
0000 to 03E7 hex (000 to 999 decimal)