14.08.2013 Views

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

snap ethernet-based i/o units protocols and programming guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Bytes 0–3<br />

Bytes 4–7<br />

Bytes 8–11<br />

Bytes 12–15<br />

CHAPTER 4: USING THE IEEE 1394-BASED PROTOCOL<br />

for point 32 is at the address FFFFF0A00800. (40 hex x 32 decimal = 800 hex). The Read Quadlet<br />

Request would look like this:<br />

Read Analog Point Data—Read Quadlet Response (Brain➞PC)<br />

The response to your request might look like this in binary notation:<br />

destination_ID tl rt tcode pri<br />

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 1 0 0 0 0 0<br />

source_ID rcode reserved<br />

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

reserved<br />

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

quadlet_data<br />

0 1 0 0 0 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

In hex, it would look like this: 00000460000000000000000041780000<br />

The rcode parameter shows an ACK (0), <strong>and</strong> the quadlet_data parameter, shown in bold type in<br />

the hex version, equals the IEEE float 15.5.<br />

Disconnecting<br />

The connection is kept open during normal communications. Disconnect only when all<br />

communication is complete. To disconnect, OptoEIEIO again uses the Microsoft Winsock control:<br />

tcpIOUnit.Close<br />

Memory map address for point 32 data<br />

in Engineering Units<br />

SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 87

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

Saved successfully!

Ooh no, something went wrong!