Subroutines - Omron MX2 Series User Manual

Hide thumbs Also See for MX2 Series:
Table of Contents

Advertisement

Drive Programming

4-2 Subroutines

Subroutines are useful to organize your program into parts of code that you can reuse in other
programs or in the same program. For insert a subroutine press the button
or
and a new
subroutine will appear. Like on Tasks, you can delete or rename a subroutine.
Every subroutine must begin with the Sub block, and end with the EndSub Control Command.
Flowchart
Text
The subroutine is executed via the call command with the subroutine name.
Flowchart
Text
It is only possible to call a subroutine that is associated with the task. To be used with other task, a
copy of the subroutine is necessary on the task.
24

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lx seriesRx series

Table of Contents