EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 651

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
649
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 (RIGHT/RIGHTP)
"n" characters are extracted from the right end (that is, from the end) of the character string data stored in the
device specified by and later, and stored to the device specified by and later.
If the number of characters specified by "n" is "0", the NULL code (0000H) is stored to the device specified by
.
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 is odd, "00H" is stored in the high-order byte of a device storing
the last character.
2) When the number of extracted characters is even, "0000H" is stored in the device after the last character.
a) A character string stored in the device specified by and later indicates data stored in devices
from the specified device until "00H" is first detected in byte units.
RIGHT
EN ENO
d
s
n
Command
input
Label 1
*1
Label 2
*2
Number of characters
to be extracted
*1. This defines the head of the device that stores the number of characters.
*2. This defines the head of the device that stores the extracted character string.
+1
ASCII code for
2nd character
ASCII code for
4th character
ASCII code for
1st character
ASCII code for
3rd character
ASCII code for "(last character
- n + 2)"th character
ASCII code for "(last character
- n + 1)"th character
+1
ASCII code for "(last character
- n + 4)"th character
ASCII code for "(last character
- n + 3)"th character
ASCII code for "(last character
- 1)"th characte
ASCII code for "(last character
- 2)"th character
00H
ASCII code for
last character
ASCII code for "(last character
- n + 2)"th character
ASCII code for "(last character
- n + 4)"th character
ASCII code for "(last character
- n + 1)"th character
ASCII code for "(last character
- n + 3)"th character
ASCII code for "(last character
- 1)"th character
ASCII code for "(last character
- 2)"th character
00H
ASCII code for
last character
+0 +0
s d
b15 b8 b7 b0 b15 b8 b7 b0
34H(4)
32H(2) 31H(1)
33H(3)
35H(5)
31H(1)32H(2)
34H(4) 33H(3)
35H(5)
ASCII code for 5th character
+1
+2
+4
+3
+5
In the case of "n = 5"
42H(B) 41H(A)
44H(D) 43H(C)
46H(F) 45H(E)
00H
"ABCDEF12345"
+1
+2
00H
"12345"
ASCII code for 1st character
+0 +0
s d
b15 b8 b7 b0 b15 b8 b7 b0

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals