Assigning Custom Data Types to Inputs/Output Cards
Hey guys, two things....
First, I just wanted to say I'm quite impressed by the lengths at which PLCnext engineer has come and I know that you guys have been working relentlessly to make it even better than it is. I have to say I am very pleased with using the software and associated hardware so once again, thanks for all you do.
Second, I am wondering if there is a way to ascribe a value from my UDT Structure directly to an input port or output port of my SE cards. So the scenario I am currently using is this....
I created an IN PORT named xDigitalInput1 and assigned it directly to my SE DI16 Input 1. Then in the program In a structured text sheet I declare (Pump.RunXS := xDigitalInput1) (Pump being my user defined structure... This works fine, but I'm wondering if there is a way that I can assign the Pump.RunXS directly to the $$ Input of a card. I have a TON of UDT's and Im basically making duplicate variables for each portion of the UDT that I need to bring in. Also, making them exclusively an IN or OUT port doesn't work for me as I use them all across the program as an External Use.
I may totally be overlooking something simple but thought Id hit you guys up for your thoughts!
Thanks! Have a great and blessed day!
Comments
Just checking in... Yall got anything on this?
Hey AC,
I have been looking for this aswell, but I do not think it is possible.
Hey AC,
I have been looking a bit further in to assigning UDT variables to a port.
It is possible to assign UDT variables trough the GDS Port list. This list can be found if you open the "plcnext" tab in the plant. One thing: you need to assign your variables as OUT or IN port in your program.
Cheers
Hidde35
Hello AC,
@Hidde35 is correct. A structure field of a Global IEC 61131-3 Variable can be connected to the GDS (In/Out Port list).
Here is a screenshot of the tab -
Best Regards,
Dalton