n00b question.
I'm using an AB 1769-OB32 output card in slot 3.
I can set an output bit by writing to Local:3.0.Data.0
I've got a FOR loop in a main program, that is incrementing a counter, and running a second program.
I'd like that second program to set an output bit (to control a valve) based on the count. So if the counter is at 0, it will control the valve at:
Local:3.0.Data.0
if the counter is at 2, it will control the valve at:
Local:3.0.Data.2
My counter is named current_valve. It's a DINT.
I'd think that Local:3.0.Data.current_valve would work, but it returns an error with:
Error: Rung 2, XIO, Operand 0: Invalid member specifier.
What am I missing?
Thanks!
/e
I'm using an AB 1769-OB32 output card in slot 3.
I can set an output bit by writing to Local:3.0.Data.0
I've got a FOR loop in a main program, that is incrementing a counter, and running a second program.
I'd like that second program to set an output bit (to control a valve) based on the count. So if the counter is at 0, it will control the valve at:
Local:3.0.Data.0
if the counter is at 2, it will control the valve at:
Local:3.0.Data.2
My counter is named current_valve. It's a DINT.
I'd think that Local:3.0.Data.current_valve would work, but it returns an error with:
Error: Rung 2, XIO, Operand 0: Invalid member specifier.
What am I missing?
Thanks!
/e