EasyManua.ls Logo

Hitachi EH-150 Series - Page 75

Hitachi EH-150 Series
194 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Communication Mode
6 - 33
Modbus Master
Sample program [Initial setting]
(1) Ladder program
[EH-CPU]
[EHV-CPU]
* This is a sample program for initial setting. When communicating, it is necessary to add the communication
program to the above sample program. Please refer to the sample program of Query transmission, Response
receiving” for details.
TRNS 9 ( WY325 , WR0 , M0 )
WR7 = H0000 Initial setting command
WR8 = 200 Command timeout time
DR9 =ADR(WR100) I/O address of sending data area
( WR100 )
DRB = ADR(WR200) I/O address of receiving data area
( WR200 )
WRD = H0400 Size of receiving data area
R7E3
s parameter
TRNS 9 command
WR100 = H0006 No. of send data (byte)
WR101 = H0010 Communication mode
WR102 = H0000 Modbus transmission mode
WR103 = 50 Receiving timeout time
R7E3
Sending data area
(Parameter for initial
setting)
R7E3
M0
S
DIF
TRNS 9 command
execution
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

Table of Contents

Related product manuals