Cotrol Logix Instruction Help!

Tim

Member
Join Date
May 2002
Location
Indiana
Posts
291
Need some help on this instruction.
I am not sure if my thinking is correct on how this contact closes.

 
D[1000+Z0].4
--------------| |----------------


Is Z0 like an index register? If so, then if Z0 is equal to 5 would it be right to say that D[1005] bit 4 has to be on for this instruction to be true?

Thank You
 
Tim said:
Need some help on this instruction.
I am not sure if my thinking is correct on how this contact closes.

 
D[1000+Z0].4
--------------| |----------------


Is Z0 like an index register? If so, then if Z0 is equal to 5 would it be right to say that D[1005] bit 4 has to be on for this instruction to be true?

Thank You



This means that the actual operand of this instruction is the array element of the D[n] array plus the value of the tag Z0.

The tag Z0 is simply acting as an offest value for the instruction. It is no different from any other tag. In control logix, this could be any tag, with any name.

If Z0 = 5, then the operand of the instruction is D[1005].4 -- bit 4 of element 1005 of the D array tag.

If Z0 = -500, and D[500].4 is true, then this instruction is true.

If you change Z0, then the operand of the instruction will change.

I hope this clears it up. 👨🏻‍🏫

$
 
Last edited:

Similar Topics

Able Engineers, Pls kindly provide me with necessary information needed to design a control panel using the following; -S7-300 -Control logix...
Replies
16
Views
5,821
I have a hitachi seiki nc controlled by a fanuc 5T , I am new to this field I can get all the functions to work via the mdi, but dont know how to...
Replies
0
Views
1,792
Hi All, I'm just trying to understand the reason behind something I recently experienced. Background: The system contains 4 CompactLogix...
Replies
2
Views
123
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
17
Views
496
Back
Top Bottom