![](/images/new-backgrounds/1300968/300968231x1.webp)
6 F 3 B 0 3 6 2
d.UDP receive 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 R0621. |
| ||||
| Parameters: | 12544: 3100H, 00051: 0033H |
|
| |
|
|
| 0341995909: 14627185H |
|
|
| Transmission source IP address: 133.113.98.20 |
|
| ||
| Transmission source object socket UDP port number: 3000 |
|
| ||
| Reception data word count: 1000 |
|
| ||
| Reception data storage registers: D2500 and above |
|
| ||
| Reception timeout time: 1800 seconds |
|
| ||
|
|
| |||
/* UDP receive request: executed when R0621 is set on. */ | |||||
|
|
|
| ||
R0621 |
|
|
| ||
MOV RW000][00051 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 | ||||
/* | Reception data word count setup */ |
|
| ||
|
|
| |||
+[00004 | MOV RW007][02500 MOV RW008][18000 MOV | ||||
/* | Reception data storage register type, storage register |
| |||
number, timeout time setup */ |
|
| |||
|
|
| |||
+[RW000 | RECV RW010][RST | ||||
|
| /* Turn R0621 off after request setup and completion. */ | |||
|
|
|
| ||
|
|
|
|
|
|
⎯ 115 ⎯