6F8C0878
91
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>
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.
STN1
STN2
0
1
S3
2
3
Ether
net
4
172.16.64.7 172.16.64.4
(slot number)
5
6
7
0
1
S3
2
3
4
Ether
net
5
6
7
Содержание 3000 series
Страница 13: ...CONTENTS 6F8C0878 xi E Sample Programs 91 F Return Code List 103 G Option switch List 107 ...
Страница 14: ......
Страница 26: ......
Страница 72: ......
Страница 76: ......
Страница 82: ......
Страница 100: ......
Страница 102: ......
Страница 104: ......
Страница 116: ......
Страница 120: ......
Страница 122: ......
Страница 126: ......