Appendices
A-68
CJ2 CPU Unit Software User’s Manual
CLOCK
ADJUST-
MENT
DATE
@DATE
735 Output Required
A-1-28 Debugging Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
TRACE
MEMORY
SAMPLING
TRSM 045 When TRSM(045) is executed, the status of a preselected bit or
word is sampled and stored in Trace Memory. TRSM(045) can be
used anywhere in the program, any number of times.
Output Not
required
A-1-29 Failure Diagnosis Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
FAILURE
ALARM
FAL
@FAL
006 Output Required
SEVERE
FAILURE
ALARM
FALS 007 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
S
DATE(735)
S: 1st source word
CPU Unit
Internal clock
Changes the internal clock setting to the setting in the specified
source words.
New
setting
Minutes
Day
Year
00
Seconds
Hour
Month
Day of week
TRSM(045)
N
S
FAL(006)
N: FAL number
S: 1st message
word or error
code to
generate
Generates or clears user-defined non-fatal errors.
Non-fatal errors do not stop PC operation.
Also generates non-fatal errors with the system.
Diagnostic output B
T
R
Next instruction block
Time monitoring function:
Starts timing when execution condition A goes
ON. Generates a non-fatal error if output B
isn't turned ON within the monitoring time.
Error-
processing block
(optional)
Logic diagnosis block*
Logic diagnosis function
Determines which input in C
prevents output B from going ON.
Logic diagnosis
execution condition C
Execution
condition A
N
S
FALS(007)
N: FALS number
S: 1st message
word or error
code to
generate
ERR Indicator lit
Generates user-defined fatal errors.
Fatal errors stop PC operation.
Also generates fatal errors with the system.
Execution of
FALS(007)
generates a
fatal error
with FALS
number N.
Error code and time/date
written to Error Log Area
Error code written to A400
FALS Error Flag ON