sameer.bhaskarla
Member
Hi everyone,
I am using Codesys for the first time (V. 3.5 SP16 Patch 3) and I have used only Allen Bradley before this. I am struggling to understand how to map all tags easily into my struct variable. The data from the IO device comes in as SINT but I want to copy all that data into same sized struct that has all bits (Bools) but it is not arranged into different SINTs. In Rockwell you can take an array of bytes and copy it into a UDT of same sized bits easily, I am wondering if the same can be done with Codesys.
Please see pics for better explanation.
Thank you for your time!
I am using Codesys for the first time (V. 3.5 SP16 Patch 3) and I have used only Allen Bradley before this. I am struggling to understand how to map all tags easily into my struct variable. The data from the IO device comes in as SINT but I want to copy all that data into same sized struct that has all bits (Bools) but it is not arranged into different SINTs. In Rockwell you can take an array of bytes and copy it into a UDT of same sized bits easily, I am wondering if the same can be done with Codesys.
Please see pics for better explanation.
Thank you for your time!