MOVE block

Short summary

Name

MOVE

→POU type

→function

Category

IEC-block, Numeric

Conform to →IEC-standard

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg currently restricted
(IEC demands data type ANY for the input and the return value. Hence the following data types are demanded as well: LTIME, WSTRING, WCHAR, LDATE_AND_TIME, LTIME_OF_DAY, LDATE . Currently, these data types are not supported for the block.)

Graphical interface

images/download/thumbnails/414782043/MOVE-version-1-modificationdate-1535032519187-api-v2.png

Available since

  • version 1.18.0 (for logi.CAD 3) – initial variant

  • version 1.109.0 (for logi.CAD 3) – enhancement: STRING , CHAR, user-defined data types and references for IN and for the return value

Functionality

The block returns the value connected to the inpu t . Nothing is calculated.

Inputs, return value


Identifier

→Data type

Description

Inputs:

IN

REAL, LREAL, USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT, TIME, BOOL, BYTE, WORD, DWORD, LWORD, STRING, CHAR, DATE_AND_TIME, DATE, TIME_OF_DAY, a →user-defined data type or a →reference
Restriction: In case of →array data types, only one-dimensional arrays are allowed.

input

Return value:

REAL, LREAL, USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT, TIME, BOOL, BYTE, WORD, DWORD, LWORD, STRING, CHAR, DATE_AND_TIME, DATE, TIME_OF_DAY, a →user-defined data type or a →reference
Restriction: In case of →array data types, only one-dimensional arrays are allowed.


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

Example for usage within ST-editor

PROGRAM Test
VAR
result : REAL;
END_VAR
result := MOVE(IN := 1000.0); (* The variable 'result' evaluates to '1E+3'. *)
END_PROGRAM

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.