135
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
■
■
■
■
■
ON TIM E
After expiration of the time set the corresponding
subroutine is called up. In the meantime the pro-
gram flow continues normally.
Summary
One-time access of a subroutine
Syntax
ON TIME n GOSUB name
Parameter
n =
time in ms, after which the subroutine is
called up (maximum MLONG)
name =
name of the subroutine
NB!
The precision with which the time is kept de-
pends on the remaining program. Typically
the precision is ±1 ms.
Peculiarities
The subroutine to be called up must be defined
within the SUBMAINPROG and ENDPROG identified
program.
NB!
During the execution of an ON TIME sub-
routine NOWAIT is set to ON.
Command group
I NT
Cross Index
ON PERIOD, GOSUB
Syntax-Example
OUT 1 1
/* light on */
ON TIME 200 GOSUB off1
/* light off again after 200 ms */
SUBMAINPROG
SUBPROG off1
OUT 1 0
RETURN
ENDPROG
■
■
■
■
■
OUT
The 8 digital outputs of the SyncPos option and the
2 relay outputs of the VLT5000 can be set and reset
by using the OUT command.
Summary
Set or reset digital outputs
Syntax
OUT n s
Parameter
n = output number
SyncPos option: O1 ... O8
Relay O1 = 11
Relay O4 = 14
s = condition (0 = OFF, 1 = ON)
NB!
After switching on the system, all outputs are
OFF.
These outputs, which have pre-defined functions
according to the I/O parameter settings, will also be
influenced by the OUT commands! The actual output
status remains as it is, even after program end or
program abort. The output circuit and maximum
load current can be taken from the chapter input/
output terminal and the VLT5000 manual.
Command group
I/O
Cross Index
OUTB, IN, INB
Syntax-Example
OUT 3 1
/* 03 on */
OUT 6 0
/* 06 off */
Program sample
OUT_01.M
Software Reference