I have two inputs, C.1 and C.2
The code:
if pinC.1 = 1 then ...
and
If pinC.2 = 1 then ...
functions as expected.
I can declare symbols for them:
If switch1 = 1 then ...
and
If switch2 = 1 then ...
and everything is fine.
I want to run some common code that uses one or other of the switches, so might say 'Detector= pinC.1' or 'Detector= pinC.2' in the body of the code and then
'If Detector = 1 then ...'
This passes syntax, but does not work. With my current knowledge I cannot see how to resolve this; I'm sure it can.
Please advise gently.
The code:
if pinC.1 = 1 then ...
and
If pinC.2 = 1 then ...
functions as expected.
I can declare symbols for them:
If switch1 = 1 then ...
and
If switch2 = 1 then ...
and everything is fine.
I want to run some common code that uses one or other of the switches, so might say 'Detector= pinC.1' or 'Detector= pinC.2' in the body of the code and then
'If Detector = 1 then ...'
This passes syntax, but does not work. With my current knowledge I cannot see how to resolve this; I'm sure it can.
Please advise gently.