Download LinuxCNC Manual Pages

Transcript
BLDC(9)
HAL Component
BLDC(9)
bldc.N.out float out
Current output, including the effect of the dir pin and the alignment sequence
bldc.N.out-dir bit out
Direction output, high if /fBvalue/fR is negative XOR /fBrev/fR is true.
bldc.N.out-abs float out
Absolute value of the input value
PARAMETERS
bldc.N.in-type s32 r (default: -1)
state machine output, will probably hide after debug
bldc.N.out-type s32 r (default: -1)
state machine output, will probably hide after debug
bldc.N.scale s32 rw [if personality & 0x06] (default: 512)
The number of encoder counts per rotor revolution.
bldc.N.poles s32 rw [if personality & 0x06] (default: 4)
The number of motor poles. The encoder scale will be divided by this value to determine the number of encoder counts per electrical revolution
bldc.N.encoder-offset s32 rw [if personality & 0x0A] (default: 0)
The offset, in encoder counts, between the motor electrical zero and the encoder zero modulo the
number of counts per electrical revolution
bldc.N.offset-measured s32 r [if personality & 0x04] (default: 0)
The encoder offset measured by the homing sequence (in certain modes)
bldc.N.drive-offset float rw (default: 0)
The angle, in degrees, applied to the commanded angle by the drive in degrees. This value is only
used during the homing sequence of drives with incremental encoder feedback. It is used to backcalculate from commanded angle to actual phase angle. It is only relevant to drives which expect
rotor-angle input rather than phase-angle demand. Should be 0 for most drives.
bldc.N.output-pattern u32 rw [if personality & 0x400] (default: 25)
Commutation pattern to be output in Hall Signal translation mode. See the description of /fBpattern/fR for details
bldc.N.pattern u32 rw [if personality & 0x01] (default: 25)
Commutation pattern to use, from 0 to 47. Default is type 25. Every plausible combination is
included. The table shows the excitation pattern along the top, and the pattern code on the left
hand side. The table entries are the hall patterns in H1, H2, H3 order. Common patterns are: 0 (30
degree commutation) and 26, its reverse. 17 (120 degree). 18 (alternate 60 degree). 21 (300
degree, Bodine). 22 (240 degree). 25 (60 degree commutation).
Note that a number of incorrect commutations will have non-zero net torque which might look as
if they work, but don’t really.
If your motor lacks documentation it might be worth trying every pattern.
LinuxCNC Documentation
2015-10-24
103