Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual page 25

Function blocks
Table of Contents

Advertisement

Function Blocks
Number of Instances
Parameters
10
Function Block Definition
TIMER_FB
Variable Definitions
Internal variable: WORK_NUM
Multiple instances can be created from a single function block definition. Up to
either 256 or 2,048 instances can be created for a single CPU Unit depending
on the CPU Unit model. The allowed number of instances is not related to the
number of function block definitions and the number of tasks in which the
instances are inserted.
Each time an instance is created, set the real I/O memory addresses or con-
stants for I/O variables used to pass input data values to instances and obtain
output data values from instances. These addresses and constants are called
parameters.
Instance of Function Block Definition A
Input 0.00
a
Input 3.00
c
Set the constants or
input source addresses
from which to pass data.
Here, it is not the input source address itself, but the contents at the input
address in the form and size specified by the variable data type that is passed
to the function block. In a similar fashion, it is not the output destination
address itself, but the contents for the output address in the form and size
specified by the variable data type that is passed from the function block.
instance_A
TIMER_FB
Use same internal variables.
instance_A
TIMER_FB
instance_B
TIMER_FB
Output 2.00
b
Set the constant or
output destination
address to which to pass
data.
Section 1-2
Use different internal variables.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents