10.4.7.1. Member Variable
10.4.7.1. Member Variable
Variable name | Explanation | Example | |
IP | String variable. Read/write allowed. IP address of communication partner is appointed or returned. ø This is applied only when OPEN statement is called. | ENET2.IP = “10.7.4.136” | |
RPORT | Integer variable. Read/write allowed. Port number of communication partner(Remote) is appointed or returned. ø This is applied only when OPEN statement is called. | ENET3.RPORT = 1042 | |
LPORT | Integer variable. Read/write allowed. You can designate or obtain the local port number of the controller. Default value is 0 (When not designated), and in this case, the local port number is automatically generated. ø This only applies when the OPEN statement is called. | ENET2.LPORT = 500 | |
STATE (read only) | Integer variable. Read-only. For checking status after executing the OPEN command | IF ENET1.STATE<1 THEN *ERR | |
1 | Connected. | ||
0 | Not connected. | ||
-1 | UDP OPEN failure | ||
-2 | Ethernet device BIND failure |