9.2. Communications Sequence
This section explains the communications sequence (protocol macro data) that can be used
for the PMCR instruction of this program.
9.2.1. Communications Sequence Number
A communications sequence (protocol macro data) that is registered in the SCU Unit is
identified by the communications sequence number. The SCU Unit executes a destination
device command by specifying a communications sequence number in the PMCR instruction.
This protocol macro data includes the following communication sequence.
No.
Command name
900
GETR
9.2.2. PMCR Instruction Operand Settings
The PMCR instruction operands of "read product type and version" (Communications
sequence No. 900 (#0384)) are shown below.
•Control word C1 settings (C1: CIO 5010)
Word
Description (data type)
Communications port No.
(1-digit hex)
C1
Serial port No. (1 digit Hex)
Destination unit address
(2-digit hex)
•Control word C2 setting (C2: CIO 5011)
Word
Description (data type)
C2
Communications sequence No.
•Control word S settings (S: CIO 5020)
Word
Description (data type)
S
Number of words to send
(4-digit hex)
•Control word R settings (R: CIO 5500)
Word
Description (data type)
R
Number of words to receive
(4-digit hex)
R+1
Local_ReceiveSymbolArea_ResponseCode
(UINT)
R+2
Receive data [0] (4-digit hex)
R+3
Receive data [1] (4-digit hex)
:
R+23
Receive data [21] (4-digit hex)
Reads the Reader/Writer settings.
Data (explanation)
#7210 (Communications port No. 7,
Data (explanation)
&900 (Read product type and version)
Data (explanation)
#0000 (No variable in the send message
Data (explanation)
Receive data. Setting is unnecessary
:
9. Program
Description
Serial port No.2,
#Unit number + #10)
of the protocol macro data)
53