Device Control
A
B
X
EN
ENO
Z
Y
“Function Blocks” are predefined programs (or functions) contained within a single program element that may be
used in the ladder diagram. A contact element is required to start the function, but inputs and outputs are editable
through parameters used in the ladder arrangement.
The functions can be reused as the same element (same memory) or occur as a new element with its own memory
assigned.
1. What is a Function Block?
1. What is a Function Block?
An
TIM
Bn
Xn
n
#0100
Tn
Yn
Zn
Control Device n
Input
An
Bn
Input
An
Bn
Output
Xn
Yn
Zn
Output
Xn
Yn
Zn
Process (algorithm)
A1
TIM
B1
X1
1
#0100
T1
Y1
Z1
Control Device 1
Produce template
OMRON FB Library
Partial Ladder program for machine A
Defining Inputs and Outputs….
A1
B1
X1
Y1
Z1
Control Device 1
Partial Ladder program for machine A
Device Control
A
B
X
EN
ENO
Z
Y
P_On
A2
B2
X2
Y2
Z2
Control Device 2
P_On
Allocate to
Ladder
program
Sets input / output
parameters
Device Control
A
B
X
EN
ENO
Z
Y
Function Block definition
Function Block
Instance (invocation)
Function Block definition ...This contains the defined logic (algorithm) and I/O interface. The memory addresses are not allocated in the Function Block Definition
Function Block instance(invocation) ...This is the instruction that will call the function block instance when used by the ladder program, using the memory allocated to
the instance. As the memory (addresses) used are allocated and perform individually for each Function Block instance, no error
occurs when one Function Block definition is called from more than one instances.
Summary of Contents for FB LIBRARY -
Page 1: ......
Page 14: ...2 1 Controller Link Unit CJ1W CLK21 V1...
Page 23: ...2 2 DeviceNet Slave DRT2 Series DRT2...
Page 31: ...2 3 Position Control Unit CJ1W NCF71...
Page 42: ...2 4 Position Control Unit CJ1W NC113 133 213 233 413 433...
Page 49: ...2 5 Position Control Unit CS1W NC113 133 213 233 413 433...
Page 57: ...2 6 Inverter 3G3MV A2 AB A4 3G3RV A2 A4...
Page 71: ...2 7 Servo Driver R88D WT WT H WT HL R7D AP H AP L...
Page 84: ...2 8 RFID ID Sensor V600 H...
Page 95: ...2 9 Vision Sensor F160 C10...
Page 105: ...2 10 2D Code Reader V530 R2000 R160 R150V3...
Page 118: ...2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N...
Page 129: ...2 12 Temperature Controller E5ZN 2...
Page 139: ...2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104...