Advantages Of Function Blocks - Omron WS02-CXPC1-V9 - V9 Operation Manual

Table of Contents

Advertisement

Function Blocks
1-2-2

Advantages of Function Blocks

Structured
Programming
Easy-to-read "Black Box"
Design
Use One Function Block
for Multiple Processes
Reduce Coding Errors
Black-boxing Know-how
Data Protection
Improved Reusability with
Variable Programming
Creating Libraries
12
With the CX-Programmer, a single function block can be saved as a single file
and reused in other PLC programs, so standard processing functions can be
made into libraries.
Function block A
Standard
program section
written with
variables
Define in advance.
Insert in
program.
Save function
block as a file.
Convert to
library function.
Function
block A
Reuse.
Function blocks allow complex programming units to be reused easily. Once
standard programming is created in a function block and saved in a file, it can
be reused just by placing the function block in a program and setting the
parameters for the function block's I/O. The ability to reuse existing function
blocks will save significant time when creating/debugging programs, reduce
coding errors, and make the program easier to understand.
Structured programs created with function blocks have better design quality
and require less development time.
The I/O operands are displayed as variable names in the program, so the pro-
gram is like a "black box" when entering or reading the program and no extra
time is wasted trying to understand the internal algorithm.
Many different processes can be created easily from a single function block by
using the parameters in the standard process as input variables (such as
timer SVs, control constants, speed settings, and travel distances).
Coding mistakes can be reduced because blocks that have already been
debugged can be reused.
Read-protection can be set for function blocks to prevent programming know-
how from being disclosed.
The variables in the function block cannot be accessed directly from the out-
side, so the data can be protected. (Data cannot be changed unintentionally.)
The function block's I/O is entered as variables, so it isn't necessary to change
data addresses in a block when reusing it.
Processes that are independent and reusable (such as processes for individ-
ual steps, machinery, equipment, or control systems) can be saved as func-
tion block definitions and converted to library functions.
Program 2
Program 1
Copy of function block A
Input
Variable Variable
Set
Copy of function block A
Input
Variable Variable
To another PLC program
Section 1-2
Copy of function block A
Output
Variable
Output
Set
Output

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents