![Mitsubishi Electric MELSEC iQ-F FX5 Скачать руководство пользователя страница 1035](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_2391141035.webp)
25 CHARACTER STRING FUNCTIONS
25.6 Deleting Character String
1033
25
25.6
Deleting Character String
DELETE(_E)
These functions delete an arbitrary range of a character string and output the result.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
• These functions delete the data for the specified number of characters from an arbitrary position of a character string input
to (s) and output the remaining character strings from (d).
• The value input to (n1) specifies the number of characters to be deleted.
• The value input to (n2) specifies the number of the head character position of a character string to be deleted.
Ex.
When the value input to (n1) and (n2) is 5
• A value input to (s) is the STRING type data value and within the range from 0 to 255 byte(s).
• A value input to (n1) is the INT type data value and within the range from 0 to 255. (However, the value must be within the
number of characters of the character string to be input to (s).)
• A value input to (n2) is the INT type data value and within the range from 1 to 255. (However, the value must be within the
number of characters of the character string to be input to (s).)
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=DELETE(s,n1,n2);
[With EN/ENO]
d:=DELETE_E(EN,ENO,s,n1,n2);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s(IN)
Input
Input variable
STRING(255)
n1(L)
Specification of number of characters to be deleted
Input variable
INT
n2(P)
Specification of head character position of a character string to be
deleted
Input variable
INT
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(DELETE(_E))
Output
Output variable
STRING(255)
(1): Head character position of a character string to be deleted n2: 5th character
(2): Number of characters to be deleted n1: 5
s
d
n1
n2
EN
ENO
d
s
n1
n2
42H (B)
41H (A)
44H (D)
43H (C)
46H (F)
45H (E)
32H (2)
31H (1)
34H (4)
33H (3)
00H
35H (5)
+1
+2
+3
+4
+5
+0
(1)
(2)
+1
+2
+3
+0
42H (B)
41H (A)
44H (D)
43H (C)
35H (5)
34H (4)
00H
High-order byte Low-order byte
High-order byte Low-order byte
"ABCDEF12345"
"ABCD45"
(s)
(d)
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......