Yokogawa Data Acquisition with PID Control CX2000 User Manual
Page 128

5-18
IM 04L31A01-17E
• Read command transmission processing: If M603 is ON, send a command to
lead CH5 to 8.
M603
X27
Y27
866
MOVP H5 D0
MOVP H102 D1
MOVP H5005 D2
MOVP H4 D4
MOVP H0A0D D5
Tx flag 3
Tx end Tx request
<Set CPU NO. “1” and station address No.>
D register
First No.
D register
First No.
CPU address
Num. of Tx data
<Specify first call register No. 5005 of the CX>
<Recall 4 words from the first D register No.>
Read/write
Num. of data to be read/
write data
Num. of data to be read/
write data
<Specify read execute. Send “0”>
MOVP H0 D3
Terminator
<Swap the upper and lower bytes of D2>
SWAPP D2
<Swap the upper and lower bytes of D4>
SWAPP D4
<Declare num. of Tx data to be 5>
Num. of Tx data
TOP H2 H800 D0 K6
<Transfer the contents of D0 to D5 to the Tx buffer>
SET Y27
Tx request
Tx request
<Set Tx request>
X27
1066
RST Y27
Tx end
<Reset Tx request when Tx end>
5.5 Communication Program for MELSEC