Page 1 of 1

Communication KO

Posted: Mon Apr 03, 2017 8:32 am
by Isakovic
Hello,

When does communication status go KO?

I use Modbus TCP for communication. When PLC is disconnected from network read errors accumulate and then after some time status goes KO. During this time other gates are not updated, because of timeout I suppose.
Before using gates in code I always put if(BitNot(IsDeviceCommunicationKo(2, 2))) but this doesn't work because status doesn't go KO.

Re: Communication KO

Posted: Mon Apr 03, 2017 8:40 am
by admin
Dear Sir,
for online gate status use "GetNumGateCommunicationStatus(,)", "GetDigGateCommunicationStatus(,)", and so on.

Device status go KO if all device gates are unreadable for 3 attempts.

Best regards

Re: Communication KO

Posted: Mon Apr 03, 2017 10:45 am
by Isakovic
Thanks for the quick answer. I'll try reducing timeout to get it to KO faster.