CAI_Support
Senior Member
The ping function in new 04.02.09 firmware will reference to the Access Limit first 1-4 enter to ping the host. Then the rest PLC code can reference the PING return value to do any task you like. This feature is in the new 04.02.09 firmware. Download link is below:
for wc32 board, this is the new version:
http://www.cainetworks.com/support/download/wc32update040209.zip
In the PLC program, simply enter:
PING 1 100 VAR1
where the first parameter 1 refers to the first Access Limit address in Network tab
the second parameter 100 is for waiting 100ms
PING result will be set in 3rd parameter, in the above example, that is VAR1. If the return value is -1, ping failed. Otherwise, the number indicated how many machine instruction cycle WC32 has been waiting till reply received.
Please let us know if you have any feedback and bug report. Thanks.
for wc32 board, this is the new version:
http://www.cainetworks.com/support/download/wc32update040209.zip
In the PLC program, simply enter:
PING 1 100 VAR1
where the first parameter 1 refers to the first Access Limit address in Network tab
the second parameter 100 is for waiting 100ms
PING result will be set in 3rd parameter, in the above example, that is VAR1. If the return value is -1, ping failed. Otherwise, the number indicated how many machine instruction cycle WC32 has been waiting till reply received.
Please let us know if you have any feedback and bug report. Thanks.