EasyManua.ls Logo

Omron SYSMAC CV Series User Manual

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #579 background imageLoading...
Page #579 background image
569
Appendix B
Error and Arithmetic Flag Operation
The following table shows the instructions that affect the ER, CY, GR, LE, EQ, OF, UF, and N flags. In general,
ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift results. GR
indicates that a compared value is larger than some standard, LE that it is smaller, EQ that it is the same. EQ
also indicates a result of zero for arithmetic operations. N generally indicates that bit 15 of the result word is
ON. OF indicates that the results was greater than could be stored in memory; UF indicates that the results
was less than could be stored in memory. Refer to subsections of
Section 5 Instruction Set
for details.
A set value (SV) BCD check is carried out at the time of resetting (TIM, CNT, TIMH(015), TIML(121),
TCNT(123), TIMW<013>, CNTW<014>, and TMHW<015>), or counting (CNTR(012), TTIM(120), and
MTIM(122)).
When CCL(172) is executed, the status of these flags will return to the status when CCS(173) was last
executed. CCL(172), STC(078), and CLC(079) are the only instructions that can directly change the status of
the arithmetic flags.
“ON/OFF” in the table indicate the flags that are turned ON and OFF according to the result of the instruction.
Although ladder diagram instructions, TIM, CNT, TIMH(015), CNTR(012), TIML(121), TIMW<013>,
CNTW<014>, and TMHW <015> are executed when ER is ON, other instructions with “ON/OFF” under the
Error Flag (A50003) column are not executed if ER is ON. All of the other flags in the following table will also
not operate when ER is ON.
Instructions not shown do not affect any of the flags in the table. Although only the non-differentiated form of
each instruction is shown, all variations of an instructions affect flags in exactly the same way.
Instructions marked with an asterisk (*) are supported by version-2 CVM1 CPUs only.
The status of the ER, CY, GT, LT and EQ Flags is affected by instruction execution and will change each time an
instruction that affects them is executed. Differentiated instructions are executed only once when their execution
condition changes (ON to OFF or OFF to ON) and are not executed again until the next specified change in their
execution condition. The status of the ER, CY, GT, LT and EQ Flags is thus affected by a differentiated instruction
only when the execution condition changes and is not affected during scans when the instruction is not executed,
i.e., when the specified change does not occur in the execution condition. When a differentiated instruction is not
executed, the status of the ER, CY, GT, LT and EQ Flags will not change and will maintain the status produced by
the last instruction that was executed.
Instructions A50003
(ER)
A50004
(CY)
A50005
(GR)
A50006
(EQ)
A50007
(LE)
A50008
(N)
A50009
(OF)
A50010
(UF)
TIM
ON/OFF
CNT
JMP(004)
ON/OFF
FAL(006)
FALS(007)
CNTR(012)
TIMH(015)
CMP(020)
ON/OFF ON/OFF ON/OFF ON/OFF
CMPL(021)
BCMP(022)
ON/OFF ON/OFF
TCMP(023)
MCMP(024)
EQU(025) ON/OFF
CPS(026)*
ON/OFF ON/OFF ON/OFF ON/OFF
CPSL(027)*
CMP(028)*
CMPL(029)*
Note “ON/OFF” means that the flag is affected by the result of instruction execution.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CV Series and is the answer not in the manual?

Omron SYSMAC CV Series Specifications

General IconGeneral
SeriesSYSMAC CV Series
TypePLC
Input Voltage100 to 240 VAC, 24 VDC
Number of InputsVaries by model
Number of OutputsVaries by model
I/O CapacityUp to 2048 points
I/O PointsVaries by model
Communication PortsRS-232C, RS-422/485
Programming LanguageLadder Logic
Power Supply100-240V AC or 24V DC
MountingDIN rail mounting
Operating Temperature0°C to 55°C

Summary

PRECAUTIONS

2 General Precautions

User must operate product per specifications; consult OMRON for non-manual conditions or critical systems.

3 Safety Precautions

Precautions regarding power supply, terminal touching, disassembly, repair, and battery handling.

4 Operating Environment Precautions

Guidelines for environmental conditions for PC system installation and operation.

5 Application Precautions

Precautions for safe PC system usage, grounding, power supply, wiring, and program changes.

SECTION 1 Introduction

SECTION 2 Hardware Considerations

2-3 Memory Cards

Covers file memory used to store programs and other data, including RAM, EPROM, and EEPROM types.

2-7 PC Configuration

Provides an overview of the PC configuration, including CPU Rack, Expansion CPU Rack, and Expansion I/O Rack.

SECTION 3 Memory Areas

3-2 Data Area Structure

Describes two sets of addresses for accessing PC memory: data area addresses and memory addresses.

3-3 CIO (Core I/O) Area

Details CIO Area addresses, divided into eight data areas for I/O control and internal data manipulation.

3-6 Auxiliary Area

Contains flags and control bits for monitoring and controlling PC operation, accessing clock pulses, and signaling errors.

SECTION 4 Writing Programs

4-1 Basic Procedure

Outlines basic steps for writing a program, including I/O device list and work bit allocation.

4-3 Basic Ladder Diagrams

Describes ladder diagrams, which consist of vertical lines (bus bars) and branching lines (instruction lines or rungs).

4-7 Controlling Bit Status

Lists instructions used to control individual bit status, such as OUTPUT, SET, RESET, and KEEP.

4-10 Programming Precautions

Provides guidelines on programming practices, such as unlimited conditions in series or parallel and avoiding vertical conditions.

SECTION 5 Instruction Set

5-6 Ladder Diagram Instructions

Covers instructions that correspond to ladder diagram conditions and logic block instructions for complex relationships.

5-7 Bit Control Instructions

Explains instructions used to control bit status by turning bits ON and OFF in different ways.

5-13 Timer and Counter Instructions

Details instructions for creating timers and counters, accessing PVs and Completion Flags.

5-15 Data Movement Instructions

Explains instructions used for moving data between different addresses in data areas.

5-16 Comparison Instructions

Covers instructions used for comparing data, affecting comparison flags and outputting results.

5-17 Conversion Instructions

Explains instructions that convert word data from one format to another, outputting converted data to specified result words.

SECTION 6 Program Execution Timing

6-2 Cycle Time

Explains operations affecting cycle time and I/O response time, and shows basic cycle time calculation.

6-5 I/O Response Time

Explains the time taken for the PC to output a control signal after receiving an input signal.

SECTION 7 PC Setup

SECTION 8 Error Processing

8-4 Error Messages

Classifies errors into initialization, non-fatal operating, and fatal operating errors for message display.

Appendices

A Instruction Set

Details all ladder diagram programming instructions, variations, and applicable data areas.

B Error and Arithmetic Flag Operation

Explains instructions affecting ER, CY, GR, LE, EQ, OF, UF, and N flags.

C PC Setup Default Settings

Lists default values for PC Setup parameters.

D Data Areas

Summarizes data areas in CV-series PCs, including CIO, Temporary Relay, and Auxiliary Areas.

Related product manuals