View Single Post
Old October 10th, 2019, 07:22 AM   #8
Lifetime Supporting Member
United States

JOLTRON is offline
JOLTRON's Avatar
Join Date: Aug 2006
Location: MI
Posts: 682
Originally Posted by DairyBoy View Post
Right. Got it. Thank you. That works (I think). I have used the same UDT as the input/output component in the FB. Is that correct?
Yes if you need read and write access to the data you would add it to the interface as an in/out.

For hardware inputs and outputs (*), and for single-element data, I use 1 variable per pin.
For anything complex I define the data by UDTs.
I agree for smaller data sets single pins is cleaner and also makes cross reference easier.

*: Not to confuse everyone, but it is possible to define UDTs for hardware inputs and outputs. I have never used it.
I have used this a few times, mainly for items like Keyence cameras that have around 60 bytes of inputs when used as a Profinet device.
  Reply With Quote