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.

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

To read a bank of points, see the memory map area “Digital Bank Read—Read Only” on<br />

page 119. The starting address for reading counter data is FFFFF0400100. For help in interpreting<br />

this data, see “Mask Data” on page 41.<br />

To read <strong>and</strong> clear counters for individual points, see the memory map area “Digital Read<br />

<strong>and</strong> Clear—Read Only” on page 132. If you are reading <strong>and</strong> clearing the counter at point 0, for<br />

example, you would use the starting address FFFFF0F00000.<br />

Quadrature Counters<br />

I/O <strong>units</strong> with the following brains also support quadrature counters for quadrature encoder<br />

devices:<br />

SNAP-UP1-ADS<br />

SNAP-B3000-ENET<br />

See page 21 for detailed information on using quadrature counters.<br />

Watchdog<br />

Using a watchdog involves three steps:<br />

1. Setting up the watchdog time in milliseconds<br />

2. Configuring the watchdog values for the critical digital <strong>and</strong> analog points<br />

3. Enabling the watchdog for those points.<br />

SNAP-ENET-RTC<br />

SNAP-WLAN-FH-ADS<br />

Set up the watchdog time by using the “Status Area Write—Read/Write” on page 107. Write<br />

the watchdog time in milliseconds starting at the address FFFFF0380010. This is the amount of<br />

time the brain will wait for communication from the host device.<br />

Configure the watchdog values for critical digital <strong>and</strong> analog points using the memory map<br />

area “Analog <strong>and</strong> Digital Point Configuration Information—Read/Write” on page 125. These are<br />

points you want to set to a certain state or value if the watchdog timeout occurs. For example,<br />

to close a valve at digital output point 1, you would write a zero starting at the address<br />

FFFFF0C00064. To set a value on analog output point 4, you would write the EU float starting at<br />

the address FFFFF0C00184.<br />

Enable the watchdog for the points for which you’ve set watchdog values, also using “Analog<br />

<strong>and</strong> Digital Point Configuration Information—Read/Write” on page 125. For the example of the<br />

digital output at point 1, you would write starting with the address FFFFF0C00068. For the analog<br />

output at point 4, the starting address would be FFFFF0C00188.<br />

90 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!