MOVE_2D_ARRAY block

Short summary

Name

MOVE_2D_ARRAY

→POU type

→function

Category

IEC-block, Numeric, block with internal error diagnostic

Conform to →IEC-standard

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/add.svg not defined in IEC-standard

Graphical interface

images/download/thumbnails/470909007/MOVE_2D_ARRAY-version-1-modificationdate-1626354846501-api-v2.png

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg Detail on the displayed interface: Due to the setting hideOutputOfVarInOut, only the input connection point of the in-out variable IN is displayed. Subsequently, the straight line between the input connection point and the output connection point is also not displayed . Hence, the interface is displayed as similar to the MOVE block as possible.

Available since

version 3.2.4 (for library Standard ) – initial variant

Functionality

As the MOVE block: The block returns the value connected to the inpu t . Nothing is calculated. In contrast to the MOVE block, MOVE_2D_ARRAY allows the connection with 2 dimensional arrays.

Inputs, return value


Identifier

→Data type

Description

In-outs
(VAR_IN_OUT): :

IN

ARRAY [*,*] OF REAL, LREAL, USINT, UINT, UDINT, ULINT, SINT, INT, DINT or LINT
(corresponds to →generic data type ANY_NUM)

input

Return value:

ARRAY [*,*] OF REAL, LREAL, USINT, UINT, UDINT, ULINT, SINT, INT, DINT or LINT
(corresponds to →generic data type ANY_NUM)


Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

See:

Internal error diagnostic for block

The block checks whether the size of the arrays for IN and for the return value amounts to the same rows and the columns. If this is not the case, the output ENO of the block is set to value FALSE (or an equivalent).

Example for usage within ST-editor

See " MOVE block " for a basic example of the functionality.

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.