MoveBlock

PLCopen motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Move / Copy items of an array.

Inputs

Input

Data Type

Range

Unit

Default

Description

DST

ANY (*)

 

 

 

Array containing the destination of the copy.

NB

DINT

 

 

 

Number of items to be copied.

PosDST

DINT

 

 

 

IndexClosed Zero pulse (zero signal) of a hardware pin such as digital input or feedback pin. of the destination in DST.

PosSRC

DINT

 

 

 

Index of the first character in SRC.

SRC

ANY (*)

 

 

 

Array containing the source of the copy.

(*) SRC and DST cannot be a STRING.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

 

TRUE if successful.

Remarks

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the operation is executed only if the input rung (EN) is TRUE.

IL Language Example

Not available.

ST Language Example

OK := MOVEBLOCK (SRC, DST, PosSRS, PosDST, NB);