(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