A SERVICE OF

logo

117
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 |
1|-| |-+[12544 MOV RW000][00053 MOV RW001]----------------------------|
| | /* Module designation, CMD number setup */
| | |
| +[00002 MOV RW002][00001 MOV RW003]----------------------------|
| | /* Socket identifier, open type setup */
| | |
| +[RW106RW105 DMOV RW005RW004][RW107 MOV RW006]---------------|
| | /* Remote port IP address and port number setup */
| | |
| +[RW107 MOV RW007][18000 MOV RW008]----------------------------|
| | /* Local port number, timeout time setup */
| | |
| +[RW000 SEND RW010][RST R0640]---------------------------------|
| /* Turn R0640 off after request setup and completion. */
| |