Download Drive Programming User`s Manual v00

Transcript
Drive Programming
6- Drive Programming Instructions
6-1 Control Commands
Entry
Command
Description
Arguments
It indicates the beginning of the task.
---
Format
--Note: It is compulsory to have Entry at the begging of each task.
End
Command
Description
Arguments
It indicates the end of the task.
---
Format
--Note: It is compulsory to have End at the end of each task.
Call
Command
Description
Arguments
• Subroutine: Subroutines are identified
by a name or alias defined by the user.
It jumps to a subroutine
Format
call <subroutine>
Note: After the execution of the subroutine ends, the next instruction line after the call is executed.
Sub
Command
Description
Arguments
It indicates the beginning of the
subroutine.
---
Format
--Note: It is compulsory to have Sub at the beginning of each subroutine.
End Sub
Command
Description
Arguments
It indicates the end of a subroutine.
---
Format
--Note: It is compulsory to have End Sub at the end of each subroutine.
28
Issue 00