NX Ocs Hardware: User Manual For
NX Ocs Hardware: User Manual For
NX Ocs Hardware: User Manual For
HE-NX220, HE-NX221,
HE-NX250, HE-NX251,
SmartStack, SmartStix
NX OCS
Hardware
PREFACE
Copyright (C) 2005 Horner APG, LLC., 640 North Sherman Drive Indianapolis, Indiana 46201. All rights
reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval
system, or translated into any language or computer language, in any form by any means, electronic,
mechanical, magnetic, optical, chemical, manual or otherwise, without the prior agreement and written
permission of Horner APG, Inc.
All software described in this document or media is also copyrighted material subject to the terms and
conditions of the Horner Software License Agreement.
Information in this document is subject to change without notice and does not represent a commitment on
the part of Horner APG.
Europe:
(+) 353-21-4321-266
www.horner-apg.com
email: techsupport@hornerirl.ie
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 4 23 MAY 2005 PREFACE
MAN0781-02
In no event, whether as a result of breach of contract, warranty, tort (including negligence) or otherwise, shall HE-
APG or its suppliers be liable of any special, consequential, incidental or penal damages including, but not limited to,
loss of profit or revenues, loss of use of the products or any associated equipment, damage to associated equipment,
cost of capital, cost of substitute products, facilities, services or replacement power, down time costs, or claims of
original purchaser's customers for such damages.
To obtain warranty service, return the product to your distributor with a description of the problem, proof of
purchase, post paid, insured and in a suitable package.
Note: The programming examples shown in this manual are for illustrative
purposes only. Proper machine operation is the sole responsibility of the
system integrator.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PREFACE 23 MAY 2005 PAGE 5
MAN0781-02
Table of Contents
CHAPTER 1 : INTRODUCTION .................................................................................................................. 7
1.1 Scope.............................................................................................................................................. 8
1.2 NX Models ...................................................................................................................................... 8
1.2.1 Product Description ................................................................................................................. 8
1.2.2 Cscape Software ..................................................................................................................... 9
1.3 NX OCS Specifications................................................................................................................. 10
1.4 NX OCS Resources...................................................................................................................... 10
1.4.1 Overview................................................................................................................................ 10
1.4.2 Resource Limits..................................................................................................................... 11
1.4.3 Resource Definitions ............................................................................................................. 12
1.5 References ................................................................................................................................... 18
1.6 Technical Support......................................................................................................................... 18
CHAPTER 2 : GENERAL INSTALLATION / SAFETY (NX OCS)............................................................ 19
2.1 Safety............................................................................................................................................ 19
2.2 Mounting Requirements ............................................................................................................... 20
2.2.1 Mounting Procedures (Installed in a Panel Door) ................................................................. 20
2.2.2 NX OCS Mounting Clips (Standard and NEMA and IP65 Washdown)................................. 21
2.2.3 NX OCS Mounting Orientation .............................................................................................. 22
2.3 Factors Affecting Panel Layout Design and Clearances .............................................................. 22
2.3.1 Panel Layout Design and Clearance Checklist: .................................................................... 24
2.4 Ports, Connectors, Cables, and Wiring ........................................................................................ 24
2.4.1 Primary Power Port / Grounding ........................................................................................... 24
2.4.2 Primary Power Port ............................................................................................................... 25
2.4.3 CAN Network Port and Wiring............................................................................................... 25
2.4.4 RS-232 Port / RS-485 Port.................................................................................................... 29
2.4.5 Modem Setup ........................................................................................................................ 32
2.5 NX LEDs ....................................................................................................................................... 33
2.5.1 LEDs...................................................................................................................................... 33
2.6 Battery Replacement .................................................................................................................... 33
CHAPTER 3 : NX OCS.............................................................................................................................. 35
3.1 General ......................................................................................................................................... 35
3.2 Dimensions ................................................................................................................................... 35
3.3 Panel Cut-Out ............................................................................................................................... 36
3.4 Ports and Connectors................................................................................................................... 37
CHAPTER 4 : CONFIGURATION - SYSTEM MENU (NX)....................................................................... 39
4.1 General ......................................................................................................................................... 39
4.2 Navigating Through the System Menu ......................................................................................... 39
4.3 Editing System Menu Screen Fields............................................................................................. 39
4.4 Initial System Menu Screens and Self-Test ................................................................................. 40
4.5 Entering the System Menu ........................................................................................................... 40
4.6 System Menu Option Screens...................................................................................................... 40
CHAPTER 5 : KEYPAD AND SCREEN.................................................................................................... 47
5.1 Remote Screen and Keypad Capability ....................................................................................... 47
5.1.1 Cscape Status Bar ................................................................................................................ 47
5.1.2 Establishing Communications using the Remote Text Terminal........................................... 48
5.2 NX Description.............................................................................................................................. 48
5.3 User Screens ................................................................................................................................ 49
CHAPTER 6 : SMARTSTACK .................................................................................................................. 51
6.1 General ......................................................................................................................................... 51
6.2 Preliminary Configuration Procedures.......................................................................................... 51
CHAPTER 7 : SMARTSTIX I/O .................................................................................................................. 57
7.1 General ......................................................................................................................................... 57
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 6 23 MAY 2005 PREFACE
MAN0781-02
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 7
MAN0781-02
CHAPTER 1: INTRODUCTION
Low Cost
High Performance
Built-In I/O Options
Complete SmartStack I/O and SmartStick Remote I/O Options
Requires little space.
Easy to install
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 8 23 MAY 2005 CH.1
MAN0781-02
1.1 Scope
This manual covers the specifications, installation, and configuration procedures for following products.
* Note: You need to order plastic SmartStack modules (HE- prefix) with all NX models.
1.2 NX Models
The NX OCS provides controller, networking, I/O, graphical and operator interface capabilities in one unit
using a highly visual, NX display screen. All NX OCS models can be used in CsCAN networks. Models
are also available that can be used in Ethernet networks.
NX OCS models have Serial and CAN (Controller Area Network) communication abilities. The units
contain an RS-232 port for programming/debugging, monitoring and network administration from an IBM-
compatible PC.
NX OCS features include CsCAN (pronounced see-scan) peer-to-peer network. CAN-based network
hardware is used in the controllers because of CANs automatic error detection, ease of
configuration, low-cost of design and implementation and ability to operate in harsh
environments. CsCAN networking abilities are built-in to the NX OCS and require no external or
additional modules.
When several NX OCS models are networked together to achieve a specific purpose, the system acts like
a large parallel-processing controller.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 9
MAN0781-02
The NX OCS combines several desirable functions in one compact package. Each unit is a highly
integrated operator interface and controller with expandable I/O and networking capabilities have
standard features consisting of the following:
24 VDC powered
SmartStack I/O Expansion
SmartStix Remote I/O
RS-232 / RS-485 Serial Ports
Integrated Bezel
Real-Time Clock
Flash Memory for easy field upgrades.
Compact Flash Memory for program downloads.
System Key and Configurable Function Keys.
The NX OCS features the ability to pass through programming commands. When attached to an NX
OCS serial port, a programming package (i.e., Cscape) can access other NX units or any other OCS unit
connected to a CsCAN network by passing the programming command through the serial port to the
network port. One Cscape package (connected to one NX OCS unit) can program all NX OCS or other
NX units on the CsCAN network.
After making a physical serial connection to one NX OCS, the user must indicate which node is to be
connected (called the TARGET). After that, Cscape and the NX OCS automatically provide the pass
through connection.
Cscape Software (pronounced see-scape) is used with the NX OCS products (Part # HE500OSW232).
Cscape stands for Control Station Central Application Programming Environment. The Windows-based
software package is easy to use and aids in the integration of a CAN-based Distributed Control System.
The program is used for configuring controllers. Cscape is also used for programming NX OCS ladder
logic, programming user displays for the NX OCS, configuring the network for global digital and analog
data, setting system-wide security and monitoring controllers in the system. Provided there is one serial
connection to one node on the network (i.e., CsCAN Network), the operator has control over the entire
system. The operator can upload, download, monitor and debug to any node on the network.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 10 23 MAY 2005 CH.1
MAN0781-02
1.4.1 Overview
This section defines the resource limits that a programmer needs to know when writing a program using
the NX OCS. The NX OCS combines operator interface (display and keypad), local and remote I/O
(analog and digital), networking, and controller, into a single product. In addition, the NX OCS has
graphical capabilities.
The controller portion of the NX OCS products is programmed in ladder logic via the Windows-based
Cscape (Control Station Central Application Programming Environment) package. Each NX OCS
provides a set of resources for use by the ladder logic control program.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 11
MAN0781-02
Table 1.3 shows the resources available in the NX OCS. Note that although each register type inherently
consists of either 1-bit or 16-bit registers, all registers can be accessed via User Screens and/or Ladder
Code as 1, 8, 16 or 32-bit values or as ASCII character strings.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 12 23 MAY 2005 CH.1
MAN0781-02
System Registers
System Registers (%S and %SR) are used to store general NX OCS status information. This information
is used internally, and is also available to the operator via the System Menu, using the NXs display and
keypad. The System Registers are also available for User Screens and can be accessed by Ladder
Code.
1. %S Registers
%S Registers are 1-bit memory locations containing system status information, which are implemented as
shown in Table 1.4:
2. %SR Registers
%SR Registers are 16-bit memory locations, containing system status information, implemented as
shown in Table 1.5.
Note: Where 2 %SRs are combined to make a 32-bit value, the lower numbered %SR is the low word,
while the higher numbered %SR is the high word.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 13
MAN0781-02
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 14 23 MAY 2005 CH.1
MAN0781-02
User Registers
User Registers (%T, %M and %R) are used to store application-specific OCS or RCS data. This data can
be accessed via User Screens and/or by Ladder Code.
a. %T Register
b. %M Registers
A %M Register is a retentive 1-bit memory location used to store application-specific state information.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 15
MAN0781-02
c. %R Registers
HMI Registers
HMI Registers (%K and %D) give the user access to the OCS or RCS keypad and display.
The MiniOCS, OCS1XX and OCS2XX have membrane keypads and text-based LCD displays, allowing
the operator to enter and display general and application-specific information. This same information can
be entered and displayed via a remote PC, using Cscapes Remote Display Terminal function, if the PC is
connected as a CsCAN Host device. The RCS does not have a local keypad or display, but it still
supports Cscapes Remote Display Terminal function. The OCS250 has a membrane keypad and a
graphics-based LCD display, but it does not yet support the Cscape Remote Display Terminal function.
a. %K Registers
A %K Register is a non-retentive 1-bit memory location (contact), used to store the state of a function key
on the NXs keypad. If the function keys are set for momentary mode, a function keys associated %K
register will be ON as long as the function key is pressed. If the function keys are set for toggle mode, a
function keys associated %K register will toggle each time the function key is pressed.
b. %D Registers
A %D Register is a non-retentive 1-bit memory location (coil), which can be turned ON by Ladder Code to
cause the corresponding User or Alarm Screen to be displayed.
c. User Screens
A User Screen is a combination of fixed text or graphics, along with variable Data Fields (called Graphics
Objects in the OCS250), which together fill the LCD display screen. These screens are defined via
Cscape dialogs and are then downloaded and stored into the NXs Flash memory. User Screens can be
selected for display by operator entries on the keypad or by Ladder Code.
d. Data Fields
A Data Field is an area on a User Screen where variable data is displayed and edited. The source data
for a Data Field can be any of the NXs Register resources as defined above. The field size and display
format is programmable via Cscape dialogs.
e. Text Tables
A Text Table is a list of Text Items, which can be used in a Data Field, to display descriptive words and
phrases to describe the value of a Register, instead of displaying numeric values. A simple example of
this, would allow the strings OFF and ON to be displayed, instead of 0 and 1, to describe the state of
the %I4 digital input. The maximum number of Text Tables and Text Items per Text Table is shown in
Table 1, but the number can be further limited by overall User Screen memory usage.
SmartStack I/O Registers (%I, %Q, %AI and %AQ) give the user access to the SmartStack I/O Module
data. This data can be accessed via User Screens and/or by Ladder Code.
a. %I Registers
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 16 23 MAY 2005 CH.1
MAN0781-02
A %I Register is a 1-bit memory location, which is normally used to store the state of one of the digital
inputs associated with a SmartStack I/O module. When used in this way, %I registers are non-retentive.
All extra %I registers, which are not associated with SmartStack inputs, are retentive, and can be used
just like %M registers.
b. %Q Registers
A %Q Register is a non-retentive 1-bit memory location, which is normally used to store the state of one
of the digital outputs associated with a SmartStack I/O module.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 1 23 MAY 2005 PAGE 17
MAN0781-02
c. %AI Registers
A %AI Register is a 16-bit memory location, which is normally used to store the value of one of analog
inputs associated with a SmartStack I/O module. When used in this way, %AI registers are non-retentive.
All extra %AI registers (which are not associated with SmartStack inputs) are retentive and can be used
just like %R registers.
d. %AQ Registers
A %AQ Register is a non-retentive 16-bit memory location, which is normally used to store the value of
one of the analog outputs associated with a SmartStack I/O module.
Local: Up to 4 SmartStack I/O Modules can be plugged into an OCS or RCS, to provide local digital
and analog I/O, and/or intelligent I/O, such as ASCII-Basic, High-Speed Counter, Stepper
Motor Indexer, Power Monitor and Ethernet communication.
Remote: In addition to local I/O modules, up to 20 remote SmartStack I/O Modules can be connected to
an OCS or RCS using five Fiber Optic Bases, which each contain four I/O slots. If a remote I/O
connection is desired, the SmartStack FOX100 module must occupy the local OCS110 / 210/
250 / or RCS250 Slot 1 position.
Note: Fiber Optic Base modules include the FOX104 and FOX404.
Global Data I/O Registers (%IG, %QG, %AIG and %AQG) give the user access to the Network Ports
Global I/O data. This data can be accessed via User Screens and/or by Ladder Code.
a. %IG Registers
A %IG Register is a retentive 1-bit memory location, which is normally used to store a global digital state
obtained from another NX/controller on the network.
b. %QG Registers
A %QG Register is a retentive 1-bit memory location, which is normally used to store a digital state to be
sent as global data to the other NX on the network.
c. %AIG Registers
A %AIG Register is a retentive 16-bit memory location, which is normally used to store a global analog
value obtained from another NX/controller on the network.
d. %AQG Registers
A %AQG Register is a retentive 16-bit memory location, which is normally used to store an analog value
to be sent as global data to the other NX/controllers on the network.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 18 23 MAY 2005 CH.1
MAN0781-02
e. Network Port
The CsCAN Network is based on the Bosch Control Area Network (CAN), and implements the CsCAN
Protocol which is designed to take maximum advantage of the global data broadcasting capability of
CAN. Using this network protocol, up to 64 NX/controllers can be linked without repeaters, and up to 253
NX/controllers can be linked by using 3 repeaters. For more information regarding CsCAN Protocol,
refer to the CsCAN Protocol Specification document.
Ladder Code
The Ladder Code, stores ladder instructions generated by Cscape. This Ladder Code is downloaded and
stored into the NXs Flash memory, to be executed each controller scan, when the controller is in RUN
mode.
1.5 References
For further information regarding products covered in this manual, refer to the following references:
See Technical Support in the next section of this document for the web site address to download
references and obtain revised editions.
a. Cscape Programming and Reference Manual (MAN0313) Topics in this manual have been
selected to assist the user through the programming process. It also covers procedures for
creating graphics.
b. SmartStack Ethernet Module User Manual (SUP0341) Covers the SmartStack Ethernet
Module for use in Ethernet networks.
d. SmartStack Modules User Manual Each SmartStack comes with its own datasheet covering
specifications, wiring, and configuration.
e. SmartStix User Manual Each SmartStix comes with a datasheet covering specifications, wiring,
and configuration. When choosing SmartStix datasheets on the web, be sure to select SmartStix
documents created for the network being used such as CsCAN or Ethernet.
For manual updates and assistance, contact Technical Support at the following locations:
North America:
(317) 916-4274
www.heapg.com
email: techsppt@heapg.com
Europe:
(+) 353-21-4321-266
www.horner-apg.com
email: techsupport@hornerirl.ie
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 19
MAN0781-02
2.1 Safety
WARNING: To avoid the risk of electric shock or burns, always connect the safety (or earth)
ground before making any other connections.
WARNING: To reduce the risk of fire, electrical shock, or physical injury it is strongly
recommended to fuse the voltage measurement inputs. Be sure to locate fuses as close to the
source as possible.
WARNING: Replace fuse with the same type and rating to provide protection against risk of
fire and shock hazards.
WARNING: In the event of repeated failure, do not replace the fuse again as a repeated failure
indicates a defective condition that will not clear by replacing the fuse.
WARNING: Only qualified electrical personnel familiar with the construction and operation of
this equipment and the hazards involved should install, adjust, operate, or service this
equipment. Read and understand this manual and other applicable manuals in their entirety
before proceeding. Failure to observe this precaution could result in severe bodily injury or
loss of life.
All applicable codes and standards need to be followed in the installation of this product.
For I/O wiring (discrete), use the following wire type or equivalent: Belden 9918, 18 AWG or
larger.
Adhere to the following safety precautions whenever any type of connection is made to the module.
Connect the green safety (earth) ground first before making any other connections.
When connecting to electric circuits or pulse-initiating equipment, open their related breakers. Do
not make connections to live power lines.
Make connections to the module first; then connect to the circuit to be monitored.
Route power wires in a safe manner in accordance with good practice and local codes.
Wear proper personal protective equipment including safety glasses and insulated gloves when
making connections to power circuits.
Ensure hands, shoes, and floor are dry before making any connection to a power line.
Make sure the unit is turned OFF before making connection to terminals. Make sure all circuits
are de-energized before making connections.
Before each use, inspect all cables for breaks or cracks in the insulation. Replace immediately if
defective.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 20 23 MAY 2005 CH. 2
MAN0781-02
Note: The following instructions apply to all NX OCS models. The NX25x is depicted as an example.
The NX OCS is designed for permanent panel mounting. To install the NX OCS, follow the instructions
below.
1. Prior to mounting the NX OCS, observe requirements for the panel layout design and adequate
clearances. (A checklist is provided on page 24.)
2. Cut the host panel. Per the specifications of Figure 2.1 and Figure 2.1 carefully prepare the panel
cutout. Make sure the corners of the cutout are square and free from burrs. (Panel cut-outs and
dimensions are found Chapter 3.)
3. Insert the NX OCS through the panel cutout (from the front). The gasket material needs to lie between
the host panel and the NX OCS panel.
Caution: Do not force the OCS into the panel cutout. An incorrectly sized panel cutout damages
the unit.
4. Install and tighten the mounting clips (provided with the NX OCS) until the gasket material forms a
tight seal. Place the OCS in the panel cutout. Secure the unit as shown in Figure 2.3 using the four
(4) supplied mounting clips. Figure 2.4 shows the possible clamping locations (10 possible), and the
locations recommended for most applications. For NEMA 4/4X washdown applications, the
optional accessory kit HE-ACC006 is required. This kit includes six additional mounting clips so
that all mounting locations can be secured to provide an optimum seal against leaking.
4. Before commissioning, carefully remove the protective, plastic sheet from the front of the unit and
discard it. The protective, transparent sheet is only provided to protect the display window until
installed.
5. Connect cables as needed such as communications, programming, power and fiber optic cables to the
NX OCS ports using the provided connectors.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 21
MAN0781-02
2.2.2 NX OCS Mounting Clips (Standard and NEMA and IP65 Washdown)
Figure 2.2 shows locations for four standard mounting clips and also six additional clips contained in
optional accessory kit HE-ACC006, which is required for NEMA 4/4X or IP65 washdown applications.
CF
KEY
RXM TX
TXM
RXC
F
SWM
SMARTSTACK I
B
E
Additional clip locations R
SWC
RX
FBD
MJ1
TRC
FDB
IN2 OUT2 0V
TX+ TX- RX+ RX- TXD TTL
CN1 PORT 1 I/O PORT LAN NET1 NET2
Figure 2.2 Locations for 10 Mounting Clips for Optimum Seal Against Leaking
(Optional accessory kit HE-ACC006 required for NEMA 4/4X or IP65 washdown applications)
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 22 23 MAY 2005 CH. 2
MAN0781-02
NOTE: There are NO orientation restrictions on the NX OCS. However, the above orientation provides for optimum
readability of the screen and ease of use of the keypad.
Warning: It is important to follow the requirements of the panel manufacturer and to follow
applicable electrical codes and standards.
The designer of a panel layout needs to assess the requirements of a particular system and to consider
the following design factors. A convenient checklist is provided on page 24.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 23
MAN0781-02
Install devices to allow sufficient clearance to open and close the panel door. Note that the NX OCS is
mounted on a panel door and the NX OCS is mounted in a panel box.
Table 2.1 Minimum Clearance Requirements for Panel Box and Door
Minimum Distance between base of device and sides of
cabinet 2 inches (50.80mm)
b. Grounding
Warning: Be sure to meet the ground requirements of the panel manufacturer and also meet
applicable electrical codes and standards.
Panel box: The panel box needs to be properly connected to earth ground to provide a good common
ground reference.
Panel door: Tie a low impedance ground strap between the panel box and the panel door to ensure that
they have the same ground reference.
c. Temperature / Ventilation
Ensure that the panel layout design allows for adequate ventilation and maintains the specified ambient
temperature range. Consider the impact on the design of the panel layout if operating at the extreme
ends of the ambient temperature range. For example, if it is determined that a cooling device is required,
allow adequate space and clearances for the device in the panel box or on the panel door.
d. Orientation
There are no orientation restrictions on the NX OCS. However, the orientation shown in Figure 2.3
provides for optimum readability of the screen and ease of use of the keypad.
e. Noise
Consider the impact on the panel layout design and clearance requirements if noise suppression devices
are needed. Be sure to maintain an adequate distance between the NX OCS and noisy devices such as
relays, motor starters, etc.
Note: Fiber Cables can be routed in the same conduit as the power wires.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 24 23 MAY 2005 CH. 2
MAN0781-02
____Meets the electrical code and applicable standards for proper grounding, etc.?
____Is the panel box properly connected to earth ground? Is the panel door properly grounded? Has the
appropriate procedure been followed to properly ground the devices in the panel box and on the
panel door?
____Are minimum clearance requirements met? (See Table 2.1.) Can the panel door be easily opened
and closed? Is there adequate space between device bases as well as the sides of the panel and
wiring ducts?
____Is there adequate ventilation? Is the ambient temperature range maintained? Are cooling or heating
devices required?
____Are noise suppression devices or isolation transformers required? Is there adequate distance
between the base of the NX OCS and noisy devices such as relays or motor starters? Ensure that
power and signal wires are not routed in the same conduit.
____Are there other requirements that impact the particular system, which need to be considered?
The NX has a multitude of connections on the rear of the unit. Figure 2.5 shows the locations of the most
commonly used connectors used during installation.
+24V
MIN. 9V dc. +24V
MAX. 35V dc.
0V 0V
CF
RXM
TX
TXM
RXC
TXC
1 Note:
SWM
F
This pin-out SMARTSTACK I
B
E
covers Port
R
SWC
MJ1. RX
TRC
IN2 OUT2 0V
PORT MJ1 TX+ TX- RX+ RX- TXD
CN1 PORT 1
TTL
I/O PORT LAN NET1 NET2
CSCAN
SHIELD
CAN_H
CAN_L
CN1 PORT 1
NET1
001NX002-R1
Figure 2.5 Connectors and Ports
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 25
MAN0781-02
9-36vdc Supplied
supply
-
+ ferrite
-+
PIN 1
PIN 2
PIN 3
001NX002
a. Network Connector
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 26 23 MAY 2005 CH. 2
MAN0781-02
1 2 3 4 5
1 2 3 4 5
Figure 2.8 Network Connector (CAN Port) Figure 2.9 As viewed looking at the NX
Note: To optimize CAN network reliability in electrically noisy environments, the V- CAN Ground needs
to be isolated from the primary input power supply ground.
b. Wiring
SHIELD
SHIELD
SHIELD
SHIELD
CN_H
CN_H
CN_H
CN_H
CN_L
CN_L
CN_L
CN_L
V+
V+
V+
V+
V-
V-
V-
V-
121 121
+
12-25VDC
-
SHIELD
SHIELD
SHIELD
SHIELD
CN_H
CN_H
CN_H
CN_H
CN_L
CN_L
CN_L
CN_L
V+
V+
V+
V+
V-
V-
V-
V-
121
BLK BLK
SHIELD
WHT
WHT
RED
RED
121
BLU
BLU
BLK
BLK
BLU BLU
WHT WHT
RED RED
SHIELD SHIELD
-
+
12-25VDC
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 27
MAN0781-02
Note: To optimize CAN network reliability in electrically noisy environments, the CAN power
supply needs to be isolated (dedicated) from the primary power.
1. Wire the CAN network in a daisy-chained fashion such that there are exactly two physical end-
points on the network.
2. The two nodes at the physical end-points need to have 121 ohm 1% terminating resistors
connected across the CN_L and CN_H terminals.
3. Use data conductors (CN_L and CN_H) that are 24 AWG shielded twisted pair for thin cable and
22 AWG shielded twisted pair for thick cable. They must also have 120-ohm characteristic
impedance. In typical industrial environments, use a Belden wire #3084A (thin). Use #3082A
(thick) for network cable lengths greater than 100 meters environments where noise is a concern.
Place data conductors (CN_L and CN_H) into a twisted pair together.
4. Use power conductors (V- and V+) that are 18 AWG twisted-pair for thin cable and 15 AWG
twisted-pair for thick cable. Place power conductors (V- and V+) into a twisted pair together.
5. If local codes require the local CAN power supply to be earth grounded, connect the V- power
conductor to a good earth ground at one place only on the network, preferably at a physical
endpoint. If multiple power supplies are used, only one power supply must have V- connected to
earth ground. The remaining power supplies need to be isolated.
6. For a section of cable between two nodes, the cable shield is connected to the cable shield input at
one end of the cable only.
7. A CAN network (without repeaters) is limited to 64 nodes (with 63 cable segments) with a maximum
combined cable length of 1500 ft. at 125KBaud.
8. Up to four CAN network segments, which adhere to the above rules, may be connected together
using three CAN repeaters. In this manner, a CAN network may be extended to 253 nodes with a
total cable distance of 6000 ft. at 125KBaud.
d. CsCAN Cable
Cabling is available in a variety of current-carrying capacities. On a CsCAN fieldbus every device must,
at least, power its network transceivers from the network power supply. Some devices draw all of their
power from the network supply. In CsCAN thick and thin cable is used as indicated:
1. Thick cable: Use for long distances and more power. Usually used for Trunk cable.
2. Thin cable: Use for shorter distances. Usually used for drop cables or where cable flexibility is
needed.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 28 23 MAY 2005 CH. 2
MAN0781-02
e. Bus Length
Several factors affect the maximum length of the bus including the accumulated length of drop lines,
cable type, transfer rate and the number of drop lines. Although a branch is limited to one network per
drop, it can have multiple ports. A branch can not exceed 6 meters.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 29
MAN0781-02
1. A power supply of 24VDC (4%) at 16A maximum is required for use in a CsCAN network
2. With thick cable, a single network segment can have a maximum of 8A. To do this, the power supply
needs to be located in the center of two network segments.
3. Thin cable has maximum of 3A.
4. To ground the cable shield, connect to pin 3 as shown in Figure 2.10.
5. If local codes require the local CAN power supply to be earth grounded, connect the V- power
conductor to a good earth ground at one place only on the network, preferably at a physical endpoint.
If multiple power supplies are used, only one power supply must have V- connected to earth ground.
The remaining power supplies need to be isolated.
The HE200CGM100 (CGM100) is an intelligent CAN network isolating repeater. The following guidelines
are provided for using the CGM100. For additional information, refer to MAN0008. In a typical CAN
network, each device is assigned a unique CAN node address (ID) to arbitrate network communication.
Depending on the application protocol used, these IDs are assigned in the range of 0 to 253. Therefore,
up to 254 devices may be logically attached to a CAN network.
However, the use of standard CAN transceiver chips limits the number of physically attached devices to
64. Thus, to reach the logical limit of 254 devices, up to three smart CAN repeaters are used to connect
groups of devices together. A CAN network (without repeaters) is usually limited to a maximum cable
length of 1,500 feet (assuming a Baud rate of 125 kHz). With repeaters, this limit can be extended to
6,000 ft.
Using CGM100s 1000V isolation virtually eliminates problems associated with ground potential
differences that are inherent in long cable drops on many local area networks.
The NX features two active serial ports, accessible through three connectors. Port 1 and MJ1 share
internal OCS circuitry. These two ports can NOT be used simultaneously. Port CN1 has independent
circuitry, and can be used simultaneously to either Port 1 or MJ1.
Note: In certain applications, both Port 1 and MJ1 can be used, but the OCS application program must
select the port which is active at any given time. Table 2.5 shows the three port connectors and the
functions supported by each.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 30 23 MAY 2005 CH. 2
MAN0781-02
SHIELDED MULTI-CONDUCTOR
OCS
RS-232 9-PIN PC
DCD 1 1 DCD
RXD 2 2 RXD
TXD 3 3 TXD
DTR 4 4 DTR
GND 5 5 GND
DSR 6 6 DSR
RTS 7 7 RTS
CTS 8 8 CTS
RI 9 9 RI
DE-9P DE-9S
15.24 METERS MAX
MALE FEMALE
(50 FEET MAX)
Note: For baud rates greater than 9600 baud, a shorter cable may be required.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 31
MAN0781-02
6 7 8 9 10
1 2 3 4 5
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 32 23 MAY 2005 CH. 2
MAN0781-02
A modem can be used for remote communications between a computer (using Cscape Software) and the
NX OCS. The modem must operate at 9600 baud or higher.
PC Modem Modem NX
Telephone Telephone
System System
a. Setup
Setup the modems to match the default serial port characteristics of the NX OCS.
9600 baud
8 data bits
No parity
1 stop bit
disable error checking
disable compression
b. Cable Wiring
NX MODEM
9-PIN 25-PIN
DCD
TXD RXD
RXD TXD
DTR
GND GND
N/C DSR
CTS N/C RTS
RTS N/C CTS
N/C RI
The wire type used is not overly critical except where the length of the cable must be between 30 and 50
feet (10 to 15 meters). In all cases, the cable must be shielded multi-conductor with conductors of at
least 20 gauge. The length of the cable must be as short as possible, and in no case, longer than 50 feet
(15 meters).
The modem must be located as close as possible to the NX OCS, preferably less than one meter.
However, EIA-232 specifications allow for cable runs up to 50 feet (15 meters). If cable lengths longer
than 30 feet (10 meters) are required, a special low capacitance cable must be used.
Warning: To connect a modem to the NX OCS the controller to modem cable must be constructed or
purchased. Using a Null Modem cable can cause damage to the NX OCS, modem or both.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 2 23 MAY 2005 PAGE 33
MAN0781-02
c. Recommended Modem
Selection of a telephone modem for use with the OCS is highly dependent on environment. For a
relatively benign, low-noise environment, an off-the-shelf external modem like a U.S. Robotics Sportster
Modem may work well. For a more industrial environment, however, it is appropriate to use a telephone
modem designed for that environment. Check with Technical Support for the availability of an industrial
modem from Horner APG (page 18). Other manufacturers such as Datalinc have models, which have
been known to work in more harsh environments at a higher cost. If a modem is used which is not
appropriate for the environment, there may be little that can be done to correct the situation other
than change to a more appropriate model.
For detailed information regarding the use of modems with NX products, contact Technical Support (page
18). You can also find specific application information (cabling, modem commands, etc.) in the Cscape
Help file as well.
2.5 NX LEDs
2.5.1 LEDs
RUN and OK LEDS are physically located on the front panel of the NX OCS. (Refer to Figure 4.1.)
Physical CAN OK, and FIBER OK LEDs can be viewed on the back of the NX OCS next to the fiber optic
connectors.
Warning: Disposal of lithium batteries must be done in accordance with federal, state, and local
regulations. Be sure to consult with the appropriate regulatory agencies before disposing batteries. In
addition, do not re-charge, disassemble, heat or incinerate lithium batteries.
Warning: Do not make substitutions for the battery. Be sure to only use the authorized part number
to replace the battery.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 34 23 MAY 2005 CH. 2
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 3 23 MAY 2005 PAGE 35
MAN0781-02
CHAPTER 3: NX OCS
3.1 General
Chapter Three covers information specific to the NXxxx. Refer to Chapter Two for general installation
/safety information.
The Horner NX Series OCS is a cost effective family of high performance all-in-one controllers. The NX
features an advanced control engine, operator interface, local and remote I/O capabilities, and a variety of
communications options. The NX is extremely versatile, adept at a variety of factory automation
functions. The NX can be used to perform advanced machine control, factory machine monitoring, RTU-
type functions and much more. The NX is designed with backlit, LCD displays (pixel based), including
128x64 and 240x128 models.
3.2 Dimensions
001NX003
Figure 3.1 Dimensions for the NX (NX25x is shown but dimensions apply to all NX Models)
(Left figure shows side-view of NX with 4 SmartStack Modules attached.)
(Right figure shows front view.)
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 36 23 MAY 2005 CH. 3
MAN0781-02
131.00mm
(5.1614)
202.50mm
(8.0376) 001NX001
For NEMA 4/4X washdown applications, the optional accessory kit HE-ACC006 is required. See
Mounting Procedures in Chapter 2. This kit includes six additional mounting clips so that all mounting
locations can be secured to provide an optimum seal against leaking.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 3 23 MAY 2005 PAGE 37
MAN0781-02
The NX has a multitude of connections on the rear of the unit. Figure 3.3 shows the locations of the most
commonly connectors used during installation.
+24V
MIN. 9V dc. +24V
MAX. 35V dc.
0V 0V
CF
RXM
TX
TXM
RXC
TXC
SWM
Note:
F
This pin-out SMARTSTACK I
B
E
covers Port
R
SWC
MJ1. RX
TRC
SHIELD
IN1 OUT1 24V
CAN_H
CAN_L
RX- TX- 0V RXD MODULES (NET2) SEE THE RUN
ASSOCIATED USER MANUAL
V+
GND RXD SHIELD
IN1 OUT1 EXT
V-
IN2 OUT2 0V
PORT MJ1 TX+ TX- RX+ RX- TXD
CN1 PORT 1
TTL
I/O PORT LAN NET1 NET2
CSCAN
SHIELD
CAN_H
CAN_L
GND RXD SHIELD
V+
V-
TX+ TX- RX+ RX- TXD
CN1 PORT 1
NET1
001NX002-R1
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 38 23 MAY 2005 CH. 3
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 4 23 MAY 2005 PAGE 39
MAN0781-02
The System Menu is used to access and edit information using the NX front panel.
Prior to configuration, it is important to understand how to navigate through the System Menu using the
following guidelines. After performing the System key sequence (press up and down arrows
simultaneously) on the front panel of the NX, the System Menu main screen appears. It contains a list of
options. (See Figure 4.1.)
1. Press the and keys to scroll up or down through the menu options. Press Enter.
2. A screen appears containing one or more parameter names. If the parameter is editable, the
parameter name is highlighted. Press Enter.
3. The parameter value field is highlighted. Use the and keys or numeric keys to edit the
parameter value.
4. If multiple parameters are available for editing, use the and keys to scroll through parameters.
5. While in a system screen, press ESC (if not currently modifying a field) to return to the main
System Menu. It may be necessary to press ESC more than one time to return to the main
System Menu screen.
Prior to configuration, it is important to know how to edit the System Menu screen fields using the
following guidelines.
1. There are two types of fields; Property Fields and Value Fields.
A Property Field is highlighted
Saver Enable No Value Fields allow a
when selected using the arrow
property value to be
keys. A Property Field indicates Timeout (min) 15
edited.
the name of a property - it is not
editable.
2. To change a value in an editable field, press the Enter key to select Edit Mode. The NX
indicates Edit Mode by highlighting the value field *.
3. In Edit Mode, the fields require one of the following methods for modifying the value. Refer to the
field description to determine which method to use.
4. After the value is correctly entered, press the Enter key to accept the value.
5. Should the user not wish to accept the value before the Enter key is pressed, the ESC key can
be pressed instead. This action restores the original value to the display. The NX also
immediately exits Edit Mode.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 40 23 MAY 2005 CH. 4
MAN0781-02
1. After turning on the power to the NX, the following example screen appears indicating that Self-
Test is running. (OCS3xx is shown as an example.)
NX 2xx - CsCAN
Self-Test running
NX 2xx - CsCAN
***Self-Test Passed***
b. If the Self-Test fails, a message briefly flashes on the screen for each error that occurs.
To enter the System Menu, alternately press the Up arrow key and Down arrow key on the front panel of
the NX. The System Menu main screen appears. It contains a virtual keypad and a list of options (Figure
4.1).
In addition to providing access to configuration parameters, the System Menu also provides power-up
and runtime status. For brevity, both configuration and status fields are covered in this section.
Set Network ID
Set Network Baud
Set Contrast
View OCS Status
View OCS Diags
View I/O Slots
View Protocols
Set Fkeys Mode
Set RS232 Mode
Set Time/Date
Set Beeper
Set Screen
CompactFlash
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 4 23 MAY 2005 PAGE 41
MAN0781-02
Set Network ID
This screen contains two parameters. The first parameter (Network OK?) contains the current network
status. The second parameter (Network ID) contains the current Network ID of the model. The second
parameter is numerically editable and is used to configure the Network ID.
Each unit on the network needs a unique ID number. Using the virtual keypad, the correct ID number is
entered here before physically attaching the unit to the network.
1. Press the Enter key until the Network ID parameter value field is highlighted.
2. Then type in the desired Network ID number by touching the virtual keypad and press Enter.
Note: If the Enter key is not pressed, the desired Network ID number does not take effect.
Note: If the Network ID setting is changed, the unit stops executing the ladder code (for up to 1 second)
while the network is re-tested. If the Network OK? status changes from Yes to No, the new Network
ID is a duplicate, and another ID needs to be selected.
This screen contains an editable enumerated parameter allowing the user to select the current baud rate
of the network.
Note: All devices on the network must be at the same baud rate. A device configured for the wrong
baud rate can shut down the network entirely.
Set Contrast
This menu contains an editable bar graph entry allowing the user to set the contrast of the LCD display.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 42 23 MAY 2005 CH. 4
MAN0781-02
This screen contains one enumerated editable parameter that sets the NX scan mode and several non-
editable status parameters that display information about the internal state of the NX. Press the and
keys to scroll through the different items. Pressing ESC returns to the System Menu.
Parameter Description
Mode: Displays the current scanning mode. Allows the user to choose a scanning
mode to view (Idle, Run, DoIO) by highlighting the mode parameter and using
the and to change modes. In Idle mode, the I/O is not scanned and the OCS
ladder program does not execute. The green RUN LED is OFF. In Run mode,
the ladder program executes and the green RUN LED illuminates. DoIO mode
is similar to Run mode, except the ladder logic is not solved. When the OCS is in
DoIO mode, the user is able to exercise all of the I/O from Cscape, without
interference from the ladder program. In this mode the green RUN LED
flashes. This feature is a valuable troubleshooting tool.
Scan-Rate (ms.): Shows the number of milliseconds for the scan. The scan-rate is the sum of the
time required to execute the following items:
a. Scan inputs
b. Solve logic
c. Write outputs
d. Handle network communications
e. Handle host communications request
f. Process data for operator interface
OCS Net Use (%): Shows the percentage of the network used by the NX.
All Net Use (%): Shows the percentage of the network used by all devices on the network.
Ladder Size: Shows the number of bytes used by the ladder program.
Config Size: Shows the number of bytes used by the I/O configuration
Graphics Size: Shows the total size of the file containing graphics.
String Size: Shows the total size of the text stored in the String Table.
Bitmap Size: Shows the total size of the file containing bitmaps.
Text Tbl Size: Shows the number of bytes used by the text tables.
Font Tbl Size Shows the number of bytes used by the downloadable font table.
Protocol Size Shows the number of bytes used by the protocol table.
Firmware Rev: Shows the execution engine firmware version.
CPLD Rev: Shows the CPLD revision.
FPGA Rev: Shows the FPGA Image version.
Self-Test: Shows if the power-up self-test passed or failed by displaying Ok or Fault.
--------------------------------------------------------------------------------------------------------------------------------------------
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 4 23 MAY 2005 PAGE 43
MAN0781-02
This screen displays a list of self-test diagnostics results (no editable parameters). Each item describes a
test and shows a result of Ok if the test passed or Fault/Warn if an error was found while running the test.
Fault indications will prevent the loaded application from running. Warn(ing) indications allow the
application to run but inform the user that a condition exists that needs correction.
System RAM - This test checks the functionality of the controller RAM at power up.
Ok The RAM is functioning correctly.
Fault The RAM is not functioning correctly.
System BIOS - This test checks for a valid BIOS portion of the controller firmware.
Ok The loaded BIOS firmware is valid
Fault The loaded BIOS is invalid.
Logic Error - This test checks for problems with the user program while running.
Ok No errors have been encountered while running a user program.
Fault Indicates the user program contained an instruction that was invalid or unsupported.
User Program - This tests for a valid user program and configuration data.
Ok The user program and configuration is valid.
Fault The user program and/or configuration are not valid.
W-Dog Trips - This test checks for resets caused by hardware faults, power brownouts or large amounts
of electrical interference.
0 No unintentional resets have occurred.
xx Indicates a fault with xx showing the number of occurrences.
Net Errors - This test checks for abnormal network operations while running.
0 No network errors were counted
xx Indicate serious networking problems exist, xx indicates the number of occurrences.
Network State - This test checks that the network sub-system is powered and operating correctly.
Ok The network system is receiving power and has determined other devices are
communicating on the network.
Warn Power is not being applied to the network or no other devices were found to be
communicating on the network.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 44 23 MAY 2005 CH. 4
MAN0781-02
Clock Error - This test checks that the real time clock contains valid data.
Ok The real time clock contains valid data.
Warn Indicates invalid data in the real time clock.
I/O System - This test checks that the I/O configuration downloaded and the physical devices
(SmartStack) attached to the controller match.
Ok The I/O configuration matched the installed modules.
Warn Indicates the downloaded configuration and attached modules do not match.
(See View I/O Slot system screen for more information.)
The View I/O Slots screen displays information about SmartStack modules (if any) that are currently
connected to the NX. Some models support multiple I/O bases using a FOX (Fiber Optic eXpansion)
interface. For these models, the View I/O Slots screen also allows selection of the I/O base to be
displayed and indicates whether the I/O base is online, offline, or duplicated.
When viewing I/O slots, the following status screens are possible. Note that in the I/O slot display
descriptions, the term ModNum refers to a SmartStack I/O module number such as DIQ611 or THM100.
a. If an OCS slot has no configured I/O module and no module is physically attached, the message
I/O: Empty is displayed for the appropriate slot.
b. If an OCS slot has no configured I/O module and a module is physically attached, the message
"+I/O: ModNum" is displayed for the appropriate slot.
c. If an OCS slot has a configured I/O module and no module is physically attached, the message
"-I/O Missing" is displayed for the appropriate slot.
d. If an OCS slot is configured for a different module than what is physically attached, the message
"?I/O: ModNum" is displayed for the appropriate slot.
e. If an attached module is not supported by the OCS firmware, the message
*Unsupported is displayed for the appropriate slot. The module is either defective or an
Engine firmware upgrade is required to support the module.
f. If an attached I/O module has erroneous or outdated firmware in it, the message
fI/O: ModNum is displayed for the appropriate slot The module is either defective or a Module
firmware upgrade is required.
g. If an attached module has a configuration error, the message
cI/O: ModNum is displayed for the appropriate slot. The configuration data for that module is
incorrect.
h. If an OCS slot configuration matches the attached I/O module, the message
" I/O: ModNum" is displayed for the appropriate slot.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 4 23 MAY 2005 PAGE 45
MAN0781-02
View Protocols
This screen displays protocol drivers loaded by the applications and their current revisions.
This screen contains an editable enumerated field that allows the Function keys to be configured to
operate in one of two modes. When a function key is pressed, it can TOGGLE the %K register
associated with the key or it can MOMENTARILY turn the %K register ON when the key is pressed.
This screen contains an editable enumerated parameter that allows the mode of the serial port to be set
to one of two modes. The CsCAN mode allows Csape to connect to the serial port for uploads,
downloads, monitoring and control. The Update mode allows a firmware update and factory test utility to
be used. When Update mode is selected, the firmware is ready to download when the OK LED flashes.
When using Cscape to perform firmware updates, the Update mode is not necessary.
Set Time/Date
This screen contains two editable enumerated fields for displaying and modifying the NXs time and date.
Each field is subdivided and allows the and key to modify the value.
Set Beeper
This screen allows the Beeper to be enabled or disabled by pressing the and keys. When enabled,
there are two types of beeps.
It is also possible to have the Ladder Program write to the %SR184 Register, which causes beeps to
occur. Any value higher than zero enables the beeper. The beeper remains enabled until the value is
zero.
Set Screen
This screen allows a screen saver to be enabled or disabled and the timeout for the screen saver to be
set. To enable the screen saver, change Saver Enable to Yes. Edit the Timeout (min) to determine the
number of minutes before the screen saver becomes active. This screen also specifies the amount of
additional scan added to each logic scan to update graphics. Lower values have less effect on ladder
scan time but will affect response time of graphics.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 46 23 MAY 2005 CH. 4
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 5 23 MAY 2005 PAGE 47
MAN0781-02
When the NX is connected to a PC using Cscape software, and the Remote Text Terminal feature is
selected, a Cscape Status Bar appears at the bottom of the screen. The Cscape Status Bar can be used
to determine if communications have been established between the NX and the Cscape program.
Components of the Cscape Status Bar are explained in Figure 5.1.
Message Line -
The contents of Equal Indicator indicates whether the current program in Cscape is equal to the program
these messages stored in the Target Controller.
are context If Equal, the program in Cscape is the same as the program stored in the Target Controller.
sensitive. The If Not Equal, the program in Cscape is not the same as the program stored in the Target
Message line can Controller.
be empty. If Unknown, there may have been a change since the last time the program in Cscape was
compared to the Target Controller.
Ready User: NONE HE-NX221-CsCAN (Model=) Equal Local :1 Target :2(R) [no forces] MOD
Controller Model - Network (Model Confirmation) Communications Status - indicates the current status of the
pass through Connector.
Controller Model indicates the NXfor which the
program in Cscape is configured. Local: xx indicates the Network ID of the NX to which the
Cscape program is physically connected through its serial
Network indicates the type of network that the program port. It can serve as a pass through device to other nodes
in Cscape expects to use (e.g., CsCAN). on the network.
(Model Confirmation) provides the following Target: yy(R) indicates the Network ID of the NX with
indications: which the Cscape program is exchanging data.
Note: The Local unit and Target unit can be the
(Model=) - the actual Target Controller matches the same unit or they can be separate units.
configured Controller Model and Network.
The following are status indicators:
(Model Not=) the actual Target Controller does not
match the configured Controller Model and Network. (R) Running
(D) - Do I/o
(Model ?) there may have been a change since the (I) Idle
last time the Target Controller was compared to the (?) Cscape is not communicating with the remote unit.
configured Controller Model and Network. [no forces] indicates no I/O has been forced.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 48 23 MAY 2005 CH. 5
MAN0781-02
5.2 NX Description
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 5 23 MAY 2005 PAGE 49
MAN0781-02
If the ladder program energizes a text coil, the screen associated with this coil is displayed and overrides
the normal user screens. This is designed to show alarm conditions or to display other ladder-detected
events. When the text coil is de-energized, the previous screen that was being viewed before the alarm
is returned.
If the screen contains an editable field, the user can press the Enter key to enter the edit mode. When in
edit mode, a cursor appears on one digit of the editable field. Use the direction keys ( and ) to move
to the cursor to the desired position. Use the and keys to increment or decrement the digit or enter
the number/data with the alphanumeric keys.
If there is more than one field on the screen needing to be edited, use the direction keys ( and ) to
move the cursor to the desired location.
The value chosen by the user can not exceed the minimum or maximum set by the user program. If the
user tries to exceed the maximum point or enter a value below the minimum point, the value does not
change.
Note: If the NX displays >>>>>> in a text field, the value is too big to display in the field or is above the
maximum for an editable field. If the NX displays <<<< in a text field, the value is too small to display or is
below the minimum for an editable field.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 50 23 MAY 2005 CH. 5
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 6 23 MAY 2005 PAGE 51
MAN0781-02
CHAPTER 6: SMARTSTACK
6.1 General
Chapter Six provides preliminary configuration procedures, which are common to all SmartStack
Modules.
Note: Because the configuration parameters are different for each SmartStack Module, refer to the data
sheet that is specific to the selected module.
2. First, ensure that the desired controller is selected. The OCS300-CsCAN is shown as the
selected controller in this example. If satisfied with the controller selection, press a Base # tab.
Go to Step 3. If a different controller is desired (in this case, the NX) continue Step 2.
Slot
Note: The Auto Config System button can be pressed prior to selecting the desired controller and I/O.
By pressing the button, the settings are deleted from any controller and I/O that is physically connected to
the PC. A dialog box appears and indicates that settings will be deleted from currently configured
models. If OK, press Yes. Then press OK.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 52 23 MAY 2005 CH. 6
MAN0781-02
To select a different controller, ensure that the CPU Slots tab is pressed. Then, click on the slot
or the Config button. The Configure Controller screen appears.
To select a different controller, click on the Type list box and select the desired controller. Then
press OK. If satisfied with the controller now selected, press Base # tab at the top of the screen
(similar to Figure 6.1 except an NX model is selected). Then, go to Step 3.
Note: The Auto Config button can be pressed prior to selecting the desired controller. By
pressing the button, the settings are deleted from any controller that is physically connected to
the PC.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 6 23 MAY 2005 PAGE 53
MAN0781-02
3. Figure 6.3 appears. In this configuration example, I/O modules are going to be selected and
configured for Base 2.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 54 23 MAY 2005 CH. 6
MAN0781-02
Double-click on a slot or press the Config button located next to the slot. The following screen
appears. Select a tab at the top of the screen, and then select an I/O module. (For this example,
the DIQ612 is going to be selected.) Press OK.
The description and properties of the I/O module are provided. If satisfied with the selections,
press OK.
Note: If a module already occupies a slot and a different module is desired, right-click on the
slot and press Replace. To leave a slot empty, right-click on the slot and press Delete. By
right-clicking on a slot, its configuration can be copied into another slot on the same base (or
a different base) and pasted into a new slot.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 6 23 MAY 2005 PAGE 55
MAN0781-02
5. The Module Configuration Screen appears (Figure 6.7). Two tabs are available for selection:
The I/O Map describes the I/O registers assigned to a specific I/O module. Although there are no user-
defined parameters, the I/O Map can be viewed after the SmartStack module is configured to review the
registers.
Note: Do not confuse the described number of input and output channels with the numbers found in the
Type column (i.e., %I and %Q). The numbers do not necessarily match.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 56 23 MAY 2005 CH. 6
MAN0781-02
Note: The Module Setup screen varies according to the module selected. Users make selections
based upon requirements. Guidelines that are specific to the module are provided in individual
data sheets. It is important to consult the datasheet for specific details pertaining to the
Module Setup tab.
The Module Setup is used in applications where it is necessary to change the default states of the
outputs when the controller (e.g., NX) enters idle/stop mode. The default turns the outputs OFF when the
controller enters idle/stop mode. By selecting the Module Setup tab, each output can be set to either turn
ON, turn OFF or to hold the last state. Generally, most applications use the default settings.
Warning: The default turns the outputs OFF when the controller enters idle/stop mode. To avoid injury
of personnel or damages to equipment, exercise extreme caution when changing the default setting using
the Module Setup tab.
6. Depending upon the I/O module selected, additional configuration procedures can be required.
Be sure to consult the individual data sheet to determine if a supplement is available for the
specific module. Supplements provide configuration information and cover other important topics
pertaining to a specific module.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 7 23 MAY 2005 PAGE 57
MAN0781-02
SmartStix I/O is a family of low-cost Remote I/O devices that are designed to extend the I/O capabilities
of Control Station products, such as NX, MiniOCS, OCS and RCS. SmartStix I/O Modules connect to
Control Station devices via the CsCAN Network and communicate using CsCAN Protocol.
Devices with CsCAN Network ports that are connected to each other for peer-to-peer communication are
called CsCAN Nodes. A device that is connected to a CsCAN Nodes programming port for master-slave
supervisory communication is called a CsCAN Host. For example, SmartStix I/O Modules and NX are
CsCAN Nodes while a PC running Cscape is a CsCAN Host.
SmartStix I/O Modules are devices that exchange data with NX over the CsCAN Network and control
and monitor physical I/O points.
To control physical outputs, data is sent by an NX to the SmartStix I/O Module using CsCAN Directed
Data Messages. To monitor physical inputs, an NX receives data from the SmartStix I/O Module using
CsCAN Global Data Messages.
In addition to I/O control and monitoring, configuration and status data can be exchanged between an NX
and a SmartStix I/O Module.
For example, an NX can send configuration data to a SmartStix I/O Module to tell it how often to expect
output control data, and what to do if the NX stops sending output control data. Also, an NX can receive
status data from a SmartStix I/O Module indicating if it needs configuration or if a fault has been detected.
All this is accomplished by using the PC-based Cscape programming tool to program the NX. Since the
NX dynamically configures the SmartStix I/O Module, SmartStix I/O Modules can be readily deployed
without having to configure them first.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 58 23 MAY 2005 CH. 7
MAN0781-02
This function handles receiving data from a remote I/O device and places the received data in a set of
registers specified by the user. This function passes power flow if the function is actively receiving data /
heartbeat messages from the remote I/O device. This function stops passing power flow if it has not
received data / heartbeat messages from the remote I/O device for 2000 milliseconds.
A remote I/O device consists of a CsCAN device such as a SmartStix Module that transmits global data
and receives directed network data.
Figure 7.1 Get Remote I/O Function Block and Parameter Screen
ID This is the network ID of the remote I/O from which to receive data. This can be a constant from 1 to
253 or a 16-bit register.
Digital / Analog These radio buttons allow choosing digital or analog network data. Remote I/O
devices with discrete inputs/outputs normally require digital data. Remote I/O devices such as voltage,
current or thermocouple would require analog data.
Destination Data Address This is the location to start placing data received from the remote I/O
device. The number of registers used is defined by the Num Words parameter in this section. Any valid
read/write OCS reference types can be used (%R, %AI, %I, %M, etc.).
Status This 16-bit register is used internally. It must not written by any other function block. Use the
power flow from this function for the pass/fail status.
Num Words This is the number of words to receive from the remote I/O device. Up to four words can
be received from the remote I/O device. The function of these words are described in Table 7.1.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 7 23 MAY 2005 PAGE 59
MAN0781-02
Note: Table 7.1 summarizes SmartStix I/O module consumed and produced data words. For advanced
users, refer to page 61 - 64 for sections describing the consumed and produced words in detail.
This function handles sending data to a remote I/O device block obtained from a set of registers specified
by the user. This function passes power flow if the remote I/O device is behaving normally. This function
does not pass power flow if the remote I/O device has not sent a heartbeat in 2000 milliseconds. This
function sends heartbeat messages to the output device every 1000 milliseconds. The default remote I/O
operation is to expect heartbeat messages at least every 2000 milliseconds; otherwise the outputs are
turned off (or their configured default state). Data is normally transmitted on change of state or if the
remote I/O device is power-cycled.
A remote I/O device consists of a CsCAN device such as SmartStix Modules that transmit global data and
receive directed network data.
Figure 7.2 - Put Remote I/O Function Block and Parameter Screen
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 60 23 MAY 2005 CH. 7
MAN0781-02
ID This is the network ID of the remote I/O to direct the sent data. This can be a constant from 1 to 253
or can be a 16-bit register.
Digital / Analog These radio buttons allow choosing digital or analog network data. Remote I/O
devices with discrete inputs/outputs normally require digital data. Remote I/O devices such as voltage,
current or thermocouple require analog data.
Source Data Address This is the starting location to get data to send to the remote I/O device. When
this data changes state, it is sent to the remote I/O device. The number of registers used is defined by the
Num Words parameter in this section. Any valid OCS reference types can be used (%R, %AQ, %Q, %M,
etc.).
Status this 16-bit register is used internally. It must not be written by any other function block.
Num Words This is the number of words to send to the remote I/O device. Up to 8 words can be sent
to the remote I/O device. The function of these words are described starting with Table 7.1.
SmartStix I/O has been designed so that its default operation satisfies the most common applications.
This keeps the user interface simple and makes the product easy to use. The default operation is
summarized in Table 7.2. To change the default operator, see Advanced SmartStix Programming (page
61).
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 7 23 MAY 2005 PAGE 61
MAN0781-02
There are currently five SmartStix I/O Module device classes (0, 1, 2, 3 and 7) that control and monitor
Digital I/O points and exchange Directed and Global Data words with an NX via the CsCAN Network.
Table 7.3 shows the five device classes along with the number of Digital I/O points they contain and the
number of Directed and Global Data words they exchange.
1. Select the number of digital output points and the number of digital input points using Table
7.3.
2. Upon doing so, the device class is located in the same row as the digital outputs and inputs;
the words consumed and produced are also shown for that device class.
Note that although all of the above device classes can consume eight Directed Data Words and can
produce four Global Data words, each device class uses a specific subset of this data.
Table 7.1 summarizes SmartStix I/O module consumed and produced data words. For advanced users,
the following sections describe the consumed and produced words in detail.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 62 23 MAY 2005 CH. 7
MAN0781-02
Q16Q1 Controls the Off / On state of the SmartStix I/O Modules 1st 16 Digital Outputs, if any.
Q32Q17 Controls the Off / On state of the SmartStix I/O Modules 2nd 16 Digital Outputs, if any.
CLT = 0 Command the SmartStix I/O Module to set its Life Expectancy Time to 2.0 seconds, as the maximum
time to wait between NX to SmartStix I/O Module output control data messages, before setting all
Digital Outputs to their default states.
CLT = 1 Command the SmartStix I/O Module to use Word 4s Life Expectancy Time. In this case, a value of 0.0
disables the Life Expectancy feature.
CHT = 0 Command the SmartStix I/O Module to set its Heartbeat Send Time to 1.0 second, as the minimum time
between SmartStix I/O Module to NX Heartbeat messages.
CHT = 1 Command the SmartStix I/O Module to use Word 4s Heartbeat Send Time. In this case, a value of 0.0
disables the Heartbeat Send feature.
CIT = 0 Command the SmartStix I/O Module to send its Digital Input data to the NX, only when the Digital Inputs
change state.
CIT = 1 Command the SmartStix I/O Module to use Word 4s Digital Input Send Time, to determine how often to
periodically send its Digital Input data to the NX. In this case, a value of 0.0 disables automatic
sending of Digital Input data.
Note: Regardless of the CIT setting, Digital Inputs are always sent to the NX when the SmartStix
I/O Module powers-up, and when specifically requested by the NX.
See Directed Data Word 3s CLT, CHT and CIT command descriptions above.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 7 23 MAY 2005 PAGE 63
MAN0781-02
H16H1 Determines default state of the SmartStix I/O Modules 1st 16 Digital Outputs, if any, when
the configured Life Expectancy Time expires. If an H bit is 1, its corresponding Digital
Output, by default, holds its last state. If an H bit is 0, its corresponding Digital Output is
forced Off or On, depending on the corresponding F bit in Word 7 (Table 7.10).
H32H17 Determines default state of the SmartStix I/O Modules 2nd 16 Digital Outputs, if any, when
the configured Life Expectancy Time expires. If an H bit is 1, its corresponding Digital
Output, by default, holds its last state. If an H bit is 0, its corresponding Digital Output is
forced Off or On, depending on the corresponding F bit in Word 8 (Table 7.11).
F16F1 Determines default Off or On state of each of the SmartStix I/O Modules 1st 16 Digital
Outputs, if any, when the configured Life Expectancy Time expires, and when the
corresponding H bit in Word 5 (Table 7.8) is 0.
F32F17 Determines default Off or On state of each of the SmartStix I/O Modules 2nd 16 Digital
Outputs, if any, when the configured Life Expectancy Time expires, and when the
corresponding H bit in Word 6 (Table 7.9) is 0.
At power-up, the SmartStix I/O Modules eight Consumed Directed Data words are all cleared to 0. Until
Directed Data is actually received from an NX, the SmartStix I/O Module will exhibit the following
behavior:
1. All Digital Outputs are Off, until Q data is received from an NX.
2. The device expects to receive Q data at least every two seconds.
3. The device transmits a Heartbeat every second.
4. The device transmits its Digital Input data, only when the Digital Inputs change state.
5. If Q data is received, and then not received for 2 seconds, the outputs go Off again.
6. At power-up, a request for Directed Data is transmitted to the CsCAN Network.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 64 23 MAY 2005 CH. 7
MAN0781-02
I16I1 Monitors the Off / On state of the SmartStix I/O Modules 1st 16 Digital Inputs, if any.
I32I17 Monitors the Off / On state of the SmartStix I/O Modules 2nd 16 Digital Inputs, if any.
RAM Module RAM test failed; found a RAM memory fault during power-up-self-test
ROM Module ROM test failed; found a ROM memory fault during power-up-self-test
I/O Module I/O test failed; found an I/O fault during power-up-self-test
PUP Module just powered up; using default configuration; outputs are Off
Device Class Number SmartStix I/O Modules numeric product identifier (see Table 7.3)
Version Number SmartStix I/O Modules numeric firmware identifier
At power-up, a SmartStix I/O Modules four Produced Global Data words are initialized as follows:
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 7 23 MAY 2005 PAGE 65
MAN0781-02
The MS an NS diagnostic LEDs indicate the fault status of the module and the network, respectively.
Note that the diagnostic LEDs correspond directly to the Module Fault and Network Fault bits as shown in
Table 7.14.
The following table shows the possible LED states and their meanings:
In addition to the MS and NS diagnostic LED indicators described above, SmartStix I/O Modules also
provide a Power Status LED, which illuminates Red when power is applied to the module.
Also, there are I/O Status LED indicators for each of the Digital I/O points, which illuminate Red when the
I/O point is On.
Each SmartStix I/O Module (as well as all other CsCAN Nodes on the CsCAN Network) must be assigned
a unique Network ID number, to arbitrate network data exchanges.
Since a Network ID is a number in the range 1 to 253, up to 253 CsCAN Nodes can be logically
connected to a CsCAN Network. However, the use of standard CAN transceiver chips, limits the number
of physically attached devices to 64. Thus, to reach the logical limit of 253 devices, up to three smart
CAN repeaters (HE200CGM100) are used, to connect groups of devices together.
Assigning a SmartStix I/O Modules Network ID is accomplished by setting its two hexadecimal (base 16)
Network ID rotary switches, which are labeled HI and LO. Each rotary switch has 16 positions, labeled 0,
1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F, where A through F represent the decimal values 10 through
15. The Network ID rotary switches are set as follows:
This allows the Network ID to be set to any number from 0 to 255. However, since Network IDs 0, 254
and 255 (00, FE and FF) are reserved for other purposes, they are illegal settings for a SmartStix I/O
Module. If a SmartStix I/O Modules rotary switches are set for an illegal Network ID, a default Network ID
of 253 will be used, the ID Network Fault bit will be On, and the NS LED will blink Red.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 66 23 MAY 2005 CH. 7
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 8 23 MAY 2005 PAGE 67
MAN0781-02
Chapter Eight provides an overview of the CompactFlash feature in NX OCS models and Cscape
Software.
Note: For detailed information regarding CompactFlash function blocks and parameters, refer to
the help file in Cscape Software.
All NX OCS models provide a slot for a CompactFlash memory card. The CompactFlash manager is a
graphical object that allows viewing the filenames, size and dates of files and directories on a
CompactFlash card. The operator can optionally change directories, delete files and format a new flash
cards. This object also supplies status information such as color change on card OK, card full and card
missing status. The file view includes total card capacity and remaining free space.
a. Insert or connect the CompactFlash memory card to the PC according to the manufacturers
instructions.
b. The PC typically sees the CompactFlash card as a removable storage device like a small solid-
state hard drive. Files can be read from and written to the CompactFlash card in the same way
they are read/written to a standard hard disk. The only file format that can be read or written by
an OCS application is a .csv (comma separated value) file.
Note: For detailed information regarding CompactFlash function blocks and parameters, refer to
the help file in Cscape Software.
This function allows writing of a comma-separated value file to the CompactFlash interface from
the controller register space. The file format of the value file uses commas to separate values.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 68 23 MAY 2005 CH. 8
MAN0781-02
This function allows renaming a file on the CompactFlash card. The data in the file is not
changed.
The CompactFlash Manager is a graphical object that allows viewing filenames, size and dates of files,
and directories on a CompactFlash card. The operator can optionally change directories, delete files, and
format new flash cards. This object also supplies status information such as Color change on card OK,
Card full, and Card missing status. For additional information, refer to Cscape Help File; select
Cscape Reference Manual, and then select Using Graphics Editor.
The OCS CompactFlash function blocks support the flash with a DOS/Windows standard FAT-16 file
system. All names must be limited to the eight dot three format where the filename contains eight
characters a period then a three-character extension.
The entire filename including any path must be less than or equal to 147 characters.
When creating filenames and directories it is sometimes desirable to include parts of the current date or
time. There are six special symbols that can be entered into a filename that are replaced by the OCS
with current time and date information.
Note that all the symbols start with the dollar sign ($) character. Date symbols are in upper case, time
symbols are in lower case.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
CH. 8 23 MAY 2005 PAGE 69
MAN0781-02
%SR175 Status This shows the current status of the CompactFlash interface.
%SR176 Free Space This 32-bit register shows the free space on the ComapactFlash card in bytes.
%SR178 Card Capacity This 32-bit register shows the total card capacity in bytes.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 70 23 MAY 2005 CH. 8
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
APPENDIX A 23 MAY 2005 PAGE 71
MAN0781-02
APPENDIX A: NETWORKS
The controller area network (or CAN bus) is a serial communications bus that was originally developed in
the late 1980s by a German company (Robert Bosch) for use in the automotive industry. CAN is an ISO
(International Standards Organization) - defined serial communications bus for real-time applications.
Established in 1947, the International Standards Organization (ISO) is a multinational body dedicated to
worldwide agreement on international standards. Specifically, CAN is documented in ISO 11898 (for
high-speed applications) and ISO 11519 (for lower-speed applications).
a. CAN Features
CAN-based open automation technology successfully competes on the market of distributed automation
systems because of the special features of the CAN protocol. The special features are CANs producer-
consumer-oriented (or peer-to-peer) principle of data transmission and its multi-master capability. The
general design of CAN originally specified a high bit rate, high immunity to electrical interference and an
ability to detect any errors produced. CAN networks have the following general attributes:
b. CAN Protocol
The CAN communications protocol simply describes the method by which information is passed between
various devices. The CAN protocol conforms to the Open Systems Interconnection (OSI) model. An
open system is a set of protocols that allows any two different systems to communicate regardless of their
underlying architecture. The OSI model is defined in terms of seven ordered layers. These layers consist
of the Physical (bottom-most layer), Data Link, Network, Transport, Session, Presentation and Application
(top-most layer). CAN architecture defines the bottom two layers of the model. These layers are the
physical and data link layers.
The physical and data link layers are typically transparent to the system designer and are included in any
component that implements the CAN protocols. The physical layer is responsible for functions such as
physical signaling, encoding, bit timing and bit synchronization. The data link layer performs functions
such as bus arbitration, message framing and data security, message validation, and error detection.
The application levels are linked to the physical medium by the layers of various emerging protocols
(such as DeviceNet) dedicated to particular industry areas plus a variety of custom protocols defined and
developed by individual CAN users.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 72 23 MAY 2005 APPENDIX A
MAN0781-02
Application Layer
M3S Layer
Data-link Layer
Physical Layer
Physical medium
c. CAN Operation
CAN is capable of using a variety of physical media for transmission purposes. Two examples are
twisted wire-pairs and fiber-optics. The most common physical medium consists of a twisted-pair with a
termination resistance that is applicable to the cable in use (the CsCAN network typically calls for the use
of a 121 resistor). CAN operates at data rates of up to 1 Megabits per second.
The signaling in CAN is carried out using differential voltages. The two signal lines are termed CAN_H
and CAN_L. The use of voltage differentials allows CAN networks to function in very noisy
environments. With the twisted pair, differential configuration, each wire is closer to the noise source (if a
noise source is present) for half the time and farther away for the other half. Therefore, the cumulative
effect of the interference is equal on both wires, thus canceling the interference.
The Full CAN protocol allows for two lengths of identifiers. These two parts are Part A and Part B.
Part A allows for 11 message identification bits, which result in 2032 different identifiers. Extended CAN
(Part B) utilizes 29 identification bits, resulting in 536,870,912 separate identifiers.
Note: DeviceNet currently specifies Part A only, and the balance of this discussion is specific to Part A
only.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
APPENDIX A 23 MAY 2005 PAGE 73
MAN0781-02
Identifier field
Data-length code
There are 11 bits in the identifier field. The bits are used for identification of the message as well as
determining its bus access priority. The priority is defined to be highest for the smallest binary value of the
identifier. One very attractive quality of CAN is that it is capable of allocating priorities to messages. This
feature makes it attractive for use within real-time control environments. All bits of the identifier field
define the message priority. The CAN specification guarantees the latency time associated with priority
values.
Since the CAN protocol specifies no rules for the assignment of message-identifiers, a variety of different,
application-specific uses are possible. Assignment of the CAN message identifiers therefore is one of the
most important decisions when designing a CAN-based communication system.
To summarize, CAN is currently being used in a very large number of applications in the automotive
industry and in many other industrial applications. CAN is an excellent network to use in situations where
microcontrollers need to communicate with each other or with remote devices. The popularity of CAN has
been the result of the automatic error detection capabilities, the ability to operate in harsh environments,
the relatively low-cost for development tools, and the wide availability of hardware.
The CsCAN Network was first developed in 1993 by Horner. It was developed for use in a project that
Horner completed for the United States Post Office. Horner developed its own network, because it
needed a network that had a specific set of powerful peer-to-peer and host-to-node capabilities. The
CsCAN Network has a pass-through feature whereby PC-based programs access other nodes
connected to a network by passing the programming command through the serial port to the network port.
(For a more detailed description, see below.) Horner found that by developing its own network, it satisfied
several important needs. Horner continues CsCAN Network development to satisfy the requirements of
today and the requirements of the future.
The CsCAN Network is based on CAN, which has many desirable features such as ruggedness, ease of
configuration, etc. With Horner Controllers, data is passed at 125Kbps using a differential pair of wires
plus a ground. It is important to note that the data rate is not limited to 125Kbps. The maximum data rate
is 1Mbps (limited by the speed of light). The CAN implementation in the CsCAN controller allows up to 64
controllers to be networked with no additional hardware and up to 253 controllers with three CAN
repeaters.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 74 23 MAY 2005 APPENDIX A
MAN0781-02
For the ladder programmer, little knowledge of networking procedures is needed. However for
troubleshooting and optimizing, the following information is helpful. Instead of using master/slave or
token passing, the hardware self-arbitrates based on the Network ID. Controllers with lower Network
ID numbers are given a higher priority than controllers with higher Network ID numbers.
When a controller needs to send data over the network, it first waits for the network to be idle (currently a
maximum of 900s). If two controllers start broadcasting information on the network at the same time,
the "self-arbitration" causes the controller with the greater Network ID number to cease broadcasting
without affecting the message-in-progress of the other controller.
In applications with a large number of networked controllers, better results may be achieved by assigning
lower Network IDs to controllers that have more critical network data than other controllers. By assigning
higher Network IDs to controllers that provide numerous network updates, the controllers are prevented
from monopolizing the bus time.
Each controller is capable of broadcasting Global Digital Output bits (%QG) and Global Analog Output
bits (%AQG), which are periodically broadcasted to the other controllers on the network. The coil
representations %QG and %AQG can be used in ladder logic like any other coil or register reference.
All global outputs are broadcast to the network according to the way the programmer sets them up under
the Program, Network Config in Cscape.
In addition to global data, the CsCAN Network is used to exchange data between a controller on the
network and a PC-based Host Supervisory Tool such as the Cscape Ladder Editor or an OEM-specific
cell controller.
A useful feature of the CsCAN network is that it supports a Host-to-Node protocol and has the ability to
"pass through" programming commands. A programming package (like Cscape), when attached to an
NX serial port, can access other NX units connected to a network by passing the programming command
through the serial port to the network port. In this way, one Cscape package connected to one NX unit
can program all NX units on the network.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
INDEX 23 MAY 2005 PAGE 75
MAN0781-02
A Distributed Control System (DCS) is defined as a system for the control and monitoring of an industrial
process which shares the computer-processing requirement between several processors. With DCS,
processing is distributed among a multitude of different processors instead of one very large processing
system.
MIMD (multiple instruction, multiple data) parallel processing technique is used in the CsCAN network.
Each processor is capable of sharing data in this system. Typically, the processors are located in a wide
variety of devices. These devices may take the form of Micro PLCs, conveyor controllers, operator
interfaces, etc. Each of these devices serves a specific function.
It is common in a DCS for several different modules to be physically distributed in some type of
arrangement around a plant. This is typically the case with devices connected to plant instrumentation
since this greatly reduces plant cabling costs. The name Distributed Control System is not a reference
to a physical layout but rather to the distribution of the processing. The devices in DCS are connected
together via a high-speed communication link. Links such as CsCAN and DeviceNet are typical in DCS.
There are three attributes that are desirable in any DCS design:
a. Ease of Implementation
Modern Distributed Control Systems should be able to implement most control requirements without the
need for complex or unusual design.
The group of individuals that use DCS most frequently are the operators. It is important that applications
are designed so that they are operable in a logical and consistent manner and in a way that complements
the general operation of a plant.
c. Maintainable
Achieving the required functionality is only part of the solution. The design must also be maintainable.
The system should be designed so that it can be maintained without the need for major re-engineering.
Distributed control is becoming ever-increasingly popular. As the presence of networks become more
common in industrial automation, finding better ways to use the networks effectively will become much
more important. Central to the DCS philosophy, control needs to be distributed out onto the network so
that control is implemented where the process actually takes place. With DCS, the overall amount of data
on the network is essentially reduced, because only data that has been processed is broadcasted on the
network. This allows for more devices to be installed on a network that have a finite bandwidth.
All programmable nodes can be programmed via the network. Each node communicates data onto the
network that is readable by any other node on the network in the Producer/Consumer network mode.
(Also known as Peer-to-Peer Networking). Network medium is flexible. Currently, the Controller Area
Network (CAN) is the preferred solution, but it is anticipated that Ethernet will likely be dominant within 1-3
years.
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 76 23 MAY 2005 APPENDIX B
MAN0781-02
NOTES
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
INDEX 23 MAY 2005 PAGE 77
MAN0781-02
INDEX
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.
PAGE 78 23 MAY 2005 INDEX
MAN0781-02
No part of this publication may be reproduced without the prior agreement and written permission of Horner APG, Inc.
Information in this document is subject to change without notice.