6 F 3 B 0 3 6 2
b.TCP open request (active)
This program issues a TCP open request (active) for socket number 8 on the Ethernet Port. This ladder program is executed by turning on the A contact on the R0640.
Parameters: | 12544: 3100H, 00053: 0035H |
|
| 341995909: 14627185H |
|
Remote port IP address: 133.113.98.20 |
| |
Remote port object socket TCP port number: | 4000 | |
Local port specified socket TCP port number: | 4000 | |
Open request timeout time: 1800 seconds |
|
/* TCP active open request: executed when R0640 is set on. */ | ||||
|
|
| ||
R0640 |
|
| ||
MOV RW000][00053 MOV | ||||
/* Module designation, CMD number setup */ |
| |||
|
| |||
+[00002 | MOV RW002][00001 MOV | |||
/* Socket identifier, open type setup | */ |
| ||
|
| |||
+[RW106∙RW105 DMOV RW005∙RW004][RW107 MOV | ||||
/* Remote port IP address and port number setup */ |
| |||
|
| |||
+[RW107 | MOV RW007][18000 MOV | |||
/* Local port number, timeout time setup | */ |
| ||
|
| |||
+[RW000 | SEND RW010][RST | |||
| /* Turn R0640 off after request setup and completion. */ | |||
|
|
| ||
|
|
|
|
|
⎯ 117 ⎯