5- 105 5- 105
5 MELSEC FUNCTIONS
5.19.7 File register block No. switching RSET_MD
The block No. of the file registers used in a program is changed into the specified block No.
Function definition
BOOL RSET_MD (BOOL EN, ANY16 S1);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
New block No. data (BIN 16-bit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the block No. of the file registers used *)
(* in the program is changed into the block No. stored in the device specified in iData. *)
RSET_MD (X0, iData);
Corresponding MELSEC command
RSET (File register block No. switching)
5.19.8 Set of file register file QDRSET_M
The file name of the file registers used in a program is changed into the specified file name.
Function definition
BOOL QDRSET_M (BOOL EN, STRING S1);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1 IN
"Drive No.: File name" of target file registers (character
string data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the file name of the file registers of
*)
(* drive No. 1 is changed into "ABS.QDR".
*)
QDRSET_M (X0, "1: ABC");
Corresponding MELSEC command
QDRSET (Set of file register file)
For the usable data type, refer to "3.2.2
About ANY type".
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......