Delta D25886 User Manual Page 83

  • Download
  • Add to my manuals
  • Print
  • Page
    / 339
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 82
4. Motion Control Instructions
4-42 DVP-MC operating manual
4.4.13. DMC_ReadParameter
API
Controller
13
DMC_ReadParameter
Read parameters
10MC11T
Explanation of the Instruction:
DMC_ReadParameter is applied to read the parameter value of the servo axis. User could specify the index
and sub-index of the parameter desired to be read.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
Axis The node address of servo drive UINT Constant, D
Execute
This instruction is executed when” Execute” turns Off –>
On.
BOOL
M,I,Q,
Constant
Index To read the index of the parameter UINT Constant, D
Sub-Index To to read the sub-index of the parameter UINT Constant, D
Done
When reading the parameter content is finished,
"Done" turns on; when “execute” turn on -> off, "Done" is
reset.
BOOL M,Q
Error
If any error is detected, "Error" turns on; when "Execute"
turns on -> off, "Error" is reset.
BOOL M,Q
ErrorID Error code. Please refer to section 5.3. UINT D
Data Type
To read the data type of the parameter.
1: Byte
2: word
4: Double Word.
UINT D
Value The already read parameter value UDINT D
Note:
1. The data type of D device is identical to that of the read parameter when “Value” is D device and
touch panel is used to monitor the parameter value.
2. The calculation formula of the index and sub-index corresponding to the servo drive parameter to be
read is:
Index= the address of the servo drive parameter (Hex) + 2000 (Hex), sub-index= 0
For instance, the calculation of the index of the servo drive parameter P6-10 is:
2000+060A (hexadecimal number of P6-10) =260A, sub-index= 0.
The index and sub-index calculated here are both hex, please pay attention to the conversion for the
input in the software.
Page view 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 338 339

Comments to this Manuals

No comments