Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

120 EXTENDED REGISTER GROUPS CAPTURE, Capture exact time of external events Target = Capture.RPos + 25000 pos abs Target wait PG.Rdy return GROUP MEMBERS (GROUP 14) Group.Member Member No. ;corrected target ;move to captured position+25000 ; ;one shot wanted Range Ability Default Capture.Mode 0 0..3 RW Bit0, Bit1 Capture mode setting. DMC1 had mode 0 with a prescaler on the capture input (divide by 8). THIS MODE IS NOT SUPPORTED IN DMC 2 . Capture mode AND 1 = Capture positive edge. Capture mode AND 2 = Capture positive edge. Capture mode AND 3 = Capture every edge. Bit0(1) Capture positive edges. Bit1(2) Capture negative edges. Bit2 (4) Added mode bit2, this bit indicate how the Capture.FTime is to be displayed. Bit2 (4) = 0 Standard display as old DMC, in microseconds. Capture.FTime is displayed as the fractional part of Tmr.Abs. Bit2 (4) = 1 Display Capture.FTime as a signed difference between the event and the RD sample point, with 100ns resolution. When the value is negative the event actually occurred in the previous servo cycle. This value is better suited for your own interpolations written in PL-code. i All Tmr.Abs and position interpolation is done as in standard display mode. The display mode can be modified and the Capture.FTime member reread. Bit 3 This bit selects the input that triggers a capture. Bit 3 = 0 (0) Select In.DI1 to trigger a capture. Default at startup. Bit 3 = 1 (8) Select ENC_REF to trigger a capture. (X6B connector) Capture.Time 1 -2 31 ..2 31 -1 R The captured Tmr.Abs time is adjusted depending on whether the event occurred before or after the resolver sampling point (Rd1). Capture.FTime 2 0..FS-1 R The captured Tmr.Abs time is adjusted depending on whether the event occurred before or after the resolver sampling point (Rd1). Capture.Pos 3 -2 31 ..2 31 -1 R User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS CAPTURE, Capture exact time of external events The RD1.Pos at the time of the event. The RD1.Pos is sampled with the FS (currently 1000 Hz) frequency, and the resulting position is then interpolated from that position and speed. Captured and interpolated RD1.Pos. Capture.RPos 4 -2 31 ..2 31 -1 R Same as Capture.Pos, but affected by PG.PosOffs Capture.Enable 5 0..3 RW Control and indicate operation of the CAPTURE mechanism. Capture.Enable is cleared when the event occurs and therefore, must be re-enabled every time a new capture is desired. Bit0 (1) = 1 Enable this function and PL-code captures interrupt. Bit0 (1) = 1 Bit1 (2) = 1 The mode for rapidly stopping the motor. Capture.Speed 6 -32767000 .. 32767000 R The current value of RD1.Speed when the event occurred. Captured RD1.Speed. Capture.SetTorque 7 -32767 .. 32767 RW Capture.SetTorque and Capture.SetPHDelay values are used during/after the HSI capture interrupt is executed. The HSI capture interrupt can be used if a minimum delay start or stop of the motor is desired. The interrupt does the following: OR Reg.Mode, 128 ; Turn off regulator output. LET Reg.Torque = Capture.SetTorque ; Set user specified torque LET Motor.PhDelay = Capture.SetPhDelay ; Set optimum commutation for fast ACC/DECEL. ; The user Capture interrupt routine is then called to do the remaining control. Capture.SetPHDelay 8 -32767 * FS .. 32767 * FS R See Capture.SetTorque for description. Capture.GPos 9 -2 31 ..2 31 -1 R Captured the Gear.Pos interpolated to the time of the event. The Gear.Pos is sampled with the FS (currently 1000 Hz) frequency, and the resulting position is then interpolated from that position and speed. Capture.GSpeed 10 -32767 * FS .. 32767 * FS R Captured the Gear.Speed to the time of the event. Capture.APos 11 -2 31 ..2 31 -1 R Captured the Pg.APos at the time of the event. See “Compatibility issue”. Capture.ASpeed 12 -32767 * FS .. 32767 * FS R User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 121

120<br />

EXTENDED REGISTER GROUPS<br />

CAPTURE, Capture exact time <strong>of</strong> external events<br />

Target = Capture.RPos + 25000<br />

pos abs Target<br />

wait PG.Rdy<br />

return<br />

GROUP MEMBERS (GROUP 14)<br />

Group.Member Member<br />

No.<br />

;corrected target<br />

;move to captured position+25000<br />

;<br />

;one shot wanted<br />

Range Ability Default<br />

Capture.Mode 0 0..3 RW<br />

Bit0, Bit1 Capture mode setting. DMC1 had mode 0 with a prescaler<br />

on the capture input (divide by 8).<br />

THIS MODE IS NOT SUPPORTED IN DMC 2 .<br />

Capture mode AND 1 = Capture positive edge.<br />

Capture mode AND 2 = Capture positive edge.<br />

Capture mode AND 3 = Capture every edge.<br />

Bit0(1) Capture positive edges.<br />

Bit1(2) Capture negative edges.<br />

Bit2 (4)<br />

Added mode bit2, this bit indicate how the<br />

Capture.FTime is to be displayed.<br />

Bit2 (4) = 0<br />

Standard display as old DMC, in microseconds.<br />

Capture.FTime is displayed<br />

as the fractional part <strong>of</strong><br />

Tmr.Abs.<br />

Bit2 (4) = 1 Display Capture.FTime as a signed difference between<br />

the event and the RD sample point, with 100ns resolution.<br />

When the value is negative the event actually occurred in<br />

the previous servo cycle. This value is better suited for<br />

your own interpolations written in PL-code.<br />

i<br />

All Tmr.Abs and position interpolation is done as in<br />

standard display mode. The display mode can be<br />

modified and the Capture.FTime member reread.<br />

Bit 3 This bit selects the input that triggers a capture.<br />

Bit 3 = 0 (0) Select In.DI1 to trigger a capture. Default at startup.<br />

Bit 3 = 1 (8) Select ENC_REF to trigger a capture. (X6B connector)<br />

Capture.Time 1 -2 31 ..2 31 -1 R<br />

The captured Tmr.Abs time is adjusted<br />

depending on<br />

whether the event occurred before or after the resolver<br />

sampling point (Rd1).<br />

Capture.FTime 2 0..FS-1 R<br />

The captured Tmr.Abs time is adjusted<br />

depending on<br />

whether the event occurred before or after the resolver<br />

sampling point (Rd1).<br />

Capture.Pos 3 -2 31 ..2 31 -1 R<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!