Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
1-9
1 Summary of Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
1-1 Summary of Instructions
1
Floating-point
Math Instruc-
tions
FLOATING TO
16-BIT
FIX/
@FIX
450 Converts a 32-bit floating-point value to 16-bit signed binary data and places
the result in the specified result word.
2-233
FLOATING TO
32-BIT
FIXL/
@FIXL
451 Converts a 32-bit floating-point value to 32-bit signed binary data and places
the result in the specified result words.
2-233
16-BIT TO
FLOATING
FLT/
@FLT
452 Converts a 16-bit signed binary value to 32-bit floating-point data and places
the result in the specified result words.
2-235
32-BIT TO
FLOATING
FLTL/
@FLTL
453 Converts a 32-bit signed binary value to 32-bit floating-point data and places
the result in the specified result words.
2-235
FLOATINGPOINT
ADD
+F/
@+F
454 Adds two 32-bit floating-point numbers and places the result in the specified
result words.
2-237
FLOATINGPOINT
SUBTRACT
-
F/
@
-
F
455 Subtracts one 32-bit floating-point number from another and places the result in
the specified result words.
2-237
FLOATING-
POINT MULTIPLY
F/
@F
456 Multiplies two 32-bit floating-point numbers and places the result in the speci-
fied result words.
2-237
FLOATING-
POINT DIVIDE
/F
@/F
457 Divides one 32-bit floating-point number by another and places the result in the
specified result words.
2-237
FLOATING
SYMBOL
COMPARISON
=F 329 Compares the specified single-precision data (32 bits) or constants and creates
an ON execution condition if the comparison result is true. Three kinds of sym-
bols can be used with the floating-point symbol comparison instructions: LD
(Load), AND, and OR.
2-241
<>F 330 2-241
<F 331 2-241
<=F 332 2-241
>F 333 2-241
>=F 334 2-241
FLOATING-
POINT TO ASCII
FSTR/
@FSTR
448 Converts the specified single-precision floating-point data (32-bit decimal- point
or exponential format) to text string data (ASCII) and outputs the result to the
destination word.
2-244
ASCII TO
FLOATING-POINT
FVAL/
@FVAL
449 Converts the specified text string (ASCII) representation of single-precision
floating-point data (decimal-point or exponential format) to 32-bit single-preci-
sion floating-point data and outputs the result to the destination words.
2-249
Table Data
Processing
Instructions
SWAP BYTES SWAP/
@SWAP
637 Switches the leftmost and rightmost bytes in all of the words in the range. 2-253
FRAME
CHECKSUM
FCS/
@FCS
180 Calculates the ASCII FCS value for the specified range. 2-255
Data Control
Instructions
PID CONTROL
WITH AUTOTUN-
ING
PIDAT 191 Executes PID control according to the specified parameters. The PID constants
can be auto-tuned with PIDAT(191).
2-257
TIME-PROPOR-
TIONAL OUTPUT
TPO 685 Inputs the duty ratio or manipulated variable from the specified word, converts
the duty ratio to a time-proportional output based on the specified parameters,
and outputs the result from the specified output.
2-269
SCALING SCL/
@SCL
194 Converts unsigned binary data into unsigned BCD data according to the speci-
fied linear function.
2-276
SCALING 2 SCL2/
@SCL2
486 Converts signed binary data into signed BCD data according to the specified
linear function. An offset can be input in defining the linear function.
2-280
SCALING 3 SCL3/
@SCL3
487 Converts signed BCD data into signed binary data according to the specified
linear function. An offset can be input in defining the linear function.
2-284
AVERAGE AVG 195 Calculates the average value of an input word for the specified number of
cycles.
2-287
Subroutine
Instructions
SUBROUTINE
CALL
SBS/
@SBS
091 Calls the subroutine with the specified subroutine number and executes that
p
rogram.
2-290
SUBROUTINE
ENTRY
SBN 092 Indicates the beginning of the subroutine program with the specified subroutine
number.
2-295
SUBROUTINE
RETURNI
RET 093 Indicates the end of a subroutine program. 2-295
Interrupt
Control
Instructions
SET INTERRUPT
MASK
MSKS/
@MSKS
690 Sets up interrupt processing for I/O interrupts or scheduled interrupts. 2-300
CLEAR
INTERRUPT
CLI/
@CLI
691 Clears or retains recorded interrupt inputs for I/O interrupts or sets the time to
the first scheduled interrupt for scheduled interrupts.
2-303
DISABLE
INTERRUPTS
DI/
@DI
693 Disables execution of all interrupt tasks except the power OFF interrupt. 2-306
ENABLE
INTERRUPTS
EI 694 Enables execution of all interrupt tasks that were disabled with DI(693). 2-307
Instrucion
Type
Instruction Mnemonic
FUN
No.
Function Page