Download Print this page

Danfoss MCO 305 Design Manual page 138

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
ON TIME
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
138
__ Software Reference __
One-time access of a subroutine.
ON TIME n GOSUB name
n
= time in ms, after which the subroutine is called up (maximum MLONG)
name
= name of the subroutine
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 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.
INT
ON PERIOD, GOSUB, DISABLE interrupts, ENABLE interrupts, Priorities of
Interrupts
OUT 1 1
/* light on */
ON TIME 200 GOSUB off1
SUBMAINPROG
SUBPROG off1
OUT 1 0
RETURN
ENDPROG
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
/* light off again after 200 ms */

Advertisement

loading