Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
26 Applied Instructions (Character String Control)
26.3 $+ / Link Character Strings
629
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
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 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 .
2) 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 .
3) The Link character strings instruction is not available in ST.
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
Head device storing the linked data
(character string)
Command
input
Head device storing the link source data (character string)
or directly specified character string
Head device storing the link data (character string)
or directly specified character string