TcOpenGroup / TcOpen

Application framework for industrial automation built on top of TwinCAT3 and .NET.
https://docs.tcopengroup.org/
MIT License
292 stars 49 forks source link

[BUG] TcoCognexVision.TcoInsight_v_5_x_x does not write userdata back to the hardware #752

Open KrisztianOlah opened 1 month ago

KrisztianOlah commented 1 month ago

Describe the bug When using SetUserDataAsString(string,uint) or SetUserDataAsByte(byte,uint) the data will show correct values on the hmi, but not on the hardware, thus no data is sent to camera.

To Reproduce Map camera, plug in correct hw structure to component. Call either of the above methods. Check data on ethercat I/O structure

Expected behavior Expected would be that the component updates the physical outputs without further action.

Current workaround: FOR i :=0 TO 63 DO GVL_Profinet.Cam_30.UserData.UserData[i] := Components.Insight._userData.UserData[i]; END_FOR

Additional context Using latest published version of TcOpen (0.11.0-alpha.79).

AdamPitak commented 1 month ago

also there need to be a communication with camera by "ExtendedUserDataSet" and "ExtendedUserDataSetAcknowledge"