6 - 38 6 - 38
6 IEC FUNCTIONS
6.5.7 Assignment MOVE
MOVE_E
The specified data is assigned to the specified storage destination.
Function definition
ANY MOVE ( ANY S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Data to be assigned
Return value
Return Value
Description
ANY
Assignment result data
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL W_Real1:=
MOVE( W_Real2 );
LD SM400
EMOV w_Real2
w_Real1
LD,EMOV
INT
D1 :=MOVE( D0 );
LD
SM400
MOV
D0 D1
LD,MOV
DINT w_DWord1:=
MOVE( 2147483647 );
LD SM400
DMOV K2147483647
w_DWord1
LD,DMOV
BOOL
w_Bit1:= MOVE( w_Bit2 );
LD
SM400
MPS
AND w_Bit2
SET w_Bit1
MRD
ANI w_Bit2
RST w_Bit1
MPP
OUT M8191
LD,MPS,AND,SET,MRD,
ANI,RST,MPP,OUT
STRING w_Str1
:= MOVE( "ABCDEFG" );
LD SM400
$MOV "ABCDEFG"
w_Str1
LD,$MOV
Function definition
BOOL MOVE_E( BOOL EN, ANY S1, ANY D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1
IN
Data to be assigned
D1
OUT
Assignment result data
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
When execution condition X0 turns ON, the data stored in iData is stored into
Result.
M0 := MOVE_E( X0, iData, Result ) ;
*)
*)
For the usable data type, refer to "3.2.2 About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......