Delta DVP-ES2/EX2/SS2/SA2/SX2/SE Two-Way Radio User Manual


 
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-326
API Mnemonic Operands Function
143
DELAY P
Delay
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S
* * *
DELAY, DELAYP: 3
steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: Delay time, unit: 0.1ms (K1~K1000)
Explanations:
When DELAY instruction executes, in every scan cycle, the execution of the program after DELAY
instruction will be delayed according to the delay time.
Program Example:
When interrupt input X0 is triggered from OFF to ON, interrupt subroutine executes DELAY
instruction first, therefore the program after DELAY instruction (X1 = ON, Y0 = ON…) will be delayed
for 2ms.
M1000
Main program
FEND
I001
X1
Y0
IRET
END
EI
REF Y0 K8
DELAY K20
T=2ms
Interrupt input X0
Input X1
Output Y0
Points to note:
1. User can adjust the delay time according to the actual needs.
2. The delay time of DELAY instruction could be increased due to the execution of
communication, high-speed counter and high-speed pulse output instructions.
3. The delay time of DELAY instruction could be increased due to the delay of transistor or relay
when external output (transistor or relay) is specified.