beautypg.com

Yokogawa Data Acquisition with PID Control CX2000 User Manual

Page 127

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

D register

First No.

D register

First No.

CPU address

Num. of Tx data

Read/write

Read/write

Specify CH1 Num. of data

to be read/

write data

Num. of data

to be read/

write data

MOVP H10 D3

SWAPP D2

SWAPP D3

SWAPP D4

MOVP H0A0D D5

Num. of Tx data

Terminator

TOP H2 H800 D0 K6

SET Y27

Tx request

Tx request

Rx processing of response received from the CX

X27

822

RST Y27

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