Sign in to follow this  
Followers 0
BAJ1

Hex values in Structured Text?

3 posts in this topic

Is there a way to use hex (hexadecimal) constants in Structured Text in CLx? Something like this? result := input AND 0x8000h; or constant := 0x07FFh; ???

Share this post


Link to post
Share on other sites
I don't have an instance of RSLogix 5000 handy to test on, but in general a non-decimal radix is indicated by a number and the pound sign. 12345 decimal equals 16#3039 hexadecimal 8#30071 octal 2#11000000111001 binary

Share this post


Link to post
Share on other sites
Worked like a champ, thanks!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0