Appendix E Sample Programs
For your reference, simple examples of message transmission programs are shown
below.
Use communication FBs, USEND_T and URCV_T, for these purposes.
For a detailed description of communication FBs, refer to the Instruction Manual for S/L
Controllers (6F8C0865).
<Example of UDP transmission>
STN1
STN2
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
(slot number)
172.16.64.7
172.16.64.4
The program shown here for reference sends data from S3 of STN1 through the Ethernet
UDP port 20013 of STN1 to S2 of STN2 where the data is received through the Ethernet
UDP port 20013.
91
6F8C0878