ZMC motion controller support multi-task running,support file based multi tasks or sub process label process based multi tasks.
Related Instrutions:
END: end present task
STOP: stop file based tasks
STOPTASK:stop sub or label process based tasks
HALT: pause all tasks
RUN :start a file baed task
RUNTASK:start a sub or label process based task
?*max:check total tasks and files supported in controller
1.1 To avoid conflict in running tasks
(1) when tasks are running in different files,there are no influences between each other.
(2) if tasks are running in same file,variables may be shared,which may cause conflict such as variables in cycle sentences.
Local type variables are not infected by multi tasks running,it is better to define variables in cycle as local type.
Input parameters in sub process will be defined as local type automatically.
1.2 Call process accross files
when try to call sub process accross files,the called sub process should be defined as global type;
inside called sub process,variables defined in file which called sub process belongs to can be accessed,or sub process in called sub process can also access other global type variables in other files.
Single file can be compiled into library file which will be called by other procedures.