WT Syntax:Implicit Notation Only
& Trippoint
Operands:none
Burn:not burnable
Wait

Full Description

The WT command is a trippoint used to time events. When this command is executed, the controller will wait for the number of miliseconds specified before executing the next command.

Arguments

WT n

where
n is an unsigned even number in the range 0 to 2000000000 (2 Billion)

Operand Usage

N/A

Usage

Usage and Default Details
UsageValue
While Moving (No RIO)Yes
In A ProgramYes
Command LineNo
Controller UsageALL
Default Value-
Default Format-

Related Commands

AT - At Time
TIME - Time Operand
TM - Update Time

Examples:

REM 10 seconds after a move is complete, turn on a relay for 2 seconds
#A;         'Program A
PR 50000;   'Position relative move
BGA;        'Begin the move
AMA;        'After the move is over
WT 10000;   'Wait 10 seconds
SB 1;       'Turn on relay (set output 1)
WT 2000;    'Wait 2 seconds
CB1;        'Turn off relay (clear output 1)
EN;         'End Program