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> B: Trace Tool<br />

TRACE SAMPLE COUNT INDEX 0X2503<br />

Type Access Units Range Map PDO Memory<br />

Unsigned 16 RO - - YES R<br />

Description<br />

Returns the number of samples collected so far.<br />

TRACE MAX SAMPLES INDEX 0X2504<br />

Type Access Units Range Map PDO Memory<br />

Unsigned 16 RO - - NO R<br />

Description<br />

Get maximum samples. The maximum number of samples that the internal trace memory buffer<br />

can hold is calculated and returned as a 16-bit value. Note that the maximum number of samples<br />

is <strong>de</strong>pen<strong>de</strong>nt on the number and type of active trace variables. For an accurate value, the trace<br />

variables should be set first; then the maximum number of samples available may be requested.<br />

TRACE TRIGGER CONFIGURATION INDEX 0X2506<br />

Type Access Units Range Map PDO Memory<br />

Unsigned 48 RW - - NO R<br />

Description<br />

Set/get the trace trigger configuration.<br />

Bits Description<br />

0-3 Channel number to trigger on (if applicable).<br />

4-7 Reserved.<br />

8-11 Trigger type (may be interpreted differently for some trigger types):<br />

12-14 Reserved.<br />

Type Description<br />

0 No trigger in use.<br />

1 Trigger as soon as the selected channel's input is greater than or equal to the trigger level.<br />

2 Trigger as soon as the selected channel's input is less than or equal to the trigger level.<br />

3 Trigger when the selected channel's input changes from below to above the trigger level.<br />

4 Trigger when the selected channel's input changes from above to below the trigger level.<br />

5 Trigger when any selected bits in the channel value are set. The bits are selected using the<br />

trigger level value as a mask.<br />

6 Trigger when any selected bits in the channel value are clear. The bits are selected using the<br />

trigger level value as a mask.<br />

7 Trigger any time the selected channel value changes.<br />

8 The trigger level mask selects one or more bits in the Manufacturer Status Register (in<strong>de</strong>x<br />

0x1002, p. 60). The trigger occurs when any of these bits change from to 1. In this mo<strong>de</strong>, the<br />

channel number selected by the trigger is not used.<br />

9 Like type 8, but the trigger occurs when the bit(s) change from 1 to 0.<br />

10 Trigger on the start of the next function generator cycle. This trigger type is only useful when<br />

running in function generator mo<strong>de</strong>. The trigger channel number isn't used.<br />

15 If set, take one sample per trigger event.<br />

Copley Controls 241

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

Saved successfully!

Ooh no, something went wrong!