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 #377 background imageLoading...
Page #377 background image
2-329
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Movement Instructions
2
SetBlock
SetBlock
The SetBlock instruction moves the value of a variable or constant to one or more array elements.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The SetBlock instruction moves the value of move source In to Size locations in move destination array
AryOut[] starting from AryOut[0].
Instruction Name FB/FUN Graphic expression ST expression
SetBlock Block Set FUN SetBlock(In, AryOut, Size);
Variables
Name Meaning I/O Description Valid range Unit Default
In Move
source
Input
Move source
Depends on data type. ---
*
Size Number of
elements
Number of array elements to
move
1
AryOut[]
(array)
Move
destination
array
In-out Move destination array Depends on data type.
--- ---
Out Return
value
Output Always TRUE TRUE only --- ---
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
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, structure, or structure member can also be specified.
Size OK
AryOut[]
(array)
Must be an array with elements that have the same data type as In.
Out OK
Function
(@)SetBlock
EN ENO
In Out
AryOut
Size

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