Ock
Member
I am having some difficulty understanding some code written by Italian contractors to track product along a conveyor via a shift register. There is one network that is causing confusion and I tend to think that it is some form of indirect addressing:
L #Pos_out (DB35.DBW6) contains the INT value 4
T #Index temporary DWord
A L [#Index] ** What does this do? **
= #OUT M31.5 (memory bit that drives my O/P)
My assumption is that the code in question sets M31.5 when the shift register has clocked product along the conveyor to a position determined by the content of DB35.DBW6 but I cannot understand how the instructions ...
A L [#Index]
= #OUT
... work because DB35.DBW6 is an INT?
In other words, if DB35.DBW6 has a value of 4, how does this set M31.5 high?
L #Pos_out (DB35.DBW6) contains the INT value 4
T #Index temporary DWord
A L [#Index] ** What does this do? **
= #OUT M31.5 (memory bit that drives my O/P)
My assumption is that the code in question sets M31.5 when the shift register has clocked product along the conveyor to a position determined by the content of DB35.DBW6 but I cannot understand how the instructions ...
A L [#Index]
= #OUT
... work because DB35.DBW6 is an INT?
In other words, if DB35.DBW6 has a value of 4, how does this set M31.5 high?