1 summary of instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 33

1-9
1 Summary of Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
1-1 Summ
ar
y of Instructi
ons
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
331 2-241 <=F 332 2-241 >F 333 2-241 >=F 334 2-241 FLOATING- FSTR/ 448 Converts the specified single-precision floating-point data (32-bit decimal- point 2-244 ASCII TO FVAL/ 449 Converts the specified text string (ASCII) representation of single-precision 2-249 Table Data SWAP BYTES SWAP/ 637 Switches the leftmost and rightmost bytes in all of the words in the range. 2-253 FRAME FCS/ 180 Calculates the ASCII FCS value for the specified range. 2-255 Data Control PID CONTROL PIDAT 191 Executes PID control according to the specified parameters. The PID constants 2-257 TIME-PROPOR- TPO 685 Inputs the duty ratio or manipulated variable from the specified word, converts 2-269 SCALING SCL/ 194 Converts unsigned binary data into unsigned BCD data according to the speci- 2-276 SCALING 2 SCL2/ 486 Converts signed binary data into signed BCD data according to the specified 2-280 SCALING 3 SCL3/ 487 Converts signed BCD data into signed binary data according to the specified 2-284 AVERAGE AVG 195 Calculates the average value of an input word for the specified number of 2-287 Subroutine SUBROUTINE SBS/ 091 Calls the subroutine with the specified subroutine number and executes that 2-290 SUBROUTINE SBN 092 Indicates the beginning of the subroutine program with the specified subroutine 2-295 SUBROUTINE RET 093 Indicates the end of a subroutine program. 2-295 Interrupt SET INTERRUPT MSKS/ 690 Sets up interrupt processing for I/O interrupts or scheduled interrupts. 2-300 CLEAR CLI/ 691 Clears or retains recorded interrupt inputs for I/O interrupts or sets the time to 2-303 DISABLE DI/ 693 Disables execution of all interrupt tasks except the power OFF interrupt. 2-306 ENABLE EI 694 Enables execution of all interrupt tasks that were disabled with DI(693). 2-307 Instrucion Type Instruction Mnemonic FUN No. Function Page
POINT TO ASCII
@FSTR
or exponential format) to text string data (ASCII) and outputs the result to the
destination word.
FLOATING-POINT
@FVAL
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.
Processing
Instructions
@SWAP
CHECKSUM
@FCS
Instructions
WITH AUTOTUN-
ING
can be auto-tuned with PIDAT(191).
TIONAL OUTPUT
the duty ratio to a time-proportional output based on the specified parameters,
and outputs the result from the specified output.
@SCL
fied linear function.
@SCL2
linear function. An offset can be input in defining the linear function.
@SCL3
linear function. An offset can be input in defining the linear function.
cycles.
Instructions
CALL
@SBS
program.
ENTRY
number.
RETURNI
Control
Instructions
MASK
@MSKS
INTERRUPT
@CLI
the first scheduled interrupt for scheduled interrupts.
INTERRUPTS
@DI
INTERRUPTS