Yokogawa Data Acquisition with PID Control CX2000 User Manual

Page 127

Advertising
background image

5-17

IM 04L31A01-17E

5

Ladder Communication Protocol

• Write processing: If M602 is set, write the CH1 data to communication register C1.

M602

X27

Y27

627

MOVP H5 D0

MOVP H102 D1

MOVP H1 D2

MOVP D104 D4

Tx flag 2

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. 0001 of the CX>

Read/write

Read/write

Specify CH1 Num. of data

to be read/

write data

Num. of data

to be read/

write data

<Specify write execute. Send “10”>

MOVP H10 D3

<Swap the upper and lower bytes of D2>

SWAPP D2

<Send CH1 data to write data>

SWAPP D3

SWAPP D4

<Declare num. of Tx data to be 5>

<Swap the upper and lower bytes of D4>

MOVP H0A0D D5

Num. of Tx data

Terminator

TOP H2 H800 D0 K6

<Transfer the contents of D0 to D5 to the Tx buffer>

SET Y27

Tx request

Tx request

Rx processing of response received from the CX

<Set Tx request>

X27

822

RST Y27

Tx end

<Reset Tx request when Tx end>

X2A

840

FROMP H2 H0A00 D130 K1

FROMP H2 H0A01 D131 K0Z0

MOVP H100 Z0

Read
request
flag

Rx read

end

Data size

CJ P124

Y28

= K2 CO

Interval
counter

5.5 Communication Program for MELSEC

Advertising