Function Blocks; Features Of Function Blocks - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming
5-4

Function Blocks

5-4-1

Function Blocks

A function block (FB) is a basic program element containing the programming for a standard processing
function that has been defined in advance. Once you have created function blocks and saved them in a
library, you can use them in programming simply by selecting the function blocks that are required for
the system, placing them in the program, and setting I/O parameters. Excellent function blocks can
greatly improve the efficiency of program development.
OMRON function blocks conform to IEC 61131-3.
Library
Simply set the parameters for
each of the devices.

Features of Function Blocks

• Reusability
A function block can be saved in a library so that it can be easily reused. Once the programmer
understands the function blocks, the programmer can use them simply by setting parameters. This
greatly improves programming efficiency.
• Reduced Debugging Work
Reusing high-quality function blocks that have already been debugged eliminates the need to debug
them again and thereby reduces debugging work.
• Data Protection
The variables inside a function block cannot be accessed directly from the outside, so the data is pro-
tected. (Data will not be changed unintentionally.)
5-42
FB
FB
FB
Program for Device A
FB
Rack A
parameters
Once function blocks have been
created, they can be used in a
variety of programs.
Program for Device A
Algorithms do not need to be
verified for function blocks that
are already completed.
FB
Rack B
parameters
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents