DVP-15MC Series Motion Controller Operation Manual
8-290
_8
Function Explanation
The MID instruction extracts
L
characters starting from the number-P character of the
In
string. The
extracted string is output to
Out
. The extraction way is illustrated as below.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software
if the input variables are omitted. But the output variable is allowed to omit.
Programming Example
The MID_In string is ’AaBbCcDd’, MID_L=2 and MID_LP=3. When MID_EN is TRUE, Out1 is ’Bb’.
The variable table and program
Variable name
Data type
Current value
MID_EN
BOOL
TRUE
MID_In
STRING
‘AaBbCcDd’
MID_L
UINT
2
MID_P
UINT
3
Out1
STRING
‘Bb’
In =A BCDE FG H
L = 3
P=2
O ut :
BCD
A BCDE FGH
Extr ac tio n sta rts fr om
the se con d ch ar act er
Extr act th re e cha ra cte rs
MID
1
MID
E N
ENO
In
O ut
P
L
MI D_ EN
MI D_ In1
MID_P
MID_L
Out1
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...