28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

70<br />

Pg, Pr<strong>of</strong>ile generator<br />

Wait Pg.RDY<br />

Stop<br />

; And wait until we are there.<br />

EXTENDED REGISTER GROUPS<br />

MOVE TO A TARGET POSITION ’BEHIND’ OUR CURRENT POSITION.<br />

Let Pg.Acc, 18784200<br />

Let Pg.Decel, Pg.Acc<br />

Let Pg.PosSpeed, 3276800<br />

Let Pg.Speed, 100000<br />

Wait Pg.ASpeed = Pg.Speed<br />

Wait In.DI1 = 1<br />

RefPos 0<br />

Pos Abs 0<br />

Wait Pg.RDY<br />

Stop<br />

; Setup the pr<strong>of</strong>ile generator.<br />

; Start movement.<br />

; Wait until speed has been reached.<br />

; Wait for external input active.<br />

; Set new logical position.<br />

; Move to the logical zero position.<br />

; And wait until we are there.<br />

VERY SHORT MOTION PROFILES AND/OR VERY HIGH DECELERATION RATES.<br />

Let Pg.Acc, 18784200<br />

Let Pg.Decel, Pg.Acc<br />

Let Pg.PosSpeed, 3276800<br />

loop: Clr Tmr.T0<br />

Pos Rel 1000<br />

Wait Pg.RDY<br />

Disp Tmr.T0<br />

Clr Tmr.T0<br />

Wait Tmr.T0 > 1000<br />

Goto loop<br />

GROUP MEMBERS (GROUP 4)<br />

; Setup the pr<strong>of</strong>ile generator.<br />

; Clear timer for time measurement.<br />

; Do a small step (modify this even smaller)<br />

; and wait until we are there.<br />

; Display the time required to do the step.<br />

; Do this once every second.<br />

Group member Member<br />

No<br />

Range Ability Default<br />

Pg.Mode 0 0..7 RW<br />

Specifies the working mode for the pr<strong>of</strong>ile generator. This is<br />

normally manipulated by the POS statement and is not usually<br />

user-modified.<br />

Bit0 (1) =1 Standard positioning active.<br />

Bit1 (2) =1 Positioning is now ”locked on target”, i.e. the deceleration phase<br />

has begun.<br />

Bit2 (4) =1 Acceleration pr<strong>of</strong>ile is active.<br />

Bit3..6 NYI<br />

Bit7 (128) = 1 The outputs are disconnected from the regulator. Intended for<br />

external use <strong>of</strong> the Pg, i.e. virtual master.<br />

Pg.Acc 1 0..2 31 -1 RW<br />

The allowed acceleration in increments-per-second 2 .<br />

Pg.APos 2 -2 31 ..2 31 -1 RW<br />

The actual set-position in increments.<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!