EasyManua.ls Logo

Omron CJ - INSTRUCTIONS - Page 174

Omron CJ - INSTRUCTIONS
1308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. Instructions
136
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Constants
Constants input for operands are given as listed below.
Operand Descriptions and Operand Specifications
Operands Specifying Bit Strings (Normally Input as Hexadecimal):
Only the hexadecimal form is given for operands specifying bit strings, e.g., only “#0000 to #FFFF” is
specified as the S operand for the MOV(021) instruction. On the CX-Programmer, however, bit strings
can be input in decimal form by using the & prefix.
Operands Specifying Numeric Values (Normally Input as Decimal, Including Jump Numbers):
Both the decimal and hexadecimal forms are given for operands specifying numeric values, e.g.,
“#0000 to #FFFF” and “&0 to &65535” are given for the N operand for the XFER(070) instruction.
Operands Indicating Control Numbers (Except for Jump Numbers):
The decimal form is given for control numbers, e.g., “0 to 1023" is given for the N operand for the
SBS(091) instruction.
Examples
In the examples, constants are given using the CX-Programmer notation, e.g., operands specifying
numeric values are given in decimal for with an & prefix, as shown in the following example.
The input methods for constants for the Programming Devices are given in the following table.
Note When operands are input on the CX-Programmer, the input ranges will be displayed along with the appropri-
ate prefixes.
Flags The flags table indicates the status of the condition flags immediately after execution of the instruction.
Any flags that are not listed are not affected by the instruction. “OFF” indicates that a flag is turned OFF
immediately after execution of the instruction regardless of the results of executing the instruction.
Function Indicates the function of the instruction.
Hint Indicates a supplemental explanation of other than the main function.
Precautions Indicates important points when using an instruction.
Example Programming One or more examples of using the instruction with specific operands is provided to further explain the
function of the instruction.
Operand CX-Programmer Programming Console
Operands specifying
bit strings (normally
input as hexadecimal)
Input as decimal with an
& prefix or input as
hexadecimal with an #
prefix. (See note.)
The Cont/# Key can be pressed to input hexadecimal values by default
with an # prefix.
Operands specifying
numeric values
(normally input as
decimal)
The CHG Key can then be pressed to rotate between hexadecimal (with #
prefix), signed decimal (with +/–), and unsigned decimal (with & prefix).
Operands specifying
control numbers
(except for jump
numbers)
Input as decimal with an
# prefix. (See note.)
Input directly in decimal form.
If the & prefix is automatically added, the CHG Key can be pressed to
rotate between unsigned decimal (with & prefix), hexadecimal (with #
prefix), and signed decimal (with +/–).
If no prefix is displayed, the value must be entered in decimal form.
Item Contents
Name Label Operation
Error Flag ER OFF
Equal Flag = ON if the data being transferred (D) is 0.
OFF in all other cases.
Negative Flag N ON if the leftmost bit of the data being transferred (D) is 1.
OFF in all other cases.
XFER
&10
D100
D200

Table of Contents

Related product manuals