Reusing Function Blocks - Omron WS02-CXPC1-V9 - V9 Operation Manual

Table of Contents

Advertisement

Usage Procedures
1-5-2

Reusing Function Blocks

1,2,3...
24
4. Set the variables' input source addresses and/or constants and output
destination addresses and/or constants as the parameters to pass data for
each instance.
5. Select the created instance, select Function Block Memory - Function
Block Memory Allocation from the PLC Menu, and set the internal data
area for each type of variable.
6. Transfer the program to the CPU Unit.
7. Start program execution in the CPU Unit and the instance will be called and
executed if their input conditions are ON.
Function block definition A
1. Algorithm
Standard
program section
with variable
names a, b, c,
etc.
2. Variables
Table defining usage
and properties of
variables a, b, c, etc.
Use the following procedure to save a function block definition as a file and
use it in a program for another PLCs.
1. Select the function block that you want to save and save it as a function
block definition file (*.cxf).
2. Open the other PLC's project and open/read the function block definition
file (*.cxf) that was saved.
3. Insert the function block definition in the program when creating the new
program.
Function block definition A
1. Algorithm
Standard
program section
with variable
names a, b, c,
etc.
2. Variables
Table defining usage
and properties of
variables a, b, c, etc.
Note
In the CX-Programmer Ver. 5.0, each function block definition can be com-
piled and checked as a program. We recommend compiling to perform a pro-
gram check on each function block definition file before saving or reusing the
file.
The instance is
executed if the input
condition is established.
Program
Instance of function block definition A
Input
condition
Input 0.00
Insert in
a
program.
4. Specify the input source and
output destination addresses.
Program
Input
condition
Input 1.00
Read and
insert.
Save
Function
block
definition
A
Function block
definition file (*.cxf)
Section 1-5
3. Input instance name
5. The system automatically allocates
the addresses used by these
variables. Set the data area area in
which these addresses are allocated.
Output 2.00
b
c
Output 3.00
Instance of function block definition A
a
b
Output 5.00
c
Output 6.00

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents