EasyManuals Logo
Home>Omron>Controller>NJ Series

Omron NJ Series User Manual

Omron NJ Series
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #211 background imageLoading...
Page #211 background image
6 Programming
6-24
NJ-series CPU Unit Software User’s Manual (W501)
Errors in Output Parameters
If an error is detected in an output parameter, all values after that parameter are not output but their
values are retained.
Example:
Errors in In-Out Parameters
If an error is detected in an in-out parameter, the function or function block is not executed and ENO
is FALSE. The power flow output is also FALSE, but all other values are retained.
The following recursive calls are not allowed for functions or function blocks. They will result in an error
when you build the user program on the Sysmac Studio.
A function or function block cannot call itself.
A called function or function block cannot call the calling parent.
This section describes the restrictions in the creation of POUs.
Refer to 6-3-12 Restrictions on Variable Names and Other Program-related Names for restrictions on
POU names and function block instance names.
If you need to pass multiple arguments to a function or function block, use an array specification or
structure to pass the required data.
This will make your program simpler. However, be aware that if you use an in-out variable, the data
passed to the function block or function as a parameter is written and the original data is not retained.
Recursive Calling
6-2-8 POU Restrictions
Names
Passing Multiple Arguments
x[i]
x[9]
Not output.
x[10]
Retained.
Function
EN
IN1
IN2
ENO
OUT1
OUT2
OUT3
Example when variable i is outside the
range of the elements in array variable x
x[i] x[i]
Function
EN
INOUT--
ENO
--INOUT
X
xyz Retained.
OFF
Example when variable i is outside the
range of the elements in array variable x

Table of Contents

Other manuals for Omron NJ Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ Series and is the answer not in the manual?

Omron NJ Series Specifications

General IconGeneral
BrandOmron
ModelNJ Series
CategoryController
LanguageEnglish

Related product manuals