EasyManua.ls Logo

Hitachi EH-150 Series - Page 62

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 - 20
Fre
e Protocol
(2) Sample program description
The s parameter and the parameter of sending data area are set upon first scan.
After TRNS 9 command is completed, M0 will be ON and initial setting for the port 1 slot 1, unit 2 will be
performed. X2113 in a program is a flag in the status register of EH-SIO, and if initial setting is completed, it is
turned on.
After the initial setting completed, the port will start receiving operation. When data are received, the number of
packets received via port 1 (input register value of WX212) will be counted.
In the last circuit of the above sample, even if one packet is received in port 1 of slot 1, unit 2, those data are read
after WR200.
« Note »
As for the system area (WXus2 and 3) of an input register, software version is displayed till completion of initial
setting. When you create a user program which refers to the number of packets, please use it combining the
initial-setting completion flag (XICx) of a status register.
The contents of initial setting
Items
Setup value
Setup contents
Communication mode
H0000
Free protocol mode
Message composition
H01xx
Data + stop character
Control of modem line
Hxx0x
RS and ER regular ON
Data conversion type
Hxxx0
Through type
Start character
H0000
Not used
Stop character
H0DFF
CR (0D)
Check code calculation type
H0000
Not used
Receiving timeout interval
200
2000 ms
Data interval time
-
Disabled because of stop code used.

Table of Contents

Related product manuals