
MCO 305 Design Guide
__ Software Reference __
138
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
ON TIME
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
Description
After expiration of the time set the corresponding subroutine is called up. In the
meantime the program flow continues normally.
NB!:
–
The precision with which the time is kept depends on the hardware used and
the remaining program. Typically the precision is
r
1 ms.
–
In General: The subroutine to be called up must be defined within the
SUBMAINPROG and ENDPROG identified program.
–
During the execution of an ON TIME subroutine NOWAIT is set to ON.
Command Group
INT
Cross Index
ON PERIOD, GOSUB, DISABLE interrupts, ENABLE interrupts, Priorities of
Interrupts
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
Summary of Contents for MCO 305
Page 4: ......