Mitsubishi Electric MELSEC FX3U Programming Manual page 666

Melsec fx series programmable logic controllers
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
stored in
S
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
byte of a device storing the last character.
- When the number of extracted characters specified by
after the 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
S
2
S
+1
2
• A character string stored in
"00H" is first detected in units of byte.
• When the number of characters to be extracted specified by
not executed.
• When the number of characters to be extracted specified by
stored in
S
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
664
and later, and stored to
FNC206
S
D
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"
5
5
and later indicates data stored in devices from the specified device until
S
1
and later is stored to
1
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
and later.
D
+1 is odd, "00H" is stored in the high-order
S
2
+1 is even, "0000H" is stored in the device
S
2
S
2
1st character
D
D
D
5th character
S
2
5 characters starting from 5th character
S
2
+1
S
2
S
2
and later.
D
D
D
+1
D
+2
D
+3
S
5th character
2
of the character string data
S
2
Extracted character string
b15------------------b8b7-------------------b0
46H(F)
+1
48H(H)
+2
00H
"EFGHI"
+1 is "0", the extraction processing is
+1 is "-1", the entire character string
b15-----------------b8b7-------------------b0
46H(F)
45H(E)
48H(H)
47H(G)
4AH(J)
49H(I)
00H
4BH(K)
"FEGHIJK"
45H(E)
47H(G)
49H(I)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents