CMP instruction on keyence plc : Compare
Compares the operand against the content of [Acc (internal register)], and outputs the result to 2009 to 2011 (KV-10/16/24/40).
Outputs the result to 2009 to 2011 :
1. Special Auxiliary Relays 2009 = ON when result of arithmetic operation is minus or overflows (less than)
2. Special Auxiliary Relays 2010 = ON when result of arithmetic operation is zero (equal)
3. Special Auxiliary Relays 2011 = ON when result of arithmetic operation is plus (greater than)
The following example : less than, equal, greater than