Assignment - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.5.7 Assignment

The specified data is assigned to the specified storage destination.
Function definition
Function definition
6 - 38
MOVE
MOVE_E
ANY MOVE ( ANY S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
ANY
Assignment result data
Example of use
Argument Type
REAL
W_Real1:=
MOVE( W_Real2 );
INT
D1 :=MOVE( D0 );
DINT
w_DWord1:=
MOVE( 2147483647 );
BOOL
w_Bit1:= MOVE( w_Bit2 );
STRING
w_Str1
:= MOVE( "ABCDEFG" );
BOOL MOVE_E( BOOL EN, ANY S1, ANY D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
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 ) ;
Data to be assigned
ST Program
Conversion Result
LD
EMOV
LD
MOV
LD
DMOV
LD
MPS
AND
SET
MRD
ANI
RST
MPP
OUT
LD
$MOV
Execution condition (Function is executed only when the result is TRUE)
Data to be assigned
Assignment result data
For the usable data type, refer to "3.2.2 About ANY type".
Description
Description
Used Instruction
SM400
LD,EMOV
w_Real2
w_Real1
SM400
LD,MOV
D0 D1
SM400
LD,DMOV
K2147483647
w_DWord1
LD,MPS,AND,SET,MRD,
SM400
ANI,RST,MPP,OUT
w_Bit2
w_Bit1
w_Bit2
w_Bit1
M8191
SM400
LD,$MOV
"ABCDEFG"
w_Str1
Description
Description
*)
*)
6 - 38

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents