Hello,
This is my first post here but this forum has already been very helpful to me over the past few months. Thank you !
There is my problem :
We have a R-30iB mate plus who commuicate with PLC through Ethercat (Rack 106,Slot 1).
Datas are processed with a KAREL program that is running with a RUN_TASK instruction and a "While true" with a Delay of 10 ms.
Overall everything works fine except sometimes, where it seems that there is a gap between KAREL variables and GI. So i wrote a test code to confirm it:
TestIO = GIN[10]
IF TestIO <> GIN[10] THEN
DOUT[145] = TRUE
GOUT[11] = TestIO
GOUT[12] = GIN[10]
ENDIF
GIN[10] is a variable from the PLC that increment from 0 to 255.
I expected that TestIO <> GIN[10] would never be true and that DOUT[145] to be always FALSE, but it turns out that, totally randomly, DOUT[145] goes TRUE.
The program can Run 10 minutes without setting DOUT[145] to TRUE, but can also sometimes goes TRUE 3 times in less than 1 minute. In the end, it always ends up going true at some point. I Can't hunderstand why.
Does this sound normal to you and if so how do you explain it ? maybe there is a link with ethercat communication ?
Thank You.