This manual explains how to use the XL6/XL6e (HE-XL/HEXT350/HEXT351) OCS Modules.
Copyright (C) 2008 Horner APG, LLC, 59 South State Avenue, 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.
Cscape, SmartStack, SmartStix and CsCAN are trademarks of Horner APG.
Ethernet is a trademark of Xerox Corporation.
Micro SD and CompactFlash are registered trademarks of SanDisk Corporation.
For user manual updates, contact Technical Support:
North America:
Horner APG, LLC, ("HE-APG") warrants to the original purchaser that the XL6/XL6e (HE-XL/HEXT350/HEXT351)
module manufactured by HE-APG is free from defects in material and workmanship under normal use and
OCS
service. The obligation of HE-APG under this warranty shal l be limited to the re pair or exchange of any part or parts
which may prove defective under normal use and service within two (2) years from the date of manufacture or
eighteen (18) months from the date of installation by the original purchaser whichever occurs first, such defect to be
disclosed to the satisfaction of HE-APG after examination by HE-APG of the allegedly defective part or parts. T HIS
WARRANTY IS EXPRESSLY IN LIEU OF ALL OTHER WARRANTIES EXPRESSED OR IMPLIED INCLUDING THE
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR USE AND OF ALL OTHER OBLIGATIONS OR
LIABILITIES AND HE-APG NEITHER ASSUMES, NOR AUTHORIZES ANY OTHER PERSON TO ASSUME FOR
HE-APG, ANY OTHER LIABILITY IN CONNECTION WITH THE SALE OF THIS XL6/XL6e OCS
WARRANTY SHALL NOT APPLY TO THIS XL6/XL6e OCS
SUBJECT TO ACCIDENT, NEGLIGENCE, ALTERATION, ABUSE, OR MISUSE. HE-APG MAKES NO WARRANTY
WHATSOEVER IN RESPECT TO ACCESSORIES OR PARTS NOT SUPPLIED BY HE-APG. THE TERM
"ORIGINAL PURCHASER", AS USED IN THIS WARRANTY, SHALL BE DEEMED TO MEAN THAT PERSON FOR
WHOM THE XL6/XL6e (HE-XL/HEXT350/HEXT351) OCS
SHALL APPLY ONLY WITHIN THE BOUNDARIES OF THE CONTINENTAL UNITED STATES.
In no event, whether as a result of breach of contract, warranty, tort (including negligence) or otherwise, shal l HEAPG or its suppliers be liable of any special, consequential, incidental or penal damages inclu ding, but not limited to,
loss of profit or revenues, loss of use of the products or any associated equipment, damage to associated equipm ent,
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.
module OR ANY PART THEREOF WHICH HAS BEEN
module IS ORIGINALLY INSTALLED. THIS WARRANTY
ABOUT PROGRAMMING EXAMPLES
Any example programs and program segments in t his manual or provided on accompanying diskettes are included
solely for illustrative purposes. Due to the many variables and requirements associated with any particular
installation, Horner APG cannot assume responsibility or liability for actual use based on the examples and diagr ams.
It is the sole responsibility of the system designer utilizin g the XL6/XL6e OCS
end system, to appropriately integrate the XL6/XL6e OCS
equipment as is usual and customary in industrial applications as defined in any codes or standards which apply.
module and to make safety provisions for the end
module to appropriately design the
Note: The programming examples shown in this manual are for illustrative purposes only.
Proper machine operation is the sole responsibility of the system integrator.
19.5 Technical Support Contacts....................................................................................................130
Index .....................................................................................................................................................131
Table of Figures...................................................................................................................................134
March 4, 2010 Page 8 of 135 #1037
MAN0883-05-EN Visual Map
Visual Map of major tasks and the key chapters to assist you
FIRST STEP of ANY TASK: DATASHEET
Each XL6/XL6e OCS unit is sent with a datasheet in the box. The datasheet is the first
you need to refer to for model-specific information related to XL6/XL6e OCS models such as
pin-outs, jumper settings, and other key installation information. Visit our website
http://www.heapg.com to obtain updates to datasheets, manuals and user documentation.
When found on the product, the following symbols specify:
WARNING – EXPLOSION HAZARD – Do not disconnect equipment un less power has been switched off or
the area is known to be non-hazardous
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 pro vide protection against risk of fire and shock
hazards.
WARNING: In the event of repeated failure, do not
defective condition that will not
WARNING – EXPLOSION HAZARD – Substitution of components may impair suitability for Class I, Division
2
WARNING - The USB parts are for operational maintenance only. Do not leave permanently connected
unless area is known to be non-hazardous
WARNING – EXPLOSION HAZARD - BATTERIES MUST ONLY BE CHANGED IN AN AREA KNOWN TO BE
NON-HAZARDOUS
WARNING - Battery May Explode If Mistreated. Do Not Recharge, Disassemble or Dispose Of In Fire
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.
a. All applicable codes and standards need to be followed in the installation of this product.
b. For I/O wiring (discrete), use the following wire type or equivalent: Belden 9918, 18 AWG or
Adhere to the following safety precautions whenever any type of connection is made to the module.
a. Connect the green safety (earth) ground first before making any other connections.
b. When connecting to electric circuits or pulse-initiating equipment, open their related breakers. Do
c. Make connections to the module first; then connect to the circuit to be monitored.
d. Route power wires in a safe manner in accordance with good practice and local code s.
e. Wear proper personal protective equipment including safety glasses and insulated gloves when
f. Ensure hands, shoes, and floor is dry before making any connection to a power line.
g. Make sure the unit is turned OFF before making connection to terminals. Make sure all circuits
h. Before each use, inspect all cables for breaks or cracks in the insulation. Replace immediately if
Warning: Consult user documentation.
replace the fuse again as a repeated failure indicates a
clear by replacing the fuse.
larger.
make connections to live power lines.
not
making connections to power circuits.
are de-energized before making connections.
defective.
Warning: Electrical Shock Hazard.
March 4, 2010 Page 11 of 135 #1037
CH.1 MAN0883-05-EN
1.2 Grounding
Grounding is covered in various chapters within this manual.
1.3 CE Compliance
To check for compliance and updates, visit our website at:
Figure 2.1 – Visual Overview of XL6/XL6e type OCS - Side and Rear Views
March 4, 2010 Page 13 of 135 #1037
CH.2 MAN0883-05-EN
Figure 2.2 – Front View of XL6/XL6M/XL6e type OCS
2.1.1 Where to Find Information about the XL6/XL6e OCS
a. Datasheets - The datasheets are the first documents you need to refer to
for key information related to specific XL6/XL6e OCS models. (A datasheet is
provided in the box with your unit.)
The datasheets for all XL6/XL6e OCS models are available on our website.
Datasheets contain pin-outs, jumper settings and other model specific
information.
b. User Manual -This manual provides general information that is common to
XL6/XL6e OCS models and can be downloaded from our web. Visit our website
at
http://www.heapg.com to obtain user documentation and updates.
2.1.2 Four main types of information are covered in the manual.
a. Safety and Installation guidelines / instructions (Mechanical and Electrical)
b. Descriptions of hardware features
(Serial ports, Removable Media, Communication Options, etc.)
c. Configuration and Use of the XL6/XL6e OCS
d. Maintenance and Support
2.1.3 Manual Index
IndexMajor topics of interest may be found in the Index towards the end of this manual.
2.1.4 Table of Figures
March 4, 2010 Page 14 of 135 #1037
MAN0883-05-EN CH.2
Table of FiguresLocation of important drawing, illustrations (etc) may be found in the Table of Figures .
2.2 Connectivity to the XL6/XL6e OCS
The XL6/XL6e OCS has excellent capabilities for connecting to a variety of devices. The diagram below
shows some examples of devices that can be used with the XL6/XL6e OCS.
Other OCS Devices
Smart Stix I/O
RCS116 I/O Base
OPC Server
Sensors
Indicators
Alarms
Encoders
Pumps
Relays
Solenoids
CAN
XL6 / XL6e
OCS
I/O
Serial
Ethernet
USB
Flash Drive
Cscape
Other OCS Devices
Drives
PLCs
Bar Code Readers
Printers
SCADA
OPC Servers
Serial I/O
Cscape
OPC Server
Modbus TCP Devices
(XL6e Models
Only)
Figure 2.3 – Visual Overview of Types of Devices that can be connected to XL6/XL6e OCS
2.3 Features of XL6/XL6M/XL6e OCS
The XL6/XL6e OCS are all-in-one industrial control devices. They combine control, user interface, I/O
and networking into a single, integrated package. Unique features of the XL6/XL6e OCS include:
•Bright, 32768 color graphical touch sensing LCD display in all models of XL6/XL6e. XL6M has 16
shade grey scale display.
• Display of complex graphical objects including trends, gauges, meters and animations.
• Advanced control capabilities including floating point, multiple auto-tuning PID loops and string
handling capabilities.
• Removable media for up to two gigabytes of storage of programs, data logging or screen
captures.
• CsCAN networking port for communication with remote I/O, other controllers or PCs.
• USB networking port for communication with PCs and programming of controller.
• Configurable serial protocols for communication to drives, PLCs, or other serial peripherals.
• Full featured, built-in I/O including high resolution analog, thermocouple, RTD, high speed
counters, PWM outputs and relays (depending upon the XL6/XL6e OCS model used).
• Cscape programming software that allows all aspects of the XL6/XL6e OCS to be programmed
and configured from one integrated application.
• Optional communication add-on modules that allow additional capabilities such as Ethernet or
modems.
• On board Ethernet port (10/100Mbps) for Cscape programming and application defined
communication, with Auto MDI/MDI-X (XL6e only).
March 4, 2010 Page 15 of 135 #1037
CH.2 MAN0883-05-EN
2.4 Required and Suggested Accessories
The following list contains a sampling of required and suggested XL6/XL6e OCS accessories. Visit our
website to view updates on new products and accessories.
Note: The XL6/XL6M/XL6e OCS is not shipped with a programming cable in the box. To obtain
a programming cable, order HE500CBL300.
Table 2.1 – XL6 OCS Accessories
Part Number Description
HE-XEC
HE-XMC
HE-MC1 Removable Media card - compatible with XL6 OCS. Card capacity is 256 MB or larger.
HE-MR1
10/100 Ethernet option kit - field installable. Kit includes all parts necessary for internal installation within the
XL6 OCS case, including a deeper plastic back cover adapted for Ethernet operation.
14.4 k Telephone modem option kit - field installable. Kit includes all parts necessary for internal installation
within the XL6 OCS case, including a deeper plastic back cover adapted for modem operation.
Media Card Reader for HE-MC1. Portable device allows HE-MC1 to be plugged into the USB port of personal
computers as a portable hard drive.
Power supply 100-240VAC or 140-340VDC Switching supply that outputs 1.5 A / 3 A
(HE-X24-AS/AL) at 24 VDC. Mounts on Standard DIN rail. Designed for X Family products.
Power supply 100-240 VAC or 140-340 VDC Switching supply that outputs 1.5 A / 3 A
(HE-X24-AS/AL) at 24VDC. Mounts on Standard DIN rail. Designed for X Family products.
USB programming kit. Includes USB to RS-232 adapter, and 6-foot RS-232 cable with D-sub connections.
Requires HE500CBL300 to program the XL6 OCS.
2.5 Useful Documents and References
The following information serves as a general listing of Horner controller products and other references of
interest with their corresponding manual numbers. Visit our website to obtain user documentation and
updates.
Table 2.2 – OCS Reference Document numbers
Note: This list is not intended for users to determine which products are appropriate for their application; controller
products differ in the features that they support. If assistance is required, refer to Technical Suppor
Controllers Manual Number
HE-XExxx (XLe and XLt) MAN0878
XL6/XL6e MAN0883
QX Series (e.g., HE-QXxxx) MAN0798
NX Series (e.g., HE-NXxxx) MAN0781
LX Series (e.g., LX-xxx; also covers RCS116) MAN0755
Color Touch OCS (e.g., OCSxxx) MAN0465
OCS (Operator Control Station) (e.g., OCS1xx / 2xx; Graphic OCS250)
Remote Control Station (e.g., RCS2x0)
MAN0227
MiniOCS (e.g., HE500OCSxxx, HE500RCSxxx) MAN0305
Other Useful References Manual Number
CAN Networks MAN0799
Cscape Programming and Reference MAN0313
Wiring Accessories and Spare Parts Manual MAN0347
t.
March 4, 2010 Page 16 of 135 #1037
MAN0883-05-EN CH.3
CHAPTER 3: MECHANICAL INSTALLATION
Note: Each XL6/XL6e OCS unit is sent with a datasheet in the box. The datasheet is the first
document you need to refer to for model-specific information related to XL6/XL6e OCS models
such as pin-outs, jumper settings, and other key installation information. Visit our website to obtain
datasheets, user documentation, and updates.
3.1 Overview
The mechanical installation greatly affects the operation, safety and appearance of the system.
Information is provided to mechanically install the unit such as cut-out sizes, mounting procedures and
other recommendations for the proper mechanical installation of the unit.
3.2 Mounting Requirements
3.2.1 Mounting Procedures (Installed in a Panel Door)
Once the panel design has been completed using the criteria and suggestions in the
following sections, use the following steps to panel mount the XL6/XL6e OCS.
1. Remove all connectors from the XL6/XL6e OCS unit.
2. Make sure the gasket is installed on the XL6/XL6e OCS and is free from dust and
debris. Check that the corners of the gasket are secure.
3. Pass the unit through the panel.
4. Insert the each of the four (4) mounting clips into the slots in the XL6/XL6e OCS case.
One clip should be installed on each corner. Lightly tignten each screw so the clip is
held in place.
5. Tighten the screws on the clips such that the gasket is compressed against the panel.
001OCS001
Figure 3.1 – Panel Mounting of an XL6/XL6e Series OCS
001OCS002
March 4, 2010 Page 17 of 135 #1037
CH.3 MAN0883-05-EN
3.3 Mounting Orientation
3.3.1 XL6/XL6e OCS Mounting Clip
001OCS004
001XLQX007
Figure 3.2 – XL6/XL6e OCS with Mounting Clips
3.3.2 XL6/XL6e OCS Mounting Orientation
001OCS001
NOTE:There are NO orientation restrictions on the OCS. However, the above orientation provides for optimum
readability of the screen and ease of use of the keypad.
Figure 3.3 – Orientation of XL6/XL6e OCS
March 4, 2010 Page 18 of 135 #1037
MAN0883-05-EN CH.3
3.4 Panel Cut-Out
For installations requiring NEMA4X liquid and dust protection the panel cutout should be cut with a
tolerance of ± 0.005” (0.1 mm).
5.156”
[131mm]
R .12 5” [3 mm] TYP.
RADIUS CORNERS
WHEN REQUIRING
DUST OR WATER
TIGHT SEAL PER
NEMA 4, 4X OR 12
6.875”
[175mm]
001OCS003-R1
Figure 3.4 – Panel Cutout Tolerances
3.5 XL6/XL6M/XL6e Dimensions
Figure 3.5 – XL6/XL6e OCS Dimensions
March 4, 2010 Page 19 of 135 #1037
CH.3 MAN0883-05-EN
3.6 Factors Affecting Panel Layout Design and Clearances
Warning: It is important to follow the requirements of the panel manufacturer and to follow
all 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.
3.6.1 Clearance / Adequate Space
Install devices to allow sufficient clearance to open and close the panel door.
Table 3.1 – Minimum Clearance Requirements for Panel Box and Door
Minimum Distance between base of device and
sides of cabinet
Minimum Distance between base of device and
wiring ducts
If more than one device installed in panel box (or on
door):
Minimum Distance between bases of each device
4 inches between bases of each device
2 inches (50.80mm)
1.5 inches (38.10mm)
(101.60mm)
When door is closed:
Minimum distance between device and closed door
2 inches (50.80mm)
(Be sure to allow enough depth for the XL6 OCS.)
3.6.2 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.
3.6.3 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.
March 4, 2010 Page 20 of 135 #1037
MAN0883-05-EN CH.3
3.6.4 Orientation
When panel-mounted, there are no orientation restrictions on the XL6/XL6e OCS.
3.6.5 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 XL6/XL6e OCS and
noisy devices such as relays, motor starters, etc.
3.6.6 Shock and Vibration
The XL6 OCS has been designed to operate in typical industrial environments that may inflict
some shock and vibration on the unit. For applications that may inflict excessive shock and
vibration please use proper dampening techniques or relocate the XL6/XL6e OCS to a location
that minimizes shock and/or vibration.
3.6.7 Panel Layout Design and Clearance Checklist
The following list provides highlights of panel layout design factors:
____Meets the electrical code and applicable standards for prope r grounding, etc.?
____Meets the panel manufacturer’s requirements for 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? 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 the panel box deep enough to accommodate the XL6/XL6e OCS?
____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 XL6/XL6e 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?
March 4, 2010 Page 21 of 135 #1037
CH.3 MAN0883-05-EN
NOTES
March 4, 2010 Page 22 of 135 #1037
MAN0883-05-EN CH.4
CHAPTER 4: ELECTRICAL INSTALLATION
Note: Each XL6/XL6M/XL6e OCS unit is sent with a datasheet in the box. The datasheet is the first
document you need to refer to for model-specific information related to XL6/XL6e OCS models
such as pin-outs, jumper settings, and other key installation information. Visit our website to obtain
datasheets, user documentation, and updates.
4.1 Grounding Definition
Ground: The term Ground is defined as a conductive connection between a circuit or piece of equipment
and the earth. Grounds are fundamentally used to protect an application from harmful interference
causing either physical damage such as by lightning or voltage transients or from circuit disruption often
caused by radio frequency interference (RFI).
4.2 Ground Specifications
Ideally, a ground resistance measurement from equipment to earth ground is 0 ohms. In reality it typically
is higher. The U.S. National Electrical Code (NEC) states the resistance to ground shall not
twenty-five (25) ohms. Horner APG recommends less than
fifteen (15) ohms resistance from our
equipment to ground. Resistance greater than twenty-five (25) ohms can cause undesirable or harmful
interference to the device.
4.3 How to Test for Good Ground
In order to test ground resistance, a Ground Resistance Tester must be used. A typical Ground
Resistance Meter Kit contains a meter, two or three wire leads, and two ground rods. Instructions are
supplied for either a two-point or three-point ground test.
Figure 4.1 shows a two-point ground connection test.
GROUND RESISTANCE METER
GROUND
DISCONNECTED
FROM SERVICE
GROUND ROD
METAL WATER PIPE OR
OTHER GOOD GROUN D
Figure 4.1 – Two-Point Ground Connection Test
exceed
March 4, 2010 Page 23 of 135 #1037
CH.4 MAN0883-05-EN
(
)
4.4 Primary Power Port
Table 4.1 – Primary Power Port Pins
Pin Signal Description
1 Frame Ground
2 0V Input power supply ground
3 +24V Input power supply positive voltage
+
-
10-30 VDC
supply
+
-
Figure 4.2 – Power Connector (Primary Power Port)
+
-
Power Connector
Power Up:
Connect to Earth Ground.
Apply 10 – 30 VDC.
Screen lights up.
Torque rating 4.5 - 7 Lb-In
0.50 – 0.78 N-m
PIN 1
PIN 2
PIN 3
Figure 4.3 – Primary Power Port as Viewed Looking at the XL6/XL6e OCS
March 4, 2010 Page 24 of 135 #1037
MAN0883-05-EN CH.5
CHAPTER 5: SERIAL COMMUNICATIONS
5.1 Overview
All XL6/XL6M/XL6e OCS models provide two serial ports, which are implemented with 8-pin modular
RJ45 connectors, and are labeled MJ1 and MJ2. The MJ1 serial port is normally used (although MJ2 can
also be used) for XL6/XL6M/XL6e OCS programming by connecting it to the COM port of a PC running
Cscape. In addition, both MJ1 and MJ2 can be used for application-specific communication, using a
variety of standard data exchange protocols.
5.2 Port Descriptions
The MJ1 serial port contains both a half-duplex RS-485 interface and an RS-232 interface with RTS/CTS
handshaking. Note: MJ1 shares its serial port with the optional COM module, so when an optional Ethernet or Modem COM module is installed and active, the MJ1 connector is inactive.
The MJ2 serial port contains both a full-duplex RS-485 interface and an RS-232 interface with no
handshaking. Both the MJ1 and MJ2 RS-485 interfaces provide switchable termination and bias resistors
internally.
5.3 Wiring
Figure 5.1 along with
assigned.
Pin Signal Signal Description Direction
1
Signals are labeled for connection to a DTE device
RX/TX−
3 CTS
4 RTS1 RS-232 Request to Send In
5 +5* +5 VDC 60mA max Out
6 0V Ground
7 TD1 RS-232 Transmit Data In
8 RD1 RS-232 Receive Data Out
• * +5 on XLe Rev E and later
• * +5 on all revisions XLt and XL6 and QX351
RS-485 Receive/Transmit Negative
1
RS-232 Clear to Send Out
Table 5.1 and Table 5.2 show how the MJ1 and MJ2 serial port pins are
Note: MJ1 and MJ2 look the
same but have different pin
assignments and functions.
8
1
Figure 5.1 – MJ Serial Port Connector
8
In/Out
1
−
Pin MJ1 Pins
Signal Direction
TXD OUT
8
RXD IN
7
0 V Ground
6
+5 60mA OUT
5*
RTS OUT
4
CTS IN
3
RX- / TX- IN / OUT
2
RX+ / TX+ IN / OUT
1
March 4, 2010 Page 25 of 135 #1037
CH.5 MAN0883-05-EN
8
8
Table 5.2 – – MJ2 Serial Port Pin Assignments
Pin Signal Signal Description Direction
1 RX+ RS-485 Receive Positive In
2
RX−
3 TX+ RS-485 Transmit Positive Out
4
TX−
5 +5* +5 VDC 60mA max Out
6 0V Ground
7 TD1 RS-232 Transmit Data In
8 RD1 RS-232 Receive Data Out
RS-485 Receive Negative In
RS-485 Transmit Negative Out
−
1
Pin MJ2 Pins
8
7
6
5*
4
3
2
1
Signal Direction
TXD OUT
RXD IN
0 V Ground
+5 60mA OUT
TX- OUT
TX+ OUT
RX- IN
RX+ IN
MJ2 Full Duplex Mode
* +5Vdc 60mA Max
Pin MJ2 Pins
1
Signal Direction
TXD OUT
8
RXD IN
7
0 V Ground
6
+5 60mA OUT
5*
TX- OUT
4
TX+ OUT
3
TX-/RX- IN/OUT
2
TX+/RX+ IN/OUT
1
MJ2 Half Duplex Mode
* +5Vdc 60mA Max
Switch
On
Position
Figure 5.2 – MJ Serial Port Connectors and DIP Switches for RS-485 Port Termination
March 4, 2010 Page 26 of 135 #1037
MAN0883-05-EN CH. 5
r
The DIP Switches are used fo
termination of the RS-485 ports. The
XL6 is shipped un-terminated.
To terminate, select one of the DIP
Switches and configure it based upon
the option that is desired.
SW1 - ON enables MJ2 RS485 port
termination (121 Ohms).
OFF disables MJ2 RS485 port
termination.
SW2 & SW3 - ON places MJ2 RS485 port in
half-duplex mode.
OFF places MJ2 RS485 port in full-
duplex mode.
SW4 - ON enables MJ1 RS485 port
termination (121 Ohms).
OFF disables MJ1 RS485 port
termination.
5.4 RS-485 Termination
Proper RS-485 termination minimizes reflections and improves reliability.
Both serial ports allow an internal RS-485 termination resistor to be placed across pins 1 and 2 by DIP
Switch Setting.
the two devices physically located at the endpoints of the RS-485 network should be terminated.
Only
5.5 RS-485 Biasing
RS-485 biasing passively asserts a line-idle state when no device is actively transmitting, which is useful
for multi-drop RS-485 networking.
Both serial ports allow internal RS-485 bias resistors to be switched in, pulling pin 1 up to 3.3V and pulling
pin 2 down to ground. The Set Serial Ports item in the System Menu can be used to enable RS-485
biasing. Also, an application graphics screen that writes to %SR164 can do the same thing. Setting
%SR164.1 enables MJ1 biasing and setting %SR164.2 enables MJ2 biasing.
If biasing is used, it should be enabled in only one of the devices attached to the RS-485 network.
5.6 Cscape Programming via Serial Port
The XL6/XL6e OCS MJ1 serial port supports CsCAN Programming Protocol, but MJ2 does not. If a PC
COM port is connected to the XL6/XL6e OCS MJ1 serial port, Cscape can access the XL6/XL6e OCS for
programming and monitoring.
5.7 Ladder-Controlled Serial Communication
Using Serial Communication function blocks, both MJ1 and MJ2 support Generic, Modbus Master and
Modbus Slave Protocols. In addition, external modems can be connected and accessed using Init, Dial
and Answer Modem function blocks.
5.8 Downloadable Serial Communication Protocols
Both MJ1 and MJ2 also support downloadable protocols, such as Allen Bradley DF1, CsCAN Master, GE
Fanuc SNP and Modbus Master.
March 4, 2010 Page 27 of 135 #1037
CH.5 MAN0883-05-EN
Note: Refer download section of website for the list of latest supported protocols
Note: For additional CAN information, refer to the CAN Networks manual (
6.1 Overview
All XL6/XL6M/XL6e OCS models provide a CAN networking port, which is implemented with a 5-pin
connector. The connector is labeled NET1.
MAN0799) on our website.
Figure 6.1 – NET 1 Connector
Like the MJ1 serial port, the NET1 port can be used for XL6/XL6e OCS programming by connecting it to
the CAN port of a PC running Cscape. The NET1 port also allows the XL6/XL6e OCS to exchange global
data with other OCS/RCS controllers and to access remote Network I/O devices (SmartStix Modules).
6.2 Port Description
The XL6/XL6e OCS NET1 port implements the ISO 11898-2 physical layer and the CAN 2.0A data link
layer standards. Also, since the NET1 port is powered by an internal isolated power supply, external
CAN power is not required.
March 4, 2010 Page 29 of 135 #1037
CH.6 MAN0883-05-EN
6.3 CAN (NET1) Port Wiring
CAN Connector
Use the CAN Connector
when using CsCAN network.
Torque rating 4.5 – 7 Lb-In
(0.50 – 0.78 N-m)
Note: The V+ connection is not
required on the XL6/XL6e OCS.
The XL6/XL6e OCS network port
is self-powered. Supporting
devices can require this
connection, and this pin can be
used to land the extra wire
required for those devices.
Figure 6.2 – NET1 Port Connector
Table 6.1 – NET1 Port Pin Assignments
Pin Signal Signal Description Direction
1 V- CAN Ground
−
2 CN_L CAN Data Low In/Out
3 SHLD Shield Ground
−
4 CN_H CAN Data High In/Out
5 NC No Connect
−
6.4 Cscape Programming via CAN
The NET1 port supports CsCAN Programming Protocol. If a PC has a CAN interface installed (via PCI
card or USB), and the PC CAN port is connected to the XL6/XL6e OCS NET1 port, Cscape can access
the XL6/XL6e OCS for programming and monitoring.
In addition, the XL6/XL6e OCS supports single-point-programming of all XL6/XL6e OCS and other
OCS/RCS devices that are connected to a CAN network. If the PC COM port is connected to the
XL6/XL6e OCS MJ1 serial port, the XL6/XL6e OCS can act as a pass-through gateway allowing Cscape
to access all XL6/XL6e OCS and OCS/RCS devices that are attached to the CAN network.
6.5 Ladder-Controlled CAN Communication
Using Put and Get Network Words function blocks, the NET1 port can exchange digital and analog global
data with other XL6/XL6e OCS or OCS/RCS devices (nodes) attached to the CAN network.
In addition, Put and Get Network Heartbeat function blocks allow nodes on the CAN network to regularly
announce their presence and to detect the presence (or absence) of other nodes on the network.
6.6 Using CAN for I/O Expansion (Network I/O)
Connecting Network I/O devices (SmartStix Modules) to the XL6/XL6e OCS NET1 port, allows the
XL6/XL6e OCS I/O to be economically expanded and distributed. A variety of SmartStix Modules is
available for this purpose.
March 4, 2010 Page 30 of 135 #1037
MAN0883-05-EN CH.7
CHAPTER 7: ETHERNET COMMUNICATION (XL6E ONLY)
Note: Xl6e Models namely HE-XL1Ex / HEXT351Cxxx support onboard / built in Ethernet port. It provides
advanced Ethernet Communication capabilities.
7.1 Ethernet Module Protocols and Features
The following table describes the Ethernet Module Protocols and features supported by XL6e.
Protocol / Feature Protocol / Feature Description
ICMP Ping Internet Control Message Protocol
EGD (Peer) GE Fanuc Ethernet Global Data
SRTP Server GE Fanuc Service Request Transfer Protocol
CsCAN TCP Server Horner APG CsCAN over Ethernet
Modbus TCP Slave Modbus over Ethernet
Ethernet / IP Server ODVA CIP over Ethernet
FTP Server File Transfer Protocol
HTTP Server HyperText Transfer Protocol (W eb Server)
7.2 Ethernet System Requirements
Full Ethernet functionality requires:
1. PC running Cscape Programming Software Version 8.7 with upgrade or later (for configuration).
2. XL6e controller with onboard Ethernet port.
3. FTP & HTTP protocols.
7.3 Ethernet Module Specifications
Speeds 10 BaseT Ethernet (10-Mbps)
100 BaseTx Fast Ethernet (100-Mbps)
Modes Half or Full Duplex
Auto-Negotiation Both 10/100-Mbps and Half/Full Duplex
Connector Type Shielded RJ-45
Cable Type
(Recommended)
Port Auto MDI/MDI-X
7.4 Ethernet Module Configuration
Note: The following configuration is required for all applications regardless of the protocols used.
Additional configuration procedures must be performed for each protocol used.
To configure the Ethernet Module, use Cscape Programming Software to perform the following steps
1. On the main Cscape screen, select the Controller menu and its I/O Configure sub-menu to
open the I/O Configuration dialog (Figure 7.1)
2. If configuring a different OCS Model than the one shown in the I/O Configuration dialog, click
on the topmost Config button, select the desired OCS Model, and then click OK
CAT5 (or better) UTP
March 4, 2010 Page 31 of 135 #1037
CH.7 MAN0883-05-EN
Figure 7.1 – I/O Configuration Dialog
3. Click the Config button to the right of the Ethernet Module, and then select the Module Setup
tab, revealing the Ethernet Module Configuration dialog as shown in figure 7.2
March 4, 2010 Page 32 of 135 #1037
MAN0883-05-EN CH.7
Figure 7.2 – Ethernet Module Configuration
4. Configure the Ethernet Module parameters as follows:
IP Address: Enter the static IP Address for the Ethernet Module being configured.
Note: IP Addresses are entered as four numbers, each ranging from 0 to 255. These four numbers
are called octets and they are always separated by decimal points.
Net Mask: Enter the Net Mask (sometimes called Subnet Mask) being used by all nodes on the local
network. Typical local networks use Class C IP Addresses, in which case the low octet (rightmost
number) is used to uniquely identify each node on the local network. In this case, the default Net
Mask value of 255.255.255.0 should be used.
Gateway: Enter the IP Address of a Gateway Server on the local network that allows for
communication outside of the local network. To prevent the Ethernet Module from communicating
outside the local network, set the Default Gateway IP Address to 0.0.0.0 (the default setting).
Status Register: Enter an OCS Register reference (such as %R100) to indicate which 16-bit OCS
register will have the Ethernet Status word written to it. Table 7.1 shows how this register value is
formatted and explains the meaning of each bit in the Status Word.
March 4, 2010 Page 33 of 135 #1037
CH.7 MAN0883-05-EN
Table 7.1 - Ethernet Status Word Register Format
High Byte Low Byte
Bit
Bit
Bit
Bit
16
15
0 0 Dup Spd 0 Rx Tx Link TCP Connections
14
13
Bit
12
Bit
11
Bit
Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit
10
1
Status Bit(s) Status Indication
Status Values
Minimum Maximum
0 Reserved Always 0
Dup Link Duplex (Auto-Negotiated) 0 = Half Duplex 1 = Full Duplex
Spd Link Speed (Auto-Negotiated) 0 = 10 MHz 1 = 100 MHz
Rx Receive State 0 = Inactive 1 = Active
Tx Transmit State 0 = Inactive 1 = Active
Link Link State 0 = Down 1 = Up
TCP Connections
Total Number of Active TCP Connections
(CsCAN, SRTP, Modbus, EIP, FTP, HTTP)
0 40
Version Register: Enter an OCS Register reference (such as %R101) to indicate which 16-bit OCS
register will have the Ethernet Firmware Version written to it. The value stored in the Version Register
is: (Ethernet Firmware Version * 100). For example, for Ethernet Firmware Version 4.30, the Version
register will contain 430.
Ethernet Module Register Usage - Standard Configuration
To perform Standard Configuration, simply leave the Enhanced Configuration checkbox unchecked.
In this case, Net Mask and Gateway cannot
and Version must
be assigned to OCS registers.
be assigned to OCS registers, while IP Address, Status
Note that the assigned IP Address register’s Direction can set to Read only or Read / Write.
If the register is Read only, the Default IP Address becomes the unit’s IP Address and is loaded into
the assigned register, where it can be read by the application. (Note: In this case, the low octet of the
IP Address can be replaced with the unit’s CAN Network ID, by checking the Use CAN ID for last Octet checkbox.)
If the register is Read / Write, the application should write an IP Address to the assigned register, and
this value will then be the unit’s IP Address. (In this case, the Default IP Address is used only if
communication is lost during an I/O configuration download; otherwise the Default IP Address is
ignored.)
To perform Enhanced Configuration, first check the Enhanced Configuration checkbox. In this case,
IP Address, Net Mask, Gateway, Status and Version can all be optionally
assigned to OCS
registers. By default, the register edit boxes are empty indicating that no registers are assigned.
As with the IP Address register (described in the Standard Configuration section above), Net Mask
and Gateway register Directions can be set to Read Only or Read / Write.
Ethernet Module Register Usage – General
For the Status and Version registers (if configured), the Direction settings are always
Read Only.
March 4, 2010 Page 34 of 135 #1037
MAN0883-05-EN CH.7
The Use CAN ID for last Octet checkbox does not affect Net Mask, Gateway, Status or Version
configuration.
Ethernet Module Protocol Configuration
The Protocol Support area contains a list of all the protocols supported by the platform being
configured. To activate a protocol, check its checkbox.
For protocols that require additional configuration, click on a listed protocol to select it and then click
the Configure Selected Protocol button. This will open a new dialog with configuration options for the
selected protocol.
For detailed information on individual protocol configuration refer latest version of ETN 300 Manual
SUP0740
March 4, 2010 Page 35 of 135 #1037
CH.7 MAN0883-05-EN
NOTES
March 4, 2010 Page 36 of 135 #1037
MAN0883-05-EN CH.8
CHAPTER 8: COMMUNICATION OPTIONS
8.1 Overview
To supplement the built-in MJ1 and MJ2 serial ports, additional communication options are available.
This is accomplished by installing a COM module internal to the XL6 OCS controller.
8.1.1 MJ1 sharesits serial port with the optional COM module, so when an Ethernet or Modem
COM module is installed and active, the MJ1 connector is inactive.
Internal to the XL6 OCS, there is a CPU board, and up to two installed modules. Models HE-
XL100 / HEXT350C100
module in Slot 1 and could have a user-installed COM module in Slot 2.
This chapter briefly describes both the Ethernet and Modem COM module options. For detailed
information regarding these modules, please refer to the individual documents provided with the
modules.
8.2 Ethernet COM Module (XEC) Option
An Ethernet COM module can be installed to allow Cscape programming of an XL6 OCS over a Local
Area Network or over the Internet. In addition, the Horner OPC Server can be installed on a PC to allow
other standard PC applications (such as database and spreadsheets programs) access to XL6 OCS
register data.
The Ethernet COM module supports 10 BaseT (10 MHz) and 100 BaseTx (100 MHz) as well as both half
and full duplex communication. Both the connection speed and the duplex are auto-negotiated.
Although the physical connection between the Ethernet COM Module and the Local Area Network is done
using a standard Ethernet cable (CAT5 or better with RJ45 modular plug), a Serial Port Tunnel protocol
is employed that makes the Ethernet COM Module appear as a serial port to Cscape or OPC Server
software running on the PC.
On the XL6 OCS end of the Serial Port Tunnel, the Ethernet COM module should be properly configured
using the XL6 OCS System Menu. This configuration consists of making Ethernet the Default
Programming Port and setting its target IP Address, Net Mask and optionally the Gateway IP Address.
The Gateway IP Address is required if the XL6 OCS will be accessed from outside the Local Area
Network (e.g. the Internet).
On the PC end of the Serial Port Tunnel, the PC should be connected to the Local Area Network (or to
the Internet).
After installing and configuring the Ethernet COM module, Cscape or OPC Server software should be set
up to communicate to one of the “virtual” serial ports, at which point they should function as if a “real” PC
serial port was connected to the XL6 OCS MJ1 serial port.
have no installed I/O or COM modules. All other models have an I/O
March 4, 2010 Page 37 of 135 #1037
CH.8 MAN0883-05-EN
8.3 Modem COM Module (XMC) Option
A Modem COM module can be installed to allow Cscape programming of an XL6 OCS over a dial-up
network. In addition, the application ladder program can take control of the modem for application-specific
modem communication.
The Modem COM module supports the standard AT command set and can connect to the dial-up network
at speeds up to 14.4 KBaud. Connection speed is auto-negotiated. The Modem COM module connects to
the dial-up network (phone line) via a cable with a standard RJ11 modular plug.
To enable Cscape programming via a dial-up network, the Modem COM module should first be
configured as the Default Programming Port, using the XL6 OCS System Menu. Doing this puts the
Modem COM module in auto-answer mode, so Cscape can call the XL6 OCS via a remote modem.
To program the ladder application to communicate via the Modem COM module, standard Cscape Serial
and Modem function blocks can be used.
March 4, 2010 Page 38 of 135 #1037
MAN0883-05-EN CH.10
CHAPTER 9: REMOVABLE MEDIA
9.1 Overview
All XL6/XL6M/XL6e OCS models provide a Removable Media slot, labeled Memory Card, which
supports standard Micro SD Flash memory cards. Micro SD cards can be used to save and load
applications, to capture graphics screens and to log data for later retrieval.
Figure 9.1 – Removable Micro SD Memory Card Slot
9.2 Micro SD Cards
When the Micro SD card format was introduced, it was originally called TransFlash. Cards labeled either
Micro SD or TransFlash, with up to 2.0 GB of Flash memory, are compatible with the XL6/XL6e OCS
Memory slot.
The Memory slot is equipped with a “push-in, push-out” connector and a Micro SD card can be safely
inserted into the Memory slot whether the XL6/XL6e OCS power is On or Off.
To install a Micro SD card: Align its 8-pin gold edge connector down, facing the front of the
XL6/XL6e OCS unit as shown in Figure 9.2; then carefully push it all the way into the Memory
slot. Ensure that it clicks into place.
To remove the Micro SD card: Push down on the top of the card gently to release the spring.
The card pops up for removal.
Figure 9.2 – Installing Removable Memory Card
March 4, 2010 Page 39 of 135 #1037
CH.10 MAN0883-05-EN
9.3 Micro SD File System
The Micro SD Memory slot uses the PC-compatible FAT16 File System. This means that a PC, with a
Micro SD-compatible card reader, can read files that have been written by the XL6/XL6e OCS and can
write files that can be read by the XL6/XL6e OCS.
However, the XL6/XL6e OCS does not
format. This means that all file and directory names must
support long filenames, but instead implements the 8.3 filename
consist of up to 8 characters, followed by an
optional dot, and an optional extension with up to 3 characters.
Directories and sub-directories can be nested up to 16 levels deep as long as each pathname string does
exceed 147 characters.
not
9.4 Using the Removable Media Manager
The Removable Media Manager is an interactive XL6/XL6e OCS screen that performs the following
functions:
a. Display number of total and free bytes
b. Browse file and directory lists
c. Delete files and directories
d. Format a Micro SD card
e. Load and save application programs
f. View screen capture bitmaps
The Removable Media Manager can be accessed via the System Menu or by using Cscape to place a
Removable Media Manager object on an application graphics screen.
Figure 9.3 – XL6 Removable Media Submenu
9.5 Using Removable Media to Log Data
Using Read and Write Removable Media function blocks, an application ladder program can read and
write XL6/XL6e OCS register data in the form of comma-delimited files, with a .CSV extension. These
files are compatible with standard database and spreadsheet PC programs. In addition, an application
ladder program can use Rename and Delete Removable Media function blocks to rename and delete
files.
March 4, 2010 Page 40 of 135 #1037
MAN0883-05-EN CH.10
9.6 Using Removable Media to Load and Save Applications
A special file type, with a .PGM extension, is used to store XL6/XL6e OCS application programs on Micro
SD.
To load an application from Micro SD to the XL6/XL6e OCS, use the Removable Media Manager (open
the Removable Media Manager in the System Menu) to find and highlight the desired .PGM file, and then
press the Enter key.
To save an application from the XL6/XL6e to Micro SD, open the Removable Media Manager in the
System Menu and press the Save Pgm
function key. The application will be saved in a file called
DEFAULT.PGM in the Micro SD root directory.
Note: Saving an application to Micro SD can only
Menu and is not
available on a Removable Media Manager object that was placed on an
be done from the Removable Media System
application graphics screen by Cscape.
Cscape can also save an application directly to a Micro SD card, which is plugged into the PC’s Micro SD
compatible card reader by selecting the Export to Removable Media item on the Cscape File menu.
9.7 Using Removable Media to View and Capture Screens
The XL6/XL6e OCS File System uses bitmap files with the .BMP (.bmp) extension to store XL6/XL6e
OCS graphic screen captures.
To view a captured XL6/XL6e OCS screen, use the Removable Media Manager to find and highlight the
desired .BMP file, and then press Enter.
To capture an XL6/XL6e OCS screen, turning On the assigned Screen Capture Control Register will
capture the current XL6/XL6e OCS graphics screen and write it to the Micro SD card using the assigned
Screen Capture Filename.
Before capturing an XL6/XL6e OCS screen, Cscape must first be used to assign a Screen Capture Control Register and Filename in the application. To do this, first open the Graphics Editor by selecting
the View / EditScreens item on the Cscape Screens menu. Next select the Screen Capture item of the
Graphics Editor Config menu and then enter a Control Register and Filename.
9.8 Removable Media (RM) Function Blocks in Cscape
Note: For detailed information regarding RM function blocks and parameters, refer to the help file
in Cscape Software. Refer ‘USB Flash Media support for RM Functions’ for USB flash drive access
details.
The following RM functional blocks are available in Cscape Software. These function blocks will reference
- Micro SD when filename is prefixed with ‘A:’ or nothing OR
- USB A Flash Drive when filename is prefixed with ‘B:’.
a. Read RM csv
This function allows reading of a comma-separated value file from the Micro SD interface into the
controller register space.
b. Write RM csv
This function allows writing of a comma-separated value file to the Micro SD interface from the
March 4, 2010 Page 41 of 135 #1037
CH.10 MAN0883-05-EN
controller register space.
c. Rename RM csv: This function allows renaming a file on the RM card. The data in the file is not
changed.
d. Delete RM csv: This function allows deleting a file on the RM card.
e. Copy RM csv: This function allows copying a file on the RM card. The data in the file is not changed.
9.9 Filenames used with the Removable Media (RM) Function Blocks
The RM function blocks support the flash with a DOS/Windows standard FAT-16 file system. All names
must be limited to the “8.3” format where the filename contains eight characters a period then a threecharacter 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.
Table 8.1 – Filename Special Symbols
Symbol Description Example
$Y
$M
$D
$h
$m
$s
Substitutes the current month with a 2 digit code March = 03
Substitutes the current 2 digit year 2004 = 04
nd
Substitutes the current day 22
= 22
Substitutes the current hour in 24 hour format 4 pm = 16
Substitutes the current minute 45 = 45
Substitutes the current second 34 = 34
Note that all the symbols start with the dollar sign ($) character. Date symbols are in upper case, time
symbols are in lower case. The following are examples of the substituted time/date filenames:
Current date and time: March 1, 2004 3:45:34 PM
Filename: Data$M$D.csv = Data0301.csv
Filename: Year$Y\Month$M\aa$D_$h.csv = Year04\Month03\aa01_15.csv
Filename: Month_$M\Day_$D\$h_$m_$s.csv = Month_03\Day_01\15_45_34.csv
9.10 System Registers used with RM
%SR175 Status – This shows the current status of the RM interface.
%SR176 Free Space – This 32-bit register shows the free space on the RM card in bytes.
%SR178 Card Capacity – This 32-bit register shows the total card capacity in bytes.
Possible status values are shown in the table:
Table 8.2 – RM Status Values
0 RM interface OK
1 Card present but unknown format
2 No card in slot
3 Card present, but not supported
4 Card swapped before operation was complete
5 Unknown error
March 4, 2010 Page 42 of 135 #1037
MAN0883-05-EN CH.10
CHAPTER 10: GENERAL I/O
Note: Each XL6/XL6e OCS unit is sent with a datasheet in the box. The datasheet is the first document you need to refer to for model-specific information related to XL6/XL6e OCS models such as pinouts, jumper settings, and other key installation information. Visit our website to obtain datasheets,
user documentation, and updates.
10.1 Overview
The XL6/XL6e OCS is a compact unit that contains high density, very versatile I/O. Using the I/O
properly requires wiring to the proper terminals, configuring jumpers inside the XL6/XL6e OCS unit and
configuring Cscape properly. This section will offer some tips and suggestions to configure the I/O
properly. For the register mapping of the I/O, refer to the
referencing register mapping.
10.2 Removing the XL6/XL6e OCS I/O Cover
Warning: Power, including I/O power must be removed from the unit prior to removing the
back cover. Failure to do so could result in electrocution and/or damage to equipment.
Some I/O configurations require jumper settings to be changed inside the XL6/XL6e OCS unit. Examples
of these settings are setting positive or negative logic on digital inputs or setting current or voltage on
analog inputs.
Each XL6/XL6e OCS I/O jumper is set to a factory default. Refer to the data sheet for your XL6/XL6e
OCS model to find the default setting to determine if a jumper change is necessary for your application.
To remove the I/O cover of the XL6/XL6e OCS, remove the four (4) Phillips screws from the I/O back. It
may help to place the XL6/XL6e OCS unit face down on a clean work surface. Once the four screws are
removed the I/O cover can be lifted straight off.
Once the back is removed the jumper selection can be changed. The jumper settings are documented on
each data sheet using a diagram such as Figure 9.4 below and a description of the jumper settings.
JP1
J4
J1J2
JP3
001XLE005-R1
J3
Figure 10.4 – Example Jumper Diagram
To re-install the cover, place the I/O cover back on the unit.
Place the screw back into the hole and turn the screw slowly counter clockwise until it clicks into the
threads. This prevents the screw from being cross-threaded. Now turn the screw clock-wise until the
cover is firmly secured. Repeat this process for all four (4) screws.
10.3 Model and I/O Overview
Table 10.1 – I/O and Model Overview
Solid State
Digital
Outputs
Relay
Outputs
Digital
Inputs
Analog
Inputs
Universal
Analog Inputs
Analog
Outputs
9
9
9 9 9
9 9
9 9
Model
(XL6/XL6e)
HE-XL1x0 /
HEXTxxxC100
HE-XL1E0 /
HEXT351C100
HE-XL1x2 /
HEXTxxxC112
HE-XL1E2 /
HEXT351C112
HE-XL1x3 /
HEXTxxxC113
HE-XL1E3 /
HEXT351C113
HE-XL1x4 /
HEXTxxxC114
HE-XL1E4 /
HEXT351C114
HE-XL1x5 /
HEXTxxxC115
HE-XL1E5 /
HEXT351C115
9
9
9 9
Table 10.1 shows the different types of I/O included with the various XL6/XL6M/XL6e OCS
models. Specific specifications, jumper settings and wiring diagrams can be found on the data
sheets attached at the end of the manual. Descriptions and applications of the different type of
I/O can be found below.
March 4, 2010 Page 45 of 135 #1037
CH.10 MAN0883-05-EN
10.4 Solid-State Digital Outputs
Solid-state digital outputs are generally used to activate lamps, low voltage solenoids, relays and other
low voltage and low current devices.
Note: The digital outputs used on the XL6/XL6e OCS are “sourcing” outputs. This means the output
applies a positive voltage to the output pin when turned ON. When turned off, the output applies
approximately zero volts with respect to the I/O ground.
J2
10 - 30VDC
0V
V+
J4
LOAD
Q16
LOAD
Q15
LOAD
Q14
Figure 10.5 – Typical Output Wiring
The digital outputs used in the XL6/XL6e OCS have electronic short circuit protection and current limiting.
While these electronic protections work in most applications, some application may require external
fusing on these outputs.
The digital outputs in the XL6/XL6e OCS are typically controlled via %Q bits in the register mapping.
Some of the outputs are designed for high-speed applications and can be used for PWM or frequency
output applications. Please see the data sheet and the chapter on High Speed I/O for additional
information.
When the controller is stopped the operation of each output is configurable. The outputs can hold the
state they were in before the controller stopped or they can go to a predetermined state. By default digital
outputs turn off. For more information on stop state see the
Index to find pages referencing Cscape
settings.
The digital outputs feature an output fault bit. %I32 will turn on if any of the outputs experience a short
circuit, over-current or the output driver overheats.
10.5 Relay Outputs
Relay outputs are designed to switch loads that typically have high voltage or current requirements or
require isolation that relays provide.
Note: The design of the XL6/XL6e OCS does not require external coil power for the relays to function.
The relays will activate anytime the XL6/XL6e OCS is powered.
March 4, 2010 Page 46 of 135 #1037
MAN0883-05-EN CH.10
There are several factors that should be considered when using relays.
Relay Life – Relays are mechanical devices that have a long but limited life. Typically, switching more
current limits the life of relays. Please check the data sheets at the end of this manual for expected relay
life.
Current / Temperature De-Rating – Products containing relays often have total current limits based on
the ambient temperature of the application. Please see the product data sheet for current / temperature
de-rating information for relays.
Fusing – External fusing is generally required to protect the relays, devices and wiring from shorts or
overloads.
Warning: To protect the module and associated wiring from load faults, use external (5 A) fuse(s) as
Warning: Connecting high voltage to any I/O pin can cause high voltage to appear at other I/O pins.
shown. Fuses of lower current or fusing for the entire system need to be in place to assure
the maximum current rating of the unit is not
exceeded.
0V ON J1
230VAC
OR
25VDC
230VAC
OR
25VDC
230VAC
OR
25VDC
230VAC
OR
25VDC
230VAC
OR
25VDC
230VAC
OR
25VDC
12-24VDC
N
L
LOAD
N
L
LOAD
N
L
LOAD
N
L
LOAD
N
L
LOAD
N
L
LOAD
C6
R6
C5
R5
C4
R4
C3
R3
C2
R2
C1
R1
H4
H3
H2
001XLE015
Figure 10.6 – Relay Fusing
March 4, 2010 Page 47 of 135 #1037
CH.10 MAN0883-05-EN
Protection for Inductive Loads – Inductive loads can cause reverse currents when they shut off that can
shorten the life of relay contacts. Some protective measures need to be determined by an engineer.
Below you will find recommendations that will work for many applications. If you have additional
questions on protection from inductive load, consult an application engineer or HEAPG Technical
Support.
DC Loads – General purpose diode (IN4004) in reverse bias across the load.
AC Load – MOV (Harris V140xxx for 120V, V275xx for 220V)
Output State on Controller Stop
When the controller is stopped the operation of each output is configurable. The outputs can hold the
state they were in before the controller stopped or they can go to a predetermined state. By default relay
outputs turn off. For more information on stop state see the
Index for Cscape settings pages.
10.6 Digital Inputs
Note: Refer to the datasheet for XL6/XL6e OCS model you are using for details on jumper settings.
Note: The digital inputs on the XL6/XL6e OCS are designed for low voltage DC inputs. The inputs are
designed to support both positive and negative input modes. The mode is set by a jumper setting and a
configuration parameter in Cscape. All the inputs on the unit must be configured to the same mode.
The XL SERIES OCS can be wired for Positive Logic inputs or Negative
12-24VDC
Positive Logic vs. Negative Logic Wiring
Logic inputs.
I1
0V
Positive Logic In Negative Logic In
I1
0V
001XLE036
Figure 10.7 – Positive and Negative Inputs
In positive logic mode a positive voltage applied to the input will turn the input. The internal design of this
mode is basically a resistor from the input to I/O ground. This mode is sometimes called sourcing.
In negative logic mode, connecting the input to the I/O ground or zero volts will turn the input on. The
internal design of this mode is basically a resistor from the input to the positive I/O voltage (usually 12 or
24 volts). This mode is sometime called sinking.
Some of the digital inputs may support high speed input functional such as counting or frequency
measurement.
10.7 Analog Inputs
Note: See the data sheet for the XL6/XL6e OCS model you are using for jumper settings and see the
appropriate page in this manual (see
Index) for details on how to use Cscape to configure the digital
filtering.
March 4, 2010 Page 48 of 135 #1037
MAN0883-05-EN CH.10
The analog inputs on the XL6/XL6e OCS allow voltage or current measurement from a variety of devices.
The voltage or current mode is set though jumpers on the unit and settings in Cscape. Each channel can
be separately configured for voltage or current mode.
The analog inputs have a digital filter that can be used to filter electrical noise that may be unavoidable in
some installations. The downside to digital filtering is the inputs will respond more slowly to sudden
changes in the actual input.
10.8 Universal Analog Inputs
Note: See the data sheet for the XL6/XL6e OCS model you are using for jumper settings and see the
appropriate pages in this manual (see
Index) for details on how to use Cscape to configure the digital
filtering.
The universal analog inputs provide a high resolution, very flexible interface for a variety of analog inputs.
These inputs include voltage, current, thermocouple, RTD and millivolt. Each channel can be configured
separately using jumpers and configuration settings in Cscape.
Like the standard analog inputs, these inputs have a digital filter that can be used to filter electrical noise
that may be unavoidable in some installations. The downside to digital filtering is the inputs will respond
more slowly to sudden changes in the actual input.
10.9 Analog Outputs
Note: Refer to the datasheet for XL6/XL6e OCS model you are using for details on jumper settings.
The analog outputs on XL6/XL6e OCS devices provide high resolution voltage or current outputs. The
voltage or current selection is controlled with jumpers and configuration settings in Cscape. Note that
each channel can be separately configured for voltage or current mode.
When the controller is stopped the operation of each output is configurable. The outputs can hold the
state they were in before the controller stopped or they can go to a predetermined value. By default
analog outputs are set to a value of zero. For more information on Stop State, refer to the appropriate
pages (see
Index) for the configuration chapter for Cscape settings.
March 4, 2010 Page 49 of 135 #1037
CH.10 MAN0883-05-EN
NOTES
March 4, 2010 Page 50 of 135 #1037
MAN0883-04-EN CH.11
CHAPTER11: HIGH SPEED I/O (HSC / PWM)
11.1 Overview
In addition to the compliment of simple analog and digital I/O, several of the XL6/XL6e OCS I/O modules
support High Speed Counting (HSC) I/O functions and may also support Pulse Width Modulation (PWM)
Output functions. The HSC functions include: frequency, totalizing, pulse width and quadrature
measurement. The PWM functions include: traditional PWM (with variable rate and duty) and a stepper
(limited functionality) with variable acceleration and deceleration rates. To determine function availability,
refer to the associated model’s Specification/Installation sheet (Digital DC Input/Output sections).
This chapter describes the operation of these high level I/O functions. For configuration details of these
functions, see Cscape Configuration.
11.2 High Speed Counter (HSC) Functions
On units that support the HSC, four dedicated inputs are available than can be configured for one of four
modes of operation. Those modes are Frequency, Count (totalize), Pulse width or period (pulse) and
Quadrature measurement. For some modes, more than one HSC input may be consumed. The
measurement value is provided to ladder in a %AI register (see mapping below).
Note that while the high-speed input circuitry has a resolution of 1 µs, measured edge
transitions must not occur faster than 100 µs for accurate measurements. Keep in mind
that pulse width measurements utilize both the rising and falling edges of the waveform,
thus the pulse width must exist longer than 100 µS.
Note that the edge polarity selection in the mode parameter for totalize and pulse width
functions (Digital/HSC Input Configuration) assume Positive Logic regardless of the
associated I/O board’s jumper setting for the Digital DCinputs polarity. If Negative logic
is configured when using these functions, the opposite edge polarity must be selected in
the mode parameter.
11.2.1 Frequency
In frequency mode, the frequency of the input signal is written to the accumulator in terms of
Hertz (cycles/second). When using frequency mode, four update selections are provided which
specify the width of the sample window. Note that selecting a shorter sample window provides a
quicker measurement (faster response) but lowers the frequency accuracy (resolution) and
increases the minimum frequency measurement limit.
11.2.2 Totalize
In totalize mode, the accumulator is simply incremented each time the input transitions in a
specific direction. Totalize mode is configurable to specify the edge (rising or falling) on which the
accumulator is incremented.
Rising Edge Signal Falling Edge Signal
March 4, 2010 Page 51 of 135 #1037
CH.11 MAN0883-05-EN
Three different options are available to reset the current count. They are:
•Configured reset value
When configuring the Totalize function, a value may be specified under the Counts per Rev
column. When the totalizer accumulator reaches this value - 1, the accumulator will reset to
zero on the next count. Specifying zero for this value allows the totalizer to count through the
full 32-bit range before resetting.
•Ladder control
Setting registers %Q17-20 reset HSC1-4 (respectively) with no additional configuration.
When these registers are asse rted, the associated totalizer acc umulator is reset and held at
zero (level sensitive). See also Section 10.6.
•Direct digital input control (HSC1 and HSC2 only)
HSC3 (%I11) and HSC4 (%I12) may be configured as hardware digital reset signals for
HSC1 and HSC2 (respectively). To enable these inputs as reset signals, specify the type as
Totalize Reset (note that the corresponding Totalize HSC must be previously configured
before this option is available). The direct digital reset controls are edge sensitive with the
edge polarity configurable.
Maximum direct digital reset latency is 100 µs.
The totalize function also supports an option which compares the current accumulator value with
a supplied Preset Value (PV), which is provided through a %AQ, and drives a physical digital
output based on the that comparison.
• This option (available for HSC1 and HSC2 only) drives Q1 or Q2 output point (respectively)
once the associated totalizer accumulator reaches (or exceeds) the PV value. To enable this
function, the corresponding PWM function output (Q1 or Q2) must be configured for HSCx Output.
Note that Q1 and Q2 are PWM function outputs that may be configured independently
as one of the following: standard digital output, PWM, HSCx or stepper output.
Preset values may be modified during run-time. A preset value of zero disables (resets) the
totalizer compare function output causing the output to remain low.
11.2.3 Pulse
In pulse mode, the high-speed input can measure the width or period of a pulse stream in one of
four modes and provides a continuous indication of the last sampled value.
Width High 1 µs Counts – In this sub-mode the accumulator value will contain the number of 1 µs
counts the pulse is high.
Width High
March 4, 2010 Page 52 of 135 #1037
MAN0883-05-EN CH.11
Width Low 1 µs Counts - In this sub-mode the accumulator value will contain the number of 1 µs
counts the pulse is low.
Width Low
Period Rising Edges 1 µs Counts – In this sub-mode the period of the input signal is reported in
one (1) µs units. The period measurement will start on the rising edge of the input.
Period from Rising Edge
Period Falling Edges 1 µs Counts – In this sub-mode the period of the input signal is reported in
one (1) µs units. The period measurement will start on the falling edge of the input.
Period from Falling Edge
11.2.4 Quadrature
Two HSC inputs are consumed for each of the two possible Quadrature counters. For example,
selecting quadrature mode for HSC 1 will use HSC inputs 1 and 2, which correspond to A and B
quadrature signals. Therefore, HSC 1 and 3 may be configured for quadrature input. Alternately,
HSC 3 may be configured to reset HSC1 (quadrature) count on a marker input
Quadrature mode works much like the totalizer except the accumulator will automatically
increment or decrement based on the rotation phase of the two inputs. See the following
example for more details. Quadrature inputs are typically used for reporting the value of an
encoder.
Two modes are available for quadrature that select whether the accumulator counts up or down
when the phase of input 1 leads input 2. Check your encoder’s documentation to determine the
output form it uses or try both modes to determine if the encoder counts up when expected.
March 4, 2010 Page 53 of 135 #1037
CH.11 MAN0883-05-EN
1 (leading)
(lagging)
2
90°
phase
Using the above waveforms and a HSC input configuration of “Quadrature” - “1 leads 2, count
up,” the accumulator will count up when 1 is rising and 2 is low, 1 is high and 2 is rising, 1 is
falling and 2 is high, and when 1 is low and 2 is falling. This results in 4 counts per revolution. So
in order to determine the number of cycles, the accumulator would have to be divided by 4.
Three different options are available to reset (or set) the current count. They are:
• Configured Counts per Rev value
When configuring the quadrature function, a value may be specified under the Counts per Rev
column. When rotation produces an increasing count, the quadrature accumulator resets to zero
on reaching the Counts per Rev count. Alternately, when rotation produces a decreasing count,
the quadrature accumulator is set to Counts per Rev – 1 on the count following zero. Specifying
zero for this value allows the totalizer to count through the full 32-bit range before resetting.
For example if your encoder outputs 1024 counts per revolution, the value of 1024 can be entered
into the configuration for Counts per rev. This will result in a counter that produces counts in the
range of 0 to 1023.
• Ladder control
Setting registers %Q17 or Q19 resets quadrature (HSC) 1 or quadrature (HSC) 3 (respectively)
with no additional configuration. Setting registers %Q18 or Q20 sets quadrature (HSC) 1 or
quadrature (HSC) 3 (respectively) to Counts per Rev – 1.
•Direct digital input control (HSC3) [Marker]
When HSC input 1 and 2 are used for quadrature inputs, an additional choice of marker input
becomes available for HSC input 3. The marker input is typically part of an encoder or motion
system that signals when a cycle of motion is complete. When the marker input is triggered, the
accumulator is reset to zero or to Counts per rev - 1 based on rotation direction.
Marker reset operation is enabled when HSC3 is configured for Marker type. Once selected, one
of several modes is available for marker operation. These modes can be sub-divided into two
groups of marker operation.
Asynchronous modes ignore the quadrature inputs and reset the quadrature accumulator to
zero on the configured edge (rising, falling or both). These are the most common settings used.
When configuring, asynchronous mode selections are prefixed with the word Async.
March 4, 2010 Page 54 of 135 #1037
MAN0883-05-EN CH.11
Synchronous modes synchronize the reset (or set) to the selected quadrature input and the
selected marker polarity. Figure 10.1 below indicates which mode to select based on the markers
timing diagram. Consult the documentation provided with your encoder to determine the marker
pulse timing.
Note that the Marker input is sampled within 50 micro seconds of the associated
quadrature edge. It is left to the user to determine if this meets the time constraints of the
measured drive.
Note that if the Marker input pulse consecutively spans more than one of the specified
edges, quadrature-decoding operation is unpredictable.
*While not displayed in this figure, modes f or low level (inverse logic) are also sup ported
for each state.
Figure 11.1 – Sync pulse mode illustration
The accumulator is reset to zero on the specified edge if rotation is clockwise (as shown in figure
10.1 above). However, if rotation is reversed, the accumulator is alternately set to Counts per rev – 1 on that same physical edge. When direction is reversed, that same physical edge is seen
(by the internal decoder) as having the opposite edge polarity as shown below.
Mode Direction
A
(HSC1) B (HSC2)
Marker
(HSC3)
Reset
Value
Async, Reset on rising edge Rising 0
Async, Reset on falling edge Falling 0
Async, Reset on both edge Both 0
High, Reset on 1 rising Clockwise Rising High 0
“ Counter Falling High CPR - 1
Low, Reset on 1 rising Clockwise Rising Low 0
“ Counter Falling Low CPR - 1
High, Reset on 1 falling Clockwise Rising High CPR - 1
On units that support the PWM, two dedicated outputs are available that can be configured for one of four
modes of operation. Those modes are Normal, PWM, HSC (count = PV) and Stepper.
11.4.1 Normal
When either Q1 or Q2 is configured for Normal operation, the digital output registers %Q1 and
%Q2 drives that respective output.
11.4.2 PWM
When either Q1 or Q2 is configured for PWM, the PWM function drives that respective output.
Both PWM channels may be individually enabled; however, when both PWM outputs are
enabled, both share the same output frequency (with the low going pulses synchronized).
Otherwise, each PWM’s pulse width can be independently adjusted.
The PWMs require three parameters (%AQs) to be set for operation. These parameters may be set
at run-time.
• Prescale Count
The prescale (%AQ5-6) count sets the resolution of the internal counter used for generating the
PWM output. The (prescale count + 1) is a divisor applied to a 16MHz clock that drives the
internal PWM counter. For the highest resolution PWM output, this value should be set as low as
possible (0 provides a 1/16 micro second resolution). Both the Period and Duty cycle (pulse
width) are based on counts of the internal PWM counter.
The frequency of the PWM output is calculated using the following formula:
March 4, 2010 Page 56 of 135 #1037
MAN0883-05-EN CH.11
000,000,16
Frequency =
• Period Count
This value (%AQ7-8) sets the period of the output signal by specifying the number of internal
PWM counter counts before the cycle is reset (larger count results in a smaller frequency). The
duration of each count is determined by the prescaler value. This parameter affects the Period of
both PWM outputs.
See the previous formula to see how the prescale and period counts create an output frequency.
For example, setting the PWM for 1 µs resolution (prescale=15), and a period count of 20,000
would result in a 50 Hz output.
• Duty Cycle Count
This value (PWM1: %AQ1-2, PWM2: %AQ3-4) sets the width of the output signal by specifying
the number of internal PWM counter counts that the output is maintained high. The duration of
each count is determined by the prescaler value. Each PWM channel has its own duty cycle
count parameter.
Setting the period count to 1000 and the duty cycle count to 500 results in a duty cycle of 50
percent. Changing just the duty cycle count to a value of 250 results in a duty cycle of 25
percent.
()
Period
tPeriodCountescaleCoun×+1Pr
Duty Cycle
At controller power-up or during a download, the PWM output is maintained at zero until
both the Period (count) and the Duty cycle (count) are loaded with non-zero values.
When the controller is placed in stop mode, the state of the PWM outputs is dependent
on the PWM State on Controller Stop configuration. This configuration allows for either
hold-last-state or specific prescale, period and duty cycle counts. Specifying zero for
either the period or duty causes the PWM output to remain low during stop mode.
Note that the nominal output driver turn-on-time delay (to reach 50% output) is 25
microseconds. Therefore, this limitation should be considered when determining both
the minimum pulse width and the duty cycle accuracy of the application.
March 4, 2010 Page 57 of 135 #1037
CH.11 MAN0883-05-EN
11.4.3 HSC (High Speed Counter)
When either Q1 or Q2 is configured for HSC operation, HSC1 or HSC2 totalize functions are
extended to allow respective direct output control based on a comparison of the current co unt and
a preset value (PV). See totalize in the HSC section above for more information.
11.4.4 Stepper Function
When Q1 is configured for Stepper, the stepper function is enabled at the Q1 output. Only one
stepper function and output is available.
Note that when Q1 is configured for stepper operation, Q2 operation is limited to direct
digital output.
The Stepper requires five parameters (%AQs) to be set for operation. These parameters may be
set at run-time but are ‘latched’ when the stepper is commanded to start.
Start Frequency (cycles per second)
This value (%AQ1) sets the frequency for the first cycle during the acceleration phase
and the frequency of the last cycle during the deceleration phase. When an acceleration
or deceleration count is specified, the Start Frequency must be greater than 0 and must
not exceed the run frequency or an error is generated.
Run Frequency (cycles per second)
This value (%AQ2) sets the frequency for the last cycle during the acceleration phase, the
consistent frequency during the run phase, and the frequency of the first cycle during the
deceleration mode. The Run Frequency must be greater than 0 and must not exceed
5000 cycles/sec. or an error is generated.
Acceleration Count
This value (%AQ3-4) sets the number of cycles to occur within the acceleration phase.
The frequency of the cycles within this mode will vary linearly between the specified Start
and Run frequency. The Accel count must not equal 1 or an error is generated. Setting
this value to zero disables this phase.
Run Count
This value (%AQ5-6) sets the number of cycles to occur within the run phase. The
frequency of the cycles within this mode is constant at the specified Run frequency. The
Run count may be any value. Setting this value to zero disables this phase.
Deceleration Count
This value (%AQ7-8) sets the number of cycles to occur within the deceleration phase.
The frequency of the cycles within this phase will vary linearly between the specified Run
and Stop frequency. The Decel count must not equal 1 or an error is generated. Setting
this value to zero disables this phase.
The stepper provides two Boolean registers to provide stepper status
Ready/Done
A high indication on this register (%I30) indicates the stepper sequence can be started
(i.e. not currently busy).
March 4, 2010 Page 58 of 135 #1037
MAN0883-05-EN CH.11
Error
A high indication on this register (%I31) indicates that one of the analog parameters
specified above is invalid or the stepper action was aborted before the operation was
complete. This register is cleared on the next start command if the error was corrected.
The stepper requires one discrete register (%Q1) to control the stepper action. Setting this
register starts the stepper cycle. This register must remain set to complete the entire cycle.
Clearing this register before the cycle is complete aborts the step sequence and sets the error bit.
Note that setting the PLC mode to Stop while the stepper is in operation causes the
stepper output to immediately drop to zero and the current stepper count to be lost.
Note that stepper output level may cause damage or be incompatible with some motor
driver inputs. Consult drive documentation to determine if output level and type is
compatible.
11.5 PWM functions register map
Register PWM HSC Stepper
%AQ1 Start Frequency
%AQ2
%AQ3
%AQ4
%AQ5
%AQ6
%AQ7
%AQ8
%Q1 Run
%I30 Ready/Done
%I31
11.6 PWM Examples
All of the PWM examples use the following formula.
PWM1 Duty Cycle (32-
bit)
PWM2 Duty Cycle (32-
bit)
PWM Prescale
(32-bit)
PWM Period
(32-bit)
000,000,16
Frequency =
Example 1
To get a 50% Duty Cycle @ 10 kHz waveform on PWM1:
Set %AQ1-2 = 50 (duty cycle count)
Set %AQ5-6 = 15 (prescale count)
Set %AQ7-8 = 100 (period count)
Example 2
To get a 50% Duty Cycle on PW1 and 90 % Duty Cycle on PWM2 @ 1 kHz waveform:
Set %AQ1-2 = 500 (duty cycle count)
Set %AQ3-4 = 900 (duty cycle count)
Set %AQ5-6 = 15 (prescale count)
Set %AQ7-8 = 1000 (period count)
()
HSC1
Preset Value
HSC2
Preset Value
tPeriodCounescale×+1Pr
Run Frequency
Accel Count
(32-bit)
Run Count
(32-bit)
Decel Count
(32-bit)
Error
March 4, 2010 Page 59 of 135 #1037
CH.11 MAN0883-05-EN
Example 3
To turn PWM 1 output ON all the time
Set %AQ1-2 = Same value as AQ7-8 (duty cycle count)
Set %AQ5-6 = Any value (prescale count)
Set %AQ7-8 = Non-Zero value (period count)
Example 4
To turn PWM 1 output OFF all the time
Set %AQ1-2 = 0 (duty cycle count)
Set %AQ5-6 = Any value (prescale count)
Set %AQ7-8 = Any value <or> 0 (period count)
11.7 STP Examples
Example 1
10,000,000 steps control sequence
The following example starts at 2.5 kHz and ramps up to 5 kHz during the first 1,000,000
steps. Then, it runs at 5 kHz for the next 8,000,000 steps. Finally during the last 1,000,000
steps it slows to a stop.
Set %AQ1 = 2500 (Hz) {Start Frequency}
Set %AQ2 = 5000 (Hz) {Run Frequency}
Set %AQ3-4 = 1000000 (Steps) {Accel Count}
Set %AQ5-6 = 8000000 (Steps) {Run Count}
Set %AQ7-8 = 1000000 (Steps) {Decel Count}
Example 2
5,000,000 steps control sequence
The following example starts at 0.5 kHz and ramps up to 1 kHz during the first 2,000,000
steps. Then, it runs at 1 kHz for the next 2,000,000 steps. Finally during the last 1,000,000
steps it slows to a stop.
Set %AQ1 = 500 (Hz) {Start Frequency}
Set %AQ2 = 1000 (Hz) {Run Frequency}
Set %AQ3-4 = 2000000 (Steps) {Accel Count}
Set %AQ5-6 = 2000000 (Steps) {Run Count}
Set %AQ7-8 = 1000000 (Steps) {Decel Count}
Example 3
6,000,000 steps control sequence
The following example starts at 50 Hz and ramps up to 250 Hz during the first 150,000
steps. Then, it runs at 250 Hz for the next 5,500,000 steps. Finally during the last 350,000
steps it slows to a stop.
Set %AQ1 = 50 (Hz) {Start Frequency}
Set %AQ2 = 250 (Hz) {Run Frequency}
Set %AQ3-4 = 150000 (Steps) {Accel Count}
Set %AQ5-6 = 5500000 (Steps) {Run Count}
Set %AQ7-8 = 350000 (Steps) {Decel Count}
Note: The highest usable frequency is 65 KHz for the PWM output.
March 4, 2010 Page 60 of 135 #1037
MAN0883-04-EN CH.12
CHAPTER 12: SYSTEM SETTINGS AND ADJUSTMENTS
12.1 System Menu - Overview
The XL6/XL6e has a built-in System Menu, which lets the user view System Settings and makes
adjustments. To start the System Menu, press the SYSTEM key (or set %SR3 to 1), which will display
the Main Menu. Then use the ↓ and ↑ (Up Arrow or Down Arrow) keys to select a Main Menu item and
press Enter (Return Arrow) to display the item’s Sub-Menu.
Logic Error: Ok
User Program: Ok
User Graphics: Ok
W-Dog Trips: 0
Net Errors: 0
Network State: Ok
Network ID: Ok
Dup Net ID: Ok
Clock Error: Ok
I/O System: Ok
Battery: Ok
View OCS Status
View OCS Diags
View I/O Slots
View Protocols
Set Fkeys Mode
Set Serial Ports
Set Time/Date
Set Beeper
Set Screen
Removable Media
Fail-Safe System
Clone Unit
(Press ESC to Exit)
Backup/Restore Data
Enable AutoRun
Enable AutoLoad
(ESC to exit)
Beeper Enable: Yes
( Use ↓↑ to adjust )
Figure 12.1 – System Menu
Sub-Menus
Port 1:
(None Loaded)
Port 2:
(None Loaded)
Fkeys: Momentary
Sys-Fn enable: Yes
( Use ↓↑ to adjust )
Dflt Pgm Port MJ1-232
MJ1 RS485 Bias No
MJ2 RS485 Bias No
As mentioned above, the System Menu is started by pressing the System key on the XL6/XL6e. Next
press ESC to exit the System Menu, or use
↓ and ↑ to select an item and press Enter to display
the item’s Sub-Menu.
A Sub-Menu generally shows a list of System Settings and their values. After opening a Sub-Menu, if any
of its System Settings are editable, the first System Setting that can be edited is highlighted. If desired,
↓ and ↑ keys can be used to select a different System Setting to be edited.
the
At this point, either press ESC to exit the Sub-Menu (returning to the Main Menu) or press Enter to edit
the highlighted System Setting. If Enter is pressed, the System Setting’s value will be highlighted,
indicating that it is ready to be modified.
When modifying a System Setting’s value, use either the arrow keys (
← → ↓ ↑) or the numeric
keys, or the appropriate touch screen icons to select a new value.
The arrow keys are used to edit System Settings that have just a few possible values. Each time the
arrow key is pressed, a new possible value is displayed. When the desired value appears, press the
Enter key to save it; otherwise press the ESC key to cancel the edit.
The numeric keys are normally used to enter numeric System Settings.
In addition, to edit a single numeric digit, use the ← or → key to select the digit and then either press a
numeric key or use
Enter key to save it; otherwise press the ESC key to cancel the edit.
↓ or ↑ to modify the digit. In any case, after entering the new desired value, press the
March 4, 2010 Page 62 of 135 #1037
MAN0883-05-EN CH.12
12.3 System Menu – Details
The following sections describe each of the Sub-Menus in detail.
Set Network ID
This Sub-Menu displays two System Settings of which only Network ID is editable.
Network Ok? Yes = NET1 connected to a CAN network and functioning properly
No = Not ready to communicate on CAN network
Network ID: 1 to 253 = This node’s CsCAN Network ID; must be unique on network
Set Network Baud
The Network Baud Sub-Menu only appears for XL6/XL6e OCS models that have CAN ports (XE1xx).
This Sub-Menu displays just one System Setting and it is editable.
Network Baud?125 KB = 125 KBaud CAN network 250 KB = 250 KBaud CAN network
500 KB = 500 KBaud CAN network
1 MB = 1 MBaud CAN network
March 4, 2010 Page 63 of 135 #1037
CH.12 MAN0883-04-EN
View Status
The View Status Sub-Menu displays up to 17 System Settings. Only the Mode System Setting is
editable.
Model:XL1yz = Model number of this XL6/XL6e OCS unit 1yz indicates the installed I/O module; 00 = no I/O module
OCS Mode:Idle = XL6/XL6e OCS is in Idle mode DoIO = XL6/XL6e OCS is in Do I/O mode
Run = XL6/XL6e OCS is in Run mode
Scan Rate(mS):0.0 = XL6/XL6e OCS is not in Run mode
0.1 to 999.9 = Average number of mS for each ladder scan
OCS Net Use %: 0.0 to 100.0 = CAN network bandwidth % used by this XL6/XL6e OCS node
All Net Use %: 0.0 to 100.0 = CAN network bandwidth % used by all nodes
Ladder Size: x = Number of bytes in application ladder program
Config Size: x = Number of bytes in application I/O configuration
Graphics Size: x = Number of bytes in application graphic screens
String Size: x = Number of bytes in application string table
Bitmap Size: x = Number of bytes in application bitmaps
Text Tbl Size: x = Number of bytes in application text tables
Font Tbl Size: x = Number of bytes in application font tables
Protocol Size: x = Number of bytes in application downloaded protocols
SMS File Size: x = Number of bytes in application SMS protocol configuration
Firmware Rev: xx.yy = Current firmware version
BIOS Rev: x.yz = Current CPLD (Complex Programmable Logic Device) version
FPGA Rev: x.y = Current FPGA (Floating Point Gate Array) version
March 4, 2010 Page 64 of 135 #1037
MAN0883-05-EN CH.12
Self-Test: Ok = All power-on self-tests passed
Fault = One or more power-on self-tests failed
View Diags
The View Diags Sub-Menu displays up to 14 System Diagnostics, none of which are editable.
The first two System Diagnostics are critical. If any of them indicate a Fault condition, the XL6/XL6e OCS
will not
enter or remain in Run mode, and the problem must be investigated and corrected.
Logic Error:Ok = All executed ladder instructions are legal for loaded firmware Fault = A ladder instruction not
supported by firmware was found
User Program:Ok = Ladder program and I/O configuration loaded successfully Fault = Ladder program or I/O configuration not loaded or load failed
The last nine System Diagnostics are informational. If any of them indicate a Warning condition, the
XL6/XL6e OCS can still enter and remain in Run mode, but the problem should be investigated and
corrected.
User Graphics: Ok = Application graphics objects loaded successfully Fault = Application graphics objects not loaded or load failed
W-Dog Trips:0 = Watchdog timer has not tripped since the last power-up x = Number of times watchdog timer has tripped
Net Errors:0 = No CAN network bus-off errors have occurred x = Number of CAN network bus-off errors that have occurred
Network State:Ok = At least one other node was found on the CAN network Warning = No other nodes were found on the CAN network
Network ID:Ok = This node’s CAN Network ID is in the range 1 to 253 Warning = This node’s CAN Network ID was out of range at power-up
Dup Net ID:Ok = This node’s Network ID is unique on the CAN network Warning = This node’s Network ID is duplicated in another node
Clock Error:Ok = Time and date have been set Warning = Time and date need to be set
I/O System:Ok = I/O configuration matches the installed I/O and COM modules Warning = I/O configuration needs updating to match installed modules
March 4, 2010 Page 65 of 135 #1037
CH.12 MAN0883-04-EN
Battery: Ok = Backup battery operating properly
Warning = Backup battery needs to be replaced
View I/O Slots
The View I/O Slots Sub-Menu displays three System Settings, all of which are not
editable.
Internal to the XL6/XL6e OCS, there is a CPU board, and up to two installed modules. Model XE100 has
no installed I/O or COM modules. All other models have an I/O module and can have a user-installed
COM module.
Depending on which I/O module is installed and which I/O module has been configured by Cscape, one
of the following six System Settings should appear for Slot 1:
Slot 1: I/O: Empty = No I/O module installed or configured
Slot 1:*Unsupported = Unsupported I/O module installed
Slot 1:-I/O Missing = No I/O module installed but an I/O module is configured
Slot 1:+I/O: XExyy = yy I/O module installed but no I/O module configured
Slot 1:?I/O: XExyy = yy I/O module installed but another I/O module configured
Slot 1: I/O: XExyy = yy I/O module installed and configured properly
Depending on the COM module that is installed and the COM module that has been configured by
Cscape, one of the following six System Settings appears for Slot 2:
Slot 2: I/O: Empty = No COM module installed or configured
Slot 2:*Unsupported = Unsupported COM module installed
Slot 2:-I/O Missing = No COM module installed but a COM module is configured
Slot 2:+I/O: XzC = z COM module installed but no COM module configured
Slot 2:?I/O: XzC = z COM module installed but another COM module configured
Slot 2: I/O: XzC = z COM module installed and configured properly
Slot 3: I/O: ETN300 = ETN300 has been configured through Cscape.
March 4, 2010 Page 66 of 135 #1037
MAN0883-05-EN CH.12
View Protocols
The View Protocols Sub-Menu displays two System Settings, neither of which are editable.
As mentioned in
0, both the MJ1 (Port 1) and MJ2 (Port 2) serial ports support downloadable protocols.
To assign a downloadable protocol to an XL6 OCS serial port, select the Protocol Config item in
Cscape’s Program menu and then setup a protocol for Port 1 or Port 2 (or both).
In the View Protocols Sub-Menu, the currently downloaded protocol, if any, and its version number are
displayed for both Port 1 and Port 2.
Port 1:
Protocol name = (None Loaded) or name of the protocol assigned to MJ1
Protocol version = Blank or version of the protocol assigned to MJ1
Port 2:
Protocol name = (None Loaded) or name of the protocol assigned to MJ2
Protocol version = Blank or version of the protocol assigned to MJ2
Set Fkeys Mode
The Set Fkeys Sub-Menu displays two System Settings, both of which are editable.
Fkeys:Momentary = %K1-10 bits go On & Off as F1-F10 are pressed & released Toggle = %K1-10 bits toggle each time F1-F10 are pressed
SYS_Fn enable:Yes = Reset and all clear system functions enabled No = Reset and all clear system functions disabled
March 4, 2010 Page 67 of 135 #1037
CH.12 MAN0883-04-EN
Set Serial Ports
The Set Serial Ports Sub-Menu displays three System Settings, all of which are editable, and one optional
item. For the Dflt Pgm Port System setting, only MJ1-232 can be selected, unless a Modem (XMC)
COM module is installed.
Dflt Pgm Port:MJ1-232 = MJ1 RS232 port is the default programming port Modem = Modem COM module is the default programming port
MJ1 RS485 Bias:No = MJ1 RS485 bias resistors are not
switched in
Yes = MJ1 RS485 bias resistors are switched in
MJ2 RS485 Bias:No = MJ2 RS485 bias resistors are not
switched in
Yes = MJ2 RS485 bias resistors are switched in
Set Time/Date
The Set Time/Date Sub-Menu displays three System Settings. Time and Date are editable, and Day is
automatically calculated from the Date setting. Note that Time and Date are split into three editable fields
each. Use
← or → to select a field and then use ↓ or ↑ to edit the field.
Time: 16:09:49 = Current time (hours:minutes:seconds in 24-hour format)
Date: 10-Jul-2008 = Current date (day-month-year)
Day: Thursday = Current day of week calculated from the Date setting
March 4, 2010 Page 68 of 135 #1037
MAN0883-05-EN CH.12
Set Beeper
The Set Beeper Sub-Menu displays one System Setting, which is editable
Beeper enable:Yes(default)= Enables beeper No = Disables beeper (does NOT affect ladder
access)
Set Screen
The Set Screen Sub-Menu displays four System Settings, all of which are editable
Timeout (min): 5 - 1200 = Amount of time in minutes to expire with NO touch activity before
activating screen saver (black screen)
Popup Status: Off (default) = Disable popup status
Warning = Display popup status only if controller status changes to NOT Ok or
NOT Run mode.
ON = Display popup status on any controller status change.
Update Time (mS): 2 - 50 = Maximum amount of time to allow for graphics update per scan
March 4, 2010 Page 69 of 135 #1037
CH.12 MAN0883-04-EN
Removable Media
The Removable Media Sub-Menu displays the Removable Media Manager. After selecting Removable
Media from the Main Menu, one of four Sub-Menu screens will appear:
Media Directory
No Card
= No Micro SD card has been installed in the Memory slot
Media Directory
Initializing
= Micro SD card is installed, but it is still initializing
Media Directory
Dir Empty
= Micro SD card is installed and initialized, but contains no files
= Micro SD card is installed and initialized, and it contains files
Shows size of highlighted file or shows <DIR> if directory is highlighted
Shows the date file or directory was created or last modified
Shows the time file or directory was created or last modified
Scrollbar.
If a directory name is highlighted, pressing Enter will switch to that directory showing its files and subdirectories. In a sub-directory, highlighting .. (dot dot) and pressing Enter will move up one directory.
March 4, 2010 Page 70 of 135 #1037
MAN0883-05-EN CH.12
Fail – Safe System
The Fail-Safe System is a set of features that allow an application to continue running in the event of
certain types of "soft" failures. These "soft" failures include:
• Battery power loss
• Battery-Backed Register RAM or Application Flash corruption due to, for example, an excessive
EMI event.
Selecting “Fail-Safe System” menu will open the following menu screen:
Selecting Backup/Restore Data displays the following screen in:
Backup = Copies Battery Backed RAM contents on to the onboard FLASH memory of the OCS.
Restore = Copies the backed up data from onboard FLASH to the battery backed RAM.
Clear Backup = The backup data will be erased from the onboard FLASH.
Exit = Goes back to previous menu.
“Enable AutoRun” displays the following options which can be selected:
March 4, 2010 Page 71 of 135 #1037
CH.12 MAN0883-04-EN
Enable AutoRun No = OCS will be in IDLE mode after AutoLoad or Automatic Restore.
Yes = OCS will be automatically placed into RUN mode after AutoLoad or
Automatic Restore.
“Enable AutoLoad” displays the following options which can be selected:
Enable AutoLoad No = Does not load AUTOLOAD.PGM automatically when application
program is absent or corrupted.
Yes = Loads AUTOLOAD.PGM file automatically from RM when application
program is absent or corrupted.
Clone Unit
‘Clone Unit’ feature allows the user to “clone” the OCS of the exact same model. This feature “clones”
application program and unit settings stored in Battery backed RAM of an OCS into the RM (refer
Removable Media
same model).
This feature can be used for:
• Replacing an OCS by another unit of the same model.
• Duplicating or “clone” units without a PC.
March 4, 2010 Page 72 of 135 #1037
Chapter 9 for details on using RM). It can then be used to clone a different OCS (exact
MAN0883-05-EN CH.12
Clone
Selecting “Clone Unit” menu will open the following menu screen:
Note:
Free/Total – displays number of free and total bytes in Removable Media.
Selecting Make Clone brings up the screen below for the user:
After confirmation, the OCS will create two new files in the root directory of the Removable Media Drive
as shown below:
AUTOLOAD.PGM Application file
CLONE.DAT File having all unit settings and register values from Battery Backed RAM
March 4, 2010 Page 73 of 135 #1037
CH.12 MAN0883-04-EN
Load Clone
Selecting “Clone Unit” menu will open the following menu screen. Select “Load Clone”.
NOTE: For security enabled files, Load clone asks for password validation before loading the application.
12.4 Touch screen calibration
The touch screen is calibrated at the factory and rarely needs modification. However, if actual touch
locations do not appear to correspond with responding objects on the display, field adjustment is
available. To access the field adjustable touch screen calibration dialog, press and hold both the SYS
and F1 key for longer than 2 seconds and a dialog similar to figure 9.2 should appear. Thereafter, use a
plastic tip stylus and follow the dialog instructions.
Note that special system keys may be locked out from user access. If the SYS-F1 combination
does NOT respond, verify that the system menu’s Set Fkeys sub-menu’s parameter SYS_Fn is
enabled.
March 4, 2010 Page 74 of 135 #1037
MAN0883-05-EN CH.13
CHAPTER 13: USER INTERFACE
13.1 Overview
This chapter presents the user interface (or operator view) of the XL6/XL6M/XL6e and some of the model
specific characteristics of the XL6/XL6e as compared to the rest of the OCS line. This chapter does NOT
cover building screens or using the CSCAPE graphics editor. For instructions on creating screens and
using the graphics editor, refer to the graphics editor help file.
NOTE: Most example images appearing in this chapter are for XL6/XL6e in case of XL6M grey
scale colors will appear.
The following aspects are discussed:
• Displaying and entering data
• Alpha-numeric data entry
• Navigating around screens
• Beeper acknowledgement
• Touch (slip) sensitivity
• Alarm log dialog
• RM dialog
• Screen Saver
• Dimmer
13.2 Displaying and entering Data
Figure 13.1 – Example Screen (XL6/XL6e only)
March 4, 2010 Page 75 of 135 #1037
CH.13 MAN0883-05-EN
Multiple objects are provided for displaying data such as virtual panel lights, push buttons, numeric value
displays, bar graphs, meters, graphs and animated bitmaps. On the XL6/XL6e, these graphical objects
(through ladder manipulation of attribute bits) can change color, flash or change visibility to attract
operator attention.
On objects that accept user input, the input is provided by touching the object or alternately changing an
OCS register (i.e. Function key registers). Objects that allow input generally have a raised 3D
appearance. An exception is the binary type objects, such as buttons, which are shown in a depressed
3D appearance when in the ON state. Objects that normally accept touch input may be disabled through
program control (through ladder manipulation of an attribute bit). If an object is disabled, the object’s
representation changes to a 2D appearance.
On objects that represent non-discrete information, more action may be required beyond that of simply
touching the object. For example, the slider object requires the operator to touch and slide the control in
the direction desired. Alternately, alpha-numeric entry objects invoke a pop-up alpha-numeric keypad for
additional user input. The alpha-numeric keypad is discussed below.
Note that if the numeric entry object displays >>>>>>>, the value is too big to display in the field or is
above the maximum for an editable field. Likewise, if the numeric entry object displays <<<<<<< in a
numeric field, the value is too small to display or is below the minimum for an editable field.
13.3 Alpha-numeric keypad
To allow entry of a specific number or text, several of the input objects invoke a pop-up alpha-numeric
keypad when the object is touched. An example of the alpha-numeric keypad invoked from a numeric
input object is shown in Figure 13.2. Once invoked, the operator may touch the appropriate keys to enter
a specific value. When entering a value, the alpha-numeric keypad is in one of two modes [new-value or
edit-value].
New-value mode
Generally, when the alpha-numeric keypad is first invoked, it is placed in new-value mode. Initially, the
alpha-numeric keypad displays the current value with all the digits being highlighted. Once the first digit
is entered, the current value is erased from the display and the new digit is placed in the first location.
Thereafter, no digits are highlighted and new digits are added to the rightmost position while the other
digits are shifted left.
Edit-value mode
Edit-value mode may be entered from the initial new-value mode by pressing either the left or right arrow
key before any digit key is pressed. The result will be a single character highlighted. The user may then
either touch a key to change the digit at the selected position or the up and down arrows may be used to
add or subtract (respectively) from the selected digit. The user may then use the left or right arrow keys
to select a new position.
March 4, 2010 Page 76 of 135 #1037
MAN0883-05-EN CH.13
Figure 13.2 – Alpha-numeric Keypad
Once the desired value is entered, pressing the Enter key moves that value into the object (and the
corresponding OCS register) and the alpha-numeric keypad disappears. Alternately, pressing the ESC
key any time before the Enter key cancels the operation, leaves the objects current value unchanged, and
the alpha-numeric keypad disappears.
Note: Each numeric entry object has a configured minimum and maximum value. If the operator enters a
value outside of the configured range, the new value is ignored when Enter is pressed and the current
object value is NOT changed.
Since the alpha-numeric keypad services several different graphical objects, certain keys on the alphanumeric keypad may be disabled (grayed) when the keypad is invoked for certain objects. The following
describes the alpha-numeric keypad variation based on object.
Numeric Object
When editing a numeric value, the [+/-] or the [.] key are disabled (grayed) if the object is NOT configured
for floating-point value or a signed value.
Password Object
When editing a password value, the arrow keys, [+/-], and the [.] keys are disabled. Additionally,
overwrite mode is disabled. When entering digits, the pop-up keypad hides the value by displaying ‘*’
alternately for each digit.
ASCII Object
When editing an ASCII value, each press of the same key generates a different value. For example, the
[1 _QZ] key generates the following sequence:
<space>, Q, Z, q, z, 1, <repeat sequence>
The digit keys (except zero) sequence the corresponding 3 alphabetical characters first in upper case
followed by the same 3 characters in lower case followed by the corresponding numeric digit. Thereafter,
continued presses of the same key repeat the sequence.
March 4, 2010 Page 77 of 135 #1037
CH.13 MAN0883-05-EN
The [+/-] key generates the following mathematical character sequence:
+, -, *, /, =, (,), <repeat sequence>
The [.] key generates the following punctuation character sequence:
.,?, :, ;, ,,’ ,”, $, <repeat sequence>
Once the desired alpha-numeric character is obtained, use the left or right arrow to select a new position.
Alternately, pressing different key moves to the next position.
Text Table Object
When editing a Text Table Object, all the keys except the Up and Down arrow keys are grayed and
disabled. The next text selection is made by pressing either the Up or Down arrow.
Time/Date Object
When editing a Time/Date Table Object, all the keys except the Up, Down, Left and Right arrow keys are
grayed and disabled. The specific field (i.e. hour or minutes) is selected using the Left and Right arrows.
The value in the selected field is changed by pressing either the Up or Down arrow.
13.4 Screen Navigation
To allow the operator to change screens, a screen jump object is generally used. This object may be
visually represented as a 3-D button (responding to touch) or remain invisible and logically tied to an
OCS register. An optional system ICON may be configured for display along with the legend, which aids
in identifying the object as one that causes a screen change (shown below in figure 13.3)
Screen jumps can also be triggered on other keys or based on control logic for more advanced
applications. To allow the operator to change screens, a screen jump object is generally used. This
object may be visually represented as a button (responding to touch) or remain invisible and logically
tied to an OCS register. An optional system ICON may be configured for display along with the legend,
which aids in identifying the object as one that causes a screen change.
March 4, 2010 Page 78 of 135 #1037
MAN0883-05-EN CH.13
13.5 Ladder Based Screen Navigation
Ladder logic can use several techniques to control screen navigation. Coils can be tied to %D registers
to make them screen coils. These coils have two modes, switch and alarm. If the ladder program
energizes an alarm display 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.
The switch display coil switches to the associated screen when it is energized. Once it is de-energized
the screen remains until it is switched by the user or ladder.
Figure 13.4 – Force and Switch Coils in Ladder Programming
There is also a system register that can be used to for control based screen navigation. %SR1 can be
read to determine the current screen or written to change the current screen.
Refer to the on-line help in Cscape for more information on control-based screen navigation.
13.6 Beeper Acknowledgement
The XL6/XL6e contains an internal beeper that provides an audible acknowledgment when an operator
touches a graphic object that accepts touch input. When the graphic object is enabled, a short 5ms tone
is emitted. When the graphic object is disabled, a longer 100ms tone is emitted to enounce that graphical
object is not currently accepting the touch input.
If beep acknowledgement is not desired, the beeper function can be disabled from the system menu.
13.7 Touch (Slip) Sensitivity
Touch slip sensitivity is preset to meet most applications; however, adjustment is available to reduce the
sensitivity for touch release. That is, once a graphical object (button) is touched and held by a finger, the
default touch slip sensitivity allows for a slight slip of the finger on the graphical object before the
XL6/XL6e assumes touch been released (equates to approximately a quarter inch of movement with a
stylus).
March 4, 2010 Page 79 of 135 #1037
CH.13 MAN0883-05-EN
In some applications (such as jog buttons) where the operator is pushing a button for a period of time, the
amount of slip while holding a button pressed may exceed the default sensitivity. To increase the amount
of tolerable slip and prevent false releases of the button, the XL6/XL6e allows adjustment of the allowable
slide up to 5x the default value.
To enable the touch (slip) sensitivity, first an OCS data register must be allocated through the Graphics
editor Configuration menu for Display Settings. Once a Touch Sensitivity register is assigned, that
register may be modified [range = 1(Low) to 5 (High)] to the desired slide amount. If a value outside the
valid range is entered in the touch sensitivity register, it is ignored and the last valid value is used.
13.8 Alarms
Alarm presentation to the operator is highly configurable and beyond the scope of this document to
describe fully. For more information refer to the graphics editor help file. This section presents a typical
configuration thereby providing an introductory description on what the operator should expect.
The alarm object is generally used to enunciate alarms to the operator. While the display characteristics
of this object is configurable, it is generally displayed as a button that changes colors to indicate the
highest state of the alarm(s) in the alarm group it is monitoring. The following indicates the priority of the
alarm states and the default colors associated with these states.
• Highest (Red) - Unacknowledged Alarms Exist
• - (Yellow) - Acknowledged Alarms Exist
• Lowest (Green) - No Alarms Exist
Figure 13.3 – Alarm Object
To view, acknowledge and/or clear alarms, the operator must access the alarm viewer. This is
accomplished by touching an (enabled) alarm object. When accessed, the alarm viewer is displayed as
pop-up alarm viewer dialog similar to that shown in Figure 13.6.
Figure 13.4 – Alarm Viewer
March 4, 2010 Page 80 of 135 #1037
MAN0883-05-EN CH.13
The currently selected entry is indicated by a yellow highlight which can be moved up or down by
touching the arrow buttons or by directly touching an entry. If more entries exist than can fit on the page,
a scroll bar is displayed on the right side that also indicates the current relative position.
The current state of the displayed alarm is indicated by its color and optionally by an abbreviated indicator
after the date/time stamp (ALM, ACK, RTN). The operator can acknowledge an alarm by selecting it
from the list and touching the ACK button. The operator can also clear an alarm if that function is enabled
in the alarm object. If not enabled, the Clear buttons are grayed and do not respond to touch. Once view
operations are complete, simply touch the Esc button to remove the pop-up alarm viewer.
Note that OCS registers %SR181 and %SR182 are available for ladder use, which indicate presence of
unacknowledged or acknowledged alarm (respectively). The screen designer may implement these
registers to switch screens or activate the beeper to attract the operator’s attention.
13.9 Removable Media
The removable media object is generally used to inform the operator on the current state of the
removable media device and allow access to its file structure. The removable media object is displayed
as a button that changes colors to indicate the current state of the removable media device. The
following indicates the device states and the default colors associated with these states.
• Highest (Red) - Device Error
• - (Yellow) - Device Full (threshold adjustable)
• Lowest (Green) - Device OK
Figure 13.5 – Removable Media Object
To view and perform file operations, the operator must access the removable viewer. This is
accomplished by either touching an (enabled) removable media object or through the system menu.
When accessed, the removable media viewer is displayed as pop-up removable media dialog similar to
that shown in Figure 13.8.
Note that the removable media object can be configured to open the removable media viewer at a certain
directory complete with restrictions on transversing back up the file path. This may be used to restrict
operator access to non-critical files.
March 4, 2010 Page 81 of 135 #1037
CH.13 MAN0883-05-EN
Figure 13.6 – Removable media viewer
The currently selected entry is indicated by a yellow highlight which can be moved up or down by
touching the arrow buttons or by directly touching an entry. If more entries exist than can fit on the page,
a scroll bar is displayed on the right side that also indicates the current relative position.
File operations are accomplished by pressing the appropriate button at the bottom of the removable
media viewer. The configuration of the removable media object that invokes the removable media viewer
defines what buttons are enabled and available to the user. A button is grayed and does not respond to
touch if configured as disabled.
The (Enter) button (if enabled) performs certain operations based on the selected file’s type:
.. - change display to parent directory
<DIR> - change display to child directory
bmp, jpeg - display bitmap (if compatible format)
pgm - load application (if compatible model and version)
Alternately, the (enter) button can be configured to simply load the ASCII representation of the file path
(including the file name) to a group of OCS registers. That pathname can then be used by ladder for
opening and manipulating that file.
Once view operations are complete, simply touch the Esc button to remove the pop-up removable media
viewer.
If the removable media is used in an application, the removable media device requires changing by the
operator, and the application is attempting to write to the removable media when it is removed, the screen
designer should create objects that allow the operator to temporally halt access to the removable media.
This prevents corruption to the file system if the removable media is removed during a file write sequence.
The graphic objects should set OCS register %SR174.1 (when requesting the card be removed) and
provide an indicator based on OCS register %SR174.2 (which indicates that it is safe to remove the
removable media).
March 4, 2010 Page 82 of 135 #1037
MAN0883-05-EN CH.13
Figure 13.7 – Example application segment for safe removal of removable media
13.10 Screen Saver
The XL6/XL6e screen backlight life is typically 5 years when in continuous use. If the application does
not require interaction with the XL6/XL6e for long periods of time, the backlight life can be extended by
using the screen saver function. When enabled through the system menu, the backlight is shut off
(screen goes black) after a specified time of no touch activity on the screen. When the screen saver
shuts off the backlight, any operator touch on the screen or function keys reactivates the backlight.
Note that when the screen saver is active (backlight shut off), any initial touch activity on the screen (or
function key) to reactivate the backlight is otherwise ignored by the XL6/XL6e. Any additional touch
activity is also ignored by the XL6/XL6e for approximately one second thereafter.
It is possible for the application to temporarily disable the screen saver by generating a positive transition
to %SR57.16 (coil only) at a rate faster than the screen saver timeout value. This may be desired while
waiting for alarm acknowledgement.
13.11 Screen Brightness
The XL6/XL6e provides a feature that allows screen dimming for night operation. To enable this feature,
the application must access and control system register %SR57 (Display Backlight Brightness). Screen
brightness is continuously variable by driving %SR57 through the range of 100 (full bright) to 0 (full off). It
is left to the screen designer on if and how to present a Screen Brightness control to the user.
Note that backlight life may be shorted when screen is dimmed or screen brightness is varied on a
repetitive basis.
March 4, 2010 Page 83 of 135 #1037
CH.13 MAN0883-05-EN
INTENTIONALLY LEFT BLANK
March 4, 2010 Page 84 of 135 #1037
MAN0883-05-EN CH.14
CHAPTER 14: REGISTERS
14.1 Register Definitions
When programming the XL6/XL6e OCS, data is stored in memory that is segmented into different types.
This memory in the controller is referred to as registers. Different groups of registers are defined as either
bits or words (16 bits). Multiple registers can usually be used to handle larger storage requirements. For
example 16 single bit registers can be used to store a Word or two 16 bit registers can be used to store a
32-bit value.
Below is a list of the type of registers found in the XL6/XL6M/XL6e OCS.
%AI Analog Input
16-bit input registers used to gather analog input data such as voltages, temperatures, and speed
settings coming from an attached device.
%AQ Analog Output
16-bit output registers used to send analog information such a voltages, levels or speed settings to an
attached device.
%AIG Global Analog Input
Specially defined 16-bit input registers that come from the network.
%AQG Global Analog Output
Specially defined 16-bit output registers that go to the network.
%D Display Bit
These are digital flags used to control the displaying of screens on a unit which has the ability to display a
screen. If the bit is SET, the screen is displayed.
%I Digital Input
Single-bit input registers. Typically, an external switch is connected to the registers.
%IG Global Digital Input
Specially defined single-bit inputs that come from the network.
%K Key Bit
Single-bit flags used to give the programmer direct access to any front panel keys appearing on a unit.
%M Retentive Bit
Retentive single-bit registers.
%Q Digital Output
Single-bit output registers. Typically, these bits are connected to an actuator, indicator light or other
physical outputs.
%QG Global Digital Output
Specially defined single-bit outputs that go to the network.
%R General Purpose Register
Retentive 16-bit registers.
March 4, 2010 Page 85 of 135 #1037
CH.14 MAN0883-05-EN
%S System Bit
Single-bit bit coils predefined for system use.
%SR System Register
16-bit registers predefined for system use.
%T Temporary Bit
Non-retentive single-bit registers.
14.2 Useful %S and %SR registers
Table 14.1 – Common %S Register Definitions
Register Description
%S1 Indicate First Scan
%S2 Network is OK
%S3 10mS timebase
%S4 100mS timebase
%S5 1 second timebase
%S6 I/O is OK
%S7 Always ON
%S8 Always OFF
%S9 Pause 'n Load soon
%S10 Pause 'n load done
%S11 I/O being forced
%S12 Forcing is enabled
%S13 Network I/O is OK
%S16 Ethernet COM module is OK
Table 14.2 – %SR Registers
Register Name Description Min Val Max Val
%SR1
%SR2
%SR3
%SR4
%SR5
%SR6
%SR7
%SR8
%SR9-10
%SR11-12
%SR 13-16
%SR17-18
%SR19-20
%SR21-22
%SR23
%SR 24-25
%SR26
%SR27
%SR28
%SR29
%SR30
USER_SCR Current User Screen Number 1 1023
ALRM_SCR Current Alarm Screen Number (0=none) 0 1023
SYS_SCR Current System Screen Num ber (0=none) 0 14
SELF_TEST Bit-Mapped Self-Test Result 0 65535
CS_MODE Control Station Mode (0=Idle, 1=Do I/O, 2=Run) 0 2
SCAN_RATE Average Scan Rate ( / 10) - 1000
MIN_RATE Minimum Scan Rate ( / 10) - 1000
MAX_RATE Maximum Scan Rate ( / 10) - 1000
EDIT_BUF Data Field Edit Buffer 0 2
LADDER_SIZE Ladder Code Size 2 256K
Reserved - - IO_SIZE I/O Configuration Table Size 16 127K
NET_SIZE Network Configuration Table Size 34 1K
SD_SIZE Security Data Table Size - LADDER_CRC Ladder Code CRC 0 65535
Reserved - - IO_CRC I/O Configuration Table CRC 0 65535
NET_CRC Network Configuration Table CRC 0 65535
SD_CRC Security Data Table CRC 0 655 35
NET_ID This Station’s Primary Network ID (CsCAN) 1 253
Register Name Description Min Val Max Val
%SR164.3
%SR164.4
%SR164.5
%SR164.6
%SR164.7
%SR164.8
%SR164.9
%SR164.10
%SR164.11
%SR164.12
%SR165-174
%SR175
%SR176-177
%SR178-179
%SR180
%SR181
%SR182
%SR183
%SR184
%SR185
%SR186
%SR187
%SR188
%SR189
%SR190
%SR191
%SR192
Enable AUTORUN (Fail Safe) Enable AUTOLOAD (Fail Safe)
Backup trigger bit
Clear Backup trigger bit MAKE_CLONE trigger bit LOAD_CLONE trigger bit
Reserved
Removable
Media
Removable
Media
Removable
Media
Reserved - - -
ALM_UNACK
ALM_ACT Active Alarm (high bit indicates what group #)
SYS_BEEP System Beep Enable (0=disabled; 1=enabled)
USER_BEEP Software configurable (0=OFF; 1=ON)
SCR_SAVER Screen Saver Enabled (0=disabled; 1=enabled)
SCR_SA_TM Screen Saver Time in minutes (delay)
NET_USE Average Net Usage of all units on the CAN net work
NET_MIN
NET_MAX
NT_TX_AVG Average Net Usage of this unit
NT_TX_MIN Minimum Net Usage of this unit
NT_TX_MAX Maximum Net Usage of this u nit
Read bit indicating Auto Restore of Register Data
has been performed (Fail Safe)
Read bit indicating Backup of Register Data has
been performed (Fail Safe)
Status indicating Make Clone Fail (This bit goes
high when Make / Create clone fails)
Status indicating Load Clone Fail (This bit goes
high when Load clone fails)
Current Removable Media interface status 0 6
Indicates free space on the Removable Media card
in bytes.
Indicates the total card capacity in bytes. 0 2
Unacknowledged Alarm (high bit indicates what
group #)
Minimum Net Usage of all units on the CAN
network
Maximum Net Usage of all units on the CAN
network
0 2
31
31
For additional information on system bits and registers, refer to the on-line help found in Cscape.
XLx with no I/O XLx with 102 I/O XLx with 103 I/O XLx with 104 I/O XLx with 105 I/O
Description
%I1-%I12 Unused Digital Inputs Digital Inputs Digital Inputs Digital Inputs
%I13-%I16 Unused Reserved Reserved Digital Inputs Reserved
%I17-%I24 Unused Unused Reserved Digital Inputs Reserved
%I25-%I31 Unused Unused Reserved Reserved Reserved
%AI1-%AI2 Unused Analog Inputs Analog Inputs Analog Inputs Analog Inputs
%AI3-%AI4 Unused Analog Inputs Reserved Reserved Reserved
%AI5-%AI6 Unused HSC1 Accumulator
%AI7-%AI8 Unused HSC2 Accumulator
XL6/XL6e OCS hardware is programmed with a Windows based PC application called Cscape. This
application can be used to program, configure, monitor and debug all aspects of the XL6/XL6e OCS unit.
Please see the on-line help provided with Cscape for additional details.
15.2 Cscape Status Bar
When the XL6/XL6e OCS is connected to a PC using Cscape software a 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 XL6/XL6e OCS and the Cscape program. Components of the Cscape Status
Bar are explained below.
Message Line -
The contents of
these messages
are context
sensitive. The
Message line can
be empty.
Ready User: NONE HE-XExx1-CsCAN (Model=) Equal Local :1 Target :2(R) [no forces] MOD
Controller Model - Network (Model Confirmation)
•Controller Model indicates the controller model for
which the program in Cscape is configured.
•Networkindicates the type of network that the program
in Cscape expects to use (e.g., CsCAN).
•(Model Confirmation) provides the following
indications:
•(Model=) - the actual Target Controller matches the
configured Controller Model and Network.
•(Model Not=) – the actual Target Controller does not
match the configured Controller Model and Network.
•(Model ?) – there may have been a change since the
last time the Target Controller was compared to the
configured Controller Model and Network.
Equal Indicator – indicates whether the current program in Cscape is equal to the program
stored in the Target Controller.
• If Equal, the program in Cscape is the same as the program stored in the Target Controller.
• If Not Equal, the program in Cscape is not
Controller.
• If Unknown, there may have been a change since the last time the program in Cscape was
compared to the Target Controller.
Current User -
indicates who is logged
(for security purposes).
Communications Status - indicates the current status of the
“pass through” Connector.
• Local: xx – indicates the Network ID of the XL6/QX351
• Target: yy( R ) – indicates the Network ID of the device with
the same as the program stored in the Target
File Modified Indicator - indicates that the file in
the selected window has been modified but has
not been saved.
OCS to which the Cscape program is physically connected
through its serial port. It can serve as a pass through
device to other nodes on the network.
which the Cscape program is exchanging data.
Note: The Local unit and Target unit can be the
same unit or they can be separate units.
The following are status indicators:
(R) – Running
(D) - Do I/o
(I) – Idle
(?) – Cscape is not communicating with the remote unit.
[no forces] – indicates no I/O has been forced.
March 4, 2010 Page 91 of 135 #1037
CH.15 MAN0883-05-EN
15.3 Establishing Communications
The preferred method of communicating between Cscape and an XL6 OCS is via USB port. The XL6
OCS can communicate with Cscape using USB to USB, USB to serial adapters, serial port
communications via MJ1 Port, Ethernet (with an Ethernet adapter board), onboard Ethernet Port (XL6e
only), CAN (CsCAN) or modems. For communications other than USB or the MJ1 port please refer to the
manual which ships with the communications adapter hard wa re being used for programming.
To communicate with the XL6/XL6e via USB you will need the automated driver installer located on the
Horner APG web site:
If you have already registered, enter your Login User name and Password. If you have not yet registered,
please enter your information, Submit, and you will be taken to the page
Where you can download Cscape 8.52B (if you have not already installed this version of Cscape) and the
Cscape 8.52B upgrade for XL6.
For XL6e use Cscape Ver 8.7 Upgrade.
For XL6M use Cscape 9.1 and onwards.
Download the Cscape 8.52B Upgrade for XL6 once Cscape 8.52B has been installed.
March 4, 2010 Page 93 of 135 #1037
CH.15 MAN0883-05-EN
Run (double click) this exe file once it has downloaded.
March 4, 2010 Page 94 of 135 #1037
MAN0883-05-EN CH.15
March 4, 2010 Page 95 of 135 #1037
CH.15 MAN0883-05-EN
March 4, 2010 Page 96 of 135 #1037
MAN0883-05-EN CH.15
March 4, 2010 Page 97 of 135 #1037
CH.15 MAN0883-05-EN
Next, connect a PC’s (Personal Computer running a Windows Microsoft operating system) USB port via
USB cable to the USB mini B port on the XL6/XL6e OCS.
Figure 15.1 – Front Panel and USB Programming Connector
The PC will detect a new device has been plugged into the USB port.
March 4, 2010 Page 98 of 135 #1037
MAN0883-05-EN CH.15
March 4, 2010 Page 99 of 135 #1037
CH.15 MAN0883-05-EN
March 4, 2010 Page 100 of 135 #1037
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.