RSLogix 500 EQU

Join Date
May 2019
Location
Indiana
Posts
9
I want to compare an integer with multiple constants. Can I use just one EQU command for this or do I have to use a seperate EQU with each comparison? Such as, N7:0 can be equal to 1 and 4 and 5 and so on...
 
No, they are not consecutive. I have 15 different comparisons for one true statement. The rung will be very long with that many branches. But I can do that if that's the only way. Thanks so much for replying.
 
How often are you needing to compare? you could use a MOV and move the constants to the EQU run the cycle then move another constant to the EQU? not sure what would be better :confused:
 
The rung will be very long with that many branches. But I can do that if that's the only way.
You don't have to put all of the EQU instructions on one rung. But you will need to use an OTE instruction to keep track of the results of each rung of comparisons and then OR all of those intermediate results.
 
be careful with the number of parallel branches.
every time I go more than 8, I start having issues with the logic.
you have to read the first published manual. it limits the number of branches to 8 if memory server me correctly.

james
 
What are the 15 numbers? Depending on the number sequence you could combine LIM and NEQ to cover a range of numbers like Steve suggested. Like 1, 4 & 5 could be coded.

LIM 1-5 and NEQ 2 and NEQ 3.
 

Similar Topics

Hi all, I am working offline on some code where I am comparing two values. B3:20 = 0000 0111 (7) N7:17 = 7 If I compare the two in an EQU...
Replies
9
Views
3,869
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
75
I have a little bit of experience with Allen-Bradley. I have a Micrologix 1500 (RSLogix 500) and a PanelView Plus 7 (FactoryTalk View Studio ME)...
Replies
3
Views
159
buen dia. tengo una falla al pasar los tags de mi plc SLC 5 0/4 a mi panel me aparece un error Problem writing value " " to item <tag name>...
Replies
1
Views
81
Will someone please convert this logic to pdf?
Replies
2
Views
127
Back
Top Bottom