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,859
Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
115
I would like to copy register N61:131 thru N61:147 into ST252:0 I keep failing What happens is I copy into ST252:0,1, 2 etc. What am i missing...
Replies
18
Views
490
I'm trying to fix a mess of code on an older machine that's running a Micrologix 1400 and an RS232 ASCII barcode scanner. The previous guy had...
Replies
3
Views
308
I'm not super familiar with the Micrologix line of processors, but I am pretty familiar with RSLogix 500. I'm trying to simply copy a string to...
Replies
4
Views
262
Back
Top Bottom