UD70
Issue code: 70nu2
4-8 DPL programming
BACKGROUND task
The BACKGROUND task is used for functions and commands that do not
require time-related or encoder-related monitoring. This task would be
used for the following:
• Data logging
• Checking digital inputs
• Setting output status
The
BACKGROUND task runs after the INITIAL task is completed. It is
recommended that the majority of the program is run in the BACKGROUND
Task.
Note
The BACKGROUND task does not automatically loop.
Example
BACKGROUND{
RAMP:
#1.21 = 0
DO WHILE #1.21<1000
#1.21 = #1.21+1
LOOP
GOTO RAMP:
}