EasyManuals Logo

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 #212 background imageLoading...
Page #212 background image
6-25
6 Programming
NJ-series CPU Unit Software User’s Manual (W501)
6-2 POUs (Program Organization Units)
6
6-2-8 POU Restrictions
Additional Information
Specifying an Array Variable or Structure Variable as a Parameter
You can also specify an array variable or a structure variable as an input or output parameter.
However, it will take longer to pass and receive data for these data types in comparison to a vari-
able with a basic data type (depending on the size). Therefore, when handling array variables or
structure variables in a function block, we recommend that you design them in such a way that
these variables are passed to and received from in-out variables.
Example 1: Specifying an Array
Example 2: Specifying a Structure Variable
FB
IN1 OUT1
x
Program Variable Table
Variable name Data type
x ARRAY[0..199] OF INT
FB
INOUT INOUT
x
Do not assign INT variable x [0..199] to the function block input variable
IN1 (Data type of the IN1 input variable in the function block:
ARRAY[0..199] OF INT).
Instead, assign INT variable x [0..199] to the INOUT in-out variable of
the function block. (Data type of INOUT in-out variable in the function
block: ARRAY[0..199] OF INT)
Program Variable Table
Variable name Data type
x MyStructure
FB
OUT1 IN1
x
FB
INOUT INOUT
x
Do not assign MyStructure variable x to the IN1 input
variable of the function block (Data type of IN1 input
variable of the function block: MyStructure).
Instead, assign MyStructure variable x to the INOUT in-out
variable of the function block. (Data type of INOUT in-out
variable of the function block: MyStructure)

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
Program CapacityUp to 128 MB
SD Card SlotYes
Power Supply Voltage24 VDC
Motion ControlYes
USB Ports1
Operating Temperature0°C to 55°C
Communication InterfacesEthernet/IP, EtherCAT, USB
Safety FunctionOptional
Storage Temperature-20°C to 75°C
Communication PortsUSB
DimensionsVaries by model
WeightVaries by model

Related product manuals