STUDIO 5000 Compare Statement Highlight

maoye237

Member
Join Date
Sep 2020
Location
fe
Posts
6
Anyone know a way to get the CMP Instruction to highlight in yellow when the statements is true in ladder logic? Similar to the XIC?
 
No, but there could be an OTE, with a dummy bit, between the CMP and the next instruction to the right, and that should be highlighted when the CMP output rung condition is true.
 
The bit instructions highlight based on their value being a "0" or a "1". It is hard coded into the software that an XIC highlights when it sees a "1" and an XIO highlights when it sees a "0".

Compare type instruction appearances aren't hard coded in that same way because of the near infinite variations. Your PC would have to do the processing for each instruction to determine whether the expression is true or false. This would potentially add considerable communications traffic as all the tag values would need to be available in the memory of the PC and updated at a very rapid rate. Alternatively, the instructions would need to have been built initially with some additional overhead (bit) that identifies if they are true or false.

OG
 
The OTE Tag immediately after the CMP Function would be the best and simplest way
It would only be true if the rung preceding the CMP function is true and the CMP evaluation is true. Of course if the rung preceding the CMP is false then the CMP would not be evaluated anyway. But if you placed it as the first element of the rung then it would always be evaluated
you need to stop thinking in terms of 1 / 0 and think true / false it makes things easier to follow
 

Similar Topics

Guys, beating my head on a wall here. I have two simple date-times and I want to find the oldest. Are there any better ways to do this beside a...
Replies
10
Views
3,517
Hi out there is it possible to Compare a bool array to a bool, in studio 5000. I'm think that if One of the bool's in my array is true, then i...
Replies
10
Views
6,386
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
8
Views
128
Hi Everyone. Not posted on here for a long time, but I am hoping someone can help me. I am doing a differential pressure calculation in a L27ERM...
Replies
16
Views
371
Hi, how do I convert 2x Integer registers to a Real? The two integers are from Modbus registers that contain a floating point value, I need to...
Replies
2
Views
128
Back
Top Bottom