Chapter 6 Communication Mode
6 - 36
Mod
b
u
s M
a
ster
Sample program [ Initial s Send Query, Receive response ]
(1) Ladder program
[EH-CPU]
R100 = 0
WR100 = H0006
…
No. of send data (byte)
WR101 = H0501
…
Device No. , Function code
WR102 = H0010 …
Starting address of coil
WR103 = 16
… The
number of coils
WR7 = H0080
…
Query send command
M0 = 1
Query data, command set.
TRNS 9 command start
R100 X3229
For initial setting
TRNS 9 ( WY325 , WR0 , M0 )
WR7 = H0000 …
Initial setting command
WR8 = 200
…
Command timeout time
WR9 = H000A
I/O address of sending data area
WRA = H0100
( WR100 )
WRB = H000A
I/O
address of receiving data area
WRC = H0200
( WR200 )
WRD = H0400 …
Size of receiving data area
WR100 = H0006 …
No. of send data (byte)
WR101 = H0010 …
Communication mode
WR102 = H0000 …
Modbus transmission mode
WR103 = 50
…
Receiving timeout time
S
DIF1
R7E3
R7E3
M0
R7E3
s parameter
Sending data area
(parameter for initial
setting)
TRNS 9 command
TRNS 9 command
execution
Summary of Contents for EH-150 Series
Page 2: ......
Page 10: ...M E M O ...
Page 30: ...Chapter 4 Installation 4 10 M E M O ...
Page 156: ...Chapter 7 System setup 7 12 M E M O ...
Page 164: ...Chapter 8 Daily and Periodic Inspection 8 8 M E M O ...