Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Casting Enumerations

2007-09-04
2007-11-21
  • annodomini2 - 2007-09-04

    Is it possible to Cast or type convert and Enumeration to a BYTE, as the ECU I am working on is 16-bit so I would assume the default type is WORD.

    The reason behind this is to simplify the reading of my application to others as the BYTE in question has fixed constant values.

     
  • robkristiaan - 2007-11-21

    Just use WORD_TO_BYTE()

     

Log in to post a comment.