03.03.2013 Views

CANopen Programmer's Manual - Maccon.de

CANopen Programmer's Manual - Maccon.de

CANopen Programmer's Manual - Maccon.de

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CANopen</strong> Programmer’s <strong>Manual</strong> A: Alternative Control Sources<br />

Procedures for Running Cam Tables from RAM<br />

Process overview:<br />

1. Allocate RAM for Cam Tables<br />

Write to<br />

Trace Buffer Reserved Size (in<strong>de</strong>x 0x250A, p. 230) the number of memory words to reserve for<br />

Cam Tables.<br />

2. Load a Cam Table into RAM<br />

Write to Trace Buffer Address (in<strong>de</strong>x 0x250B, p. 230) the Cam Table’s initial offset value.<br />

Write a series of values to Trace Buffer Data (in<strong>de</strong>x 0x250C, p. 230).<br />

For standard table format, the series starts with a master increment value followed by the<br />

corresponding slave increment, and the master/slave pairing sequence is repeated for each row of<br />

Cam Table data.<br />

For compressed table format, the first value is the constant master increment value. Bit 14 of this<br />

first word is set, and bit 15 is clear. Subsequent values written to Trace Buffer Data represent the<br />

series of slave increments.<br />

Each time a value is written to or read from Trace Buffer Data, the amplifier increments the offset<br />

pointer in Trace Buffer Address.<br />

3. Configure the Camming Parameters<br />

To configure the amplifier to run Cam Tables from RAM, set bit 7 in the Camming Configuration<br />

object (in<strong>de</strong>x 0x2360, p. 229). Set other parameters as nee<strong>de</strong>d.<br />

4. Run a Cam Table from RAM<br />

Set the Desired State object (in<strong>de</strong>x 0x2300, p. 65) to 25 (camming mo<strong>de</strong>).<br />

The Cam Table selected in bits 0-3 of the Camming Configuration object will be run in response to<br />

the trigger events specified in bits 12-13 of the Camming Configuration object.<br />

Copley Controls 235

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

Saved successfully!

Ooh no, something went wrong!