Mitsubishi Electric FX3G SERIES Programming Manual page 635

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
1. 16-bit operation (MIDR and MIDRP)
"
+1" characters are extracted leftward from the position specified by
S
2
in
S
and later, and stored to
1
When characters are extracted from a character string, "00H" is automatically added at the end of the extracted
characters.
- When the number of extracted characters specified by
a device storing the last character.
- When the number of extracted characters specified by
last character.
Command
input
Target character string (extraction source)
b15-----------------b8b7-------------------b0
S
1
S
+1
1
S
+2
1
S
+3
1
S
+4
1
S
+5
1
5
S
2
S
+1
5
2
• A character string stored in
first detected in units of byte.
• When the number of characters to be extracted specified by
executed.
• When the number of characters to be extracted specified by
S
and later is stored to
1
b15-----------------b8
S
1
S
+1
1
S
+2
1
S
+3
1
S
+4
1
S
+5
1
S
5
2
S
+1
-1
2
Cautions
When handling character codes other than ASCII codes, note the following contents:
• The number of characters is handled in byte units (8 bits). Accordingly, in the case of character codes in which 2
bytes express 1 character such as shift JIS code, the length of 1 character is regarded as 2 characters.
• When extracting characters from a character string including character codes in which 2 bytes express 1 character
such as shift JIS codes, consider the number of characters to be extracted in units of character codes for 1
character.
Note that the expected character code is not given if only 1 byte is executed out of a 2-byte character code.
D
and later.
FNC206
D
S
1
MIDR
42H(B)
41H(A)
44H(D)
43H(C)
46H(F)
45H(E)
48H(H)
47H(G)
4AH(J)
49H(I)
00H
4BH(K)
"ABCDEFGHIJK"
S
and later indicates data stored in devices from the specified device until "00H" is
1
D
and later.
b7-------------------b0
42H(B)
41H(A)
44H(D)
43H(C)
46H(F)
45H(E)
48H(H)
47H(G)
4AH(J)
49H(I)
00H
4BH(K)
"ABCDEFGHIJK"
26 Character String Control – FNC200 to FNC209
26.7 FNC206 – MIDR / Random Selection of Character Strings
S
S
+1 is odd, "00H" is stored in the high-order byte of
2
S
+1 is even, "0000H" is stored in the device after the
2
S
2
1st character
b15------------------b8b7-------------------b0
D
D
+1
D
+2
5th character
S
2
5 characters starting from 5th character
S
2
+1
S
+1 is "0", the extraction processing is not
2
S
+1 is "-1", the entire character string stored in
2
b15-----------------b8b7-------------------b0
D
46H(F)
D
+1
48H(H)
4AH(J)
D
+2
D
+3
S
5th character
2
of the character string data stored
2
Extracted character string
46H(F)
45H(E)
48H(H)
47H(G)
00H
49H(I)
"EFGHI"
45H(E)
47H(G)
49H(I)
00H
4BH(K)
"FEGHIJK"
21
22
23
24
25
26
27
28
29
30
633

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents