bigmuz

FX3S using a binary word to control outputs

3 posts in this topic

Hi all,

I have a fountain controller that has a bunch of sequences and steps which switch outputs on in various patterns. I'd like to MOV a word into, say, D100 and then have the X1 through X10 outputs looking at the bits within the output word.

ie

Word D100 101010101010

X01 looks at bit 1 of word 100

X02 looks at bit 2 of Word 100

etc.

Is this possible and can someone please point me in the right direction to programming it in ladder?

I think it is easier to do within the hmi but that doesn't feel like the right approach.

Many thanks.

Murray

 

Share this post


Link to post
Share on other sites

MOV K4X0 D100

each K is 4 bits so K2X0 means X0 to X7
mov K4X0 D100 means X0-X7 and X10-X17 moved to D100.

X0 is bit0 of D100
X1 is bit1 of D100

 

 

Share this post


Link to post
Share on other sites

Thank you for your help, that's exactly what I needed. Legend! 

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