Overview Of Function Blocks - Omron CP1L-EL20DR-D Operation Manual

Sysmac cp series cp1l-el/em cpu unit
Table of Contents

Advertisement

Function Blocks
1-4
Function Blocks
1-4-1

Overview of Function Blocks

Standard program
section written
with variables
aa
cc
bb
MOV
#0000
dd
Function blocks can be used in programming SYSMAC CP-series PLCs.
A function block is a basic program element containing a standard processing
function that has been defined in advance. Once the function block has been
defined, the user just has to insert the function block in the program and set
the I/O in order to use the function.
As a standard processing function, a function block is not created with actual
physical addresses, but local variables. The user sets parameters (addresses
or values) in those variables to use the function block. The addresses used for
the variables themselves are automatically assigned by the system (CX-Pro-
grammer) each time they are placed in the program.
In particular, each function block is saved by the CX-Programmer as an indi-
vidual file that can be reused with programs for other PLCs. This makes it
possible to create a library of standard processing functions.
Function block A
Program 1
Define in advance.
Insert in program.
Save function
block as file.
Library
Function
block A
To another PLC program
Reuse
Program 2
Copy of function block A
Input
Output
Variable
Variable
Setting
Setting
Copy of function block A
Input
Output
Variable
Variable
Section 1-4
Copy of function block A
Output
Variable
17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents