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

  1. daniel123123123
  2. PLCnext Engineer
  3. Thursday, 15 October 2020

We have a question concerning the definition of IN-Port and OUT-Port variables in PLCnext Engineer.
Since there is an opportunity to use single elements of arrays as an IN-Port or an OUT-Port we were wondering whether it is possible to use single STRUCT-elements as IN-Ports or an OUT-Ports as well.
If yes, can you show us how it is done?
If not, are you considering to implement it in future versions?
Best regards,

Accepted Answer
Martin PLCnext Team Accepted Answer Pending Moderation

Hi Daniel,

It is possible to connect the elements of a STRUCT port, in the same way as the elements of an ARRAY port.

  • Create a STRUCT type in a Data Types sheet.
  • Declare an IN or OUT port variable of that STRUCT type.
  • In the PLCnext -> Port List sheet, connect an element of the STRUCT variable to an opposing port of the same data type.

This works for me in PLCnext Engineer version 2020.6.2.

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

daniel123123123 Accepted Answer Pending Moderation


thank you very much. Since you told us it would be possible, we tried again an made it work.

It seems our problem wasn’t the declaration of the variables, but the fact that we hadn’t added a counterpart, which was of the same type as the STRUCT-Element.

The choice was enabled after added the counter port of same type.

Kind regards,


  • Page :
  • 1

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