Fetch From Character String Right Side; Fetch From Character String Left Side - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.17.23 Fetch from character string right side

n characters of data, starting at the right of the specified character string data (end of the character string), are
acquired.
Function definition

5.17.24 Fetch from character string left side

n characters of data, starting at the left of the specified character string data (head of the character string), are
acquired.
Function definition
5 - 84
BOOL RIGHT_M (BOOL EN, STRING S1, ANY16 n, STRING D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, iData characters of data, starting at
(* the right of the character string specified in sData (end of the character string), *)
(* are stored into Result.
RIGHT_M (X0, sData, iData, Result);
Corresponding MELSEC command
RIGHT (Fetch from right side of character string)
BOOL LEFT_M (BOOL EN, STRING S1, ANY16 n, STRING D);
Argument Name
EN
S1
n
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, iData characters of data, starting at
(* the left of the character string specified in sData (head of the character string), *)
(* are stored into Result.
LEFT_M (X0, sData, iData, Result);
Corresponding MELSEC command
LEFT (Fetch from left side of character string)
RIGHT_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be acquired (character string data)
IN
Number of characters to be acquired (BIN 16-bit data)
OUT
Acquisition result (n characters of character string data)
LEFT_M
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data to be acquired (character string data)
IN
Number of characters to be acquired (BIN 16-bit data)
OUT
Acquisition result (n characters of character string data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 84

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents