8
PROGRAMMING
(2) Program Example
Write the following sequence program to the QCPU set at 192.168.0.1.
A part enclosed with a dotted line is not required when auto refresh is set in Utility Package.
<Refreshing data from the QCPU to the EtherNet/IP module>
Figure 8.22 Program example of Tag communication
8.4.1 Program example of Tag communication
Index register initialization
Class1 Tag Counts acquisition
Refresh data set for all Tags. (FOR to NEXT)
Class1 receive data start address acquisition
Data size acquisition
Store receive data in devices.
Tag No. increment
Increase indirectly specified Data Size address
by number of data assigned to one tag.
Increase receive data storage address by
number of data assigned to one tag.
Class3/UCMM Tag No.1 refresh
Class3/UCMM Tag No.2 refresh
Class3/UCMM Tag No.3 refresh
Application Trigger (Class1) refresh
Application Trigger (Class3/UCMM) refresh
Class3 communication error status refresh
Communicating status (Class1) refresh
Communicating status (Class3/UCMM) refresh
Own station error status refresh
Class1 Diagnostics Information refresh
Class3/UCMM Diagnostics Information refresh
8.4 Program Example
1
2
3
4
5
6
7
8
8
- 14