Device Comment Data Read; Character String Length Detection - Mitsubishi Electric MELSEC Q Series Programming Manual

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

Advertisement

5 MELSEC FUNCTIONS

5.17.13 Device comment data read

The comment of the specified device is read as ASCII code data.
Function definition

5.17.14 Character string length detection

The length of the specified character string is obtained.
Function definition
5 - 79
BOOL COMRD_S_MD (BOOL EN, ANY_SIMPLE S1, STRING (32) D);
Argument Name
EN
S1
D
Remarks: The DINT, REAL and STRING types cannot be used in argument "S1".
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the comment set in D100 is read,
(* and stored into sData in ASCII code.
COMRD_S_MD (X0, D100, sData);
Corresponding MELSEC command
COMRD (Device comment data read)
BOOL LEN_S_MD (BOOL EN, STRING S1, ANY16 D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the length of the character string
(* specified in sData is detected, and stored into iData.
LEN_S_MD (X0, sData, iData);
Corresponding MELSEC command
LEN (Character string length detection)
COMRD_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Data from which comment will be read
OUT
Comment read result (ASCII code data)
LEN_S_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Data whose character string length will be detected
IN
(character string data)
OUT
Detection result (BIN 16-bit data)
For the usable data type, refer to "3.2.2 About
ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents