9. Program
53
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 Description
900 GETR Reads the Reader/Writer settings.
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) Data (explanation)
Communications port No.
(1-digit hex)
Serial port No. (1 digit Hex)
C1
Destination unit address
(2-digit hex)
#7210 (Communications port No. 7,
Serial port No.2,
#Unit number + #10)
•Control word C2 setting (C2: CIO 5011)
Word Description (data type) Data (explanation)
C2 Communications sequence No. &900 (Read product type and version)
•Control word S settings (S: CIO 5020)
Word Description (data type) Data (explanation)
S Number of words to send
(4-digit hex)
#0000 (No variable in the send message
of the protocol macro data)
•Control word R settings (R: CIO 5500)
Word Description (data type) Data (explanation)
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)
Receive data. Setting is unnecessary