Sign in to follow this  
Followers 0
risal

How to convert input inputs in integer?

2 posts in this topic

How I can to convert physical inputs to integer(N7:0)? like to bcd code example input 0 = 1 input 1 = 2 input 2 = 4 input 3 = 8 input 0 and input 1 = N7:0 = 3 thanks Edited by risal

Share this post


Link to post
Share on other sites
Not real clear what you are asking. Are you wanting the whole group of inputs (I:1/0-I:1/15) into N7:0? If so a MOV instruction with a source of I:1.0 and a destination of N7:0 would work. Addressing would vary depending on your PLC model so post more details.

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