Data cannot pass to Subroutine - Studio5000 ST

All this is telling you that, while CAMERA_TOP_SEQ_INDEX = 11, the exact instant that CV_X_TOP:I.Data[0].0 was set, CV_X_TOP:I.Data[12] was equal to 0.

It may have changed to 664810 a few msecs later, but by that time, you had set the INDEX to 12, and thus would not execute the logic any further.

If you truly expect Data[0].0 to be 1 at "the exact same time" that Data[12] has a non-zero value ("the camera is telling me it took the picture; so I should be able to read the result), you may want to put a small time delay on Data[0].0 being true, and use that before executing the IF-THEN. Just to give the camera a moment to finish sending the data that obviously is there.

Then again, it may be that the camera doesn't send Data[12] until after you've turned off CV_X_TOP:O.Data[0].0, which would also explain your screen capture.
 

Similar Topics

I have a number of AB Stratix 8000 and 5700 switches which are passing all data but I cannot web into them nor ping them. these switches go into...
Replies
3
Views
2,606
When attempting to upload the hardware configuration I get the message everything was uploaded succesfully but in the message center I get this...
Replies
0
Views
1,759
SCADA - Citect Version 7.20 As stated above. I've written a function as cicode startup function. TrnExportDBF("c:\KV11_F11.dbf", TimeCurrent()...
Replies
11
Views
6,005
Hello friends, Two days ago something strange happened that I cannot edit data blocks ie change the contents of data blocks. They turned to gray...
Replies
2
Views
7,768
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
26
Back
Top Bottom