Standard
RLL Instructions
5–106
Standard RLL Instructions
Message Instructions
Message Instructions
FAULT
A aaa
The Fault instruction is used to display a
message on the handheld programmer or
in the DirectSOFT status bar. The
message has a maximum of 23 characters
and can be either V memory data,
numerical constant data or ASCII text.
To display the value in a V memory location, specify the V memory location in the
instruction. To display the data in ACON (ASCII constant) or NCON (Numerical
constant) instructions, specify the constant (K) value for the corresponding data
label area.
Operand Data Type DL05 Range
A aaa
V memory V All (See page 4–28)
Constant K 1–FFFF
Discrete Bit Flags Description
SP50 On when the FAULT instruction is executed.
In the following example when X1 is on,
the message SW 146 will display on the
handheld programmer. The NCONs use
the HEX ASCII equivalent of the text to
be displayed. (The HEX ASCII for a blank
is 20, a 1 is 31, 4 is 34 ...)
SW 146
DirectSOFT
DLBL
K1
S
S
END
FAULT
K1
X1
S
S
ACON
A SW
NCON
K 2031
NCON
K 3436
Handheld Programmer Keystrokes
S
S
STR
$
SHFT
4
E
TMR
N
3
D
ENT
SHFT
3
D
ANDST
L
1
B
ANDST
L
1
B
ENT
SHFT
0
A
2
C
INST#
O
TMR
N
SHFT
TMR
N
2
C
INST#
O
TMR
N
SHFT
TMR
N
2
C
INST#
O
TMR
N
1
B
ENT
ENT
ENT
3
D
3
D
4
E
6
G
ENT
3
D
2
C
0
A
1
B
RST
S
ANDN
W
SHFT
ISG
U
MLR
T
ANDST
L
5
F
0
A
1
B
ENT
Fault
(FAULT)
Fault Example