EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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
Loading...
2 Instruction Descriptions
2-512
NJ-series Instructions Reference Manual (W502)
AryLRC_**
The AryLRC_** instructions calculate the LRC value for an array.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The AryLRC_** instructions calculate the LRC value (exclusive logical OR) of Size array elements of
array to process In[] starting from In[0]. The name of the instruction is determined by the data type of
In[]. For example, if In[] is the WORD data type, the instruction is AryLRC_WORD.
Always attach the element number to in-out parameter that is passed to In[], e.g., array[3].
Instruction Name FB/FUN Graphic expression ST expression
AryLRC_** Calculate Array
LRC Group
FUN Out:=AryLRC_**(In, Size);
"**" must be a bit string data
type.
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Array to
process
Input
Array to process
Depends on data type.
---
*
Size Number of
elements to
process
Number of In[] elements 1
Out LRC value Output LRC value Depends on data type. --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In[] (array) OKOKOKOK
Size OK
Out Must be same data type as In[]
Function
(@)AryLRC_**
EN ENO
In Out
Size
"**" must be a bit string data type.

Table of Contents

Related product manuals