![background image](http://html1.mh-extra.com/html/omron/cj2h-cpu64/cj2h-cpu64_connection-manual_742078057.webp)
9
.
Program
54
9.2. Communications Sequence
The following explains the communications sequence that can be used for the PMCR
instruction in this program.
9.2.1. Communications Sequence Number
A communications sequence that is registered in SCU is identified by a communications
sequence number. The PLC executes a corresponding command on Destination Device by
specifying a communications sequence number in the PMCR instruction.
This protocol macro data includes the following communications sequence.
No.
Command name
Description
900 Version information
acquisition
Acquires version information of Destination Device.
9.2.2. PMCR Instruction Operand Settings
The PMCR instruction operands of the communications sequence No. 900 (#0384)" version
information acquisition" are shown below.
・
Control word C1 setting (C1: CIO 5010)
CH
Description (data type)
Data (description)
C1
Communications port No. (1-digit hex) #7210 (Communications port No. 7,
Serial port No.2,
#Unit #10)
Serial port No. (1-digit hex)
Unit address of Destination Device
(2-digit hex)
・
Control word C2 setting (C2: CIO 5011)
CH
Description (data type)
Data (description)
C2
Communications sequence No.
&900 (Version information acquisition)
・
First send word S setting (S: CIO 5020)
CH
Description (data type)
Data (description)
S
Number of send data words (4-digit
hex)
#0000: (No variable in send messages
of protocol macro data)
・
First receive word D setting (D: CIO 5500)
CH
Description (data type)
Data (description)
D
Number of receive data words (4-digit
hex)
Stores the number of words used,
including the D word.
D+1
Receive data [0] (4-digit hex)
Stores acquired version information.
D+2
Receive data [1] (4-digit hex)
:
:
D+50
Receive data [49] (4-digit hex)
Содержание CJ2H-CPU64 -
Страница 81: ...78...
Страница 82: ...2016 0616 P652 E1 01...