Chapter 11 Motion Control Instructions
11-295
11
En able
Valid
Bus y
Error
E rro r ID
Cas e1
Case 2
Case 1
:
When
Enable
changes from FALSE to TRUE,
Valid
and
Busy
change to TRUE simultaneously.
When
Enable
changes to FALSE,
Valid
and
Busy
both
change to FALSE.
Case 2
:
When an error occurs,
Error
changes to TRUE and
ErrorID
shows corresponding error codes.
Meanwhile
Busy
and
Valid
change to FALSE. When
Enable
changes from TRUE to FALSE,
Error
changes to FALSE and the value in
ErrorID
is cleared.
Function
DMC_ReadMFunction is used for reading the state of M code and the data from it. When the G code
execution reaches where the M code set by the instruction is,
MFunction
changes to TRUE and
meanwhile
MFunctionValue
outputs the parameter value after M code. The firmware of V1.01 and
above supports the function.
Programming Example
1.
The variable table and program
Variable name
Data type
Initial value
RMF
DMC_ReadMFunction
Axes1
USINT
1
RMF_En
BOOL
FALSE
RMF_MID
USINT
0
RMF_Va
BOOL
RMF_Bsy
BOOL
RMF_Err
BOOL
RMF_ErrID
WORD
RMF_MF
BOOL
RMF_MFV
LREAL
1
Ax es1
RMF_MID
RMF_En
DMC_ReadMFunc tion
Ax esG roup
Valid
RMF
E nable
MFunct ionI D
Busy
Error
ErrorID
MFunctionValue
unct ion
MF
RMF_Va
RMF_Bsy
RMF_Err
RMF_ErrID
RMF_MF
RMF_MFV
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...