jagster21
Member
Hey all,
I am currently working on converting many of my company's standard Rockwell Code to Siemens S7, and have run into an issue with indirect addressing.
So currently, we have something along the lines of this
Valve.X
--| |---
In this example, the Tag 'Valve' is a Dint, and we are inquiring the Xth Bit of the valve Dint. Elsewhere in the code, the Tag 'X', which is also a Dint, is changed on a scan by scan basis.
From my understanding, if I were to continue to use ladder logic, I would code it in Siemens S7 like..
Valve.%X0 , however, that would forever be an inquiry on the 0 bit in that Dint, rather than referencing 'X'.
Does anyone have a way to use this method of indirect addressing in Siemens?
Thanks
I am currently working on converting many of my company's standard Rockwell Code to Siemens S7, and have run into an issue with indirect addressing.
So currently, we have something along the lines of this
Valve.X
--| |---
In this example, the Tag 'Valve' is a Dint, and we are inquiring the Xth Bit of the valve Dint. Elsewhere in the code, the Tag 'X', which is also a Dint, is changed on a scan by scan basis.
From my understanding, if I were to continue to use ladder logic, I would code it in Siemens S7 like..
Valve.%X0 , however, that would forever be an inquiry on the 0 bit in that Dint, rather than referencing 'X'.
Does anyone have a way to use this method of indirect addressing in Siemens?
Thanks