Ablex

How to compare word bits to a set value (Decimal or Hex)?

3 posts in this topic

I have 14 alarms all addressed to word 200 i.e. 200.** and i want to monitor the state of bits in word 200 such that if one of them is on the coil 204.00 should turn on (Currently i am using the OR operator to turn on bit 204.00 but the task is to use a single instruction to monitor the sate of the 16 bits of a word by comparing it to an integer say #0). I was thinking of using compare to achieve this but i do not know how to compare a word say 200 to a an integer value #0 such that if DW200>#0 then 204.00=on. How can i achieve this and what instruction can i use, am new to omron plc's and am using syswin 3.4 and plc CPM2A. Any help or sample program to achieve the above is deeply appreciated.

Edited by Ablex

Share this post


Link to post
Share on other sites

I don't have Syswin here at home, but here is a screenshot of what it could be with CXP:

 

 

Capture.JPG

You should take a look in this manual:

Programming manual

Edited by pfort

Share this post


Link to post
Share on other sites

pfort Thank you for the help and the manual, you've made my life a whole lot easier cheers!

Edited by Ablex

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