Differences Between Programs, Functions, And Function Blocks; Details On Programs - Omron NJ-series User Manual

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

6-2-3

Differences between Programs, Functions, and Function Blocks

Item
Execution method
Any instructions
User-defined functions Supported.
Algorithm
User-defined function
blocks
Execution condition
The hierarchical relationships between programs, functions, and function blocks are shown in the fol-
lowing figure.
Task
Program 1
Program 2
Functions
Functions
6-2-4

Details on Programs

]
Program Structure
Programs consist of a local variable table and an algorithm.
You can use any function or function block in the algorithm of a program.
Program
Local variable table
Algorithm
FUN
FB
You cannot call programs from other POUs.
NJ-series CPU Unit Software User's Manual (W501)
POU type
Programs
Executed upon execu-
tion of assigned task.
Supported.
Supported.
Executed each period. Executed each period.
Function blocks
Functions
Task
Program
Assigned.
Program
6 Programming
Function blocks
Called from a pro-
Called from a pro-
gram or another func-
gram, function, or
tion block.
function block.
Supported.
Not supported.
Supported.
Supported.
Supported.
Not supported.
Specify the execution
condition with the EN
Specify the execution
input.
condition with an input
variable.
Function blocks
Functions
6
6-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents