Ubaid Posted October 5, 2017 Report Posted October 5, 2017 Hi I am converting an old code from CX programmer to sysmac studio code and I am having trouble in checking a specific bit in UINT variable. I am using TestABit and it is giving me following error 'UINT' Type cannot be converted to ÁNY_BIT(except BOOL)'Type the original code I am trying to convert is Any Suggestions
Andy_P Posted October 5, 2017 Report Posted October 5, 2017 In the NJ, TestABit only works on data types of the following format: BYTE, WORD, DWORD & LWORD. Perform a conversion of your UINT to a WORD first, then use TestABit with this, or just change your UINT variable to a WORD to begin with if you can.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now