6 F 3 B 0 3 6 2
c.UDP send request
This program issues a UDP send request for socket number 2 on the Ethernet Port. |
| ||||
This ladder program is executed by turning on the A contact on the R0622. |
| ||||
| Parameters: | 12544: 3100H, 00050: 0032H |
|
| |
|
|
| 0341995909: 14627185H |
|
|
| Transmission destination IP address: 133.113.98.20 |
|
| ||
| Transmission destination object socket UDP port number: 3000 |
| |||
| Transmission data word count: 1000 |
|
| ||
| Transmission data storage registers: D1000 and above |
|
| ||
|
|
| |||
/* UDP send request: executed when R0622 is set on. */ | |||||
|
|
|
| ||
R0622 |
|
|
| ||
MOV RW000][00050 MOV | |||||
/* | Module designation, CMD number setup | */ |
| ||
|
|
| |||
+[00002 | MOV | ||||
/* | Socket identifier setup */ |
|
| ||
|
|
| |||
+[0341995909 DMOV RW004∙RW003][03000 MOV | |||||
/* | Remote port IP address, port number setup */ |
| |||
|
|
| |||
+[01000 | MOV | ||||
/* | Transmission data word count setup | */ |
| ||
|
|
| |||
+[00004 | MOV RW007][01000 MOV | ||||
/* | Transmission data storage register type, storage register | ||||
number setup | */ |
|
| ||
|
|
| |||
+[RW000 | SEND RW010][RST | ||||
|
| /* Turn R0622 off after request setup and completion. */ | |||
|
|
|
| ||
|
|
|
|
|
|
⎯ 114 ⎯