EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 645

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
643
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 ($+/$+P)
The character string data stored in the device specified by and later is linked to the end of the character
string data stored in the device specified by and later, and the linked data is stored to devices starting
from the device specified by .
A character string specified by and indicates the data from the specified device to the first "00H" in
units of byte.
1) In linking, "00H" indicating the end of a character string specified in is ignored, and a character
string specified in is linked to the last character specified in .
When a character string is linked, "00H" is automatically added at the end.
a) When the number of characters after linking is odd, "00H" is stored in the high-order byte of the device
storing the last character.
b) When the number of characters after linking is even, "0000H" is stored in the device after the last
character.
Cautions
1) When handling character string data in a structured program, a 16-bit device cannot be specified directly
as in the case of a simple project. Use a label to handle character string data.
Use a global label to specify a device.
2) When directly specifying a character string, up to 32 characters can be specified (input).
However, this limitation in the number of characters is not applied when a word device is specified in
or .
3) When the number of characters in both devices specified by and start from "00H" (that is,
when the number of characters is "0"), "0000H" is stored in the device specified by .
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the number of devices after a device number specified by is smaller than the number of
devices required to store all linked character strings (that is, when "00H" cannot be stored after all
character strings and the last character).
(Error code: K6706)
2) When the same device is specified in , and as a device for storing a character string.
(Error code: K6706)
3) When "00H" is not set within the corresponding device range after the device specified by or .
(Error code: K6706)
+1
+2
46H(F) 48H(H)
2DH(-) 41H(A)
+
+1
+2
35H(5) 31H(1)
39H(9) 33H(3)
00H
41H(A)
+1
+2
35H(5) 31H(1)
39H(9) 33H(3)
00H
41H(A)
46H(F) 48H(H)
2DH(-) 41H(A)
+3
+4
+1
+1
+2
"00H" is
automatically stored.
+0 +0 +0
00H
ds1 s2
s1
s1
s2
s2
s2
b15---b8 b7---- b0 b15---b8 b7---- b0 b15---b8 b7---- b0
$+
EN ENO
d1
s1
s2
Label 3
*3
Command
input
Label 1
*1
Label 2
*2
*1. This defines the head of the device that stores the link source data
(character string) or defines the directly specified character string.
*2
This defines the head of the device that stores the link data
(character string) or defines the directly specified character string.
*3. This defines the head of the device that stores the linked data (character string).

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals