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 #205 background imageLoading...
Page #205 background image
6 Programming
6-18
NJ-series CPU Unit Software User’s Manual (W501)
Local Variable Table
A local variable table defines the input variables, output variables, in-out variables, internal variables,
and external variables.
Refer to Variable Designations for Functions on page 6-19 for details.
Parameters
Input Parameters to Input Variables
An input parameter passes a value to an input variable in a function when function execution begins.
An input parameter can be either a variable or a constant.
Output Parameters from Output Variables
An output parameter receives a value from an output variable in a function when function execution
is completed. A variable is given as the parameter.
In-Out Parameters Shared between In-Out Variables
The value of the in-out parameter changes within the function. The same variable is used for both
the input and output.
The following example shows how to call functions from ST.
return_value:=function_name (input_variable_1:=input_parameter_1, ...
input_variable_N:=input_parameter_N,in-out_variable_1:=in-out_parameter_1, ... in-
out_variable_N:=in-out_parameter_N,output_variable_1=>output_parameter_1, ...
output_variable_N=>output_parameter_N);
However, you can also omit the return value.
You can also omit input variable names and other variable names, and give only the parameters. (If you
do, the parameters must be given in the order that they are given in the function definition.) Also, the
number of parameters must match the number of input variables and other variables in the function def-
inition.
Functions Expressed in ST:
Refer to Function Calls on page 6-103 for details.
Expressing Functions in ST
MAX
In2
In1
EN ENO
Para2
Para1
Para_MAX
Para_MAX := MAX(In1:=Para1, In2:=Para2);
Para_MAX := MAX(Para1, Para2);
Function name
(*The input variables are omitted here.*)

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