Mitsubishi Electronics FX3G User Manual

Page of 964
630
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.7 FNC206 – MIDR / Random Selection of Character Strings
26.7
FNC206 – MIDR / Random Selection of Character Strings
Outline
This instruction extracts a specified number of characters from arbitrary positions of a specified character string.
→ For handling of character strings, refer to Section 5.3.
1. Instruction format
2. Set data
3. Applicable devices
Operand Type
Description
Data Type
Head device number storing a character string
Character string
Head device number storing extracted character string
Head device number specifying the head position and number of characters to be
extracted
: Head character position
+1 : Number of characters
16-bit binary
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
V Z Modify K H
E
" "
P
P
FNC 206
MIDR
Mnemonic
Operation Condition
16-bit Instruction
 7 steps
MIDR
MIDRP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction

  
S
1
  D
  
S
2
  
S
2
  
S
2
  
S
1
  D
  
S
2