Setblock - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

SetBlock

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents