beautypg.com

Programming structuring and reusability, New instructions are supported, Languages conforming to iec are supported – Omron CPU Unit CJ2 User Manual

Page 15: Up to 128 cyclic tasks are supported

background image

NEW

Operation status

:Published

:Input

:Output

Example

Operation start

Operation stop

data [i]

Symbol that indirectly specifies

the element number

Array variable name

Start of array

Value of element number i
(example when i = 5)

0
1
2
3
4
5

data[0]
data[1]
data[2]
data[3]
data[4]
data[5]

Element number

NEW

Programming Structuring and Reusability.

Highly Independent Programs Can Be

Easily Created.

NEW

User program

a:=a+1;
RESULTS=0.0;
IF M = TRUE THEN
RESULTS = SIN(data):
ENDIF;

Ladder diagram
Control of equipment and
external devices

ST
Math and character string
processing

SFC
Step progression control

The programming language suited to the process can be used.

Task

Task

Task

Task

FBs
Modularization
and reusability

FB

15

Memory Attributes in the Ladder Editor

can be Understood at a Glance.

Tag (network symbols) memory attributes can

be understood at a glance in the Ladder Editor

Window, enabling an easily understandable

program to be created.

A Symbol Can be used for an Array

Variable Subscript.

A physical address or symbol can be specifi ed

for an array subscript, so data can be

dynamically specifi ed.

Example Data[i]: An element number is indirectly specifi ed by the

value of symbol i. If the value of symbol i is &5, data[5] is specifi ed
for element number 5.

Ver.Up

New Instructions are Supported.

New instructions such as tracking, sorting, and

fl oating-point decimal maximum/minimum value

search instructions are supported.

NEW

The Number of Communications Logic

Ports has Increased to 64.

Programming can be performed with no need to

pay attention to the number of logic ports.

Languages Conforming to IEC Are Supported.

Ladder diagrams and ST languages can be freely

combined and made into components as function

blocks (FBs), allowing programs to be created in the

optimum language for the particular process.

Up to 128 Cyclic Tasks

are Supported.

The user program can be divided into up to 128

tasks. Using smaller task programs makes it easier

to structure programs. This also contributes to shorter

cycle times by controlling the tasks that are being

executed or not executed in smaller units.

4

Times

More than before