19.01.2013 Views

Citect for Windows Driver Specification DanBuss DNIP Driver

Citect for Windows Driver Specification DanBuss DNIP Driver

Citect for Windows Driver Specification DanBuss DNIP Driver

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.

2.1 Introduction<br />

This section documents all the requirements of the protocol itself.<br />

2.2 Initialising the Port<br />

No special initialisation is necessary.<br />

2.3 IO Device Online Test<br />

<strong>Driver</strong> Design <strong>Specification</strong><br />

2. Protocol Requirements<br />

The drivers’ response to CTDRV_INIT_UNIT and CTDRV_STATUS_UNIT is to read the device clock.<br />

2.4 State Flow Description<br />

2.5 Message Structure<br />

The message structure has the following <strong>for</strong>mat (<strong>DNIP</strong> frame):<br />

DLE SOF control packet number Data (0-121 bytes) CRC DLE EOF<br />

The frame may be up to 128 bytes wide.<br />

DLE 0x10<br />

SOF 0x1F<br />

ACK (control option) 0x06<br />

SAD (control option) 0x02<br />

Packet number 0x11-0xFF<br />

Data See description below<br />

CRC See description below<br />

DLE 0x10<br />

EOF 0x17<br />

Every <strong>DNIP</strong> frame (SAD type) that is sent has to be acknowledged. The acknowledge <strong>DNIP</strong> frame<br />

has no data part and has to have the same packet number as the frame it is to acknowledge.<br />

The data part looks like:<br />

Datalen The total length of the data part (excluding this byte)<br />

Function code Always 0x41 (MPV/DanDuc message)<br />

Receiver address Low The lower part (0-127) and the upper parts’ LSb.<br />

Receiver address High The upper part (0-127) right shifted one bit. The MSb’s is used to determine message<br />

priority.<br />

Sender address Low The lower part (0-127) and the upper parts’ LSb.<br />

<strong>DanBuss</strong> <strong>DNIP</strong>.doc 6

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

Saved successfully!

Ooh no, something went wrong!