Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
EXTENDED REGISTER GROUPS<br />
DSTORE,<br />
Group Group<br />
No.<br />
Description<br />
DStore,<br />
DStore 54 Stores 32bit signed values. The max-length <strong>of</strong><br />
DStore is 2047.<br />
This group enables an application programmer to<br />
implement a FIFO (First In First Out)<br />
or a LIFO (Last In First Out), data structure.<br />
GENERAL<br />
The Dstore meachanism allows the user to store 2047 samples <strong>of</strong> any internal<br />
32bit variable in each <strong>of</strong> the two available buffers. By using the Connect<br />
mechanism to do so the Dstore can be seen as a two channel digital oscilloscope<br />
within the DMC 2 .<br />
The data stored can then be uploaded over the serial channel or connected to an<br />
analog output for analysis.<br />
This group is not affected by a GDisp terminal mode command.<br />
FUNCTION<br />
When a sample <strong>of</strong> data is written to a Dstore buffer a pointer is incremented so that<br />
the next data can be written. When saturated the oldest data will be lost. The<br />
numebr <strong>of</strong> data (if less than 2047) can be seen in Dtorel.Lengthx<br />
RELATED ITEMS<br />
Connect statement allows the user to automatically store to or extract data from the<br />
dstore buffers<br />
EXAMPLE USAGE<br />
To store values to DStore<br />
DStore.in1,Rd1.Speed ; or any other valid data<br />
Connect Dstore.In1 to reg.torque<br />
NOTE. If you store faster than once per servo cycle then multiple entries with the<br />
same value will be found in DStore..<br />
To ’play’ the recorded data to an analog output port do:<br />
Connect Ana.Out1 to DStore.Peek1<br />
To remove a value from DStore do,<br />
R100, DStore.Out1 ; FIFO structure (This is a queue)<br />
R100, DStore.In1 ; LIFO structure (This is a stack)<br />
To clear DStore from all values do,<br />
Dstore.Length1, 0<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />
159