Appendices
A-50
CJ2 CPU Unit Software User’s Manual
UNSIGNED
ONE-WORD
RECORD
SORT
RSORT
@RSORT
203 Sorts the records (1 word) in the table specified by S, according to
the control words.
Output Required
UNSIGNED
TWO-WORD
RECORD
SORT
RSORT2
@RSORT2
204 Sorts the records (2 words) in the table specified by S, according
to the control words.
Output Required
UNSIGNED
FOUR-
WORD
RECORD
SORT
RSORT4
@RSORT4
205 Sorts the records (4 words) in the table specified by S, according
to the control words.
Output Required
A-1-17 Data Control Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
PID CON-
TROL
PID 190 Output Required
PID CON-
TROL WITH
AUTOTUN-
ING
PIDAT 191 Executes PID control according to the specified parameters. The
PID constants can be auto-tuned with PIDAT(191).
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
RSORT(203)
S
D1
D2
C
C: 1st control word
S: 1st word of first
record to sort
D1: 1st word of
sorting results
D2: Destination
index register
RSORT2(204)
S
D1
D2
C
C: 1st control word
S: 1st word of first
record to sort
D1: 1st word of
sorting results
D2: Destination
index register
RSORT4(205)
S
D1
D2
C
C: 1st control word
S: 1st word of first
record to sort
D1: 1st word of
sorting results
D2: Destination
index register
PID(190)
S
C
D
S: Input word
C: 1st parameter
word
D: Output word
PV input (S) PID control
Manipulated variable (D)
Parameters (C to C+8)
Executes PID control according to the specified parameters.
PIDAT(191)
S
C
D
S: Input word
C: 1st parameter
word
D: Output word