Omron CS1G/H-CPUxx-EV1 Programming Manual page 58

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Basic Concepts
Instruction
condition
Interlocked
An interlock turns OFF part of the program. Special conditions, such as
turning OFF output bits, resetting timers, and holding counters are in
effect.
BREAK(514)
Ends a FOR(512) - NEXT(513) loop during execution. (Prevents execu-
execution
tion of all instructions until to the NEXT(513) instruction.)
Executes a JMP0(515) to JME0(516) jump.
Block program
Executes a program block from BPRG(096) to BEND(801).
execution
Flags
Input flags
• Differentiation Flags
Differentiation result flags. The status of these
flags are input automatically to the instruction for
all differentiated up/down output instructions and
the DIFU(013)/DIFD(014) instructions.
• Carry (CY) Flag
The Carry Flag is used as an unspecified operand
in data shift instructions and addition/subtraction
instructions.
• Flags for Special Instructions
These include teaching flags for FPD(269) instruc-
tions and network communications enabled flags
Operands
Operand types
Source
Specifies the address of the data
to be read or a constant.
Destination
Specifies the address where data
(Results)
will be written.
Number
Specifies a particular number used
in the instruction, such as a jump
number or subroutine number.
22
are reset (canceled) at the start of each task, i.e., they are reset when the task
changes.
The following instructions are used in pairs to set and cancel certain instruc-
tion conditions. These paired instructions must be in the same task.
Description
In this context, a flag is a bit that serves as an interface between instructions.
• Differentiation Flags
Differentiation result flags. The status of these flags are output
automatically from the instruction for all differentiated up/down
output instructions and the UP(521)/DOWN(522) instruction.
• Condition Flags
Condition Flags include the Always ON/OFF Flags, as well as
flags that are updated by results of instruction execution. In user
programs, these flags can be specified by labels, such as ER,
CY, >, =, A1, A0, rather than by addresses.
• Flags for Special Instructions
These include memory card instruction flags and MSG(046)
execution completed flags.
Operands specify preset instruction parameters (boxes in ladder diagrams)
that are used to specify I/O memory area contents or constants. An instruction
can be executed entering an address or constant as the operands. Operands
are classified as source, destination, or number operands.
Example
Operand
symbol
S
C
D (R)
N
instruction
IL(002)
BREAK(514)
JMP0(515)
BPRG(096)
Output flags
S (source)
D (destination)
Description
Source Oper-
Source operand other than control
and
data (C)
Control data
Compound data in a source oper-
and that has different meanings
depending bit status.
---
---
Section 2-1
Setting
Canceling
instruction
ILC(003)
NEXT(513)
JME0(516)
BEND(801)
N (number)

Advertisement

Table of Contents
loading

Table of Contents