Omron NJ-series User Manual page 213

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

Advertisement

6 Programming
Nesting Levels
Calling another function or function block from a function or function block that was called from a pro-
gram is called nesting. The limits that are given in the following table apply to the POUs that you can
call from a user-defined function or function block and the number of nesting levels. A building error will
occur if these limits are exceeded.
POU
Function blocks
Functions
*1 A CPU Unit with unit version 1.03 or later and Sysmac Studio version 1.04 or higher are required. For other
versions, the limit is 8 levels.
Example 1: From a program, you can call function blocks to a depth of 8 levels. You can then call func-
tions to a depth of 16 levels.
FB1
Program
FB1
Level 1
Example 2: From a program, you can call functions to a depth of 16 levels.
Program
FUN1
Level 1
6-26
Called POUs
Functions and function blocks
Functions
FB7
FB2
Level 2
Level 8
You cannot call a function
block at level 9.
FUN1
FUN2
Level 2
8 levels max.
16 levels max.
FB8
FB8
FUN9
Level 9
FUN15
FUN16
Level 16
You cannot call a
function at level 17.
NJ-series CPU Unit Software User's Manual (W501)
Nesting depth
*1
FUN15
FUN16
Level 16
You cannot call a function
at level 17.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents