simonongsk

how to count number of ON bit in a word?

5 posts in this topic

hi:

    in Omron that is a command to count how many bit that are in ON state, any similar  instruction in GX Work 2?

 

Thanks

Share this post


Link to post
Share on other sites

Which PLC are you using?

Share this post


Link to post
Share on other sites

There is the instruction SUM in FX PLCs. This instruction counts the number of "1" (ON) bits in the data of a specified device.

Share this post


Link to post
Share on other sites

Hi Simonongsk, In the dowload section under manuals tutorials I've uploaded the FX3 programming manual.

Chapter 12.4 Page 339 tells you more about the SUM instruction. I hope this helps you out.

Best regards,

Theo V.

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