Hello everyone. I have a question for you, I have multiple module and Routine files. Every routine works with signal control if the robot is going to move. For example, if the 1st Module is the main module, I want a routine file connected to the 2nd module to run automatically when the robot is in automatic mode, when the signal for the routine work that is connected to the 2nd module comes. it works, how can i do that? Another question I have is, is there a signal to understand whether the robot is working at the moment? If not, how should we create it? Thank you from now.
Robot program control (need help)
-
Dodo41 -
April 7, 2022 at 8:40 AM -
Thread is Unresolved
-
- Go to Best Answer
-
A procedure call should work to call any routine in any module so long as that routine is not declared local to the module in which it is resident. You can configure io signals that you can turn on when in a routine and off as you exit that routine.
-
Thank you for your support but I don't quite understand what it means to declare locally as I don't understand English very well, can you show me an example?
-
- Best Answer
MODULE MYModule
PROC myProc()
stuff here
ENDPROC
ENDMODULE
MODULE MYModule
LOCAL PROC myProc()
stuff here
ENDPROC
ENDMODULE