saruans

Fx3g Binary bit Output

3 posts in this topic

Hello,
Need your advice. I am trying decimal number convert to binary and do output. for example If inside  D90 I have 11 decimal number then for me need active output Y0, Y1 and Y3. I tried make this code below, but it is not work, don't active output . Maybe fx3g PLC have function how need to do it?

BitOut.jpg

Edited by saruans

Share this post


Link to post
Share on other sites

You can't double coil an output.

Either use SET RESET or put all the compares statements together before the specific coil.

But in this case one  instruction will do MOV D106 K1Y0

If you want more than the first 4 bits then use K2Y0 K3Y0 etc. Each K is 4 bits

Edited by Gambit

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