HORNER HE-XE1E2, HE-XE102, HE-XE106, HE-XE1E0, HE-XE1E3 User Manual

...
Page 1
User Manual
for XLE/XLT OCS
HE-XE100, HE-XE102, HE-XE103, HE-XE104, HE-XE105, HE-XE106
HE-XE1E0, HE-XE1E2, HE-XE1E3, HE-XE1E4, HE-XE1E5, HE-XE1E6
HE-XT100, HE-XT102, HE-XT103, HE-XT104, HE-XT105, HE-XT106
HEXE220C100, HEXE220C000, HEXT240C100
HEXE220C112, HEXE220C012, HEXT240C112 HEXE220C113, HEXE220C013, HEXT240C113 HEXE220C114, HEXE220C014, HEXT240C114 HEXE220C115, HEXE220C015, HEXT240C115 HEXE220C116, HEXE220C016, HEXT240C116
HEXE221C100, HEXT241C100
HEXE221C112, HEXT241C112 HEXE221C113, HEXT241C113 HEXE221C114, HEXT241C114 HEXE221C115, HEXT241C115 HEXE221C116, HEXT241C116
August 23, 2018 MAN0878-09-EN_XLE_XLT_UserManual
Page 2
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 2 | 158
PREFACE
This manual explains how to use the XLE/XLT OCS.
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, please visit our website:
North America:
Tel: (+) (317) 916-4274 Fax: (+) (317) 639-4279 Website: https://hornerautomation.com Email: techsppt@heapg.com
Europe: Tel: (+) 353-21-4321-266 Fax: (+) 353-21-4321-826 Website: www.horner-apg.com Email: tech.support@horner-apg.com
Page 3
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 3 | 158
LIMITED WARRANTY AND LIMITATION OF LIABILITY
Horner APG, LLC. ("HE-APG") warrants to the original purchaser that the XLE/XLT OCS module manufactured by HE-APG is free from defects in material and workmanship under normal use and service. The obligation of HE-APG under this warranty shall be limited to the repair 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. THIS 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 XLE/XLT OCS module. THIS WARRANTY SHALL NOT APPLY TO THIS XLE/XLT OCS module OR ANY PART THEREOF WHICH HAS BEEN 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 XLE/XLT OCS module IS ORIGINALLY INSTALLED. THIS WARRANTY 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, shall HE-APG or its suppliers be liable of any special, consequential, incidental or penal damages including, but not limited to, loss of profit or revenues, loss of use of the products or any associated equipment, damage to associated equipment, cost of capital, cost of substitute products, facilities, services or replacement power, down time costs, or claims of original purchaser's customers for such damages.
To obtain warranty service, return the product to your distributor with a description of the problem, proof of purchase, post paid, insured and in a suitable package.
ABOUT PROGRAMMING EXAMPLES
Any example programs and program segments in this manual or provided on accompanying media 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 diagrams. It is the sole responsibility of the system designer utilizing the XLE/XLT OCS
module to appropriately design the end system, to appropriately integrate the XLE/XLT OCS module
and to make safety provisions for the end equipment as is usual and customary in industrial applications as defined in any codes or standards which apply.
NOTE: The programming examples shown in this manual are for illustrative
purposes only. Proper machine operation is the sole responsibility of the system integrator.
Page 4
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 4 | 158
VISUAL MAP OF MAJOR TASKS AND THE KEY CHAPTERS
The following map is provided to show the major types of tasks that need to be performed and the key chapters in this manual needed to refer to for information and help.
Directions: Major tasks are listed at the top of the map with the key chapters listed beneath that should be consulted in order to perform the tasks.
FIRST STEP of ANY TASK: DATASHEET
The datasheet is the first document to refer to for model-specific information related to XLE/XLT models such as pin-outs, jumper settings, and other key installation information. The web version of this manual has all the XLE/XLT datasheets attached to it. Visit the website to obtain updates to datasheets and user documentation. North America: https://hornerautomation.com or Europe: http://horner-apg.com
QUICK START
INSTALLATION
PROGRAMMING
TROUBLESHOOTING
Safety / Compliance
Page 9
Safety / Compliance
Page 9
Safety / Compliance
Page 9
Safety / Compliance
Page 9
Introduction
Page 11
Introduction
Page 11
Introduction
Page 11
Introduction
Page 11
Mechanical Installation
Page 16
System Settings
Page 48
Fail-Safe System
Page 129
Electrical Installation
Page 22
Removable Media
Page 64
Clone Unit
Page 138
Serial
Communications
Page 25
General I/O
Page 71
Maintenance
Page 142
CAN
Communications
Page 29
High Speed I/O
Page 80
Modbus
Communications
Page 145
Downloadable
Communication
Protocols
Page 32
User Interface
Page 100
Troubleshooting
Page 149
Ethernet
Communications
Page 41
Registers
Page 106
Cscape Configuration
Page 113
Page 5
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 5 | 158
Table of Contents
PREFACE ....................................................................................................................................................... 2
LIMITED WARRANTY AND LIMITATION OF LIABILITY ................................................................................ 3
VISUAL MAP OF MAJOR TASKS AND THE KEY CHAPTERS ....................................................................... 4
Table of Contents .......................................................................................................................... 5
CHAPTER 1: SAFETY / COMPLIANCE .......................................................................................................... 9
1.1 Safety Warnings and Guidelines ................................................................................................. 9
1.2 Grounding ................................................................................................................................. 10
1.3 CE Compliance .......................................................................................................................... 10
CHAPTER 2: INTRODUCTION ..................................................................................................................... 11
2.1 Visual Overview of XLE/XLT and Topics Covered in this Manual ............................................ 11
2.1.1 Where to Find Information about the XLE/XLT ....................................................................... 12
2.2 Connectivity to the XLE/XLT .................................................................................................... 13
XLE/XLT .................................................................................................................................... 13
2.3 Features of XLE/XLT ................................................................................................................ 14
2.4 Accessories ............................................................................................................................... 15
2.5 Useful Documents and References .......................................................................................... 15
2.6 Opening Cscape Help File................................................................................................................. 15
CHAPTER 3: MECHANICAL INSTALLATION .............................................................................................. 16
3.1 Overview ................................................................................................................................... 16
3.2 Mounting Requirements ........................................................................................................... 16
3.2.1 Mounting Procedures (Installed in a Panel Door) ................................................................. 16
3.2.2 Mounting Procedures (Installed on DIN Rail) ....................................................................... 17
3.3 Mounting Orientation ............................................................................................................... 18
3.4 Panel Cut-Out ........................................................................................................................... 18
3.5 Dimensions................................................................................................................................ 19
3.6 Factors Affecting Panel Layout Design and Clearances .......................................................... 20
3.6.1 Clearance / Adequate Space ................................................................................................ 20
3.6.2 Grounding .............................................................................................................................. 20
3.6.3 Temperature / Ventilation .................................................................................................... 20
3.6.4 Orientation ............................................................................................................................ 21
3.6.5 Noise ...................................................................................................................................... 21
3.6.6 Shock and Vibration .............................................................................................................. 21
3.6.7 Panel Layout Design and Clearance Checklist ..................................................................... 21
CHAPTER 4: ELECTRICAL INSTALLATION ............................................................................................... 22
4.1 Grounding Definition ................................................................................................................ 22
4.2 Ground Specifications .............................................................................................................. 22
4.3 How to Test for Good Ground .................................................................................................. 23
4.4 Primary Power Port .................................................................................................................. 24
CHAPTER 5: SERIAL COMMUNICATIONS ................................................................................................. 25
5.1 Overview ................................................................................................................................... 25
5.2 Port Descriptions ...................................................................................................................... 25
5.3 Wiring ........................................................................................................................................ 26
5.4 RS-485 Termination ................................................................................................................. 27
5.5 RS-485 Biasing ......................................................................................................................... 27
5.6 Cscape Programming via Serial Port ....................................................................................... 27
5.7 Ladder-Controlled Serial Communication ................................................................................ 27
5.8 Configuration via USB .............................................................................................................. 28
Page 6
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 6 | 158
CHAPTER 6: CAN COMMUNICATIONS ...................................................................................................... 29
6.1 Overview ................................................................................................................................... 29
6.2 Port Description ........................................................................................................................ 29
6.3 Wiring ........................................................................................................................................ 30
6.4 Cscape Programming via CAN ................................................................................................. 30
6.5 Ladder-Controlled CAN Communication .................................................................................. 31
6.6 Using CAN for I/O Expansion (Network I/O) ............................................................................ 31
CHAPTER 7: DOWNLOADABLE COMMUNICATION PROTCOLS ................................................................ 32
7.1 Overview ................................................................................................................................... 32
7.2 Protocol Config ......................................................................................................................... 34
7.3 Network Configuration ............................................................................................................. 35
7.4 Device List and Device Configuration ...................................................................................... 37
7.5 Scan List ................................................................................................................................... 38
7.6 Data Mapping Configuration (Scan List Entry) ................................................................................. 39
CHAPTER 8: ETHERNET COMMUNICATION .............................................................................................. 41
8.1 Ethernet Module Protocols and Features ................................................................................ 41
8.2 Ethernet System Requirements ............................................................................................... 41
8.3 Ethernet Module Specifications ............................................................................................... 41
8.4 Ethernet Module Configuration ................................................................................................ 42
8.5 Ethernet Configuration – IP Parameters .................................................................................. 46
8.6 Ethernet Module Protocol Configuration ................................................................................. 47
CHAPTER 9 SYSTEM SETTINGS AND ADJUSTMENTS ............................................................................ 48
9.1 System Menu - Overview .......................................................................................................... 48
9.2 System Menu – Navigation and Editing .................................................................................... 48
XLE System Menu ............................................................................................................................... 49
XLT System Menu ............................................................................................................................... 50
9.3 System Menu – Details .............................................................................................................. 51
CHAPTER 10: REMOVABLE MEDIA .................................................................................................... 64
10.1 Overview ................................................................................................................................... 64
10.2 microSD Cards .......................................................................................................................... 64
10.3 micro SD File System ................................................................................................................ 65
10.4 Using the Removable Media Manager ...................................................................................... 65
10.5 Using Removable Media to Log Data ....................................................................................... 65
10.6 Using Removable Media to Load and Save Applications ......................................................... 66
10.7 Using Removable Media to View and Capture Screens ........................................................... 66
10.8 Removable Media (RM) Function Blocks in Cscape .................................................................. 67
10.9 Removable Media (RM) FeaturesProgram Features .............................................................. 67
10.10 Removable Media (RM) FeaturesGraphic/Screen Editor ....................................................... 68
10.11 Removable Media (RM) FeaturesAdditional Configuration ................................................... 68
10.12 Filenames used with the Removable Media (RM) Function Blocks .......................................... 69
10.13 System Registers used with RM ............................................................................................... 70
CHAPTER 11: GENERAL I/O ................................................................................................................... 71
11.1 Overview ................................................................................................................................... 71
11.2 Removing the XLE/XLT Back Cover ......................................................................................... 71
11.3 Model I/O Overview .................................................................................................................. 72
11.4 Solid-State Digital Outputs ....................................................................................................... 73
11.5 Relay Outputs ........................................................................................................................... 74
11.6 Digital Inputs ............................................................................................................................. 75
11.7 Analog Inputs ............................................................................................................................ 76
11.7.1 Thermistor Option for Special Orders .................................................................................. 76
11.7.2 Common Cause of Analog Input Tranzorb Failure, Models 2, 3, 4, & 5 ................................ 76
11.8 Universal Analog Inputs............................................................................................................ 77
Page 7
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 7 | 158
11.9 Analog Outputs ......................................................................................................................... 79
CHAPTER 12: HIGH SPEED I/O (HSC / PWM) ......................................................................................... 80
12.1 Overview ................................................................................................................................... 80
12.2 Glossary .................................................................................................................................... 81
12.2 High Speed Counter (HSC) Functions ...................................................................................... 82
12.2.1 Frequency ............................................................................................................................. 82
12.2.2 Totalize .................................................................................................................................. 83
12.2.3 Pulse Width Measurement .................................................................................................... 85
12.2.3 Period Measurement ............................................................................................................. 86
12.2.4 Quadrature ............................................................................................................................ 87
12.3 HSC Functions Register Map .................................................................................................... 91
12.4 Pulse Width Modulation (PWM) Functions ............................................................................... 92
12.4.1 Normal ................................................................................................................................... 92
12.4.2 PWM ...................................................................................................................................... 92
12.4.3 PWM Output Waveform ........................................................................................................ 95
12.4.4 HSC (High Speed Counter) .................................................................................................... 96
12.4.5 Stepper Function ................................................................................................................... 96
12.5 PWM functions register map .................................................................................................... 97
12.6 PWM Examples .......................................................................................................................... 98
12.7 STP Examples ........................................................................................................................... 99
CHAPTER 13: USER INTERFACE ........................................................................................................... 100
13.1 Overview ................................................................................................................................. 100
13.2 Screen Navigation .................................................................................................................. 100
13.3 Using Editable Screen Objects ............................................................................................... 101
13.4 Ladder Based Screen Navigation ........................................................................................... 102
13.5 Alarms ..................................................................................................................................... 103
13.6 Screen Saver ........................................................................................................................... 105
13.7 Screen Brightness................................................................................................................... 105
CHAPTER 14: REGISTERS ..................................................................................................................... 106
14.1 Register Definitions ................................................................................................................ 106
14.2 Useful %S and %SR registers ................................................................................................ 108
14.3 Register Map for XLE/XLT I/O................................................................................................ 111
14.4 Resource Limits ...................................................................................................................... 112
CHAPTER 15: CSCAPE CONFIGURATION ............................................................................................. 113
15.1 Overview ................................................................................................................................. 113
15.2 Updating Programs from First Generation to Second Generation XLE/XLT ........................ 113
15.3 Cscape Status Bar .................................................................................................................. 114
15.4 Establishing Communications Overview ................................................................................ 115
15.4.1 Communicating via MJ1 Serial Port ......................................................................................... 120
15.4.2 Communicating via On Board Ethernet Port .......................................................................... 121
15.6 Configuration .......................................................................................................................... 122
15.7 Digital / HSC Input Configuration ........................................................................................... 123
15.8 Digital / PWM Output Configuration....................................................................................... 124
15.9 Analog Input Configuration .................................................................................................... 125
15.10 Analog Output Configuration ................................................................................................. 126
15.11 Scaling Analog Inputs ................................................................................................................... 127
CHAPTER 16: FAIL – SAFE SYSTEM ...................................................................................................... 129
16.1 Overview ................................................................................................................................. 129
16.2 Settings ................................................................................................................................... 130
16.3 Backup / Restore Data............................................................................................................ 130
CHAPTER 17: CLONE UNIT ................................................................................................................... 138
Page 8
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 8 | 158
17.1 Overview ................................................................................................................................. 138
17.2 Clone ....................................................................................................................................... 138
17.3 Load Clone .............................................................................................................................. 140
CHAPTER 18: MAINTENANCE .................................................................................................................. 142
18.1 Firmware Updates .................................................................................................................. 142
18.2 Backup Battery ....................................................................................................................... 143
18.2.1 Indications the battery needs replacing ............................................................................. 143
CHAPTER 19: MODBUS COMMUNICATIONS ............................................................................................. 145
19.1 Modbus Overview ................................................................................................................... 145
19.2 Modbus Slave Overview .......................................................................................................... 145
19.3 Modbus Master Overview ....................................................................................................... 146
19.4 Modbus Addressing Table for XLE/XLT Units ........................................................................ 147
CHAPTER 20: TROUBLESHOOTING / TECHNICAL SUPPORT.................................................................. 149
20.1 Connecting to the XLE/XLT .................................................................................................... 149
20.1.1 Connecting Troubleshooting Checklist ............................................................................... 150
20.2 Local Controller and Local I/O ............................................................................................... 151
20.2.1 Local I/O Troubleshooting Checklist .................................................................................. 151
20.3 CsCAN Network ............................................................................................................................. 152
20.3.1 CsCAN Network Troubleshooting Checklist ....................................................................... 152
20.4 Removable Media ................................................................................................................... 153
20.4.1 Basic Troubleshooting ........................................................................................................ 153
20.5 Technical Support Contacts ................................................................................................... 153
INDEX ........................................................................................................................................................ 154
INDEX OF FIGURES AND TABLES ............................................................................................................. 157
Page 9
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 9 | 158
CHAPTER 1: SAFETY / COMPLIANCE
1.1 Safety Warnings and Guidelines
When found on the product, the following symbols specify:
All applicable codes and standards need to be followed in the installation of this product.
For I/O wiring (discrete), use the following wire type or equivalent: Belden 9918, 18 AWG
or larger.
Warning: Consult user documentation.
Warning: Electrical Shock Hazard.
WARNING: EXPLOSION HAZARD – Substitution of components may impair suitability for Class I, Division 2.
WARNING: EXPLOSION HAZARD – Do not disconnect equipment unless 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 provide protection against risk of fire and shock hazards.
WARNING: In the event of repeated failure, do not replace the fuse again as a repeated failure indicates a defective condition that will not clear by replacing the fuse.
WARNING: Only qualified electrical personnel familiar with the construction and operation of this equipment and the hazards involved should install, adjust, operate, or service this equipment. Read and understand this manual and other applicable manuals in their entirety before proceeding. Failure to observe this precaution could result in severe bodily injury or loss of life.
Page 10
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 10 | 158
Adhere to the following safety precautions whenever any type of connection is made to the module.
Connect the green safety (earth) ground first before making any other connections.
When connecting to electric circuits or pulse-initiating equipment, open their related
breakers. Do not make connections to live power lines.
Make connections to the module first; then connect to the circuit to be monitored.
Route power wires in a safe manner in accordance with good practice and local codes.
Wear proper personal protective equipment including safety glasses and insulated
gloves when making connections to power circuits.
Ensure hands, shoes, and floors are dry before making any connection to a power line.
Make sure the unit is turned OFF before making connection to terminals. Make sure all
circuits are de-energized before making connections.
Before each use, inspect all cables for breaks or cracks in the insulation. Replace
immediately if defective.
1.2 Grounding
Grounding is covered in various chapters within this manual.
For grounding specifications and testing for a good ground, refer to Page 23. For panel grounding, refer to Page 20.
1.3 CE Compliance
To check for compliance and updates, visit our website. North America https://hornerautomation.com/certifications Europe http://www.horner-apg.com/en/support/certification.aspx
Page 11
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 11 | 158
CHAPTER 2: INTRODUCTION
2.1 Visual Overview of XLE/XLT and Topics Covered in this Manual
Figure 2.1 – Visual Overview of XLE/XLT
Page 12
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 12 | 158
2.1.1 Where to Find Information about the XLE/XLT
a. Datasheets - The datasheets are the first documents to refer to for key information related
to specific XLE/XLT models. (A basic datasheet is provided in the box with the unit.) Datasheets for each model can be found on our website.
Table 2.1 – Datasheet Manual Numbers
Model 0
MAN1112
Model 2
MAN1113
Model 3
MAN1114
Model 4
MAN1115
Model 5
MAN1116
Model 6
MAN1117
Datasheets contain pin-outs, jumper settings and other model specific information.
b. User Manual -This manual provides general information that is common to XLE/XLT models and can be downloaded from our website. Visit our website, North America
https://hornerautomation.com or Europe http://www.horner-apg.com , to obtain user
documentation and updates.
Four main types of information are covered in the manual.
Safety and Installation guidelines / instructions (Mechanical and Electrical) Descriptions of hardware features (Serial ports, Removable Media, Communication
Options, etc.)
Configuration and Use of the XLE/XLT Maintenance and Support
Page 13
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 13 | 158
2.2 Connectivity to the XLE/XLT
The XLE/XLT has excellent capabilities for connecting to a variety of devices. The diagram below shows some examples of devices that can be used with the XLE/XLT. XLEe/XLTe have Ethernet options.
Figure 2.2 –Overview of Types of Devices that can be connected to XLE/XLT
CAN
Serial
I/O
XLE/XLT
Other OCS Devices
Drives
PLCs
Bar Code Readers
Printers
SCADA
OPC Servers
Serial I/O
Sensors
Indicators
Alarms
Encoders
Pumps Relays
Solenoids
Other OCS Devices
Smart Stix I/O
Smart Block I/O
Smart Rail I/O
USB
Ethernet Options
Other OCS Devices Drives PLCs SCADA OPC Server Portal I/O Devices Smart Rail Devices
USB Slave, Programming / monitoring port
Page 14
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 14 | 158
2.3 Features of XLE/XLT
The XLE/XLT is an all-in-one industrial control device. It combines control, user interface, I/O and networking into a single, integrated package. Unique features of the XLE/XLT include:
Bright, graphical LCD display (in XLE) (with touch sensing in XLT)
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 terabytes of storage of programs, data logging or screen
captures
CsCAN networking port (optional) for communication with remote I/O, other controllers
or PCs.
Ethernet version (XLEe/XLTe) with native Ethernet for communication with other
controllers, drives, PCs, etc.
Configurable serial protocols for communication to drives, PLCs, or other serial
peripherals.
USB 2.0 full speed port for programming and monitoring.
Full featured, built-in I/O including high resolution analog, thermocouple, RTD, high-
speed counters, PWM outputs, and relays (depending upon the XLE/XLT model used).
Cscape programming software that allows all aspects of the XLE/XLT, XLEe/XLTe to be
programmed and configured from one integrated application.
Optional communication add-on modules that allow additional capabilities such as
Ethernet (pre rev TA only) or modems.
Fail – Safe System which allows an application to continue running in the event of “Soft”
failures such as (Battery power loss or Battery Backed register RAM / Application Flash corruption)
Clone Unit 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.
It can then be used to clone a different OCS (exact same model).
Page 15
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 15 | 158
2.4 Accessories
Please visit the Horner Control Accessories website for communication, programming, and I/O accessories.
North America: http://hornerautomation.com/product-category/home/control-accessories/ Europe: http://horner-apg.com/en/products.aspx
2.5 Useful Documents and References
Visit our website, North America https://hornerautomation.com or Europe http://www.horner-
apg.com, to obtain user documentation, supplemental documents, certificates, and other
documentation.
2.6 Opening Cscape Help File
After opening the Cscape Help file, either use the Contest, Index or Search tabs to located information. The Cscape Help file has more information than the scope of this user manual.
Select tab.
Page 16
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 16 | 158
CHAPTER 3: MECHANICAL INSTALLATION
NOTE: The datasheet is the first document to refer to for model-specific information related to XLE/XLT models such as pin-outs, jumper settings, and other key installation information. Visit our website, North America https://hornerautomation.com or Europe http://www.horner-
apg.com, 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
XLE/XLT products can be mounted through a panel or on DIN rail.
3.2.1 Mounting Procedures (Installed in a Panel Door)
Figure 3.1 – Panel Mounting of the XLE/XLT and Close-up View of Back
Slot
for Clip
DIN Rail
001XLE055
Page 17
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 17 | 158
Once the panel design has been completed using the criteria and suggestions in the following sections, use the following steps to panel mount the XLE/XLT.
1. Remove all connectors from the XLE/XLT unit.
2. Press the DIN rail clip up to make passing the unit through the cutout easier.
3. Make sure the gasket is installed on the XLE/XLT and is free from dust and debris. Check that the corners of the gasket are secure.
4. Pass the unit through the panel.
5. Insert the each of the four (4) mounting clips into the slots in the XLE/XLT case. One clip should be installed on each corner. Lightly tignten each screw so the clip is held in place.
6. Tighten the screws on the clips such that the gasket is compressed against the panel.
Recommended torque is 7-10 in-lbs [0.8-1.13 Nm]).
3.2.2 Mounting Procedures (Installed on DIN Rail)
Figure 3.2 – DIN Rail Mounting of the XLE/XLT
The XLE/XLT is designed to clip onto standard 35mm DIN rail. If your installation requires liquid or dust protection, make sure the XLE/XLT is placed in an appropriate sealed panel when mounting on DIN rail. Use the following steps to mount the XLE/XLT on DIN rail.
1. Move the DIN rail clip to the lower position.
2. Clip the “Top Clips” on the top of the DIN rail.
3. Press the unit into place and press the DIN rail clip up. A small flat-head screwdriver
can be used in the slot of the DIN rail clip if clearance is an issue.
NOTE: The DIN rail connection does not provide an earth ground. Refer to Page 20 for proper grounding information.
DIN
Rail Clip
Top Clip
NOTE: Mount the XLE/XLT with the DIN Rail in the horizontal position to avoid slippage.
Page 18
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 18 | 158
3.3 Mounting Orientation
Figure 3.3 – Orientation of XLE/XLT OCS
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). The XLE/XLT is designed to fit
1 4
DIN panel openings.
There are a number of punches and enclosures designed to accommodate opening of this size.
Figure 3.4 – XLE/XLT Panel Cut-out
3.622 [92mm]
3.622 [92mm]
001XLE002
CAUTION: For DIN Rail mounting: To prevent the unit from slipping off the DIN Rail, do not install the unit on its sides as shown. Be sure the DIN Rail is in the horizontal position.
NOTE: For panel or DIN rail mounting: The orientation shown above provides for optimum legibility of the screen and ease of use of the keypad.
001XLE056
Page 19
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 19 | 158
3.5 Dimensions
XLT XLE
Figure 3.5 – XLE/XLT Dimensions
NOTE: When the communication add-on modules are installed such communication and I/O, the depth of the product increases from 2.264” (57.5mm) to 2.68” (68mm).
NOTE: The keypad overlay
appearance may differ.
Standard US/EU overlays
pictured here for example.
Page 20
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 20 | 158
3.6 Factors Affecting Panel Layout Design and Clearances
The designer of a panel layout must assess the requirements of a particular system and to consider the following design factors. A convenient checklist is provided in Section 3.6.7.
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
2 (50.80mm)
Minimum Distance between base
of device and wiring ducts
1.5” (38.10mm)
If more than one device installed in panel box
(or on door):
Minimum Distance between bases of each device
4 (101.60mm) between bases of each device
When door is closed:
Minimum distance between device and closed door
(Be sure to allow enough depth for XLE/XLT.)
2 (50.80mm)
3.6.2 Grounding
Panel box: The panel box must 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.
WARNING: It is important to follow the requirements of the panel manufacturer and to follow all applicable electrical codes and standards.
WARNING: Be sure to meet the ground requirements of the panel manufacturer and also meet
applicable electrical codes and standards.
Page 21
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 21 | 158
3.6.4 Orientation
When panel-mounted, there are no orientation restrictions on the XLE/XLT. However, the orientation shown in Figure 3.3 provides for optimum legibility of the screen and ease of use of the keypad. When DIN Rail mounted, observe the orientation shown in Figure 3.3
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 XLE/XLT and noisy devices such as relays, motor starters, etc.
3.6.6 Shock and Vibration
The XLE/XLT 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 XLE/XLT 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 proper 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? (See Table 3.1) Can the panel door be easily
opened and closed? Is there adequate space between device bases as well as the sides of the panel and wiring ducts?
Is the panel box deep enough to accommodate the XLE/XLT? 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 XLE/XLT 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?
Page 22
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 22 | 158
CHAPTER 4: ELECTRICAL INSTALLATION
NOTE: The datasheet is the first document to refer to for model-specific information related to XLE/XLT models such as pin-outs, jumper settings, and other key installation information. Visit our website, North America https://hornerautomation.com or Europe:
http://www.horner-apg.com, 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. In reality it typically is higher. The U.S. National Electrical Code (NEC) states the resistance to ground shall not exceed 25. Horner APG recommends less than 15 resistance from the equipment to ground. Resistance greater than 25 can cause undesirable or harmful interference to the device.
Page 23
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 23 | 158
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 a three-point ground test. Figure 4.1 shows a two-point ground connection test.
Figure 4.1 – Two-Point Ground Connection Test
METAL WATER PIPE OR OTHER GOOD GROUND
GROUND ROD
GROUND DISCONNECTED FROM SERVICE
GROUND RESISTANCE METER
Page 24
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 24 | 158
4.4 Primary Power Port
Table 4.1– Primary Power Port Pins
Pin
Signal
Description
1 Frame Ground
2
0V
Input power supply 0V
3
+10 to 30VDC
Input power supply positive voltage
Figure 4.2 – Power Connector (Primary Power Port)
Figure 4.3 – As Viewed Looking at the XLE/XLT
001NX002
PIN 1
PIN 2
PIN 3
+
10-30VDC
supply
-
+
+
Power Connector
Power Up:
Connect to Earth Ground.
Apply 10 – 30VDC.
Screen lights up.
Torque rating 4.5 - 7 in-lbs
(0.50 – 0.78 N-m)
Page 25
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 25 | 158
CHAPTER 5: SERIAL COMMUNICATIONS
5.1 Overview
All XLE/XLT 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 for XLE/XLT 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 Modem COM or other 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. Also, both MJ1 and MJ2 can be set as the serial programming port.
Page 26
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 26 | 158
5.3 Wiring
The figures along with Table 5.1 and Table 5.2 show how the MJ1 and MJ2 serial port pins are assigned.
Figure 5.1 – MJ1 & MJ2 Serial Ports
Table 5.1 – MJ1 Serial Port Pin Assignments
Pin
Signal
Signal Description
Direction
1
RX/TX+
RS-485 Receive/Transmit Positive
In/Out
2
RX/TX
RS-485 Receive/Transmit Negative
In/Out
3
CTS1 RS-232 Clear to Send
Out 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
Table 5.2 – MJ2 Serial Port Pin Assignments
Pin
Signal
Signal Description
Direction
1
RX+
RS-485 Receive Positive
In
2
RX
RS-485 Receive Negative
In
3
TX+
RS-485 Transmit Positive
Out
4
TX
RS-485 Transmit Negative
Out
5
+5*
+5 VDC 60mA max
Out
6
0V
Ground
7
TD1
RS-232 Transmit Data
In 8 RD1
RS-232 Receive Data
Out
Signals are labeled for connection to a DTE device.
8
1
NOTE: MJ1 and MJ2 look the same but have different pin assignments and functions.
* +5 on XLE Rev E and later
* +5 on all revisions XLT
MJ2 Pinouts in Full and Half Duplex Modes
Pin
MJ1 Pins
MJ2 Pins
Signal
Direction
Signal
Direction
8
TXD
OUT
TXD
OUT
7
RXD
IN
RXD
IN
6
0V
Ground
0V
Ground
5*
+5 60mA
OUT
+5 60mA
OUT 4 RTS
OUT
TX-
OUT 3 CTS
IN
TX+
OUT
2
RX- / TX-
IN / OUT
RX-
IN
1
RX+ / TX+
IN / OUT
RX+
IN
1
8
* +5Vdc 60mA Max
Pin
MJ2 Pins
Signal
Direction
8
TXD
OUT
7
RXD
IN 6 0V
Ground
5*
+5 60mA
OUT 4 TX-
OUT
3
TX+
OUT
2
RX-
IN 1 RX+
IN
1
8
MJ2 Full Duplex Mode
MJ2 Half Duplex Mode
Pin
MJ2 Pins
Signal
Direction
8
TXD
OUT
7
RXD
IN 6 0V
Ground
5*
+5 60mA
OUT 4 TX-
OUT
3
TX+
OUT
2
TX-/RX-
IN/OUT
1
TX+/RX+
IN/OUT
1
8
* +5 VDC 60mA Max
Page 27
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 27 | 158
5.4 RS-485 Termination
Proper RS-485 termination minimizes reflections and improves reliability.
Both serial ports allow an internal 121 RS-485 termination resistor to be placed across pins 1 and 2. This can be done by installing a jumper / switching the dip switch. Please refer to the XLE/XLT data sheet for jumper / switch locations.
NOTE: Only the two devices physically located at the endpoints of the RS-485 network should be terminated.
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 390 RS-485 bias resistors to be switched in, pulling pin 1 up to 3.3V and pin 2 down to ground. The Set Serial Ports item in the System Menu (Chapter 9) 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
If a PC COM port is connected to the XLE/XLT MJ1 serial port, Cscape can access the XLE/XLT 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.
Page 28
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 28 | 158
5.8 Configuration via USB
It is possible to load the program and monitor data via the USB 2.0 slave port on XLE/XLT Rev T and later. To load via USB configure the communications port in Cscape as follows, the unit must be connected via the USB mini-USB port to the PC or laptop:
Select Tools Applications Settings Communications USB button.
It is possible to download/upload and use the data monitoring functions once connected.
NOTE: It is advisable to use an isolated USB cable between the PC/laptop and the XLE/XLT when third party devices are connected to the XLE/XLT to avoid damaging ground loops to the PC/laptop and/or the XLE/XLT.
Figure 5.2 – Configuration via USB
Page 29
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 29 | 158
CHAPTER 6: CAN COMMUNICATIONS
NOTE: For additional CAN information, refer to the CAN Networks manual (MAN0799) on the website, North America https://hornerautomation.com or Europe: http://www.horner-apg.com
6.1 Overview
Some XLE/XLT models (XE1xx) provide a CAN networking port, which is implemented with a 5­pin connector, labeled CAN 1.
The CAN1 port allows the XLE/XLT OCS to exchange global data with other OCS/RCS controllers and to access remote Network I/O devices (SmartStix, Smart Blocks and Smart Rail Modules).
The CAN1 port also supports pass-through communications for programming multiple OCS controllers over the CsCAN network.
The CAN 1 port also allows the XLE/XLT to exchange global data with other OCS/RCS controllers and to access remote Network I/O devices (SmartStix Modules).
6.2 Port Description
The XLE/XLT CAN 1 port implements the ISO 11898-2 physical layer and the CAN 2.0A data link layer standards. Also, since the CAN 1 port is powered by an internal isolated power supply, external CAN power is not required. The CAN1 port does not supply power to the network.
Page 30
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 30 | 158
6.3 Wiring
Figure 6.1 and Table 6.1 show how the CAN 1 port pins are assigned.
Figure 6.1 – CAN1 Port Connector
Table 6.1 – CAN 1 Port Pin Assignments
Pin
Signal
Signal Description
1
V-
CAN Ground
2
CN_L
CAN Data Low
3
SHLD
Shield Ground
4
CN_H
CAN Data High
5
NC
No Connect
6.4 Cscape Programming via CAN
The CAN 1 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 XLE/XLT CAN 1 port, Cscape can access the XLE/XLT for programming and monitoring.
In addition, the XLE/XLT supports single-point-programming of all XLE/XLT and other OCS/RCS devices that are connected to a CAN network. If the PC COM port is connected to the XLE/XLT programming port (see Chapter 5), the XLE/XLT can act as a pass-through gateway allowing Cscape to access all XLE/XLT and OCS/RCS devices that are attached to the CAN network.
NOTE: The V+ connection is not required on the XLE/XLT. The XLE/XLT 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.
CAN Connector
Use the CAN Connector
when using CsCAN
network.
Torque rating: 4.5 – 7
in-lbs
Page 31
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 31 | 158
6.5 Ladder-Controlled CAN Communication
Using Put and Get Network Words function blocks, the CAN 1 port can exchange digital and analog global data with other XLE/XLT 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, SmartMod, SmartBlock, SmartRail) to the XLE/XLT CAN 1 port, allows the XLE/XLT I/O to be economically expanded and distributed. A variety of XLE/XLT remote I/O modules are available for this purpose.
Page 32
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 32 | 158
CHAPTER 7: DOWNLOADABLE COMMUNICATION PROTCOLS
7.1 Overview
Through loadable protocol device drivers, certain models of the OCS family can provide the ability to exchange data with remote devices such as variable-frequency drives, PLCs, and remote I/O devices. This feature greatly expands the OCS’s control capability with negligible effect on the OCS’s ladder scan time.
Remote devices that communicate serially must do so under certain rules of data transfer known as a protocol. Many device manufactures have created their own protocol for communications with their device. For an OCS to communicate with a specific device, it must be loaded with the corresponding serial communications protocol device driver that supports that protocol.
A limited number of protocol device drivers are packaged with the Cscape distribution; however, as more are developed, they will be made available as add-on packages. A device driver is typically distributed as a Windows module, which contains the Configuration Menus, Help Files and the Target Executable Driver Code. When updating device drivers, an install routine loads the device driver to the Cscape directory structure and makes that driver available to Cscape applications.
Once installed, the protocol device driver can be included as part of a Cscape application by selecting it from a list of installed protocol device drivers and attaching it to the desired serial port (Program > Protocol Config menu). Only one protocol device driver can be associated with a serial port, though some OCS models support multiple protocols on a single Ethernet port.
Once the protocol is selected for a specific port, that port must be configured to match the bit transfer size and rate of the target device(s). This is configured under the Network Config menu, which contains port specific information such as the basic serial port parameters (i.e. baud rate, stop bits parity, retries, etc.). In addition to the serial port parameters, this menu also contains the transaction scan update control configuration and any network level protocol specific configuration.
Once the network is configured, each device on the serial communications network must be configured. For some communications (i.e. RS232), the network can be limited to one device. The devices are configured under the Device Config menu, which contains an arbitrary device name, the device ID and optionally an OCS status register that contains any device fault information.
Once each device(s) is configured, a Scan List of entries must be created which defines the transfer of data between a local (OCS ) register(s) and a remote device register(s). These entries are created under the Data Mapping menu, which contains an OCS register, a target device ID, a target device register address, the number of registers to transfer, and update type.
Page 33
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 33 | 158
Each entry can be configured for one of two types of initiating a transaction: Polled and Triggered. Polled type entries initiate a transaction with the remote device on every transaction scan. Triggered type entries only initiate a transaction when a corresponding local (OCS) binary trigger register is
set
. Once a triggered type transaction completes, the protocol
device driver
resets
the local (OCS) binary register to indicate completion. See Section 7.5 for
more details on Polled and Triggered entries.
These basic types are also subdivided into Read or Write operations. For polled operations, a Read operation only reads from a remote device. Likewise, a Read/Write operation continuously reads from the remote device unless the target OCS register value changes from one ladder scan to another. In this case, the new OCS value is written to the target device. For triggered operations, only a Read or Write action is available.
When downloaded to the OCS, the Scan List is scanned sequentially to generate data transactions with the remote device. This transaction scanning can be on a continual basis (automatic) or controlled from ladder logic (manual) once a complex connection is programmatically created (i.e., dialup modem). The specific transaction-scanning mode is selected from the Network Config menu.
The following Horner Automation websites offer OCS Protocol Software Downloads. North America: http://hornerautomation.com/support-files/ Europe: http://horner-apg.com/en/products/software/ocs-protocols.aspx
Please refer to the Cscape Help file for more information on Downloadable Protocols Configuration. After opening the Cscape Help file, select Contents Networking and Communications Protocol Configuration.
Page 34
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 34 | 158
7.2 Protocol Config
After opening Cscape, choose Program Protocol Config.
Then select a protocol device driver from the dropdown box. All protocol device drivers currently loaded in Cscape are displayed in the dropdown selection. Some OCS models can be limited in the number of ports or number of protocol device drivers that can be selected. Once a protocol is selected, the Network, Devices, and Data (Scan List) must be configured through corresponding dialogs accessible through the respective buttons (Network, Device, and Scan List.)
Figure 7.1 – Protocol Config Dialog
Three fields must be configured after a protocol is selected:
1. Network
2. Devices
3. Scan List
Page 35
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 35 | 158
7.3 Network Configuration
For Network Configuration, first select an option from the dropdown menu. Then click the Network button.
Network Configuration provides the required parameters to configure the network. Each protocol is different and may not require the entire Network Config field. Please refer to the table below for the options in the Network Config field.
Page 36
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 36 | 158
Please see the Cscape Help file for more detailed information.
Table 7.1 – Network Protocols
Baud Rate, Data Bits, Stop Bits, Parity
These field define the bit level transfer over the serial port.
Handshake
None – No handshake lines are used Multidrop Full – Rx remains active while Tx is occurring. Multidrop Half – Rx is shut off while Tx is occurring. Radio Modem – Wait for CTS acknowledgement before transmitting (legacy radio modem support).
Protocol
If a driver supports multiple protocols, it is selected here, (i.e. Modbus supports RTU or ANSI).
Mode
Specifies if port operates in RS232 or RS485 mode.
Retries
Specifies number of times a transaction is retried on a failed response.
Timeout
Specifies the amount of time for a device to wait for a valid response.
Update Scan
Automatic Update Interval – Specifies the update interval at which all the mapped entries are executed.
Reacquire Time – Specifies the amount of time to wait before attempting communications with an offline device.
Manual
Trigger – Specifies the binary register that a single transaction scan of the Scan List.
ID Select – If an analog is specified in the field, the ID Select filter is enabled.
Status Register
Specifies the starting OCS register of eight (8) consecutive registers (4-32bit counters), which provide an indication of the network health.
Scanner Address
Specifies the OCS’s device (network) ID if a master ID is required
by the protocol.
Protocol Help
Provides protocol specific help.
Page 37
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 37 | 158
7.4 Device List and Device Configuration
Device List
Access the Device List (CsCAN Serial) by selecting the Device button on the Protocol Config screen and provides a list of the configured devices on the Network. Devices must be created and exist in this list before corresponding Scan List entries can be created for this device. Typically, the number of entries is limited to 64 devices.
Select the Config button when adding or modifying an existing device.
Page 38
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 38 | 158
7.5 Scan List
The Scan List (CsCAN Serial) dialog is accessed from the Scan List button on the Protocol Config screen and provides a Scan List of the Data Mapping entries. To transfer data between the OCS and remote target, a Scan List must be created that defines each transaction. Each mapping entry (transaction) contains the source and destination registers, the number of consecutive registers transferred, the direction of the transfer and what triggers the transfer. Typically the number of entries is limited to 512.
NOTE: The order of the Scan List is the order in which the transactions occur. Sort functions are provided to change the order of the list. Each entry also has an identifying index. If the device status register is enabled and a transaction failure occurs, the status register indicates the index number of the transaction that has failed.
Page 39
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 39 | 158
7.6 Data Mapping Configuration (Scan List Entry)
Update Type
This field specifies the direction and what triggers the transfer of data between the OCS and target device for a mapping entry.
Polled Read
On every transaction scan, a read-only target device register(s) transaction occurs.
Polled Read/Write
On every transaction scan, a read target device register transaction occurs unless a local register value has changed. The write transaction only updates those local registers that have changed in value. If several non-consecutive local registers (contained in a single mapping entry) change value between transaction scans, it takes several consecutive transaction scans to write each changed register.
When the OCS is placed in RUN mode, the initial action for this mapping type is a read target register transaction. This transaction initializes the local (OCS) register(s) to match that of the remote device register(s). Thereafter, any change to the corresponding OCS register(s) triggers a write operation to the remote device.
Page 40
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 40 | 158
Polled Read/Write/Init
On every transaction scan, a read target device register transaction occurs unless a local register value has changed. The write transaction only updates those local registers that have changed in value. If several non-consecutive local registers (contained in a single mapping entry) change value between transaction scans, it takes several consecutive scans to write each changed register.
When the OCS is placed in RUN mode, the initial action for this mapping type is a write target register transaction. This transaction initializes the target device register(s) to match that of the local (OCS) register(s). Thereafter, any change to the corresponding OCS register(s) triggers a write operation to the remote device.
The initial write transaction does not occur until after the first logic scan of the OCS. This allows registers to be initialized locally before Writing to the target device register(s).
Triggered Read
A read transaction is triggered by a high level on a separately designated OCS (binary) trigger register. Once the read transaction is complete (or the device is offline), the OCS trigger register is cleared by the OCS. This update type can be used for occasion data accesses such as retrieving trend data.
NOTE: This operation increases the associated transaction scan time and can cause the Update Interval Exceeded Counter to increment on a tightly adjusted update interval.
Triggered Write
A write transaction is triggered by a high level on a separately designated OCS (binary) trigger register. Once the write transaction is complete (or the device is offline), the OCS trigger register is cleared by OCS. This function can be used for occasion data accesses such as sending recipe data.
NOTE: This operation increases the associated transaction scan time and can cause the Update Interval Time Exceeded Counter to increment on a tightly adjusted update interval.
Page 41
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 41 | 158
CHAPTER 8: ETHERNET COMMUNICATION
8.1 Ethernet Module Protocols and Features
The following table describes the Ethernet Module protocols and features supported by the Ethernet port on the XLEe/XLTe:
Table 8.1 – Ethernet Module Protocols / Features
Protocol / Feature
Protocol / Feature Description
ICMP Ping
Internet Control Message Protocol
EGD (Peer to Peer)
Ethernet Global Data
SRTP Server
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
ASCII Over TCP/IP
ASCII Data over Ethernet
8.2 Ethernet System Requirements
Full Ethernet functionality requires:
- PC running Cscape Programming Software Version 9.8 or later (for configuration).
- XLE/XLT controller with onboard Ethernet port.
8.3 Ethernet Module Specifications
Table 8.2 – Ethernet Module Specifications
Speeds
10 BaseT Ethernet (10Mbps) 100 BaseTx Fast Ethernet (100Mbps)
Modes
Half or Full Duplex
Auto-Negotiation
Both 10/100Mbps and Half/Full Duplex
Connector Type
Shielded RJ-45
Cable Type
(Recommended)
CAT5 (or better) UTP Port
Auto MDI/MDI-X (Auto Crossover)
Page 42
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 42 | 158
8.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 Hardware
Configuration sub-menu to open the Hardware Configuration dialog (Figure 8.1).
2. Click the Config button to the right of LAN1, revealing the Ethernet Module
Configuration dialog as shown in Figure 8.3.
Figure 8.1 – Hardware Configuration Dialog
Page 43
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 43 | 158
NOTE: If configuring a different OCS Model than the XLEe, click on the arrow to show other OCS models. Select the desired OCS Model, and then click OK.
Figure 8.2 – Hardware Configuration Dialog
Page 44
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 44 | 158
Figure 8.3 – Ethernet Module Configuration
3. 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 8.3 shows how this register value is formatted and explains the meaning of each bit in the Status Word.
Page 45
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 45 | 158
Table 8.3 - Ethernet Status Word Register Format
High Byte
Low Byte
Bit
16
Bit
15
Bit
14
Bit
13
Bit
12
Bit
11
Bit
10
Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit
2
Bit 1
0 0 Dup
Spd 0 Rx
Tx
Link
TCP Connections
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 = 10MHz
1 = 100MHz
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)
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.77, the version register will contain 477.
Page 46
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 46 | 158
Get Settings From:
“Get settings from” allows the programmer to either configure the IP Address, Net Mask, or
Gateway for two functions: Configuration or Register.
1. Configuration – The configuration for the IP Address, Net Mask, or the Gateway will be assigned using the value in the Default Settings in this window.
2. Register – The configuration for the IP Address, Net Mask, or the Gateway will be assigned using the values in the registers assigned.
NOTE: 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.
8.5 Ethernet Configuration – IP Parameters
For primary operation, the IP address, Net Mask, and Gateway should be set in the LAN Config of the Cscape Hardware Configuration. There are options to get IP parameters from the LAN Config or to get parameters from registers. It is possible to set the Ethernet IP parameters from the OCS System Menu, but only as a temporary measure. The following points on IP parameter configuration should be considered.
IP Parameters in Non-Volatile RAM: The IP parameters of the Cscape LAN Config are
written to non-volatile RAM on power down. IP parameter settings made in the System Menu are not written to non-volatile RAM. Any IP parameters settings made in the system menu will be lost after cycling power to the unit. It will revert back to the last downloaded Cscape LAN Config that was loaded into non-volatile RAM at power down.
“Cscape LAN Config”/ “Get Settings from” Configuration: When ‘Get settings from’ is
set to Configuration, the IP parameters specified under ‘Default Settings’ is used after downloading to the controller. The IP parameters are represented in System Menu / Set Networks and can be edited. However, any edits made from System Menu / Set Networks is not retained through a power cycle. After power cycle, the unit reverts to the last downloaded Cscape LAN Config that was loaded into non-volatile RAM at power down.
“Cscape LAN Config” / “Get Settings from” Register: When ‘Get settings from’ is set to
Register, the IP parameters are retrieved from the OCS registers assigned in LAN Config. Configured registers must be populated with the desired IP parameters. The IP parameters are represented in System Menu / Set Networks. The IP parameters cannot be edited from System Menu / Set Networks while the unit is in run mode. The IP parameters always follow the values in the registers unless the OCS unit is placed in idle mode. Then the IP parameters can be edited in System Menu / Set Networks. When the OCS is placed back into run mode, it reverts to the registers for IP
parameters.
Page 47
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 47 | 158
8.6 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 to the latest version of the ETN 300 Manual SUP0740 [Ethernet Supplement Manual].
Page 48
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 48 | 158
CHAPTER 9 SYSTEM SETTINGS AND ADJUSTMENTS
9.1 System Menu - Overview
The XLE/XLT controller has a built-in System Menu, which lets the user view System Settings and make adjustments. To start the System Menu, press the and keys at the same time (or set %SR3 to 1), which will display the Main Menu, as shown in Figure 9-1 and in Figure 9-2. Then use the  and keys to select a Main Menu item and press Enter to display the item’s Sub-Menu.
NOTE: The XLE display shows up to six (6) lines of text at a time. For System Menu screens that contain more than 6 lines of text, use the and keys to scroll the display.
NOTE: The XLT display shows up to 12 lines of text at a time. For System Menu screens that contain more than 12 lines of text, scroll the display.
9.2 System Menu – Navigation and Editing
As mentioned above, the System Menu is started by pressing the and keys at the same time for the XLE, or the System key on the XLT. Then, either press ESC to exit the System Menu, or use the and keys 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, the and keys can be used to select a different System Setting to be edited.
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 or to modify the digit. In any case, after entering the new desired value, press the Enter key to save it; otherwise press the ESC key to cancel the edit.
Page 49
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 49 | 158
XLE System Menu
Sub-Menus
Sub-Menus
Network Ok? Yes Network ID: 253
Port 1: (None Loaded)
Port 2: (None Loaded)
Network Baud: 125 KB
( Use  to adjust )
Contrast: 
(Use  → to adjust)
Model: XE104E Mode: Idle Scan Rate(mS): 0.0 Lcl Net Use(%): 0.0 All Net Use(%): 0.0 Ladder Size: 2 Config Size: 8 Graphics Sz: 8 String Size: 8 Bitmap Size: 8 Text Size: 8 Font Size: 8 Protocol Sz: 8 SMS Msg Sz: 8 Firmware Rev: 11.59 CPLD Rev: 1.5 Self-Test: Ok
System RAM: Ok System BIOS: Ok Firmware: Ok 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
Slot 1:+I/O: XEx04 Slot 2:+I/O: XEC
Set Network ID Set Network Baud Set Contrast View Status View Diags View I/O Slots View Protocols Set Fkeys Mode Set Serial Ports Set Time/Date Set Screen Removable Media Fail – Safe System Clone Unit (ESC to Exit)
Fkeys: Momentary Sys-Fn enable: Yes
( Use  to adjust )
Dflt Pgm Port MJ1-232 MJ1 RS485 Bias No MJ2 RS485 Bias No Set Ethernet (Enet)
( Use  to adjust )
Addr: 192.169.254.128 Mask: 255.255.255.0 Gtwy: 0.0.0.0
( Reset required to ) ( enable changes )
Time: 10:21:36 Date: 22-Jun-2006 Day: Thursday
( Use  to adjust ) ( each field )
Saver enable: Yes Timeout(min): 15 Popup Status: Off Update Time(mS): 5 Max. graphics time In the log scan.
Media Directory
No Card
Backup/Restore Data Enable AutoRun Enable AutoLoad
(ESC to exit)
XLE
System Menu
Figure 9.1
Page 50
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 50 | 158
XLT System Menu
Sub-Menus
Sub-Menus
Network Ok? Yes Network ID: 253
Network Baud: 125 KB
( Use  to adjust )
Contrast: 
(Use  → to adjust)
Model: XTxxxx Mode: Idle Scan Rate(mS): 0.0 Lcl Net Use(%): 0.0 All Net Use(%): 0.0 Ladder Size: 2 Config Size: 8 Graphics Sz: 8 String Size: 8 Bitmap Size: 8 Text Size: 8 Font Size: 8 Protocol Sz: 8 SMS Msg Sz: 8 Firmware Rev: 11.59 CPLD Rev: 1.5 Self-Test: Ok
System RAM: Ok System BIOS: Ok Firmware: Ok 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
Slot 1:+I/O: XTxxx Slot 2:+I/O: XTC
Beeper Enable: Yes
( Use  to adjust )
Set Network ID Set Network Baud Set Contrast View Status View 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 (ESC to Exit)
Backup/Restore Data Enable AutoRun Enable AutoLoad
(ESC to exit)
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 Set Ethernet (Enet)
( Use  to adjust )
Addr: 192.169.254.128 Mask: 255.255.255.0 Gtwy: 0.0.0.0
( Reset required to ) ( enable changes )
Time: 10:21:36 Date: 22-Jun-2007 Day: Thursday
( Use  to adjust ) ( each field )
Saver enable: Yes Timeout(min): 15 Popup Status: Off Update Time(mS): 5 Max. graphics time In the log scan.
Media Directory
No Card
XLT
System Menu
Figure 9.2
Page 51
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 51 | 158
9.3 System Menu – Details
The following sections describe each of the Sub-Menus in detail.
Set Network ID
The Network ID Sub-Menu only appears for XLE/XLT models that have CAN ports (XE1xx). 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 XLE/XLT models that have CAN ports (XE1xx). This Sub-Menu displays just one System Setting and it is editable.
Network Baud? 125kB = 125kBd CAN network 250kB = 250kBd CAN network 500kB = 500kBd CAN network 1 MB = 1MBd CAN network
Set Contrast
The Set Contrast Sub-Menu displays just one System Setting and it is editable.
Contrast:  = Current display contrast setting
Page 52
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 52 | 158
View Status
The View Status Sub-Menu displays up to 17 System Settings. The Lcl Net Use % and All Net Use % System Settings only appear for XLE/XLT models that have CAN ports (XE1xx). Only the Mode System Setting is editable.
Model: XExyyz = 5 or 6 character Model number of this XLE/XLT unit x is 1 for models that have a CAN port; 0 = no CAN port yy indicates the installed I/O module; 00 = no I/O module z indicates the installed COM module; N = no COM module
Mode: Idle = XLE/XLT is in Idle mode DoIo = XLE/XLT is in Do I/O mode Run = XLE/XLT is in Run mode
Scan Rate(mS): 0.0 = XLE/XLT is not in Run mode
0.1 to 999.9 = Average number of mS for each ladder scan
Lcl Net Use %: 0.0 to 100.0 = CAN network bandwidth % used by this XLE/XLT 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 Sz: 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 Size: x = Number of bytes in application text tables
Font Size: x = Number of bytes in application font tables
Protocol Sz: x = Number of bytes in application downloaded protocols
SMS Msg Sz: x = Number of bytes in application SMS protocol configuration
Firmware Rev: xx.yy = Current firmware version
CPLD Rev: x.y = Current CPLD (Complex Programmable Logic Device) version
Self-Test: Ok = All power-on self-tests passed Fault = One or more power-on self-tests failed
Page 53
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 53 | 158
View Diags
The View Diags Sub-Menu displays up to 14 System Diagnostics, all of which are not editable. The Net Errors, Network State, Network ID and Dup Net ID System Diagnostics only appear for XLE/XLT models that have CAN ports (XE1xx).
The first five System Diagnostics are critical. If any of them indicate a Fault condition, the XLE/XLT will not enter or remain in Run mode, and the problem must be investigated and corrected.
System Ram: Ok = System RAM power-up self-test passed Fault = System RAM power-up self-test failed
System BIOS: Ok = System BIOS power-up self-test passed Fault = System BIOS power-up self-test failed
Firmware: Ok = Firmware power-up self-test passed Fault = Firmware power-up self-test failed
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 XLE/XLT 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
Battery: Ok = Backup battery operating properly Warning = Backup battery needs to be replaced
Page 54
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 54 | 158
View I/O Slots
The View I/O Slots Sub-Menu displays two System Settings, both of which are not editable.
Internal to the XLE/XLT, there is a CPU board, and up to two installed modules. Models XE000 and XE100 have no installed I/O or COM modules. All other models have an I/O module in Slot 1 and can have a user-installed COM module in Slot 2.
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
View Protocols
The View Protocols Sub-Menu displays two System Settings, both of which are not editable.
As mentioned in Chapter 5, both the MJ1 (Port 1) and MJ2 (Port 2) serial ports support downloadable protocols. To assign a downloadable protocol to an XLE/XLT 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
Page 55
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 55 | 158
Set Fkeys
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
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 either an Ethernet (XEC) or a Modem (XMC) COM module is installed. Also, the Set Ethernet (Enet) item only appears if an Ethernet COM module is installed.
Dflt Pgm Port: MJ1-232 = MJ1 RS232 port is the default programming port Enet = Ethernet COM module 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 Ethernet (Enet) = Select and press Enter to setup the Ethernet COM module
Set Ethernet (Enet) (for units older than Rev TA)
The Set Ethernet (Enet) Sub-Menu displays three System Settings, all of which are editable. The values shown below are the default values.
NOTE: If Gtwy is set to 0.0.0.0, Ethernet communication will be confined to the local network.
Addr: 192.168.254.128 = IP Address for installed Ethernet COM module Mask: 255.255.255.0 = Net Mask for installed Ethernet COM module Gtwy: 0.0.0.0 = Gateway device IP Address for installed Ethernet COM module
Page 56
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 56 | 158
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: 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: 10:21:36 = Current time (hours:minutes:seconds in 24-hour format) Date: 22-Jun-2006 = Current date (day-month-year) Day: Thursday = Current day of week calculated from the Date setting
NOTE: After changing the Ethernet Addr, Mask, or Gtwy, the XLE/XLT must be power-cycled (or
reset) before the changes take effect.
XLT Specific:
Set Beeper (XLT only)
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)
Page 57
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 57 | 158
Removable Media - XLE
XLE Specific: The Removable Media Sub-Menu displays the Removable Media Manager (see Chapter 10). After selecting Removable Media from the Main Menu, one of four Sub-Menu screens will appear:
If the Removable Media Manager displays files or directories, as in the last example above, there are several options available:
If is pressed, the number of total and free bytes is displayed. Then, pressing returns to the normal file and directory display.
If a soft key (on either side of the display) is pressed, a pop-up window appears on the right side of the display, showing the function key options as follows:
F1 Delete = Delete the highlighted file or directory F2 DelAll = Delete all files and directories F3 Format = Format the microSD card F4 SavPgm = Save XLE/XLT application to DEFAULT.PGM Esc Cancel = Cancel current operation (back up one screen)
Pressing the soft key again or pressing ESC returns to the normal file and directory display.
If a directory name is highlighted, pressing Enter will switch to that directory showing its files and sub­directories. In a sub-directory, highlighting .. (dot dot) and pressing Enter will move up one directory.
Shows up to five files or directory names at a time
Media Directory
No Card
Media Directory
Dir Empty
Media Directory
Initializing
= No microSD card has been installed in the Memory slot
= microSD card is installed, but it is still initializing
= microSD card is installed and initialized, but contains no files
Scrollbar only appears if displayed directory contains more than five files and/or directories.
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
Media Directory
FILENAM1.EXT 11.7K
FILENAM2.EXT 10-20
FILENAM3.EXT -05
FILENAM4.EXT 1:09p FILENAM5.EXT Free
= microSD card is installed and initialized, and it contains files
Page 58
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 58 | 158
Removable Media - XLT
XLT Specific:
The Removable Media Sub-Menu displays the Removable Media Manager (see Chapter 10). After selecting Removable Media from the Main Menu, one of four Sub-Menu screens will appear:
Shows up to five file or directory names at a time
Media Directory
No Card
Media Directory
Dir Empty
Media Directory
Initializing
= No microSD card has been installed in the Memory slot
= microSD card is installed, but it is still initializing
= microSD card is installed and initialized, but contains no files
Scrollbar only appears if displayed directory contains more than five files and/or directories.
Shows size of highlighted file or shows <DIR> if directory is highlighted Shows date the file or directory was created or last modified Shows time the file or directory was created or last modified
= microSD card is installed and initialized, and it contains files
Page 59
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 59 | 158
If the Removable Media Manager displays files or directories, there are several options available:
Delete = Delete the highlighted file or directory DelAll = Delete all files and directories Format = Format the Micro SD card SavPgm = Save XLT application to DEFAULT.PGM
= Enter Key
DSK = Shows number of total and free bytes in removable memory
= Up Arrow
= Down Arrow
Esc = Cancel current operation (back up one screen)
Pressing Esc returns to the normal file and directory display.
If a directory name is highlighted, pressing Enter will switch to that directory showing its files and sub-directories. In a sub-directory, highlighting .. (dot dot) and pressing Enter will move up one directory.
Page 60
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 60 | 158
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:
XLT:
XLE:
Selecting Backup/Restore Data displays the following screen in:
XLT:
XLE:
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.
Page 61
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 61 | 158
AutoRun
“Enable AutoRun” displays the following options which can be selected:
XLT:
XLE:
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.
AutoLoad
“Enable AutoLoad” displays the following options which can be selected:
XLT:
XLE:
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.
Page 62
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 62 | 158
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 Chapter 10 for details on using RM). It can then be used to clone a different OCS (exact 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.
Clone
Selecting “Clone Unit” menu will open the following menu screen:
XLT:
XLE:
NOTE:
a. In the above Figure, F3 and F4 (XLE menu) are inactive in Clone Unit. b. DSK – when selected shows number of total and free bytes in Removable Media.
Selecting Make Clone brings up the screen below for the user:
XLT:
XLE:
Page 63
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 63 | 158
AutoLoad
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
XLT:
XLE:
Load Clone
Selecting “Clone Unit” menu will open the following menu screen. Select “Load Clone”.
XLT:
XLE:
NOTE: For security enabled files, Load Clone asks for password validation before loading the application.
Page 64
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 64 | 158
CHAPTER 10: REMOVABLE MEDIA
10.1 Overview
All XLE/XLT models provide a Removable Media slot, labeled Memory Card, which supports standard microSD Flash memory cards. microSD cards can be used to save and load applications, to capture graphics screens and to log data for later retrieval.
10.2 microSD Cards
When the microSD card format was introduced in 2004, it was originally called TransFlash. Cards labeled either microSD or TransFlash, with up to 32GB of flash memory, are compatible with the XLE/XLT OCS Memory Card slot.
The XLE/XLT Memory slot is equipped with a “push-in, push-out” connector and a microSD card can be safely inserted into the Memory slot when the XLE/XLT is powered On or Off.
To install a microSD card: Align its 8-pin gold edge connector down, facing the front of the XLE/XLT unit as shown in Figure 10.1; then carefully push it all the way into the Memory Card slot. Ensure that it clicks into place.
To remove the microSD card: Push down on the top of the card gently to release the spring. The card pops up for removal.
Figure 10.1 – Installing Removable Memory Card
Page 65
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 65 | 158
10.3 micro SD File System
In North America, XLE/XLT prior to Rev TA supported the FAT16 file system which allows up to 2.0 GB of flash memory, while XLE/XLT with REV TA and higher support the FAT32 file system which allows up to 2TB of flash memory. FAT microSD cards are compatible in REV TA units and higher. The XLEe and XLTe also support the FAT32 file system.
In Europe, the new XLE starts at Rev RA and XLT starts at Rev KA.
The microSD Memory Card slot uses the PC-compatible FAT32 File System. This means that a PC, with a microSD-compatible card reader, can read files that have been written by the XLE/XLT and can write files that can be read by the XLE/XLT.
The XLE/XLT does not support long filenames, but instead implements the 8.3 filename format. This means that all file and directory names must consist of up to eight (8) characters, followed by an optional dot, and an optional extension with up to three (3) characters.
Directories and sub-directories may be nested up to 16 levels deep as long as each pathname string does not exceed 147 characters.
10.4 Using the Removable Media Manager
The Removable Media Manager is an interactive XLE/XLT screen that performs the following functions:
Display number of total and free bytes
Browse file and directory lists
Delete files and directories
Format a microSD card
Load and save application programs
View screen capture bitmaps
The Removable Media Manager can be accessed via the System Menu (see Chapter 9) or by using Cscape to place a Removable Media Manager object on an application graphics screen.
10.5 Using Removable Media to Log Data
Using Read and Write Removable Media function blocks, an application ladder program can read and write XLE/XLT 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.
Page 66
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 66 | 158
10.6 Using Removable Media to Load and Save Applications
A special file type, with a. PGM extension, is used to store XLE/XLT application programs on microSD.
To load an application from microSD to the XLE/XLT, use the Removable Media Manager to find and highlight the desired .PGM file, and then press Enter.
To save an application from the XLE to microSD, open the Removable Media Manager in the System Menu and press the F4 function key. The application will be saved in a file called DEFAULT.PGM in the microSD root directory.
To save an application from the XLT to Micro SD, open the Removable Media Manager in System
Menu and press the Save Pgm soft key displayed at the bottom of the XLT’s touch screen. 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 be done from the Removable
Media in the System Menu and is not available on a Removable Media
Manager object that was placed on an application graphics screen by
Cscape.
NOTE: Saving an application to microSD does not also save register data.
Cscape can also save an application directly to a microSD card, which is plugged into the PC’s microSD compatible card reader by selecting the Export to Removable Media item on the Cscape File menu.
10.7 Using Removable Media to View and Capture Screens
The XLE/XLT File System uses bitmap files with the .BMP (.bmp) extension to store XLE/XLT graphic screen captures.
To view a captured XLE/XLT screen, use the Removable Media Manager to find and highlight the desired .BMP file, and then press Enter.
To capture an XLE/XLT screen, turning on the assigned Screen Capture Control Register will capture the current XLE/XLT graphics screen and write it to the microSD card using the assigned Screen Capture Filename.
Before capturing an XLE/XLT 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 / Edit Screens 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.
Page 67
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 67 | 158
10.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 to ‘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 microSD when filename is prefixed with ‘A:’ or nothing.
Read RM csv
Allows reading of a comma-separated value file from the microSD interface into the controller register space.
Write RM csv
Allows writing of a comma-separated value file to the microSD interface from the controller register space.
Rename RM csv
Allows renaming a file on the RM card. The data in the file is not changed.
Delete RM csv
Allows deleting a file on the RM card
Copy RM csv
Allows copying a file on the RM card. The data in the file is not changed.
Table 10.1 – RM Functional Blocks
10.9 Removable Media (RM) FeaturesProgram Features
a. Datalog ConfigurationThis feature allows the controller to periodically log register values to Removable Media. The register data is stored in .csv (comma separated value) format, which is compatible with 3rd party PC applications, such as Microsoft Excel.
b. Report Editor—This feature allows the OCS to be configured to generate text printouts which incorporate data from the registers embedded in the text. The reports can be printed using a serial interface printer through any of the serial ports of the OCS or can be saved on the removable media of the device.
Page 68
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 68 | 158
10.10 Removable Media (RM) FeaturesGraphic/Screen Editor
a. Trends—The historic support feature in the trend object utilizes Removable Media.
b. Removable Media—This is a graphic object used to access files and functions pertaining to Removable Media.
c. Recipes—This is a graphic object that is used in conjunction with the recipe editor which is mentioned above.
10.11 Removable Media (RM) FeaturesAdditional Configuration
a. Alarms—Alarm data can be logged to a .csv file stored on Removable Media.
b. Screen CaptureThe screen capture function allows a bitmap or jpeg image of the displayed OCS screen to be written to the Removable Media card.
c. Filename Counters The filename counters can be accessed wherever Removable Media functions require a path name. A typical application is the auto-incrementing of a file name when doing screen captures.
d. File Select— File Select is used to specify the register block that is used with the Removable Media Manager object ‘Write Selected Filename’ option.
Page 69
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 69 | 158
10.12 Filenames used with the Removable Media (RM) Function Blocks
The RM function blocks support the flash with a 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 three-character extension.
The entire filename including any path must be less than or equal to 147 characters.
When creating filenames and directories, it is sometimes desirable to include parts of the current date or time. There are six special symbols that can be entered into a filename that are replaced by the OCS with current time and date information.
Table 10.2 – Filename Special Symbols
Symbol
Description
Example
$Y
Substitutes the current 2-digit year
2015 = 15
$M
Substitutes the current month with a 2-digit code
March = 03
$D
Substitutes the current day
22nd = 22
$h
Substitutes the current hour in 24-hour format
5 pm = 17
$m
Substitutes the current minute
45 = 45
$s
Substitutes the current second
34 = 34
NOTE: 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, 2015 5:45:34 PM
Filename: Data$M$D.csv = Data0301.csv
Filename: Year$Y\Month$M\aa$D_$h.csv = Year15\Month03\aa01_17.csv
Filename: Month_$M\Day_$D\$h_$m_$s.csv = Month_03\Day_01\17_45_34.csv
Page 70
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 70 | 158
10.13 System Registers used with RM
%SR174 – Removable Media Protect. Write a one (1) to %SR174 to prohibit read/write access to the removable media card. Write a zero (0) to allow access.
%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 kilobytes.
Possible status values are shown in the table:
Table 10.3 – 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
Page 71
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 71 | 158
CHAPTER 11: GENERAL I/O
NOTE: The datasheet is the first document to refer to for model-specific information related to XLE/XLT models such as pin-outs, jumper settings, and other key installation information. Visit the website, North America https://hornerautomation.com or Europe http://www.horner-
apg.com, to obtain datasheets, user documentation, and updates.
11.1 Overview
The XLE/XLT is a compact unit that contains high density and very versatile I/O. Using the I/O properly requires wiring to the proper terminals, configuring jumpers inside the XLE/XLT 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 Chapter 14.
11.2 Removing the XLE/XLT Back Cover
Some I/O configurations require jumper settings to be changed inside the XLE/XLT unit. Examples of these settings are setting positive or negative logic on digital inputs or setting current or voltage on analog inputs.
Each XLE/XLT I/O jumper is set to a factory default. Refer to the data sheet for your XLE/XLT model to find the default setting to determine if a jumper change is necessary for your application.
To remove the back cover of the XLE/XLT, remove the four (4) Phillips screws from the back of the unit. It may help to place the XLE/XLT unit face down on a clean work surface. Once the four screws are removed the back cover can be lifted straight off.
Figure 11.1 – Removing the Back 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.
Page 72
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 72 | 158
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 11.2 below and a description of the jumper settings.
Figure 11.2 – Example Jumper & Connector Diagram
To re-install the back cover, place the cover back on the unit. The DIN clip should be on the same side as the power connector.
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. Recommended torque is 3 - 4 in-lbs (0.34 – 0.45 Nm).
11.3 Model I/O Overview
Table 11.1 – Built-In Digital & Analog I/O
Digital
Analog
DC In
DC Out
(+)
Relay
Out
HSC In*
Pulse
Out**
mA/V
In
mA/V
RTD/TC
(Universal)
mA/V
Out
Model 2
12
-- 6 4
-- 4 --
--
Model 3
12
12 4 2 2
--
--
Model 4
24
16
-- 4 2 2 --
--
Model 5
12
12
-- 4 2 2 2
Model 6
12
12
-- 4 2
-- 6 4
*Shared with total DC inputs **Shared with total DC outputs
J1 J2
J3
JP3
JP1
001XLE005-R1
J4
Page 73
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 73 | 158
11.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 XLE/XLT 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.
Figure 11.3 – Typical Output Wiring
The digital outputs used in the XLE/XLT 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 XLE/XLT 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 configuration (Chapter 15) for 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.
Q14
Q15
V+
0V
LOAD
LOAD
10 - 30VDC
Q16
LOAD
J2
J4
Page 74
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 74 | 158
11.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 XLE/XLT does not require external coil power for the relays to function. The relays will activate anytime the XLE/XLT is powered.
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 Derating – 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.
001XLE015
0V ON J1
12-24VDC
R2
C2
R3
C3
R6
C6
R4
C4
R5
C5
R1
C1
H4
H2
H3
LOAD
230VAC
OR
25VDC
N L
LOAD
230VAC
OR
25VDC
N L
LOAD
230VAC
OR
25VDC
N L
LOAD
230VAC
OR
25VDC
N L
LOAD
230VAC
OR
25VDC
N L
LOAD
230VAC
OR
25VDC
N L
WARNING: To protect the module and associated wiring from load faults, use external (5A)
fuse(s) as shown. Fuses of lower current or fusing for the entire system must be in place to ensure that the maximum current rating of the unit is not exceeded.
WARNING: Connecting high voltage to any I/O pin can cause high voltage to appear at other
I/O pins.
Figure 11.4 - Relay Fusing
Page 75
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 75 | 158
Protection for Inductive Loads – Inductive loads can cause reverse currents when they turn off that can shorten the life of relay contacts. Some protective measures must be determined by an engineer. Below are some recommendations that will work for many applications. If there are 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 configuration (Chapter 15) for Cscape settings.
11.6 Digital Inputs
NOTE: See Chapter 12 for high speed I/O information and refer to the datasheet for XLE/XLT model being used for details on jumper settings.
NOTE: The digital inputs on the XLE/XLT 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.
Figure 11.5 – Positive and Negative Inputs
In positive logic mode, a positive voltage applied to the input will turn the input ‘On’. 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 24V). This mode is sometimes called sinking. Some of the digital inputs may support high speed input functional such as counting or frequency measurement.
I1
0V
001XLE036
12-24VDC
I1
0V
Positive Logic In Negative Logic In
Positive Logic vs. Negative Logic Wiring
The XLE/XLT can be wired for Positive Logic inputs or Negative Logic inputs.
Page 76
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 76 | 158
11.7 Analog Inputs
NOTE: See the data sheet for the XLE/XLT model being used for jumper settings and Chapter
15 for details on how to use Cscape to configure the digital filtering.
The analog inputs on the XLE/XLT 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.
11.7.1 Thermistor Option for Special Orders
NOTE: The standard unit does NOT support thermistor.
Thermistor support is a factory option for Models 2, 3, and 4 only. Model 2 can support a two­channel and four-channel thermistor. Models 3 & 4 support the two-channel thermistor only. Please refer to the Thermistor Supplement, SUP0797, for thermistor specifications and implementation details.
11.7.2 Common Cause of Analog Input Tranzorb Failure, Models 2, 3, 4, & 5
If a 4-20mA circuit is initially wired with loop power but without a load, the analog input could see 24VDC. This is higher than the rating of the tranzorb.
This can be solved by not connecting loop power prior to load connection or by installing a low­cost PTC in series between the load and the analog input.
Figure 11.6 – Analog Input Tranzorb - Troubleshooting
Page 77
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 77 | 158
11.8 Universal Analog Inputs
NOTE: See the data sheet for the XLE/XLT model being used for jumper settings and Chapter
15 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. The Model 6 does not require jumpers and only requires a configuration parameter 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.
The Universal Analog Inputs on the Model 6 I/O board are unique from other Horner XL series input/output cards in that they are configurable through the module configuration instead of having to change jumper setting in order to setup the input type.
To configure the Universal Analog input type:
1. Select Analog In to access the Analog Input Configuration menu.
2. Select any of the Analog input types from the dropdowns.
Figure 11.7 – Analog Input Configuration (Model 6)
Page 78
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 78 | 158
3. Ensure the proper wiring is used for each of the 3 pins A, B, and C on the
Universal Analog Inputs as seen in the reference image below.
Figure 11.8 – Universal Analog In Configuration Screen
0 – 10 V Analog In
mV In
Thermocouple In
NC A1A
100mV+
A1B
100mV-
A1A A1B
0-10VDC
A1C
A1A A1B
A1C A1C
20 mA Analog In
RTD In
20mA
A1A A1B
LOOP PWR
A1C A1B
A1C
A1A
NOTE:
Loop Power requirements are determined by the transmitter specification.
Page 79
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 79 | 158
11.9 Analog Outputs
NOTE: See Chapter 12 for high-speed I/O information and refer to the datasheet for XLE/XLT model being used for details on jumper settings. The Model 6 does not require jumpers and only requires a configuration parameter in Cscape.
The analog outputs on XLE/XLT devices provide high-resolution voltage or current outputs. The voltage or current selection is controlled with jumpers and configuration settings in Cscape.
NOTE: 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, see Chapter 15 for the configuration of Cscape settings.
Page 80
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 80 | 158
CHAPTER 12: HIGH SPEED I/O (HSC / PWM)
12.1 Overview
In addition to the compliment of simple analog and digital I/O, several of the XLE/XLT 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 (Chapter 15).
Page 81
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 81 | 158
12.2 Glossary
Table 12.1 – Glossary of High Speed I/O Terms
Accumulator
Register used to accumulate or store up a sum or count of many items or events.
Clear
A special function to zero out the value in a specific register. (Not used with Frequency or Period Measurement.)
Disable
A special function to prevent the counter from running.
Encoder
A sensor or transducer for converting rotary motion or position to a series of electronic pulses.
Frequency Input
The number of times an electromagnetic signal repeats an identical cycle in a unit of time, usually one second.
Latch (strobe)
A special function that uses a digital logic circuit to store one or more bits. A latch has a data input, a clock input and an output. When the clock input is active, data on the input is "latched" or stored and transferred to the output register either immediately or when the clock input goes inactive. The output retains its value until the clock goes active again.
Marker
Input into the OCS that indicates a particular position. Typically, an encoder has a marker output that represents a specific point in the rotation.
Polarity
A Polarity pull-down box is associated with each function and indicates the manner in which the trigger happens (e.g., High level, Low Level, Falling Edge, Rising Edge).
Preload (load)
A special function used to trigger loading of a value into a register upon an event. (Not used with Frequency or Period Measurement.)
Quadrature
A high-speed device that expresses the phase relationship between two periodic quantities of the same period when the phase difference between them is one fourth of a period. A coupler in which the two output signals are 90° out of phase.
Totalizer
A counter that sums the total number of cycles applied to its input.
Page 82
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 82 | 158
12.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: 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: The
edge
polarity selection in the mode parameter for the 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 DC inputs polarity
. If Negative logic is configured when using these functions, the opposite edge polarity must be selected in the mode parameter.
12.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: Selecting a shorter sample window provides a quicker measurement (faster response) but lowers the frequency accuracy (resolution) and increases the minimum frequency measurement limit. In this mode, the Disable and Latch special functions are allowed. Please see Section 12.2 for a description of these functions.
Page 83
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 83 | 158
12.2.2 Totalize
In totalize mode, the accumulator is simply incremented or decremented 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.
The totalizer supports the following modes:
Table 12.2 – Modes supported by Totalizer
Internal
This mode ties the input to the counter to an internal 10 MHz or 1 MHz clock. The special functions can be used to accurately time events.
Count Up
This increments the accumulator when the input is enabled.
NOTE: Two inputs can be assigned. Either input can cause the counter to increment. The second input can also be disabled.
Count Down
This decrements the accumulator when the input is enabled.
NOTE: Two inputs can be assigned. Either input can cause the counter to decrement. The second input can also be disabled.
Up/Down (Input 1 Up/Input 2 Down)
In this mode, Input 1 (assigned to any of the four inputs) increments the counter, while Input 2 (also assigned to any of the 4 inputs) decrements the counter.
Clk/Dir (Input 1 Clk, Input 2 Dir)
This mode uses Input 1 as a clock signal to increment or decrement the counter and then uses Input 2 to decide the direction. Input 2 disabled increments the counter, while Input 2 enabled decrements the counter.
NOTE: The totalize mode enables the Disable, Latch, Preload, and Clear special functions. Please see Section 12.2 for details.
NOTE: Counter triggers off the rising edge of the signal.
Page 84
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 84 | 158
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 asserted, the associated totalizer accumulator is reset and held at zero (level sensitive).
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: 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: 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.
Rising Edge Signal
Falling Edge Signal
Page 85
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 85 | 158
12.2.3 Pulse Width Measurement
In Pulse Width Measurement 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 Low 1μs Counts - In this sub-mode the accumulator value will contain the number of 1μs counts the pulse is low.
Width High
Width Low
Page 86
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 86 | 158
12.2.3 Period Measurement
In Period Measurement Mode, the high-speed input can measure the period of a pulse stream in one of two modes and provides a continuous indication of the last sampled value. In this mode, the Disable and Latch special functions are allowed. Please see Section 12.2 for a description of these functions.
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 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 Rising Edge
Period from Falling Edge
Page 87
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 87 | 158
12.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.
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. In order to determine the number of cycles, the accumulator would have to be divided by 4.
90°
Phase shift
1 (leading)
2 (lagging)
Page 88
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 88 | 158
Three different options are available to reset (or set) the current count.
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.
Page 89
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 89 | 158
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
.
Asynchronous Modes
o Async, Reset on rising edge o Async, Reset on falling edge o Async, Reset on both edges
Synchronous modes synchronize the reset (or set) to the selected quadrature input and the selected marker polarity. Figure 11.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.
Synchronous Modes
o High, Reset on 1 rising o Low, Reset on 1 rising o High, Reset on 1 falling o Low, Reset on 1 falling o High, Reset on 2 rising o Low, Reset on 2 rising o High, Reset on 2 falling o Low, Reset on 2 falling
NOTE: The Marker input is sampled within 50μs of the associated quadrature edge. It is left to the user to determine if this meets the time constraints of the measured drive.
NOTE: If the Marker input pulse consecutively spans more than one of the specified edges, quadrature-decoding operation is unpredictable.
Page 90
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 90 | 158
Sync mode selection Waveforms (Clockwise Rotation ) __________________________________________________________________
[1]
[2]
High, Reset on 2 rising [SYNC]
High, Reset on 1 falling [SYNC]
High, Reset on 2 falling [SYNC]
High, Reset on 1 rising [SYNC]
*While not displayed in this figure, modes for low level (inverse logic) are also supported
for each state.
Figure 12.1 – Sync pulse mode illustration
Page 91
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 91 | 158
The accumulator is reset to zero on the specified edge if rotation is clockwise (as shown in Figure 12.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.
Table 12.1 – Sync Pulse Mode
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
Counter
Falling
High 0 Low, Reset on 1 falling
Clockwise
Rising
Low
CPR - 1
Counter
Falling
Low 0 High, Reset on 2 rising
Clockwise
Rising
High
0
Counter
Falling
High
CPR - 1
Low, Reset on 2 rising
Clockwise
Rising
Low
0
Counter
Falling
Low
CPR - 1
High, Reset on 2 falling
Clockwise
Rising
High
CPR - 1
Counter
Falling
High 0 Low, Reset on 2 falling
Clockwise
Rising
Low
CPR - 1
Counter
Falling
Low
0
12.3 HSC Functions Register Map
Table 12.2 – HSC Functions Register Map
Register
Frequency
Totalize
Pulse
Quad
%AI5-6
HSC1 (function) Accumulator
Quad 1 Acc
%AI7-8
HSC2 (function) Accumulator
%AI9-10
HSC3 (function) Accumulator
Quad 2 Acc
%AI11-12
HSC4 (function) Accumulator
%AQ1-2
HSC1 Preset
%AQ3-4
HSC2 Preset
%Q17
Clear HSC1
Clear Quad 1
%Q18
Clear HSC2
Set Quad 1
%Q19
Clear HSC3
Clear Quad 2
%Q20
Clear HSC4
Set Quad 2
Page 92
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 92 | 158
12.4 Pulse Width Modulation (PWM) Functions
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.
12.4.1 Normal
When either Q1 or Q2 is configured for Normal operation, the digital output registers %Q1 and %Q2 drives that respective output.
12.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. The register set and prescale calculation differ depending upon the XLE/XLT hardware being used, hardware revs A-R use the following resisters and scaling:
Prescale Count - Revision A-R or Legacy Modules
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:
Frequency =
( )
tPeriodCountescaleCoun +1Pr
000,000,16
Pre-scale Count (Revision T and onwards or Gen2 or later)
NOTE: In Europe, the new XLE starts at Rev RA, and new XLT starts at Rev KA.
The pre-scale %AQ5 (PWM1) or %AQ6 (PWM2) count sets the resolution of the internal counter used for generating the PWM output. The (pre-scale count + 1) is a divisor applied to a 32MHz 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/32 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:
Frequency =
( )
tPeriodCountescaleCoun +1Pr
000,000,32
Page 93
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 93 | 158
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 pre-scaler value. This
parameter affects the Period of both PWM outputs.
See the previous formula to see how the pre-scale and period counts create an output frequency. For example, setting the PWM for 1μs resolution (pre-scale=15), and a period count of 20,000 would result in a 50Hz 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 pre-scaler 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%.
Period
Duty Cycle
Page 94
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 94 | 158
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: The nominal output driver turn-on-time delay (to reach 50% output) is 25μs on Models 3-5. Therefore, this limitation should be considered when determining both the minimum pulse width and the duty cycle accuracy of the application.
The following table shows the PWM registers used for the Legacy and Extended PWM revisions:
Table 12.3 – PWM Legacy and New Extended Registers
PWM: Legacy Registers
PWM: New Extended Registers
AQ1 – PWM1 Duty Cycle(DWord)
AQ1 – PWM1 Duty Cycle
AQ2 – Reserved
AQ3 – PWM2 Duty Cycle(DWord)
AQ3 – PWM2 Duty Cycle
AQ4 – Reserved
AQ5 – Pre-Scale(DWord)
AQ5 – PWM1 Pre-Scale
AQ6 – PWM2 Pre-Scale
AQ7 – Period(DWord)
AQ7 – PWM1 Period
AQ8 – PWM2 Period
1) When an old XLE/XLT file is auto configured to a new XLE/XLEe or XLT/XLTe file, then
the old formula and registers are taken and firmware will do the required adjustments for the PWM to function normally.
2) When a new XLE/XLT file is created, then the new formula will be applied and the
configuration must be as per the new register set.
Page 95
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 95 | 158
12.4.3 PWM Output Waveform
Figure 12.2 – PWM Output Waveform
Table 12.4 – PWM Output Waveform Table
Rise Time
150ns Max
Fall Time
150ns Max
PWM Period
Frequency =
1
𝑃𝑒𝑟𝑖𝑜𝑑
Page 96
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 96 | 158
12.4.4 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 count and a preset value (PV). See totalize in the HSC section above for more information.
12.4.5 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: 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 zero (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 zero (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 (0) 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.
Page 97
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 97 | 158
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).
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: 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: 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.
12.5 PWM functions register map
Table 12.5 – PWM Function Registers Map
Register
PWM
HSC
Stepper
%AQ1
PWM1 Duty Cycle (32-
bit)
HSC1
Preset Value
Start Frequency
%AQ2
Run Frequency
%AQ3
PWM2 Duty Cycle (32-
bit)
HSC2
Preset Value
Accel Count
(32-bit)
%AQ4
%AQ5
PWM Prescale
(32-bit)
--
Run Count
(32-bit)
%AQ6
%AQ7
PWM Period
(32-bit)
--
Decel Count
(32-bit)
%AQ8
%Q1
--
--
Run
%I30
--
--
Ready/Done
%I31
Error
Page 98
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 98 | 158
12.6 PWM Examples
All of the PWM examples use the following formula.
Frequency =
( )
tPeriodCounescale +1Pr
000,000,32
Example 1 To get a 50% Duty Cycle @ 10 kHz waveform on PWM1:
Set %AQ1 = 50 (duty cycle count) Set %AQ5 = 30 (prescale count) Set %AQ7 = 100 (period count)
Example 2 To get a 50% Duty Cycle on PW1 and 90 % Duty Cycle on PWM2 @ 1 kHz waveform:
Set %AQ1 = 500 (duty cycle count) Set %AQ3 = 900 (duty cycle count) Set %AQ5-6 = 30 (prescale count) Set %AQ7-8 = 1000 (period count)
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)
Page 99
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 99 | 158
12.7 STP Examples
Example 1 10,000,000 steps control sequence
The following example starts at 2.5kHz and ramps up to 5kHz during the first 1,000,000 steps. Then, it runs at 5kHz 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.5kHz and ramps up to 1kHz during the first 2,000,000 steps. Then, it runs at 1kHz 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 50Hz and ramps up to 250Hz during the first 150,000 steps. Then, it runs at 250Hz 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 65kHz for the PWM output. This is only achievable on a Model 6 unit, Models 2-5 max output frequency is approximately 10kHz. Refer to datasheet for more details.
Page 100
MAN0878-09-EN_XLE_XLT_UserManual
A u g u s t 2 3 , 2 0 1 8 P a g e 100 | 158
CHAPTER 13: USER INTERFACE
13.1 Overview
This chapter presents the user interface (or operator view) of the XLE/XLT and some of the model specific characteristics of the XLE/XLT 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 in CSCAPE.
13.2 Screen Navigation
The screen navigation on the XLE/XLT is quite flexible. Basic methods will be described here. Control programming can be used to create complex screen navigation techniques.
One form of screen navigation is the Jump Screen graphics object. This object is typically tied to a soft key (One of the four keys to the sides of the display for the XLE and at the bottom of the screen for the XLT). Pressing the soft key will switch to the screen that is programmed.
Figure 13.1 – Typical Screen Jump Object (XLE)
Figure 13.2– Typical Screen Jump Object (XLT)
Loading...