Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 169

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
Item
Flags
Function
Hint
Precautions
Sample program
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.
XFER
The input methods for constants for the Programming Devices are given in the following table.
Operand
Operands specifying
bit strings (normally
input as hexadecimal)
Operands specifying
numeric values
(normally input as
decimal)
Operands specifying
control numbers
(except for jump
numbers)
Note When operands are input on the CX-Programmer, the input ranges will be displayed along with the appropri-
ate prefixes.
132
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.
Name
Label
Error Flag
ER
Equal Flag
=
Negative Flag
N
Indicates the function of the instruction.
Indicates a supplemental explanation of other than the main function.
Indicates important points when using an instruction.
An example of using the instruction with specific operands is provided to further explain the function of
the instruction.
&10
D100
D200
CX-Programmer
Input as decimal with an
& prefix or input as
hexadecimal with an #
prefix. (See note.)
Input as decimal with an
# prefix. (See note.)
Contents
OFF
• ON if the data being transferred (D) is 0.
• OFF in all other cases.
• ON if the leftmost bit of the data being transferred (D) is 1.
• OFF in all other cases.
Programming Console
The Cont/# Key can be pressed to input hexadecimal values by default
with an # prefix.
The CHG Key can then be pressed to rotate between hexadecimal (with #
prefix), signed decimal (with +/–), and unsigned decimal (with & prefix).
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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Operation

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents