Arylrc - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

AryLRC_**

The AryLRC_** instructions calculate the LRC value for an array.
Instruction
AryLRC_**
Calculate Array
LRC Group
Variables
Name
Meaning
In[] (array)
Array to
process
Size
Number of
elements to
process
Out
LRC value
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
OK OK OK OK
Size
Out
Function
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].
2-540
Name
FB/FUN
FUN
I/O
Description
Array to process
Input
Number of In[] elements
Output
LRC value
OK
Must be same data type as In[]
Graphic expression
(@)AryLRC_**
EN
ENO
In
Size
"**" must be a bit string data type.
Valid range
Depends on data type.
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=AryLRC_**(In, Size);
"**" must be a bit string data
Out
type.
Unit
Default
*
---
1
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents