Inserting, Deleting And Calling Subroutines - Omron 3G3MX2 Series User Manual

Drive programming
Hide thumbs Also See for 3G3MX2 Series:
Table of Contents

Advertisement

4 Drive Programming Editor
4-4

Inserting, Deleting and Calling Subroutines

To insert a subroutine, select the tab of the task in which you want to insert a subroutine, and select [New
Tab] - [New Subroutine (flowchart)] or [New Subroutine (text)] in the toolbar of the Drive Programming
Editor.
A new subroutine appears on the Drive Programming Editor.
Similar to tasks, you can delete or rename a subroutine by right-clicking on its tab.
The subroutine name is displayed as "Task name: Subroutine name", next to the task name to which
the subroutine belongs.
All subroutines must begin with "sub" command, and finish with "endsub" command.
To execute a subroutine, specify the subroutine name in the "call" command.
It is only possible to call a subroutine that belongs to the task. Tasks cannot share the same subroutine.
To use a subroutine with multiple tasks, insert the same subroutine in each task.
4 - 18
Flowchart
Flowchart
Text
Text
Drive Programming User's Manual (I580-E2)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx series3g3lx series

Table of Contents