EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 657

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.20 Character String Control
655
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Function and operation explanation
1. 16-bit operation (MIDR/MIDRP)
" + 1" characters are extracted leftward from the position specified by of the character string data
stored in the device specified by and later, and stored to the device specified by and later.
When characters are extracted from a character string, "00H" is automatically added at the end of the
extracted characters.
1) When the number of extracted characters of the device specified by " +1" is odd, "00H" is stored in
the high-order byte of a device storing the last character.
2) When the number of extracted characters of the device specified by " + 1" is even, "0000H" is stored
in the device after the last character.
a) A character string specified by indicates data stored in devices from the specified device until
"00H" is first detected in units of byte.
b) When the number of characters to be extracted specified by " + 1" is "0", the extraction
processing is not executed.
c) When the number of characters to be extracted specified by " + 1" is "-1", the entire character
string specified by is stored to the device specified by and later.
46H(F) 45H(E)
48H(H) 47H(G)
49H(I)
48H(H)
46H(F) 45H(E)
47H(G)
49H(I)
5th character
+1
+2
+4
+3
+5
"ABCDEFGHIJK"
+1
+2
5 characters starting from 5th character
+1
42H(B) 41H(A)
44H(D) 43H(C)
4AH(J)
00H 4BH(K)
00H
"EFGHI"
+1
5
5
1st character
Target character string (extraction source)
Extracted character string
+0
+0
+0
ds1
s2
s2
b15 b8 b7 b0 b15 b8 b7 b0
s2
MIDR
EN ENO
d
s1
s2
Label 3
*3
Command
input
Label 1
*1
Label 2
*2
*1.
This defines the head of the device that stores the character string.
*2.
This defines the head of the device that specifies the head character
position and the number of characters to be extracted.
*3. This defines the head of the device that stores the extracted character string.
4AH(J) 49H(I)
48H(H)
46H(F) 45H(E)
47H(G)
4AH(J) 49H(I)
4BH(K)
46H(F) 45H(E)
48H(H) 47H(G)
4BH(K)
5th character position
+1
+2
+4
+3
+5
"ABCDEFGHIJK"
+1
+2
42H(B) 41H(A)
44H(D) 43H(C)
00H
"EFGHIJK"
+1
-1
5
00H
+3
+0
+0
+0
d
s1
s2
s2
b15 b8 b7 b0 b15 b8 b7 b0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals