EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #545 background imageLoading...
Page #545 background image
2-497
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Stack and Table Instructions
2
RecNum
RecNum
The RecNum instruction finds the number of records in an array of structures to the end data.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The RecNum instruction searches from the start of an array In[] (whose elements are structures). The
instruction searches for elements for which the value of member to process Member matches end data
EndDat. As the result, it assigns the number of elements (records) up to the element just before the ele-
ment with an EndDat match to Out. One of the members to process in the elements of In[] is passed as
an argument to Member.
Always attach the element number to input parameter that is passed to In[], e.g., array[3].
Instruction Name FB/FUN Graphic expression ST expression
RecNum Get Number of
Records
FUN Out:=RecNum(In, Member,
EndDat);
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Array to
process
Input
Array of structures to pro-
cess
---
---
*Member Member to
process
Member of In[] structure to
process
Depends on data type.
EndDat End data End data
Out Number of
records
Output Number of records 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) Specify an array of structures.
Member OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Must be the same data type as the members to process in In[].
EndDat Must be the same data type as Member.
Out OK
Function
(@)RecNum
EN ENO
In Out
Member
EndDat

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals