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.

Streaming Data<br />

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

Streaming is a fast way to get continuous information about I/O from the SNAP Ethernet-<strong>based</strong><br />

brain. See page 35 for information on streaming <strong>and</strong> other methods to configure it. Streaming<br />

involves two steps: configuring parameters for streaming, <strong>and</strong> receiving streamed data.<br />

Configuring Parameters for Streaming<br />

To configure parameters for streaming, use a Write Block Request to the memory map area<br />

“Digital Bank Read—Read Only” on page 119.<br />

To FFFFF03FFFD4, write how often in milliseconds you want to receive the streamed data.<br />

To FFFFF03FFFD8, write the Ethernet port number that will receive data.<br />

To the Stream Target addresses, write the IP addresses of the hosts that should receive<br />

the data.<br />

To turn streaming on, write anything but a zero to the address FFFFF03FFFD0. To turn<br />

streaming off, write a zero to this address.<br />

Receiving Streamed Data<br />

As soon as you’ve configured parameters for streaming, the brain starts sending the data you<br />

requested. The brain sends data using a Write Block Request, with the data_block parameter<br />

containing data as shown in the memory map area “Streaming—Read Only” on page 134. Your<br />

program does not need to respond to this Write Block Request; it only needs to process the data<br />

block.<br />

Addresses will be zero-filled in areas that don’t apply. For example, addresses<br />

FFFFF1000000 through FFFFF10000FF show analog data for 64 points in Engineering Units. If<br />

some of the points are digital, addresses corresponding to them will be filled with zeros.<br />

See “Stream Packet Format” on page 36 for additional information.<br />

Using I/O Point Features<br />

General information on I/O point features is on page 20. This section provides specific<br />

information for the IEEE 1394-<strong>based</strong> protocol.<br />

Latches<br />

Latching is automatic <strong>and</strong> needs no configuration. Using the Opto 22 protocol, you can read the<br />

on-latch or off-latch state of any digital point. You can:<br />

Read latches for individual points <strong>and</strong> leave them set<br />

Read latches for a bank of digital points <strong>and</strong> leave them set<br />

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

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

Saved successfully!

Ooh no, something went wrong!