How to transfer data from DINT to Union(16 Bools) which I need to use in Few FBs

2023-12-14
2023-12-14
  • trycyclepower - 2023-12-14

    I have DINT data from drive input and would like to use this data in Bools in bunch of the FBs.
    I have tried using Union but it is not working.
    Please suggest

     

    Last edit: trycyclepower 2023-12-14
  • ph0010421 - 2023-12-14

    In the Struct, change the 'BOOL' to 'BIT'

     
    • trycyclepower - 2023-12-14

      Thanks a lot, it worked.

       

Log in to post a comment.