EasyManua.ls Logo

Hitachi EH-150 Series - Page 60

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...
Chapter6 Communication Mode
6 - 18
Fre
e Protocol
Sample program [ Initial setting + Data receiving ]
(1) Ladder program
[EH-CPU]
1
<=
WX212
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
TRNS 9 ( WY214 , WR0 , M0 )
R7E3
Data receive command set
TRNS 9 command start
TRNS 9 command
WR100 = H000E No. of send data (byte)
WR101 = H0000 Communication mode
WR102 = H0100 Message composition, etc.
WR103 = H0000 Start character
WR104 = H0DFF Stop character
WR105 = H0000 Check code calculation type
WR106 = 200 Receiving timeout time
WR107 = H0000 Data interval time
R7E3
R7E3
M0
S
DIF0
s parameter
Sending data area
(parameter for initial
setting)
Data receive command set
TRNS 9 command start
WR7 = H0010 Data receive command
M0 = 1
DIF1
X2113
For initial setting

Table of Contents

Related product manuals