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 #336 background imageLoading...
Page #336 background image
324
The following example shows how to take the square root of a 4-digit number
and then round the result.
When CIO 000000 is ON, first the words to be used are cleared to all zeros and
then the value whose square root is to be taken is moved to Sq+1. The result,
which has twice the number of digits as the correct answer (because
ROOT(140) operates on an 8-digit number and here we are using a 4-digit num-
ber), is placed in D00102, and the digits are split into two different words, the
leftmost two digits to CIO 0011 for the answer and the rightmost two digits to
D00103 so that the answer in CIO 0011 can be rounded. The last step is to com-
pare the value in D00103 so that CIO 0011 can be incremented using the Great-
er Than Flag (A50005) when the value must be rounded up.
In this example, 6017 = 77.56. The result is rounded off to an integer, according
to the digit in the tenths place. Thus, 77.56 is rounded off to 78.
00000 LD 000000
00001 jBSET(041)
#0000
D00100
D00101
00002 jMOV(030)
0010
D00101
00003 jROOT(140)
D00100
D00102
00004 jMOV(030)
#0000
0011
00005 jMOV(030)
#0000
D00103
00006 jMOVD(043)
D00102
#0012
0011
00007 jMOVD(043)
D00102
#0210
D00103
00008 jCMP(020)
D00103
#4900
00009 LD A50005
00010 jINC(090)
0011
010
6017
D00101 D00100
00000000
0000
D00101 D00100
60170000
D00102
7756
0011 D00103
00775600
0000
60170000= 7756.932
D00103 0011
00000000
00000000
5600 > 4900?
0011
0078
Address Instruction Operands
(041)
jBSET #0000 D00100 D00101
(030)
jMOV 0010 D00101
(140)
jROOT D00100 D00102
(030)
jMOV #0000 0011
(030)
jMOV #0000 D00103
(043)
jMOVD D00102 #0012 0011
(043)
jMOVD D00102 #0210 D00103
(020)
jCMP D00103 #4900
(090)
jINC 0011
0000
00
A500
05
Example
Special Math Instructions Section 5-23

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