PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. rintaro
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 28 November 2019

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.

https://github.com/PLCnext/CSharpExamples/blob/master/PLCnext_CSharpExamples/03_UserStruct/FBWithUserStruct.cs


In Visual Studio the examples can be built without problems.
In PnE I can also integrate the block into the project without errors.

 lost connection 01

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

 

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello rintaro,

thanks for your feedback and very detailed information, I'll check this example as soon as possible.

Best Regards,

Eduard

     

 


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

rintaro Accepted Answer Pending Moderation
0
Votes
Undo

Hello, thanks for the info.
I tested it and now it works.
Thanks

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.