Download Magellan Motion Processor Programmer`s Command Reference
Transcript
4 SetCurrentLoop GetCurrentLoop Syntax Motor Types Arguments buffered 73h 74h SetCurrentLoop axis phase parameter value GetCurrentLoop axis phase parameter DC Brush Brushless DC Microstepping Name Instance Encoding axis Axis1 Axis2 Axis3 Axis4 0 1 2 3 phase Phase A Phase B Both (A and B) 0 1 2 parameter Proportional Gain (KpCurrent) Integrator Gain (KiCurrent) Integrator Sum Limit (ILimitCurrent) 0 1 2 Type Range/Scaling value unsigned 16 bits see below Packet Structure SetCurrentLoop axis 0 15 12 11 8 73h 7 0 First data word write 0 15 phase 12 parameter 11 8 7 0 Second data word write value 15 0 GetCurrentLoop axis 0 15 12 11 8 74h 7 0 First data word 0 write 15 phase 12 11 parameter 8 7 0 Second data word read value 15 Description 0 Set/GetCurrentLoop is used to configure the operating parameters of the Phase A/B PI digital current loops. See the product user’s guide for more information on how each parameter is used in the current loop processing. The value written/read is always an unsigned 16-bit value, with the parameter-specific scaling shown below: Parameter Proportional Gain (KpCurrent) Range Integer Gain (KiCurrent) Integrator Sum Limit (ILimitCurrent) 0 to 2 –1 Scaling 1/64 Units gain 0 to 215–1 1/256 gain/cycles 1/100 % current * cycles 15 15 0 to 2 –1 A setting of 64 for KpCurrent corresponds to a gain of 1. That is, an error signal of 30% maximum current will cause the proportional contribution of the current loop output to be 30% of maximum output. Similarly, setting KiCurrent to 256 gives it a gain of 1, and the value of the integrator sum would become the integrator contribution to the output. The units of time for the integrator sum are cycles. 108 Magellan®Motion Processor Programmer’s Command Reference