RSLogix 500: Bit value EQU decimal value?

khelza

Member
Join Date
Sep 2015
Location
Ontario
Posts
67
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 function, will it work? Or do they need to be of the same type? ;)
 
Hi

Unlike Siemens this will work
You could also do a MOV instruction of b3:20 to n7:8
And then use the EQU if you wish

Donnchadh
 
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 function, will it work? Or do they need to be of the same type? ;)


That will work just fine.

Source A must be a word address, source B can be a constant or word address.
 
That will work just fine.

Source A must be a word address, source B can be a constant or word address.

Just to clarify....

Source A can be a word (data-table) address, or a constant (literal).

Source B can be a word (data-table) address, or a constant (literal).

The compiler will accept both A and B as literals, but there is no point, that's just silly....
 
Just to clarify....

Source A can be a word (data-table) address, or a constant (literal).

Source B can be a word (data-table) address, or a constant (literal).

The compiler will accept both A and B as literals, but there is no point, that's just silly....

I disagree See pdf's
But, I don't have a SLC or ML???? to try it. Maybe someone can.
 
Hi

Sorry Just to Clarify I said you could also use a MOV instruction and I should have stated as I did not have the software in front of me
Logic 500 is very good at allowing you to mix data types within instructions

Donnchadh
 

Similar Topics

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
162
How can I achieve the same functionality in Studio 5000? Image 001.png for the old RSLogix500 program Image 002.png for conversion to Studio...
Replies
6
Views
2,521
Dear Sir, Can you please tell me how to use the first scan bit, S2:1/15 in RsLogix 500 to Prevents the latch output to be ON when the power...
Replies
22
Views
10,257
I'm having trouble preparing some data for use with Modbus. I have to send and receive each parameter over 2 16 bit registers and the I can't...
Replies
6
Views
2,624
Hello, I am working within the RSLOGIX 500 software and am trying to index at the bit level. I have attached a screen shot. When using MOV...
Replies
4
Views
1,984
Back
Top Bottom