Chapter 11 Motion Control Instructions
11-121
11
Programming Example
The example of executing the DMC_WriteParameter_ Motion instruction is described as follows.
1.
The variable table and program
Variable name
Data type
Initial value
ReadPm_M1
DMC_ReadParameter_Motion
Axis1
USINT
1
ReadPm_M1_Ex
BOOL
TRUE
ReadPm_M1_Done
BOOL
TRUE
ReadPm_M1_Bsy
BOOL
FALSE
ReadPm_M1_Act
BOOL
FALSE
ReadPm_M1_Err
BOOL
FALSE
ReadPm_M1_ErrID
WORD
FALSE
ReadPm_M1_DaTy
USINT
2
ReadPm_M1_Dat
UDINT
5000
WritePm_M
DMC_WriteParameter_Motion
WritePm_M_Done
BOOL
TRUE
WritePm_M_Bsy
BOOL
FALSE
WritePm_M_Act
BOOL
FALSE
WritePm_M_Err
BOOL
FALSE
WritePm_M_ErrID
WORD
FALSE
ReadPm_M2
DMC_ReadParameter_Motion
ReadPm_M2_Done
BOOL
TRUE
ReadPm_M2_Bsy
BOOL
FALSE
ReadPm_M2_Act
BOOL
FALSE
ReadPm_M2_Err
BOOL
FALSE
ReadPm_M2_ErrID
WORD
FALSE
ReadPm_M2_DaTy
USINT
2
ReadPm_M2_Dat
UDINT
1000
2
1
ReadPm_M1_Bs y
ReadPm_M1_Ac t
ReadPm_M1_Err
ReadPm_M1_ErrID
ReadPm_M1_DaTy
ReadPm_M1_Done
ReadPm_M1_Dat
0
16#2137
Axis 1
ReadPm_M1_Ex
DMC_ReadParameter_Motion
Ax is
Done
ReadPm_M1
Exec ute
Bus y
A ctive
E rror
ErrorID
DataType
Data
I ndex
SubIndex
DMC_WriteParameter_Motion
Ax is
Done
WritePm_M
Exec ute
Bus y
A ctive
E rror
ErrorID
I ndex
SubIndex
Dat aType
Dat a
Ax is1
ReadPm_M1_Done
0
16#2137
2
16#03E8
WritePm_M_Bsy
WritePm_M_Act
WritePm_M_Err
WritePm_M_ErrID
WritePm_M_Done
3
ReadPm_M2_Bs y
ReadPm_M2_Ac t
ReadPm_M2_Err
ReadPm_M2_ErrID
ReadPm_M2_DaTy
ReadPm_M2_Done
ReadPm_M2_Dat
0
16#2137
Axis 1
WritePm_M_Done
DMC_ReadParameter_Motion
Ax is
Done
ReadPm_M2
Exec ute
Bus y
A ctive
E rror
ErrorID
DataType
Data
I ndex
SubIndex
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...