EasyManua.ls Logo

Delta DVP-15MC Series - Page 591

Delta DVP-15MC Series
972 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 11 Motion Control Instructions
11-121
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_Bsy
ReadPm_M1_Act
ReadPm_M1_Err
ReadPm_M1_ErrID
ReadPm_M1_DaTy
ReadPm_M1_Done
ReadPm_M1_Dat
0
16#2137
Axis1
ReadPm_M1_Ex
DMC_ReadParameter_Motion
Axis Done
ReadPm_M1
Execute Busy
Active
Error
ErrorID
DataType
Data
Index
SubIndex
DMC_WriteParameter_Motion
Axis Done
WritePm_M
Execute Busy
Active
Error
ErrorID
Index
SubIndex
DataType
Data
Axis1
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_Bsy
ReadPm_M2_Act
ReadPm_M2_Err
ReadPm_M2_ErrID
ReadPm_M2_DaTy
ReadPm_M2_Done
ReadPm_M2_Dat
0
16#2137
Axis1
WritePm_M_Done
DMC_ReadParameter_Motion
Axis Done
ReadPm_M2
Execute Busy
Active
Error
ErrorID
DataType
Data
Index
SubIndex

Table of Contents

Related product manuals