Kaiyi — 6.22.2 Explanation of Ethernet Instructions

AH Programming Manual the connection is successful, the flag related to the connection’s being successful is ON, and the flag related to the connection’s being started is OFF. If an error occurs, the error flag is ON. 8. If the UDP socket is opened, and no error occurs after the instruction is executed, the flag related to the connection’s having been started is ON. If an error occurs, the error flag is ON. 9. Generally, the pulse instruction SOPENP is used. Example 1: 1. The system framework below illustrates how to establish the TCP connection between a computer as the client and an AH500 series PLC as the server. 2.

When X0.0 is ON, the data related to the TCP socket 1 is transferred to the corresponding special data registers. Users also can set the TCP socket 1 in ISPSoft. 3. When M0 is ON, whether the socket is closed, has been connected, or is being connected is checked. If the socket is not closed, has not been connected, or is not being connected, the connection procedure is performed. After the socket has been connected, M0 will is switched OFF. 4. When M1 is ON, whether the socket has been connected and no data is being sent is checked. If the socket has been connected, and no data is being sent, the data will be sent.

If the socket 6-509 TCP socket Being starting Successful Error flag number the connection connection 1 SM1273 SM1270 SM1277 2 SM1281 SM1278 SM1285 3 SM1289 SM1286 SM1293 4 SM1297 SM1294 SM1301 5 SM1305 SM1302 SM1309 6 SM1313 SM1310 SM1317 7 SM1321 SM1318 SM1325 8 SM1329 SM1326 SM1333 UDP socket number Having started the connection Error flag 1 SM1334 SM1338 2 SM1339 SM1343 3 SM1344 SM1348 4 SM1349 SM1353 5 SM1354 SM1358 6 SM1359 SM1363 7 SM1364 SM1368 8 SM1369 SM1373