Davek0974
Member
It seems very bad to have one OTE address being used in more than one place, seems that only the last entry scanned is used?
But what about the same OTE address being used in different subroutines that are mutually exclusive or become so when needed?
Scenviro...
Subroutine 1 has OTE 1 in it
Subroutine 2 has OTE 1 in it
JSR to each rung has a mutually exclusive bit so only one subroutine is live at any one time.
Is this ok?
The other option is to place the all the state outputs in the main ladder and use lots of AND contacts to energise the single OTE bits from each subroutine.
But what about the same OTE address being used in different subroutines that are mutually exclusive or become so when needed?
Scenviro...
Subroutine 1 has OTE 1 in it
Subroutine 2 has OTE 1 in it
JSR to each rung has a mutually exclusive bit so only one subroutine is live at any one time.
Is this ok?
The other option is to place the all the state outputs in the main ladder and use lots of AND contacts to energise the single OTE bits from each subroutine.