Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick RSLogix 5000 Question

Status
Not open for further replies.

LemmingRebel

Electrical
Jul 4, 2007
9
0
0
US
Is there an "ON CHANGE" instruction? Say, an instruction that watches a value, and goes true when that value has changed?
 
Replies continue below

Recommended for you

1 line of logic will work for you

use a NEQ instruction
Value1 not equal to value2, set a bit, branch around bit with a MOV instruction: move value1 to value2.

 
No matter how you do it, you need to allocate one word of memory to store the value from the previous scan.

Assuming you're using the latest version of RSLogix 5k, I think you can actually write your own instruction that takes the watched value and a memory location as parameter.


Scott Whitlock
PLC Programming Articles:
 
Status
Not open for further replies.
Back
Top