SNAP PAC R-Series Controller Guide
SNAP PAC R-Series Controller Guide
SNAP-PAC-R1
SNAP-PAC-R1-B [OBSOLETE]
SNAP-PAC-R1-FM [OBSOLETE]
SNAP-PAC-R2 [OBSOLETE]
SNAP-PAC-R2-FM [OBSOLETE]
SNAP PAC R-SERIES CONTROLLER
USER’S GUIDE
SNAP-PAC-R1
SNAP-PAC-R1-B [OBSOLETE]
SNAP-PAC-R1-FM [OBSOLETE]
SNAP-PAC-R2 [OBSOLETE]
SNAP-PAC-R2-FM [OBSOLETE]
Wired+Wireless controllers and brains are licensed under one or more of the following patents: U.S. Patent No(s). 5282222,
RE37802, 6963617; Canadian Patent No. 2064975; European Patent No. 1142245; French Patent No. 1142245; British Patent
No. 1142245; Japanese Patent No. 2002535925A; German Patent No. 60011224.
Opto 22 FactoryFloor, groov, groov EPIC, groov RIO, mobile made simple, The Edge of Automation, Optomux, and Pamux
are registered trademarks of Opto 22. Generation 4, groov Server, ioControl, ioDisplay, ioManager, ioProject, ioUtilities,
mistic, Nvio, [Link] Web Portal, OptoConnect, OptoControl, OptoDataLink, OptoDisplay, OptoEMU, OptoEMU Sensor,
OptoEMU Server, OptoOPCServer, OptoScript, OptoServer, OptoTerminal, OptoUtilities, PAC Control, PAC Display, PAC
Manager, PAC Project, PAC Project Basic, PAC Project Professional, SNAP Ethernet I/O, SNAP I/O, SNAP OEM I/O, SNAP PAC
System, SNAP Simple I/O, SNAP Ultimate I/O, and Wired+Wireless are trademarks of Opto 22.
ActiveX, JScript, Microsoft, MS-DOS, VBScript, Visual Basic, Visual C++, Windows, and Windows Vista are either registered
trademarks or trademarks of Microsoft Corporation in the United States and other countries. Linux is a registered
trademark of Linus Torvalds. ARCNET is a registered trademark of Datapoint Corporation. Modbus is a registered trademark
of Schneider Electric, licensed to the Modbus Organization, Inc. Wiegand is a registered trademark of Sensor Engineering
Corporation. Allen-Bradley, CompactLogix, ControlLogix, MicroLogix, SLC, and RSLogix are either registered trademarks or
trademarks of Rockwell Automation. CIP and EtherNet/IP are trademarks of ODVA. Raspberry Pi is a trademark of the
Raspberry Pi Foundation. The registered trademark Ignition by Inductive Automation® is owned by Inductive Automation
and is registered in the United States and may be pending or registered in other countries. CODESYS® is a registered
trademark of 3S-Smart Software Solutions GmbH.
groov includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. ([Link]
All other brand or product names are trademarks or registered trademarks of their respective companies or organizations.
Opto 22
Your Edge in Automation.
Chapter 1: Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ethernet Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Serial Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
I/O Mounting Racks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Ethernet PAC for Legacy I/O Racks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
SNAP I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Forward Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
PAC Project Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
For Developers: SNAP PAC REST API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
About this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
For Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 2: Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
What You Will Need. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Installing Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Installing Modules on the Rack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Removing a Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Installing the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
What’s Next?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Configuring I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Using PPP Over a Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Configuring PPP on the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Attaching the Modem to a SNAP PAC R-Series Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
INTRODUCTION
The affordable and compact SNAP PAC R-series
programmable automation controllers provide powerful,
real-time control and communication to meet your
industrial control, monitoring, and data acquisition and
exchange needs. Part of the Opto 22 SNAP PAC System™, the
R-series PAC is a rack-mounted, industrially hardened unit
that can handle multiple tasks involving digital and analog
control, serial string handling, communication, and
enterprise connectivity.
Used with the included PAC Project Basic software suite (or
PAC Project Professional, purchased separately), the
Ethernet-based SNAP PAC R-series controller runs control SNAP-PAC-R1 controller
programs written in Opto 22’s PAC Control™ software. It can
monitor and control a wide range of devices and equipment
wired to the I/O on its own rack and to I/O on distributed racks equipped with SNAP PAC EB-series brains or
groov RIO® edge I/O modules. Alternatively, the R-series controller can be used as a slave to a larger controller,
either a groov EPIC® edge programmable industrial controller, a SNAP PAC S-series standalone industrial
controller, or a SoftPAC™ software-based controller for PC-based control.
SNAP PAC R-series controllers are well suited to process control, discrete manufacturing, and hybrid industries
and applications.
There are several R-series models:
• SNAP-PAC-R1, SNAP-PAC-R1-FM [OBSOLETE], and SNAP-PAC-R1-B [OBSOLETE] each control a mix of
SNAP analog, digital (both 4-channel and high-density), and serial modules. Full digital functions include
high-speed counting; quadrature counting; and pulse, period, and frequency measurement. The -B
model is designed to mount on SNAP B-series racks so that older I/O units can be easily upgraded to a
newer controller.
• SNAP-PAC-R2 [OBSOLETE] and SNAP-PAC-R2-FM [OBSOLETE] also control a mix of SNAP analog,
4-channel and high-density digital, and serial modules. High-speed digital functions are not included.
Built-in functions and comparisons of the SNAP-PAC-R1 and SNAP-PAC-R2 are shown in the table on page 34.
Ethernet Communication
All SNAP PAC R-series controllers communicate over standard 10/100 Mbps Ethernet networks and can be
attached to an existing network. The controllers can also be used in an independent control network built
with standard, off-the-shelf Ethernet hardware.
SNAP PAC R-series controllers include two 10/100 Mbps Ethernet interfaces for networking to Ethernet hosts
and to other I/O units. These interfaces support Auto MDI-X, which means you can use a standard
straight-through Ethernet cable; a crossover cable is not needed for direct connection to a PC. The two
independent Ethernet ports have separate IP addresses that can be used with PAC Project™ Professional
software to set up redundant network links to safeguard the availability and reliability of an I/O system, or to
segment a control system’s network from the enterprise LAN.
Supported protocols over Ethernet include EtherNet™/IP, Modbus®/TCP, SMTP, SNMP, FTP, and OptoMMP.
Serial Communication
SNAP PAC R-series controllers provide an RS-232 serial link to support Point-to-Point Protocol (PPP) modem
connections—for creating TCP/IP networks over serial or PSTN (Public Switched Telephone Network) lines—
as well as remote serial device communication.
The RS-232 serial interface supports either a modem connection using PPP or general-purpose
communication with serial devices, allowing you to send and receive data from a serial device connected
directly to the controller. For additional serial interfaces, you can add one or more SNAP serial communication
modules on the rack.
NOTE: The R-series controller does not include an RS-485 port and cannot be used to control Opto 22 serial I/O
processors, such as the SNAP PAC SB-series brains. Use an S-series controller for serial brains.
The SNAP-PAC-R1-B is an R1controller for use with older SNAP B-series racks (only B-series racks with a “B” in
the part number; not the SNAP-D64RS rack). This PAC provides an upgrade path from legacy brains and
rack-mounted controllers such as the SNAP-B3000-ENET or SNAP-UP1-ADS that use B-series racks. See the
SNAP I/O Racks data sheet (form 0784) for more information on racks.
The SNAP-PAC-R1-B uses the same firmware and has the same functionality as the SNAP-PAC-R1, except that
4-channel digital modules can be placed only in slots 0-7 due to limitations of the rack.
SNAP I/O
The SNAP PAC R-series controllers support all SNAP I/O modules available on our website. SNAP digital I/O
modules contain 4 input or output points, and SNAP high-density digital modules contain 16 or 32 input or
output points. SNAP analog modules contain 2 to 32 points, depending on the module.
Forward Compatibility
SNAP PAC R-series controllers are compatible with newer groov EPIC processors and groov RIO edge I/O units,
which add industrial internet of things (IIoT) data communications and cybersecurity features to your system.
Both groov EPIC and groov RIO can be used as I/O units with an R-series controller. If you already have R-series
controllers, you can use them as I/O units with a groov EPIC system.
Depending on your application, consider purchasing a groov RIO edge I/O module or a groov EPIC processor
instead of a SNAP PAC R-series controller.
• If you don’t need traditional control, groov RIO offers significant security features, thousands of I/O
options, built-in IIoT software, and lower cost, in a small footprint suited for hazardous industrial areas.
• For control, groov EPIC provides system security, better performance, control programming options,
built-in IIoT software, and much more.
For more information, see groov RIO and the groov EPIC system on our website, or contact our pre-sales
engineers.
OptoDataLink is a software application that makes it easy to share data from the SNAP PAC System with
commonly used databases, including Microsoft SQL Server, Microsoft Access, and MySQL, as well as text files.
The I/O points and strategy variables already created in your PAC Control strategy are automatically available
for OptoDataLink to use for data exchange.
PAC Manager is a utility application for assigning IP addresses to SNAP PAC controllers and brains, reading or
changing basic controller configuration, and configuring and testing I/O.
RELATED DOCUMENTATION
You’ll find most of the documentation to build and maintain your control system in the PAC Project folder
that’s added to your Windows Desktop when you install PAC Project. While using PAC Project applications, you
can get online help by clicking Help in the menu bar or the Help buttons in dialog boxes, or simply by pressing
the F1 key.
Here's a brief list of documents you may find helpful. You can also download other documents, sample files,
software utilities, technical notes, integration kits, and much more from the Opto 22 website.
FOR HELP
If you have problems installing or using SNAP PAC R-series controllers and cannot find the help you need in
this guide or on our website, contact Opto 22 Product Support.
Phone: 800-TEK-OPTO
(800-835-6786 toll-free in the U.S. and Canada)
951-695-3080
Monday through Friday,
7 a.m. to 5 p.m. Pacific Time
Email: support@[Link]
NOTE: Email messages and phone calls to Opto 22 Product Support are grouped together and answered in the order
received.
When contacting technical support, be prepared to provide information about your system to the Product
Support engineer. For a list of information to collect and how to locate it, review Quick Guide: Troubleshooting
Info from SNAP PAC Systems (form 1826).
If you already know how you will use the SNAP PAC R-series controller and want to get it running quickly,
follow the sections in this chapter.
To learn about communication options and networking, start on page 13. Specifications are listed on page 27.
INSTALLING HARDWARE
Assemble the rack and power supply according to the directions that came with them. For help with wiring,
see the product data sheets, which are available on our website at [Link].
Modules snap into position in the row of connectors on the SNAP PAC rack. Each module connector has a
number.
NOTE: R-series controllers with serial numbers lower than 600,000, and all SNAP-PAC-R1-B controllers, are limited to
eight 4-channel digital modules per rack, located in the first eight positions.
1. Place the rack so that the module connector numbers are right-side up, with zero on the left.
Retention bar
Module connectors
2. Position the module over the module connector, aligning the small slot at the base of the module with
the retention bar on the rack.
3. With the module correctly aligned over
the connector, push on the module to Module keys
snap it into place.
When positioning modules next to each
other, be sure to align the male and
female module keys (shown in the
detailed view in the illustration at right)
before snapping a module into position.
Modules snap securely into place and
require a special tool (provided) to
remove them. To remove a module, see
the next section.
4. (Optional) Use standard 4-40 x 1/4
truss-head Phillips hold-down screws to
secure both sides of each module. Do not
overtighten screws. Optional hold-
5. Plug the wiring connector into each down screws
module to attach modules to the devices
they monitor.
See the wiring diagrams in the module’s data sheet.
6. Continue with “Installing the Controller” on page 9.
Removing a Module
1. If the modules are held in place with screws,
remove them.
2. Holding the SNAP module tool (provided) as
shown in the illustration at right, insert it into
the notch at the base of the module.
3. Squeeze the module tool against the module
to open the release latch, and pull straight up
on the module to remove it.
Maximum cable or segment length is 100 meters; minimum cable length is one meter.
6. See the Appendix (page 63) for information on power supplies and wiring.
7. Before turning on power to the controller, follow steps in the PAC Manager User’s Guide (form 1704) to
assign the controller an IP address.
8. For controllers used with a modem: Follow the steps in “Using PPP Over a Modem” on page 11.
WHAT’S NEXT?
To start configuring controllers and I/O points, see “Configuring I/O,” below.
To learn more about SNAP PAC R-series controller capabilities and network options, see Chapter 3: System
Information.
To create PAC Control strategies to run on the controller, see the PAC Control User’s Guide (form 1700) and the
PAC Control Command Reference (form 1701). Both are available in PDF format and you can download them
free from our website, [Link].
To securely access data from I/O points and strategy variables in the PAC via its RESTful API (application
program interface based on the REST architecture), see [Link].
To work with the following items on the controller, see instructions in the PAC Manager User’s Guide
(form 1704):
• File system and FTP
• Security settings
• Port and interface configuration
To use OLE for process control (OPC) with SNAP PAC R-series controllers, purchase OptoOPCServer and see the
OptoOPCServer User’s Guide (form 1439).
To communicate with controllers using Modbus/TCP, see the Modbus/TCP Protocol Guide (form 1678).
To communicate with an Allen-Bradley Logix PLC or other system using EtherNet/IP, see the EtherNet/IP for
SNAP PAC Protocol Guide (form 1770).
To program your own applications, see the OptoMMP Protocol Guide (form 1465).
Configuring I/O
No matter how you communicate with SNAP PAC R-series controllers, you will need to configure I/O points
and controller features.
If you are not using PAC Control (Opto 22’s flowchart-based control software), follow instructions in the
PAC Manager User’s Guide (form 1704).
If you are using PAC Control, I/O units and points must be configured to match the PAC Control strategy
you will run. You can configure most controller features and point functions either in PAC Control or in PAC
Manager.
In most cases, if you are already in PAC Control, configuration is easier there and you can use the loopback IP
address for SNAP PAC R-series controllers controlling themselves. However, some functions cannot be
configured in PAC Control.
If you use PAC Manager, you can save your configuration to a file, load it to multiple I/O units at once, and use
it for referencing points in OPC. You can also configure some controller features that are not available in PAC
Control. However, you cannot use the loopback address in PAC Manager.
See the table on the next page for a summary of which tool to use, based on your application.
IMPORTANT: Whichever tool you use for configuring I/O, be aware of the impact if you later change configuration.
For example, if you configure I/O in PAC Manager, download the configuration file to I/O units, and then later add a
point in PAC Control, remember that your configuration file doesn’t contain that point.
PC dials in to
controller
Modem
PC with dial-up
networking
Modem
NOTE: You can communicate with a SNAP PAC R-series controller using a modem and PPP at the same time you are
communicating with the controller over an Ethernet network.
1. Use the following diagram to attach the modem to the controller using the serial connector. As shown
here, you can use either a DB9 or a DB25 connection.
DB9 DB25
DCD 1 8 DCD TD 2 1 TX
RX 2 2 RX RD 3 2 RX
TX 3 1 TX RTS 4 4 RTS
DTR 4 7 DTR CTS 5 5 CTS
RTS 7 4 RTS SG 7 3 or 6 COM
CTS 8 5 CTS CD 8 8 DCD
SG 5 3 or 6 COM DTR 20 7 DTR
NOTE: Pins 3 and 6 are tied together within the SNAP PAC R-series controller, so no external jumper is required.
2. Store configuration settings to the modem’s NVRAM, following instructions in the user’s guide for your
modem.
NOTE: Configuration settings must be stored to the modem’s NVRAM so they will be loaded when the SNAP PAC
R-series controller sends a reset command to the modem.
3. If PCs will dial up the controller, set up Windows dial-up networking on the PCs that will call the
controller.
This chapter explains how to use SNAP PAC R-series controllers in an Ethernet network and how to
communicate with them. It also provides information on system architecture, specifications, and features.
In This Chapter
Communication Options........................................................................................13
System Architecture..................................................................................................16
Networking...................................................................................................................22
Specifications, Connectors, and Dimensions.................................................27
Information on Features..........................................................................................31
SNAP-PAC-R1 and -R2 Comparison Chart.......................................................34
COMMUNICATION OPTIONS
SNAP PAC R-series controllers communicate using TCP/IP or UDP/IP over an Ethernet network.
Physical Layer—All SNAP PAC R-series controllers communicate over a 10- or 100-Mbps wired Ethernet link.
SNAP PAC R-series controllers can also communicate using a modem over PPP.
Transport Layer—The key to SNAP PAC R-series controller communication flexibility is the transport layer,
Internet Protocol (IP). Both the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) are
used with IP.
Application Layer—Because SNAP PAC R-series controllers use standard IP for the transport layer, many
communication options are possible in the application layer. After the controller is installed and has an IP
address assigned (see page 9), you can communicate with it using the following methods:
• PAC Manager software utility is used for assigning IP addresses, configuring I/O points and features, and
performing onetime reads and writes.
• PAC Control strategies running on a groov EPIC or SNAP PAC System industrial controller can configure,
read, and write to I/O points on R-series controllers.
• Custom applications using the PAC’s RESTful API and HTTP/HTTPS server let you securely access
data using the language of your choice, including PHP, JavaScript, .NET, Perl, and others. Data is returned
as JSON. See the API and instructions at [Link].
• Custom software applications can also be built using our OptoMMP Software Development Kits
(SDKs) for C++ and .NET. They use OptoMMP, an IEEE 1394-based protocol to read and write to SNAP PAC
R-series controllers. The C++ SDK supports Linux® and Windows® platforms; the .NET SDK is for Windows.
For developers not using Microsoft Windows, the OptoMMP protocol is open and documented.
• EtherNet/IP provides communication with Allen-Bradley ControlLogix® and CompactLogix™ PLC
systems and other systems using the EtherNet/IP protocol. Both implicit and explicit messaging are
supported.
Simultaneous Communication
In addition to communicating using all the methods listed above, each SNAP PAC R-series controller can also
communicate simultaneously using all applicable methods.
The reason lies in the nature of IP. In serial communication, a single data request is sent by one device to
another. The first device must wait for a response before any additional communication can be carried out. IP,
however, can establish multiple simultaneous sessions, so many data requests can be sent at once without
waiting for any individual response. Each request gets a response, but the link isn’t idle while waiting for
responses.
In addition, IP can simultaneously handle multiple requests from multiple devices. A PC can communicate
with all SNAP PAC R-series controllers on the same network—all at the same time—and multiple PCs can
communicate with one controller at the same time.
So, for example, a SNAP PAC R-series controller can respond to directions from a Modbus master, give analog
point data to a technician using PAC Manager, and carry out instructions from a custom C++ application—all
at once.
SYSTEM ARCHITECTURE
Because SNAP PAC R-series controllers are a combination of controller and I/O processor, their architecture is
more complex than that of devices such as the SNAP EB-series brains, which are I/O processors only. The next
few pages show the capabilities of this versatile system, starting with the simplest and moving to the more
complex. Your application may require only some of these capabilities, but as your needs expand, remember
that SNAP PAC R-series I/O can be used in all the ways shown, simultaneously.
The controller reads and writes to the I/O points using its I/O side memory map. This side of the SNAP PAC
R-series controller is like SNAP EB-series brains.
You can think of the controller’s memory map as a grid of mailboxes, with each mailbox having its own
memory address. Each mailbox address has a specific purpose. For example, one address holds the state of a
single digital point; another address holds counter data for the same point. There’s an address that stores the
controller’s firmware version, one that contains the minimum value of a specific analog point, and many more.
If you are familiar with programmable logic controllers (PLCs), you’ll see that the memory map is similar to a
register.
Most SNAP PAC R-series controllers run PAC Control flowcharts that automatically manipulate the memory
map, so you probably won’t need to understand it in detail. If you do need to refer to it, however, the complete
list of memory map addresses is in the OptoMMP Protocol Guide (form 1465).
The control side of the controller is like a traditional Opto 22 industrial controller. In the control side, the
controller runs PAC Control flowcharts. These flowcharts provide the logic that controls processes through the
system. Commands within the flowchart read from and write to the memory map in the I/O side of the
controller in order to monitor and control the I/O points.
For applications that require more than one I/O unit, the SNAP PAC R-series controller can control multiple I/O
units through the flowcharts on its control side. These I/O units can be located where needed on the Ethernet
network for distributed control.
The following diagram shows the control side of the controller:
Shared tag
database
PAC Display
Uses the same tag
database as PAC
Control
The following illustration shows how this type of peer-to-peer communication can be done using PAC
Control.
The memory map in the
SNAP PAC R-series controller’s I/O side has two
I/O Unit parts: the fixed area and the
Scratch Pad area.
The fixed memory area is used
automatically by the controller
to read and write data to I/O
points; each address has a fixed
purpose.
The Scratch Pad area, however,
Control Side I/O Side is user-defined; it is available for
Run PAC Control flowcharts Read/write to points you to define and use as needed
using Memory Map to exchange data among peers.
The following graphic shows how these software applications (and some hardware, too) can directly access
the memory map in the controller’s I/O side for both I/O point data and strategy variable data.
Paging
Enterprise
management
SNAP PAC R-series system
controller
All protocols except Modbus/TCP
FTP can read or write hardware and
to I/O points directly software
through the Memory
Map. 3rd-party
software
• Intellution
• Wonderware
Control Side I/O Side
Run PAC Control flowcharts Read/write to points
SMTP ActiveX custom
using Memory Map
SNMP application
Fixed memory area Modbus/TCP (VB, C, C++,
(I/O point data) database)
OptoMMP
Scratch pad area
(strategy variable data)
Enterprise
database
OPC
FTP
HTTP/HTTPS server
All protocols except FTP Any OPC
RESTful API can also read strategy client software
variable data from the
Databases Scratch Pad area of the
Other systems Memory Map.
IoT applications File system
All of the protocols shown in the diagram, except FTP, can be used to communicate with both the fixed
memory map area and the Scratch Pad area, so you can access both I/O point data in the fixed area and
strategy variable data placed in the Scratch Pad area. In addition, strategy variable data from the PAC Control
database can be directly used by OPC clients.
FTP can be used to access files on the SNAP PAC R-series controller, which are on the control side but can
contain data from the I/O side (or any other data). For more information on the controller’s file system and FTP,
see the PAC Control User’s Guide (form 1700) and the PAC Manager User’s Guide (form 1704).
Paging
Enterprise
management
SNAP PAC R-series system
PAC Control
Use to create controller
flowcharts and Modbus/TCP
download strategy All protocols except hardware and
to SNAP PAC FTP can read or write software
R-series to I/O points directly
through the Memory
Map. 3rd-party
software
• Intellution
• Wonderware
Control Side I/O Side
Run PAC Control flowcharts Read/write to points
using Memory Map ActiveX custom
PAC Display SMTP application
(HMI) SNMP (VB, C, C++,
Fixed memory area
Uses the same tag (I/O point data) Modbus/TCP database)
database as PAC OptoMMP
Scratch pad area
Control (strategy variable data)
Enterprise
database
PAC Control OPC
Database
FTP
Any OPC
HTTP/HTTPS server All protocols except FTP can client software
RESTful API also read strategy variable
data from the Scratch Pad
area of the Memory Map.
Databases
Other systems File system
IoT applications SNAP PAC SNAP PAC R-series SNAP-PAC-S1
EB-series I/O
Other Opto 22 controllers can read strategy variable data
from the Scratch Pad area.
Since all protocols can be used simultaneously, while the strategy is running on the control side of the controller and
peer-to-peer communication is going on, coordination in accessing data through the REST API or reading and writing to
memory map areas is critical to avoid conflicts. The more capabilities of the system you use, the more careful you must be
in planning.
NETWORKING
From a physical standpoint, SNAP PAC R-series controllers can be networked in several ways:
• Connected directly to a PC or controller using a standard Ethernet cable
• Attached to an existing TCP/IP Ethernet network
• As part of an independent network built with standard Ethernet hardware
• Over a modem connection
The networking method you use depends on several things, including whether you need control or data
acquisition, the number of PCs, controllers, and I/O units you are using, the speed and volume of
communication, security requirements, and the availability of an existing network. For more information on
networking, see the Guide to Networking SNAP PAC Products (form 1796).
If you need to isolate your trusted control system network from an untrusted network (for example, a
company network that accesses the internet), you can use the two Ethernet interfaces on either the SNAP PAC
R-series or an S-series controller to create separate zones. One interface can be connected to the trusted
network, and the other used for the untrusted network. See the diagram on page 25.
Modem Modem
The system can dial out to a PC connected to a modem, or the PC can dial into the system, or both. If the
system is also communicating via Ethernet, the network ID for the PPP interface on the controller must be
different from the controller’s Ethernet IP network ID.
For more details on configuring the controller for use with a modem, see “Using PPP Over a Modem” on
page 11.
The following diagram shows a SNAP PAC R-series controller that uses one network interface to communicate
with host computers and control I/O. The controller controls I/O on its own rack and on other SNAP PAC I/O
units.
PC running
PAC Display Basic
Ethernet switch
The following diagram shows two Opto 22 I/O units connected together over an Ethernet network (a trusted
network) and controlled by a SNAP PAC R-series controller running a PAC Control strategy.
The controller is also connected to a larger, separate enterprise Ethernet network (an untrusted network) to
provide data to PCs running Opto 22’s PAC Display HMI software, OptoOPCServer, and OptoDataLink. Sitting
between the two networks, the SNAP PAC R-series controller isolates enterprise traffic from the control
network, separating the two networks into zones.
The network shown in this diagram requires PAC Project Professional.
Control Network
Ethernet switch Additional I/O units are controlled by
the R- series controller on an isolated
network.
SNAP PAC R-series
SNAP PAC R-series controller controls I/O directly on the rack and through one Ethernet interface, using
the second interface to isolate this trusted control network from the untrusted enterprise network.
Enterprise Network
Ethernet switch,
network #1
The following diagram shows two SNAP PAC R-series controllers functioning as I/O unit brains connected to
two separate Ethernet networks. This configuration addresses the concern that an Ethernet network may fail
or need maintenance, leaving the PC running OptoOPCServer, the PC running PAC Display, the controller, and
the I/O units unable to communicate. The network shown in this diagram requires PAC Control Professional,
PAC Display Professional, and OptoDataLink.
In this configuration, if one network goes down, devices can still communicate because the SNAP PAC S-series
controller and the SNAP PAC R-series controllers both have two network interfaces, and each PC in this system
has two network interface cards.
NOTE: If you need controller redundancy (two controllers running concurrently, with one able to take over if the other
fails), use SNAP PAC S-series standalone controllers with the PAC Redundancy Option Kit and PAC Control
Professional. For more information, see the Opto 22 website.
per rack; remaining eight can be analog, serial, and high-density digital modules.
5
For the SNAP-PAC-R1 (GEN2 edition), use PAC Project R10.0 or higher.
6
OBSOLETE product, please contact Pre-Sales Engineering for more information.
Dimensions
The dimensions are the same for all SNAP PAC R-series controllers.
INFORMATION ON FEATURES
All SNAP PAC R-series controllers offer many features, described in the following sections and summarized in
the table on page 34.
Output clamping—The controller can clamp values sent to analog output points so they do not go above or
below a specific limit. For example, if you are using a 0–10 VDC output module, but the device attached to
one of its points can handle a maximum of only 5 VDC, you can set an upper clamp of 5 VDC for that point.
The values for upper and lower clamp are set in engineering units.
Average filter weight—The controller can use a filter weight to smooth analog input signals that are erratic
or change suddenly. See details in the PAC Manager User’s Guide (form 1704).
Additional analog features—The following analog features are available when a SNAP PAC R-series
controller is used with PAC Control. These features are not currently available through PAC Manager or the
memory map. Use PAC Control commands to configure and access them. See the PAC Control User’s Guide
(form 1700) for more information.
• Ramping—Some devices attached to analog outputs should not be abruptly stepped up or down,
because a sudden change might damage the equipment or cause other problems. Instead, you can
gradually ramp the device up or down to the desired value.
• Analog totalizing—For an analog input, a totalizer accumulates readings by sampling the input point at
set intervals and storing the total value, for example to determine total flow based on a varying flow rate
signal.
Serial Communication
R-series PACs can communicate with serial devices either through the RS-232 connector on top of the
controller (Port 0) or though SNAP serial communication modules on the rack.
The default configuration for Port 0 is communication with a host PC using a modem and PPP. To
communicate with a serial device, first change Port 0’s configuration in PAC Manager. Here are brief
instructions; for more details, see “Configuring Direct Communication to Serial Devices” in the PAC Manager
User’s Guide (form 1704).
1. In PAC Manager’s Inspect window, click Communications and choose Communication Port Control from
the pop-up menu.
2. For Com Port 0, click PPP in the Control Function field and choose None from the list. Click Apply.
3. Save the configuration to flash memory.
Communication through the RS-232 port is handled through PAC Control commands. See “Communication
Commands” in Chapter 10 of the PAC Control User’s Guide (form 1700).
For additional serial connections, use SNAP serial communication modules. Most serial modules provide two
channels of serial data, typically to interface with printers, scales, chart recorders, RFID readers, or Wiegand®
security devices. A Profibus® module provides one channel of data from Profibus DP devices. See the serial
module’s user’s guide for details.
PID Loops
Proportional integral derivative (PID) loops are used to drive a variable, often from an analog input, toward a
desired value. The PID monitors the variable, compares it to the setpoint (the desired value) and calculates an
output that will push the variable very close to the setpoint. Temperature control is a typical application for a
PID.
Each SNAP PAC R-series controller can run up to 96 PID loops. PID loops run on the I/O side, independently
from a PAC Control strategy. To use PID loops, configure them in PAC Control or PAC Manager, and use PAC
Control tuning tools for ease in debugging. See the PAC Control User’s Guide (form 1700) for more information.
Additional Features
For information on configuring additional features available in the SNAP PAC R-series controller, including
security and the use of protocols such as SNMP, SMTP, and FTP, see the PAC Manager User’s Guide (form 1704).
SNAP-PAC-R2-FM
SNAP-PAC-R1-FM
SNAP-PAC-R1-B
SNAP-PAC-R2
SNAP-PAC-R1
[OBSOLETE]
[OBSOLETE]
[OBSOLETE]
[OBSOLETE]
FEATURE
UL approval
Input latching
On/off status
Watchdog timer
High-speed counting (up to 20 kHz)1
SNAP-PAC-R2-FM
SNAP-PAC-R1-FM
SNAP-PAC-R1-B
SNAP-PAC-R2
SNAP-PAC-R1
[OBSOLETE]
[OBSOLETE]
[OBSOLETE]
[OBSOLETE]
FEATURE
This chapter includes maintenance and troubleshooting information for SNAP PAC R-series controllers.
In This Chapter
Maintaining the SNAP PAC R-Series Controller:
Backup Battery ............................................................................................................37
Changing the Controller’s IP Address................................................................37
Loading New Firmware ...........................................................................................38
Setting Time and Date .............................................................................................38
Resetting the Controller..........................................................................................38
Using the MicroSD Card..........................................................................................39
Blink Codes....................................................................................................................52
Troubleshooting the SNAP PAC R-Series Controller:
Getting Device and Firmware Information.....................................................55
Communicating with the Controller .................................................................55
Additional Troubleshooting Tools.......................................................................59
Troubleshooting I/O Modules: Frequently Asked Questions..................60
SNAP Analog Troubleshooting.............................................................................62
Backup Battery
The SNAP PAC R-series controller has a rechargeable battery that receives charging current whenever the
controller has power. It will retain data for up to three years with the power off.
NOTE: Models manufactured before July 1, 2007 have a user-replaceable 3-volt CR2032 Lithium battery (typical
service life with power off: 5 years).
Firmware R9.0a to
microSD FAT16 2 GB See note 1. this document.
R9.3e3
Using microSD with Older
Lower than R9.0a3 microSD FAT16 2 GB See note 1. Controller Firmware Tech-
nical Note (form 2018).
Notes:
1. The SNAP-PAC-R1 (GEN2 edition) cannot run firmware versions lower than R10.5g. However, it supports all the microSD card
types, formats, and capacities listed in this table.
2. OBSOLETE product, please contact Pre-Sales Engineering for more information.
3. For these firmware releases, all files stored on the microSD card must be in the format
maximum_eight_characters.three_character_extension, sometimes called the “8 dot 3 format.” For example: [Link]
4. Some R-series controllers may not need their firmware updated to use microSDHC cards; for more information, review
OptoKnowledgeBase article KB83929.
5. microSDXC cards may need to be reformatted to have a FAT32 partition. You can do this on your Windows computer by
inserting the card into a microSD card reader, opening Windows Explorer, right-clicking on the card, and then selecting
Format.
• To update, run, or test new PAC Control strategies if the controller is not on the network, if PAC Control
isn’t available, or if you want to test a new strategy without erasing the existing one.
The following table summarizes how to use the card; see the page in the last column for steps.
Put card See
To do this When Use this method
in... page
Automate data storage and retrieval in PAC
Control logic: Use PAC Control commands
Controller
and file communication handles. Or use PAC
Control FTP communication handles.
Store/access data Anytime 41
Controller1 From a PC, use an FTP client.
PC with card
Use Windows Explorer.
reader
1. Use PAC Manager Inspect window to
Controller1 store IP address and configuration data to
card.
2. Use PAC Control to make controller
In advance
download (.cdf ) file.
PC with card
3. Create a command file to load firmware.
reader
4. Copy .cdf file, command file, and
Replace failed firmware file to card.
controller using a 43
prepared card 1. Replace failed controller with a new one
(must be exactly same part number; must
have minimum firmware R9.x and loader
If controller R6.x).
Controller
fails 2. Insert prepared card and turn on power.
3. Use controller’s Reset button to reset to
defaults from card. Strategy is saved to
flash memory.
Controller1 or
Use Windows Explorer or FTP client to copy
In advance PC with card
Try out controller new firmware to card.
reader
firmware without
Insert prepared card into controller and cycle 49
replacing current
firmware power. Controller runs firmware on card.
To use Controller
To go back to older firmware, remove card
and cycle power again.
Use PAC Control to make controller
Controller1 or
download (.cdf ) file; then use Windows
In advance PC with card
Try out new Explorer or FTP client to put .cdf file on the
reader
strategy without card.
50
replacing current Insert prepared card into controller and cycle
strategy4 power. Controller runs strategy from card.
To use Controller
To go back to older strategy, remove card and
cycle power again.
PC with card Create command file; copy it and the
In advance
Update reader firmware file to card.
non-networked Insert card into controller. Controller runs 47
controller with firmware from card until reset. Use
new firmware4 To use Controller
controller’s Reset button to save firmware to
flash.2
When inserted into the controller and accessed from a PC using FTP or PAC Control, the card appears as a
directory in the controller’s file system named: sdcard0 Just like a PC might show a thumb drive as a
directory named Removable Disk (E:), for example, the controller shows the card as a directory named
sdcard0.
IMPORTANT: Do NOT try to create this directory. When you look at the card in the controller, the card appears as
a directory named sdcard0. When you look at the card in a card reader attached to your PC, you see the card reader’s
directory instead. When the card is in a card reader, you are already in the root of the card (that is, you are already
inside the sdcard0 directory).
For example, suppose you are looking at a card in a SNAP PAC controller with IP address [Link]. You
can see that this controller has three files in its regular file system, plus the card:
Within the sdcard0 directory on the controller (or the root if the card is in a card reader), you can create
other directories and create or add files. For a card formatted with FAT16, you can have up to 512 files or
directories in the root directory, and each subdirectory can have up to 65,534 files. Cards formatted with FAT32
have no restrictions on the number of files in the root. There are file name restrictions for files stored in
microSD cards on controllers running early firmware releases; review footnote 3 on page 75.
When the card is in the controller, you can access files on the card through PAC Control commands and from a
PC using FTP.
Use PAC Control commands just as you would with any other file in the controller’s file system. For help, see
“Using the Control Engine’s File System” in the PAC Control User’s Guide (form 1700). Remember to include the
card’s directory name in the path in the file communication handle, for example:
file:a,/sdcard0/[Link]
Note that the path separator is a forward slash (/), not a backward slash (\).
You can also use the FTP communication handle in PAC Control to manipulate files. See the section “Moving
Files via FTP,” also in the PAC Control User’s Guide (form 1700).
To move files to or from a PC, use any standard FTP software. (Don’t use PAC Manager as the FTP client, as it
cannot see directories within the controller’s file system). Remember to include the card’s directory name, for
example: [Link]
NOTE: If you access the card when it is not in the controller (for example, in a card reader), the sdcard0 directory does
not appear. Do NOT create it. The controller treats the card as a folder in the controller’s file system.
If you need to know how many free bytes are left on a microSD/SDHC/SDXC card, you can use PAC Control or
PAC Manager to read this data from an address in the controller’s memory map. In a PAC Control strategy, for
example, you could notify an operator if the card needs replacing, based on the number of bytes still unused.
1. Make sure the card is in the controller.
2. In PAC Control, use the command Read Number from I/O Unit Memory Map to read memory map
address F7002204. Use Integer 32 Variable in Argument 2.
For more information, see “I/O Unit—Memory Map Commands” in the PAC Control User’s Guide
(form 1700), and see “Read Number from I/O Unit Memory Map” in the PAC Control Command Reference
(form 1701).
3. In PAC Manager, open the Inspect window for the controller. Click Other and choose Generic Read/Write
from the popup menu. In the Address field, type F7002204. From the Type list, choose 32-bit Integer.
Leave the Length as 1. Click Refresh.
The number of bytes appears in the Value column.
Some cards and card functions require a minimum version of firmware and loader (see table on page 39).
Here’s how to check the version numbers (for these instructions to work, the controller must be on the same
network segment as the PC with PAC Manager):
1. Open PAC Manager and click the Inspect icon .
2. In the Device Name field, enter the controller’s name or IP address, or choose it from the drop-down list.
Click Status Read.
Loader and firmware version numbers appear near the center of the window:
New firmware versions and some new loader versions are available from our website, [Link].
To update the loader, see Updating the Loader on a SNAP Device (form 1789). For firmware, see “Loading
New Firmware” on page 38. Contact Opto 22 Product Support with any questions.
Replacing a Controller
A microSD/SDHC/SDXC card can be used to quickly commission a replacement controller in the unlikely event
that an existing controller fails. The card rapidly configures the replacement with the original controller’s IP
address, firmware, configuration, and strategy.
Preparing the card requires PAC Manager R9.0 or higher. You must prepare the card in advance and then keep it
in a safe place in case the controller fails.
The replacement controller must have exactly the same part number as the old controller (for example, a
SNAP-PAC-S1 must be replaced by a SNAP-PAC-S1), and it must have minimum firmware R9.0a and loader
6.0a. See page 43 to check versions.
CAUTION: Use the commissioning card only to replace a controller; it assigns the new PAC controller the same IP
address as the old one.
b. Check the Set autorun flag after download box. Click OK.
c. Choose one of the following:
– If you’re using PAC Terminal Secure Strategy Distribution (SSD), follow the steps in PAC Terminal
SSD Technical Note (form 1762, available with purchase of PAC Terminal SSD) to create a
download file with the file extension .ssd.
– Otherwise, compile the strategy as a Control Engine Download file (.cdf ) by right-clicking the
name of the control engine in the Strategy Tree and choosing Compile Control Engine
Download File from the pop-up menu.
The file is created in the same folder as the strategy, with a .cdf extension and a filename consisting
of the strategy’s name and the control engine’s name (for example, [Link] ).
d. (Firmware below R9.4a only): Rename the .cdf or .ssd strategy file to fit the 8 dot 3 filename format
for the microSD card (see footnote 3 on page 39).
IMPORTANT: You must retain the correct file extension (.cdf or .ssd).
4. Remove the card from the controller and put it in a card reader attached to the PC. Prepare the firmware
file:
a. Locate the firmware file you want to upgrade to.
b. (Firmware below R9.4a only): Rename the file to fit the 8 dot 3 filename format.
For this file, do not keep the same file extension. Recommended naming scheme: [Link]
where:
Krn R2-R9.0a
b. In Windows Explorer, delete the .txt extension from the command file. Then right-click the
command file filename and choose Properties. In the General tab, click to put a checkmark in the
Read-only box. Click OK.
6. Copy files to the card:
a. Copy the command file to the sdcard0 directory in the controller’s file system.
b. Copy the firmware file to the sdcard0 directory. This directory must contain only one firmware
file.
c. In the sdcard0 directory on the card, create a new directory and name it: strategy
Copy the renamed strategy file (.cdf or .ssd) to the sdcard0/strategy directory.
The card is now ready to be used as a commissioning card to replace the controller.
• Has minimum firmware R9.0a and minimum loader R6.0a. To check firmware and loader versions in PAC
Manager, see page 43. You can download new firmware from our website; if you need a newer loader,
contact Product Support.
Follow these steps to replace the failed controller:
7. Turn off the controller that failed. Put the new controller in its place but DO NOT apply power. Attach
network cables.
8. Insert the prepared microSD/SDHC/SDXC card and turn on power to the controller.
9. Without waiting, carefully insert a straightened paperclip or stiff wire into the small hole on the controller
labeled RESET. Press and hold the Reset button just until the STAT LED turns solid green, and then
immediately release the button.
The IP address is assigned to the controller, and firmware, configuration data, and strategy are loaded into
RAM, in that order.
– In firmware R9.2c and newer, IP address, firmware, configuration, and strategy are stored to flash and
the controller reboots running the new firmware. The STAT LED blinks steadily during this process
and then blinks two sets of three blinks—green to indicate success, or red to indicate failure.
– In firmware R9.0–R9.2b, IP address, firmware and configuration are stored to flash and the controller
reboots running the new firmware and loads the new strategy. To store the strategy to flash, use the
Reset button again in exactly the same way.
When finished, a folder named backup is placed in the root directory of the card. The controller
restarts.
10. Wait until the STAT LED blinks only once every five seconds, and then remove the card.
Updating Firmware
The card can also be used to update firmware if the controller is not on the network, or if PAC Manager isn’t
available. The card can update both controller firmware and serial communication module firmware.
CAUTION: Before updating firmware:
• Make sure you know what is on the card! Any IP address, configuration data, and strategy on the card will be
saved to flash memory along with the firmware. If you want only the firmware saved, delete configuration and
strategy files from the card.
• Updating firmware deletes your PAC Control strategy (even if stored to flash memory) and your persistent
variables. Make sure you have archived your strategy before loading new firmware.
1. Obtain the correct firmware file from our website, [Link]. If you are using Secure Strategy
Distribution (SSD), the firmware must have the correct signature.
2. (Firmware below R9.4a only): Rename the firmware file to fit the 8 dot 3 filename format (see footnote 3
on page 39).
The original file extension does not have to be retained. To make sure the file is clearly identified, we
recommend a name such as the following: [Link] where:
/sdcard0/strategy
/sdcard0/boot
/sdcard0/opto22/config
You can write to the card in one of two ways: either use your PC to FTP files to the card in the controller, or
use a card reader with your PC and simply copy files with Windows Explorer.
4. Using Notepad or a similar text editor, create a command file named [Link] and save it in the
root directory of the card. (If you are looking at the card in a card reader, save it in the root directory. If you
are looking at the card in the controller, save it in the directory named sdcard0 ).
5. In the command file, include the following commands as needed, all in the same file. All commands are
CASE SENSITIVE.
To do this Use command Details
<file> is the firmware path and file as the card sees it, so
do not include sdcard0 directory in the path. The
firmware file can be compressed in gzip format or
uncompressed. *
Install serial
ModKrn <file>, <modpos> is the position of the module on the rack.
communication
<modpos> NOTE: If this file exists, it will be installed. Firmware
module firmware
checking is impossible on serial modules.
CAUTION: Installing the wrong firmware on a serial
module will make the module unusable. Make sure you
have the correct firmware!
<file> is the firmware path and filename as the card sees
it, so do not include sdcard0 directory in the path. The
firmware file can be compressed in gzip format or
uncompressed.* If you’re using Secure Strategy
Install controller Distribution, <file> must include a valid signature.
Krn <file>
firmware NOTE: If installing both module and controller firmware,
make sure the ModKrn command comes before the Krn
command, as Krn resets the controller.
NOTE: Controller firmware will be installed only if it differs
from the current firmware.
* To gzip a file on Windows, use the utility at [Link]
SNAP PAC cannot decompress files that were compressed with WinZip
Krn R2-R9.0a
The following sample command file updates firmware on the controller and on two serial modules. The
update commands for the serial modules must be listed first. This file updates version R2.0a on an RS-232
serial module in slot 3, firmware version R1.3c on a motion control module (a special type of serial
module) in slot 6, and firmware version R9.4a on a SNAP-PAC-R2 controller. Note that the motion control
firmware is located in a directory named motion. It doesn’t have to be in its own directory; module
and controller firmware files can be in the same directory or in separate directories, as you choose. If you
show a path in the command file, note that you must use a forward slash (/), not a backward slash (\).
ModKrn SCM-R2.0a, 3
ModKrn motion/MOT-R1.3c, 6
Krn R2-R9.4a
6. In Windows Explorer, delete the .txt file extension from the file so that the complete filename is only:
command Then right-click the command file and choose Properties. In the General tab, click to put a
check in the Read-only box. Click OK.
CAUTION: Make sure you know what is on the card before updating firmware! Any IP address, configuration,
or strategy data that exists on the card will also be saved to flash memory along with the firmware.
7. To update firmware, insert the card in the controller’s card slot. Carefully insert a straightened paper clip
or stiff wire into the small hole on the controller labeled RESET. Press and hold the Reset button just until
the STAT LED turns solid green, and then immediately release the button.
Firmware is updated and saved to flash memory. (If IP address, configuration, or strategy files are on the
card, they are also saved to flash memory.) When finished, a file named response is placed in the root
directory of the card; this file indicates the success or failure of commands in the command file. Then the
controller restarts.
8. Wait until the STAT LED blinks only once every five seconds, and then remove the card.
You can also boot the controller from firmware on the card, rather than from the firmware in flash memory, for
example to test new firmware before updating it on the controller.
You can write to the card in one of two ways: either use your PC to FTP files to the card in the controller, or use
a card reader with your PC and simply copy files with Windows Explorer.
NOTE: Controllers configured for Secure Strategy Distribution (SSD) cannot boot from the card.
IMPORTANT: The boot directory must contain only one firmware file. If it contains more than one, the wrong
firmware may be loaded.
5. If the card contains a command file or any other firmware files, delete them.
6. To boot the controller from firmware on the card, turn the controller off and insert the card in the
controller’s card slot. Turn the controller back on. (Or insert the card and then quickly push and release
the controller’s Reset button.)
If the boot directory exists on the card, the STAT LED blinks green three times, quickly. Firmware is loaded.
If the STAT LED blinks red, see “Blink Codes” in this chapter to determine the problem.
If the STAT LED blinks green two times, either the boot directory is not present, the firmware file is invalid
or does not match the controller, or the controller is an SSD controller.
When the STAT LED no longer blinks steadily, but blinks only once every five seconds, you can remove the
card. When the card is removed, the controller continues running the firmware on the card until power is
cycled or the controller is reset. If you need to know whether the controller booted from the card or from
flash memory, use PAC Manager’s Inspect window to check the Status Read area. See the PAC Manager
User’s Guide (form 1704) for instructions.
The card can also be used to update, run, or test a PAC Control strategy. This ability is useful when the
controller is not on the network or PAC Control isn’t available. Both regular strategies and Secure Strategy
Distribution (SSD) strategies can be used.
You can write to the card in one of two ways: either use your PC to FTP files to the card in the controller, or use
a card reader with your PC and copy files with Windows Explorer.
CAUTION: Before saving to flash memory, make sure you know what is on the card! ALL IP address, configuration
data, and firmware on the card will be saved to flash along with the strategy. If you want only the strategy saved,
delete configuration and firmware files from the card.
1. In PAC Control Configure mode, choose File >Strategy Options. Click the Download tab.
2. If you want to set the strategy to autorun, check the box Set autorun flag after download.
Autorun works if you insert the card and then turn on the controller; it has no effect if you insert the card
when the controller is already turned on. (If the controller is already turned on, the new strategy follows
the status of the existing strategy: if the existing strategy was running when the card was inserted, the
new strategy will run; otherwise, it will not.)
If you use background downloading, the controller will switch to the new strategy when the card is
inserted.
3. Click OK.
4. Choose one of the following:
– If you’re using PAC Terminal Secure Strategy Distribution (SSD), follow the steps in PAC Terminal SSD
Technical Note (form 1762, available with purchase of PAC Terminal SSD) to create a download file
with the file extension .ssd.
– Otherwise, compile the strategy as a Control Engine Download file (.cdf) by right-clicking the name
of the control engine in the Strategy Tree and choosing Compile Control Engine Download File from
the pop-up menu.
The file is created in the same folder as the strategy, with a .cdf extension and a filename consisting
of the strategy’s name and the control engine’s name (for example, [Link] ).
5. (Firmware below R9.4a only): Rename the .cdf or .ssd strategy file to fit the 8 dot 3 filename format for the
microSD card (see footnote 3 on page 39).
IMPORTANT: You must retain the correct file extension (.cdf or .ssd).
6. Create a directory on the card in the root and name it: strategy
Remember, if you are looking at the card in the controller, you create the strategy directory in the
sdcard0 directory. If you are looking at the card in a card reader, create the strategy directory at
the top level. The controller’s file system treats the card as a directory named sdcard0.
7. Copy the renamed strategy file to the sdcard0/strategy directory on the microSD card.
Here’s an example of a strategy file in the strategy directory, looking at the card in the controller:
Strategy file
8. If you plan to save the strategy to flash memory, delete the following files and directories if they are on
the card:
NOTE: If the controller has firmware R9.0a or newer and a loader version older than R6.0a, you cannot save the
strategy from the card to flash memory.
9. To update, run, or test the strategy, turn off the controller, put the card in, and turn the controller back on.
The controller loads the strategy from the card (verifying the signature if it is an .ssd file), switches to the
new strategy if you’re using background downloading, and runs the new strategy if you set it to autorun.
If it’s not set to autorun, you can start the strategy manually using PAC Control or PAC Terminal.
The STAT LED blinks steadily while the strategy is loading and then blinks two sets of three blinks—green
to indicate success, or red to indicate failure. When the STAT LED no longer blinks steadily, but blinks only
once every five seconds, it has finished.
10. If you want to save the strategy to flash memory, carefully insert a straightened paperclip or stiff wire into
the small hole on the controller labeled RESET. Press and hold the Reset button just until the STAT LED
turns solid green, and then immediately release the button.
The strategy is saved to flash memory. (If IP address, configuration, or firmware files are on the card, they
are also saved to flash memory.) Then the controller restarts.
11. Wait until the STAT LED blinks only once every five seconds, and then remove the card.
If you do not want anyone to be able to update firmware or strategies using a microSD/SDHC/SDXC card, you
can disable this feature in the controller. (Enabled is the default.)
1. In PAC Manager, open the Inspect window for the controller.
2. Click Other and choose Generic Read/Write from the popup menu.
3. In the Address field, type F7002200. Choose 32-bit Integer as the Type.
4. To disable firmware/strategy updates: In the Value column next to the address, type 0 (zero). Click
Apply.
5. To enable firmware/strategy updates: In the Value column, type any value other than zero and click
Apply.
Blink Codes
See “Connectors and LEDs” on page 29 for the location of LEDs.
STAT LED
The STAT LED on the top of the SNAP PAC R-series controller uses blink codes to indicate controller operation
and status conditions. The blink codes can be useful during normal operation and when troubleshooting.
• When the STAT LED steadily glows green it indicates that one or more flowcharts are running.
• When the STAT LED steadily glows orange, it means the controller is on, and either:
– There isn't any strategy in the controller, or
– The strategy in the controller is stopped, or
– The strategy in the controller has run, and no flowcharts are currently running.
If your R-series PAC has a microSD card slot, the STAT LED:
• Briefly blinks off once every five seconds when it checks to see if a card has been inserted into the card
slot.
• Rapidly blinks when it is reading or writing to the card.
For more information on microSD, see “Using the MicroSD Card” on page 39.
If the STAT LED blinks green when the controller starts up, it indicates the following:
Number Speed
of of Means
Blinks Blinks
2 fast Loading firmware from Flash memory to RAM.
5 fast Default settings have been successfully restored.
(Loader versions 5.1b and older) Entering fail-safe
7 fast bootloader mode. (See “Resetting the Controller” on
page 38.)
If the STAT LED blinks red and green alternately, it indicates the following:
Number of Speed of
Means
Blinks Blinks
(Loader versions 5.1c and newer) Entering fail-safe
(continuous) fast bootloader mode. (See “Resetting the Controller” on
page 38.)
Number Speed
of of Means Problem and Workaround
Blinks Blinks
Firmware failed to initialize
11 slow communications on Contact Product Support.
ETHERNET 1.
Firmware failed to initialize
12 slow communications on Contact Product Support.
ETHERNET 2.
13 slow Real-time clock failure Contact Product Support.
PPP LED
The programmable PPP LED must be set to PPP (the default) in order to indicate the current state of a PPP
connection. For more information on programming the PPP LED, see the PAC Manager User’s Guide
(form 1704) or the OptoMMP Protocol Guide (form 1465).
The PPP LED blink codes are as follows:
Speed
Color of
of Means
LED
Blinks
Green Solid There is a PPP connection.
Green Slow A PPP connection is being established.
Orange Solid The controller is listening on its PPP port.
PPP is disconnecting. After disconnecting, if Incoming PPP is enabled in PAC
Manager, PPP listens for incoming calls. Otherwise, PPP enters Idle state (from
Orange Slow
which it can initiate an outgoing call). To configure PPP, see the PAC Manager
User’s Guide (form 1704).
Red Slow The PPP service has been instructed to stop and is shutting down.
Off n/a The PPP connection is idle or disabled.
232 LED
Keep this window open on your screen when you call Product Support.
• Make sure the controller has been assigned a valid IP address and subnet mask. SNAP PAC R-series
controllers come from the factory with a default IP address of [Link], which is invalid. The default subnet
mask is [Link]. To assign an IP address and subnet mask, see the PAC Manager User’s Guide
(form 1704).
• Make sure that no red LEDs on the controller are lit. A red LED could indicate a voltage supply problem.
Each controller should have its own power supply. The controller needs a minimum of 5.0 VDC,
measured at the rack.
• Make sure you have up-to-date drivers installed on your computer’s Network Interface Card (NIC).
Contact your system administrator or the manufacturer of the card for help.
• Make sure you have Administrator privileges on your computer and that any firewall in the computer
(such as the built-in firewall in Windows) is temporarily disabled before you try to assign or change IP
addresses, load firmware using PAC Manager’s Maintenance window, or work with files on the controller.
BootP and FTP cannot function through a firewall in the PC. Firewalls in a router are less likely to be a
problem unless certain ports (such as FTP client) have been blocked, either by default or on purpose.
If you still cannot communicate with the controller after you have checked these items, try to reach it using
the PING protocol.
1. Choose StartProgramsAccessories and open a command prompt.
2. At the prompt, type: ping [controller’s IP address]
For example, type: ping [Link]
If the controller responds, go to “Accessing the Controller with PAC Manager” on page 56.
If the PING command cannot be found, choose StartControl PanelNetwork. Make sure TCP/IP is
configured as a protocol and that an IP address and subnet mask are assigned.
If you see the message “Destination host route not defined,” the controller probably has an
inappropriate IP address and subnet mask. Make sure the IP address and subnet mask on the controller are
compatible with those on the computer. Follow the directions beginning on page 37 to check the IP address
and subnet mask on the controller, and change them if necessary.
If you see the message “No response from host,” check the following:
• Are the computer and controller correctly connected? Is the controller turned on?
• Are the IP address and subnet mask on the controller compatible with those on the computer?
• Is the controller in reset mode? (Check for a blinking STAT LED. STAT blink codes are shown on page 52.)
If you still cannot ping the controller, contact Opto 22 Product Support (see page 5).
Once you know you can ping the controller, try to access it using PAC Manager. You will need to know the
controller’s IP address.
1. If PAC Manager is not already open, choose StartProgramsOpto 22PAC ProjectPAC Manager.
The PAC Manager main window opens:
Click to
update data
If information does not appear, contact Product Support (see page 5).
If there are recurring problems in communicating with the controller, check your network. The wires, switches,
and so on in your Ethernet network are not part of the Opto 22 hardware, but any problems in your network
may affect communication with Opto 22 products.
Create a Network Diagram. First, create a network diagram and verify the following:
Check Ethernet Errors. Next, use PAC Manager to check Ethernet errors reported by the controller. These
errors indicate network problems. You will need to know the controller’s IP address.
1. Choose StartProgramsOpto 22PAC ProjectPAC Manager.
2. In the PAC Manager main window, click the Inspect icon .
3. In the IP Address field, type the IP address of the controller. Click Status Read.
4. Scroll down until you see the items Ethernet Errors: Late Collisions, Ethernet Errors: Excessive Collisions,
and Ethernet Errors: Others.
Ethernet Errors
All three of these items should have a value of zero. If any of these items has a value other than zero, you may
have a network problem.
Analyze Communication Packets. If it appears that you have network problems, you can use the
OptoEnetSniff™ utility to log and analyze network communication packets. The utility is included with PAC
Project Basic and PAC Project Professional software suites, and is available on our website, [Link].
For help using the utility, see its online help file (choose HelpContents).
Have Your Network Certified. If you suspect network problems, you may need to have your network
professionally certified. Opto 22 does not offer network validation or certification services, but many network
hardware manufacturers do. Contact the manufacturer of your Ethernet network hardware to have them
diagnose, fix, and certify your network.
If you continue to have problems communicating with the SNAP PAC R-series controller after your network is
certified, contact Opto 22 Product Support (see page 5).
If you are having trouble communicating with the controller, it might be in fail-safe bootloader mode or
hardware test mode. The controller restarts in one of these modes if you hold down the RESET button longer
than the time needed to restore the default settings. For more information, see “Resetting the Controller” on
page 38.
TCP Settings
Retransmit timeout (RTO) refers to the length of time the controller waits while communicating before timing
out. The RTO is determined by the controller’s TCP/IP stack, and the stack continually recalculates the RTO
based on recent network traffic. If the network becomes busier, for example, the stack automatically adjusts
the RTO to a higher value.
If the TCP/IP stack times out while trying to transmit data, it doubles the current RTO and tries again. This
process continues for five retries; after that, the device stops trying and sends a timeout message.
If you are receiving frequent timeout messages from the device, you can change the TCP parameters in PAC
Manager.
1. Start PAC Manager: Click the Windows Search button and type PAC Manager <version_number>.
2. In the PAC Manager main window, click the Inspect icon .
3. In the Device Name field, type the name or IP address of the controller.
Then, click Status Write.
If you set these fields too low, you may not be able to communicate with the device at all—even through PAC
Manager—to fix the settings. Then you would have to reset the controller to factory defaults.
Initial RTO sets the RTO for the first communication try. Be careful: since all future tries are based on this
value, if you set it too low for network conditions, a connection will never be made.
TCP Retransmits sets the number of times the device retries communication. Larger, busier networks
need a higher number of retransmits than smaller networks with less traffic.
TCP idle session timeout sets how long (in milliseconds) the device allows a session to remain open
without any activity. After this time, the device checks the session to make sure it is still good, and closes
it if it is not. The default is 240,000 milliseconds, or four minutes.
5. Click the Apply button to write your changes to the controller.
6. In the Operation Commands list, highlight Store configuration to flash. Click Send Command.
7. In the Operation Commands list, highlight Restart brain from powerup. Click Send Command.
The new TCP parameters are set.
Q: I have an output module driving a load. The load turns on but never seems to turn off, unless I
remove power from the module entirely. What might be happening?
A: This issue may occur when using an output module with a high-impedance load, such as a neon lamp or a
small solenoid. Loads like these often have relatively large initial currents but relatively small “hold-in” currents.
The result is that the off-state leakage current through the module is sufficient to keep the load on, once it has
been turned on.
The solution to this issue is to place a power resistor, sized for 8–10 times the rated maximum leakage current
for the module, in parallel with the load. Make sure that this resistor has a high enough power rating for the
application.
Q: I have a new AC output driving a solenoid. It turns on once, but will not turn on again. What is
going on?
A: Some loads, like certain solenoids, some types of halogen lights, and some types of strobe lights
incorporate a diode in series with the coil or filament. This causes the load to behave as a half-wave rectifier.
Opto 22 output modules have a built-in R-C snubber circuit in parallel with the output. The capacitor in this
circuit charges up but cannot discharge through the series diode, causing a voltage to appear across the
output terminals. Because the module must see a zero voltage across the terminals to come on, it can’t turn
on again in this situation.
The solution is to find a lamp or solenoid that does not have an internal diode; a potential work-around would
be to put a high-value resistor (several tens of kilohms) across the output terminals of the module, to allow the
capacitor to drain.
Q: I have an AC output module in a circuit, wired in series (ANDed) with another contact. When that
other contact closes, my load turns on momentarily, even though my output module is off. Is my
module broken?
A: This situation arises when the output module does not see a voltage across its terminals. This occurs when
another contact is wired in series with the module, between the module and the “hot” side of the supply.
Because the module is totally isolated from field to logic, the field (or contact) side of the module must power
itself from the attached line. Because of the pilot circuit in the module, the switching semiconductor is in an
indeterminate state when there is no voltage across the module. It may turn on for up to a half cycle if it
suddenly receives power. The pilot circuit realizes that the module is on but cannot turn it off until the voltage
crosses zero again.
There is no easy solution to this issue. Typically a solution involves either maintaining a minimal voltage across
the module, pre-wetting it with a low voltage, or absorbing the energy from the half-cycle turn-on with an
R-C network in parallel with the load.
Q: Why are all four loads connected to my SNAP output module coming on when I’m activating only
one of the channels?
A: The SNAP digital output is likely connected on the wrong side of the loads. Remember that all four channels
share one fuse; thus one side of each output is common with one side of all the others. If the module is on the
wrong side of the load, any one channel is effectively connected to all four. If the output is a SNK type, try
switching to a SRC type, or vice versa. In AC applications, reverse the module wiring.
Q: I keep having failures on one channel of my SNAP output module. Why might this be happening?
A: Failures of only one of the four output channels would indicate an issue with the load being driven by that
channel. Make sure that the load characteristics, including transients, do not exceed the specifications of the
module. Also be sure that the module is properly transient protected, using either an R-C snubber (AC) or a
commutating diode (DC) across the load. Modules may also be protected through the use of transient voltage
suppressors across the module itself.
INTRODUCTION
As shown in the illustration below, a SNAP PAC R-series I/O system has a SNAP PAC R-series controller, SNAP
rack, power supply, and modules. This appendix includes wiring diagram examples for assembling your SNAP
PAC R-series controller, SNAP PAC rack, and power supply. For more information, especially for wiring
information on modules, see the data sheet and the installation or user’s guide for your specific products.
Rack
Power supply
Controller
Modules
Use these
With these racks More info
controllers
SNAP-PAC-R1
SNAP-PAC-R1-FMa SNAP-PAC-RCK4 SNAP-PAC-RCK12
SNAP-PAC-R1-Wa SNAP-PAC-RCK4-FMa SNAP-PAC-RCK12-FMa SNAP PAC Racks data
SNAP-PAC-R2a SNAP-PAC-RCK8 SNAP-PAC-RCK16 sheet (form 1684)
SNAP-PAC-R2-FMa SNAP-PAC-RCK8-FMa SNAP-PAC-RCK16-FMa
SNAP-PAC-R2-Wa
Use these
With these racks More info
controllers
SNAP-B4M SNAP-B12MC
SNAP-B8M SNAP-B12MC-P
SNAP I/O Racks data
SNAP-PAC-R1-Ba SNAP-B8MC SNAP-B16M
sheet (form 0784)
SNAP-B8MC-P SNAP-B16MC
SNAP-B12M SNAP-B16MC-P
a
OBSOLETE product, please contact Pre-Sales Engineering for more information.
In this guide, SNAP PAC mounting racks are shown in all illustrations.
SNAP PAC mounting racks can hold an I/O processor (brain or rack-mounted controller) and up to 4, 8, 12, or
16 SNAP modules. A SNAP PAC rack is shown below with a SNAP PAC R-series controller installed, but no
modules. All wiring connections are made to the field connectors on the top of each module.
SNAP PAC racks use a 5 VDC power source (5 VDC [-0.0, +0.1] at minimum 4.0 amps recommended). For
systems using AC source voltage, the SNAP-PS5 or SNAP-PS5U power supply is recommended. For DC
systems, such as those using DC backup power, the SNAP-PS5-24DC offers DC-to-DC power.
In general, we recommend you use an independent, isolated, regulated power supply locally with
each rack. Local isolated supplies offer these advantages:
• Short supply conductors, which minimize losses
• Power redundancy, so the failure of a single supply causes only a single rack failure, not a total system
failure
• Fewer voltage drops and ground loops. (Voltage drops and subsequent ground loops may occur when
power is distributed over a large system.)
Always use a separate power supply for the field side of the I/O. Using the rack supply for field actuation
and monitoring defeats the isolation the I/O module offers and therefore increases the chance of a ground
loop within the control system. Additionally, a sudden change of current on the field side can cause
undesirable voltage fluctuations that may interfere with the computer’s operation.
Both the SNAP-PS5 and the SNAP-PS5-24DC power supplies provide 5 VDC power for loads up to 4 amps. The
SNAP-PS5U provides 5 VDC for loads up to 5 amps. In most cases this power is sufficient for a SNAP processor,
a rack, and the associated I/O modules. However, some combinations of modules, especially special-purpose
modules, may require additional power. You can use the following table to help determine power needs for
your I/O units.
IMPORTANT: For a SNAP-PS5 or a SNAP-PS5-24DC power supply, the total power required must not exceed 4 amps.
For a SNAP-PS5U, the total power required must not exceed 5 amps.
Use one power supply per I/O unit. Use 14 AWG wire.
1. Mount the SNAP-PS5 or SNAP-PS5-24DC power supply so that the attached red and black power wires
will reach the + and – power terminals on the SNAP mounting rack.
2. Using the power terminals on the SNAP mounting rack, attach the red wire to the + terminal and the
black wire to the – terminal. Connect the ground terminal on the SNAP rack to ground.
3. For the SNAP-PS5 (not illustrated): Using the removable input power connector on top of the power
supply, apply 120 volts AC power between the two terminals marked “AC.” Connect the ground terminal
to ground.
4. For the SNAP-PS5U (not illustrated): Using the removable input power connector on top of the power
supply, apply 240 or 120 volts AC power between the two terminals marked “AC.” Connect the ground
terminal to ground.
5. For the SNAP-PS5-24DC (illustrated below): Using the removable input power connector on top of the
power supply, apply 24 volts DC power between the two terminals marked “±DC.” Connect the ground
terminal to ground.
The white and red wire is the positive wire (24 VDC). The white and black wire is the negative wire (24
VDC return).
2. If you are wiring directly to the module, see the wiring diagram for the specific module you are using.
Examples for an input module are shown in the following diagrams.
SNAP-PS24
In this diagram, the SNAP-PS24 power supply supplies power directly to the input module. The SNAP-PS5
supplies power to the rack.
SNAP-PS24U
Here, the SNAP-PS24U power supply supplies power directly to the input module. The SNAP-PS5U
supplies power to the rack.
C D
data
cable
delivering to databases, 19
crossover, 22
microSD card, 39
clamping, 32
data, accessing via API, 4
communicating with controller
developers, 4
peer-to-peer, 18
dial-up networking
pinging the controller, 56
configuring, 11
problems with, 55
digital input modules
via modem, 12
troubleshooting, 60
communication
digital output modules
choosing methods, 15
troubleshooting, 60
Ethernet, 1
digital point features, 31
serial, 2, 32
direct connection, 22
simultaneous, 14
with controller, 13
with enterprise systems, 19
I N
network
I/O, 2
architecture, 22
I/O modules
architecture diagrams, 23
installing, 7
certification, 58
removing, 9
Ethernet errors, 58
I/O point
independent, 23
features, 31
modem communication, 23
R
rack for I/O modules, installing, 7
removable storage, 39
removing I/O modules, 9
replacing controller, 43
RESET button, 38, 59
RESTful API, 4
restore default settings, 38
retransmit timeout (RTO), 59
RS-232 port, 29
S
scaling, 32
Scratch Pad areas, 19
sdcard0, 41