stevelawson
Member
- Join Date
- Feb 2004
- Posts
- 115
Hi everyone.
I have a small routine in FC 1 and when the routine is finished i would like to initiate a seperate routine in FC 2 using the same Inputs and Outputs but in a different order. The last instruction in FC 1 resets the routine to its start position with M 0.7
When M0.7 is set i want to block FC 1 in OB 1 from being processed, until FC 2 as finished doing its bit, then reset M 0.7 so that FC 1 gets processed again and the whole thing repeats.
This is what i wrote in OB 1
AN M 0.7
CALLL FC 1
A M 0.7
CALL FC 2
When i try to run this, the program appears to be running on the PC, all the relevant I/O go Green, but none of the valves operate. If i remove
A M 0.7
CALL FC 2
FROM OB 1 then FC 1 runs fine. What am i doing wrong please.
Many thanks.
Steve.
I have a small routine in FC 1 and when the routine is finished i would like to initiate a seperate routine in FC 2 using the same Inputs and Outputs but in a different order. The last instruction in FC 1 resets the routine to its start position with M 0.7
When M0.7 is set i want to block FC 1 in OB 1 from being processed, until FC 2 as finished doing its bit, then reset M 0.7 so that FC 1 gets processed again and the whole thing repeats.
This is what i wrote in OB 1
AN M 0.7
CALLL FC 1
A M 0.7
CALL FC 2
When i try to run this, the program appears to be running on the PC, all the relevant I/O go Green, but none of the valves operate. If i remove
A M 0.7
CALL FC 2
FROM OB 1 then FC 1 runs fine. What am i doing wrong please.
Many thanks.
Steve.