CSharpExamples - FB_with_user_struct2 - PLC los connection to PnE
Hello community,
I tried one of the C# examples.
So far every example has worked. Only with the example "FB_with_user_struct2" my CPU seems to lose the connection to the PnE.
In Visual Studio the examples can be built without problems.
In PnE I can also integrate the block into the project without errors.
After transferring the project the PLC lose the connection. I have to delete the project via WinSCP (/opt/plcnext/projects/PCWE/Plc/Eclr/eCLR.img) to be able to reach the PLC again after a restart.
Does anyone have any idea why?
I use PnE 2019.9 and the PLC AXC F 2152 with Firmware 2019.9 and Hardware 02.
Thanks
Comments
Hello rintaro,
thanks for your feedback and very detailed information, I'll check this example as soon as possible.
Best Regards,
Eduard
Hello rintaro,
I can reproduce this behavoir. Please find on GitLab the updated example program. Please note, currently it is possibe to use the Pointer only for Input and InOut parameters!
https://github.com/PLCnext/CSharpExamples/blob/master/PLCnext_CSharpExamples/03_UserStruct/FBWithUserStruct.cs
Best Regards
Eduard
Hello, thanks for the info.
I tested it and now it works.
Thanks