Table of Contents

Advertisement

Quick Links

 
User Manual for
Canvas 7
 
 
MAN1375-00-EN_CV7_UM

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Canvas 7 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for HORNER Canvas 7

  • Page 1   User Manual for Canvas 7     MAN1375-00-EN_CV7_UM...
  • Page 2 LIMITED WARRANTY AND LIMITATION OF LIABILITY   Horner APG, LLC, ("HE-APG") warrants to the original purchaser that the Canvas 7       O CS 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 Canvas 7 OCS MODULE. THIS WARRANTY SHALL NOT APPLY TO THIS Canvas 7 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 Canvas 7 OCS MODULE   I S 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, postpaid, insured and in a suitable package.
  • Page 3 PREFACE   This manual explains how to use the Canvas 7 OCS.   Copyright (C) 2024 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, SmartRail, and CsCAN are trademarks of Horner APG. Ethernet is a trademark of Xerox  ® Corporation   ® ® microSD  and CompactFlash are registered trademarks of SanDisk Corporation   ® Published with Madcap Flare .      North America Tel: (+) (317) 916-4274 Fax: (+) (317) 639-4279 Web: https://www.hornerautomation.com Email: APGUSATechSupport@heapg.com     Europe Tel: (+) 353-21-4321-266 Fax: (+) 353-21-4321-826 Web: https://hornerautomation.eu Email: technical.support@hornerapg.com...
  • Page 4: Table Of Contents

    Table of Contents Chapter 1: Safety and Compliance 1.1: Warnings 1.2: FCC Compliance 1.3: Safety Precautions Chapter 2: Intro to the Canvas 7 2.1 Visual Overview 2.2 Where to find more information for the Canvas 7 2.3 Connectivity to the Canvas 7 2.4 Features of Canvas 7 OCS Chapter 3: Mechanical Installation 3.1 Mounting Requirements 3.2 Mounting Orientation 3.2.1 Canvas 7 OCS Mounting Clip 3.2.2 Canvas 7 OCS Mounting Orientation 3.3 Dimensions 3.4 Installation Procedure 3.5 Factors Affecting Panel Layout Design and Clearances Chapter 4: Electrical Installation 4.1: Ground Specifications 4.2: How to Test for Good Ground 4.3: Primary Power Port 4.3.1: DC Input/Frame...
  • Page 5 8.4.2 Relay Outputs 8.4.3 Digital Output Configuration 8.5 Analog Inputs 8.5.1 Scaling Analog Inputs & Examples 8.6 Analog Outputs Chapter 9: High Speed I/O (HSC/PWM) 9.1: Overview 9.2: High Speed I/O Glossary 9.3: High Speed Counter (HSC) Functions 9.3.1: Frequency 9.3.2: Totalize 9.3.3: Pulse Width Measurement 9.3.4: Period Measurement 9.3.5: Quadrature 9.3.6: Register Match 9.4: HSC Functions 9.4.1: Status Bits 9.5: HSC Functions Register Maps 9.5.1: I/O Mapping 4-Counter Mode 9.6: High Speed Output Functions 9.6.1: Normal 9.6.2: PWM 9.6.3: PWM Output Waveform 9.6.4: Stepper Function 9.7: High Speed Output Functions Register Map 9.7.1: I/O Mapping 2–Counter Mode 9.7.2: I/O Mapping 4-Counter Mode 9.7.3: PWM Examples 9.7.4: STP Examples 9.8: HSC I/O Filtering Chapter 10: Serial Communications 10.1 Port Descriptions 10.2 Wiring 10.3 DIP Switches 10.4 RS-485 Termination...
  • Page 6 13.5.1: Menu 13.5.2: Buttons 13.5.3: Display Control 13.5.4: Data Mapping Configuration (Scan List Entry) Chapter 14: User Interface 14.1 Screen Specifications 14.2 Displaying and Entering Data 14.3 Alpha-Numeric Keypad 14.4 Screen Navigation 14.5 Ladder-Based Screen Navigation 14.6 Beeper Acknowledgement 14.7 Touch (Slip) Sensitivity 14.8 Alarms 14.9 Removable Media 14.10 Screen Saver 14.11 Screen Brightness 14.12 Touch Screen Pressure Chapter 15: Video Object 15.1: Video Object Overview 15.2: Opening Video Object in Cscape 15.3: Video Properties Configuration 15.3.1: Video Type 15.3.2: Control 15.3.3: Configuring Display Properties 15.4: Video Object Performance 15.5: Web Cameras Chapter 16: Removable Media 16.1: microSD Cards 16.1.1: microSD File System 16.2: Using the Removable Media Manager 16.3: Log Data 16.4: View and Capture Screens 16.5: Removable Media Object 16.6: Function Blocks in Cscape...
  • Page 7 20.2 Firmware Update Details 20.3 Download Firmware 20.4 Firmware Update Steps Chapter 21: Canvas OCS Battery 21.1: Safety 21.2: Replacing the Battery Chapter 22: Troubleshooting 22.1: Connecting to the OCS 22.1.1: Serial Port – MJ1 Programming 22.1.2: USB Port - Mini B Programming 22.1.3: ETN Port Programming 22.2: Local Controller and Local I/O 22.2.1: Local I/O Troubleshooting Checklist 22.3: CsCAN Network 22.3.1: CsCAN Network Troubleshooting Checklist 22.4: USB Interfaces 22.5: Basic Troubleshooting 22.6: Technical Support Contacts Index Chapter 23: Change Log...
  • Page 8 Safety and Compliance   Page 8...
  • Page 9: Chapter 1: Safety And Compliance

    WARNING: EXPLOSION HAZARD – Do not disconnect equipment unless power has been switched off or the area is  known to be non-hazardous.  1.  To avoid the risk of electric shock or burns, always connect the safety (or earth) ground before making any  other connections.  2.  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.  3.  Replace fuse with the same type and rating to provide protection against risk of fire and shock hazards.  4.  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.  5.  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. WARNING: BATTERY MAY EXPLODE IF MISTREATED. DO NOT RECHARGE, DISASSEMBLE, OR DISPOSE OF IN  FIRE. WARNING: BATTERIES MUST ONLY BE CHANGED IN AN AREA KNOWN TO BE NON-HAZARDOUS. WARNING: The USB parts are for operational maintenance only. Do not leave permanently connected unless area is  known to be non-hazardous. WARNING: If the equipment is used in a manner not specified by Horner APG, the protection provided by the equipment  may be impaired. NOTE: All applicable codes and standards need to be followed in the installation of this product. NOTE: For I/O wiring (discrete), use the following wire type or equivalent: Belden 9918, 18 AWG, or larger. NOTE:  See the "Electrical Installation" on page 23for more details.  Page 9 of 206...
  • Page 10: Fcc Compliance

    Chapter 1: Safety and Compliance 1.2: FCC Compliance This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions:  1.  This device may not cause harmful interference.  2.  This device must accept any interference received, including interference that may cause undesired  operation. 1.3: Safety Precautions Adhere to the following safety precautions whenever any type of connection is made to the module:  ll applicable codes and standards need to be followed in the installation of this product. Adhere to the following  safety precautions whenever any type of connection is made to the module:  1.  Connect the safety (earth) ground on the power connector first before making any other connections.  2.  When connecting to the electric circuits or pulse-initiating equipment, open their related breakers.  3.  Do NOT make connection to live power lines.  4.  Make connections to the module first; then connect to the circuit to be monitored.  5.  Route power wires in a safe manner in accordance with good practice and local codes.  6.  Wear proper personal protective equipment including safety glasses and insulated gloves when making  connections to power circuits.  7.  Ensure hands, shoes, and floor are dry before making any connection to a power line.  8.  Make sure the unit is turned OFF before making connection to terminals.  9.  Make sure all circuits are de-energized before making connections.  10.  Before each use, inspect all cables for breaks or cracks in the insulation. Replace immediately if defective.  11. ...
  • Page 11   Introduction to the Canvas 7   Page 11...
  • Page 12: Chapter 2: Intro To The Canvas 7

    Chapter 2: Intro to the Canvas 7 Chapter 2: Intro to the Canvas 7 2.1 Visual Overview 2.2 Where to find more information for the Canvas 7 2.3 Connectivity to the Canvas 7 2.4 Features of Canvas 7 OCS 2.1 Visual Overview  ...
  • Page 13: Where To Find More Information For The Canvas

    Chapter 2: Intro to the Canvas 7 2.2 Where to find more information for the Canvas 7 Datasheets - The datasheets are the first documents to refer to for key information related to specific models. (A basic  datasheet is provided in the box with the unit.)    Find the documents via the Documentation Search page on the Horner website.    Datasheet Manual Numbers Canvas 7 Model 0 MAN1377 Canvas 7 Model 2 MAN1378 Canvas 7 Model 3 MAN1379 Canvas 7 Model 4 MAN138 Canvas 7 Model 5 MAN1381 Canvas 7 Model 6 MAN1382   2.3 Connectivity to the Canvas 7...
  • Page 14: Features Of Canvas 7 Ocs

    Chapter 2: Intro to the Canvas 7 2.4 Features of Canvas 7 OCS The Canvas 7 OCS are all-in-one industrial control devices. They combine control, user interface, I/O and networking into a  single, integrated package. Unique features of the Canvas 7 OCS include:     Bright, 65,536 color graphical touch sensing LCD display in all models of Canvas 7.   Display of complex graphical objects including trends, gauges, meters and animations.   Very high-performance graphic processing.   Advanced control capabilities including floating point, multiple auto-tuning PID loops, and string handling capabilities.   Removable media for 32GB of storage of programs, data logging, or screen captures.   CsCAN networking port for communication with remote I/O, other controllers, or PCs.   High speed USB port for communication with PCs and programming of controller.   Configurable serial protocols for communication to drives, PLCs, or other serial peripherals.   Full featured, built-in I/O including high resolution analog, thermocouple, RTD, high-speed counters, PWM outputs,  and relays (depending upon the Canvas 7 OCS model used).   Advanced high speed I/O capabilities.   Cscape programming software that allows all aspects of the Canvas 7 OCS to be programmed and configured from  one integrated application.
  • Page 15 Mechanical Installation     Page 15...
  • Page 16: Chapter 3: Mechanical Installation

    Chapter 3: Mechanical Installation Chapter 3: Mechanical Installation 3.1 Mounting Requirements 3.2 Mounting Orientation 3.3 Dimensions 3.4 Installation Procedure 3.5 Factors Affecting Panel Layout Design and Clearances NOTE: The datasheet is the first document to refer to for model-specific information related to Canvas 7   m odels such as pin- outs, jumper settings, and other key installation information. See the Documentation Search for datasheets.    The mechanical installation greatly affects the operation, safety and appearance of the system.   I nformation 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.1 Mounting Requirements Once the panel design has been completed using the criteria and suggestions in the following sections, use the following steps ...
  • Page 17: Mounting Orientation

    Chapter 3: Mechanical Installation 3.2 Mounting Orientation 3.2.1 Canvas 7 OCS Mounting Clip     3.2.2 Canvas 7 OCS Mounting Orientation   NOTE: There are no orientation restrictions on the Canvas 7 OCS. However, the above orientation provides for optimum  readability of the screen and ease of use of the keypad.   Page 17 of 206...
  • Page 18: Dimensions

    Chapter 3: Mechanical Installation 3.3 Dimensions For installations requiring NEMA 4X liquid and dust protection, the panel cutout should be cut with a tolerance of +1.0 mm/ -0      +1.0 mm / -0 mm Cutout Tolerance   Page 18 of 206...
  • Page 19: Installation Procedure

    Chapter 3: Mechanical Installation 3.4 Installation Procedure   The Canvas 7 utilizes a clip installation method to ensure a robust and watertight seal to the enclosure. Please follow  the steps below for the proper installation and operation of the unit.   This equipment is suitable for Class I, Division 2, Groups A, B, C and D or non-hazardous locations only.   Digital outputs shall be supplied from the same source as the operator control station.   Jumpers on connector JP1 shall not be removed or replaced while the circuit is live unless the area is known to be free  of ignitable concentrations of flammable gases or vapors.    1.  Carefully locate an appropriate place to mount the Canvas 7. Be sure to leave enough room at the top of the unit for  insertion and removal of the microSD™ card.  2.  Carefully cut the host panel per the diagram, creating a 131.9mm x 175.0mm, with a +1mm/-0mm panel cutout  tolerance, opening into which the Canvas 7 may be installed. If the opening is too large, water may leak into the  enclosure, potentially damaging the unit. If the opening is too small, the OCS may not fit through the hole without  damage.  3.  Remove any burrs and or sharp edges and ensure the panel is not warped in the cutting process.  4.  Remove all Removable Terminals from the Canvas 7. Insert the Canvas 7 through the panel cutout (from the front).  The gasket must be between the host panel and the Canvas 7.  5.  Install and tighten the four mounting clips (provided in the box) until the gasket forms a tight seal. NOTE:  Recommended torque is 7 to 10 in•lbs (0.8 - 1.13 N•m).  6.  Reinstall the Canvas 7 I/O Removable Terminal Blocks. Connect communications cables to the serial port, USB ports,  Ethernet port, and CAN port as required. Page 19 of 206...
  • Page 20: Factors Affecting Panel Layout Design And Clearances

    Chapter 3: Mechanical Installation 3.5 Factors Affecting Panel Layout Design and Clearances WARNING:   I t is important to follow the requirements of the panel manufacture and to follow all applicable electrical codes and  standards. The designer of a panel layout must assess the requirements of a particular system and to consider the following design factors.   Clearance / Adequate Space Install devices to allow sufficient clearance to open and close the panel door. Minimum Clearance Requirements for Panel Box and Door Minimum Distance between base of device and sides of cabinet 2” (50.80 mm) Minimum Distance between base of device and wiring ducts 1.5” (38.10 mm) If more than one device installed in panel box (or on door): 4” (101.60 mm) between bases of each device ...
  • Page 21 Chapter 3: Mechanical Installation   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?   C an 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 controller?   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  controller 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 21 of 206...
  • Page 22 Electrical Installation     Page 22...
  • Page 23: Chapter 4: Electrical Installation

    Chapter 4: Electrical Installation Chapter 4: Electrical Installation 4.1: Ground Specifications 4.2: How to Test for Good Ground 4.3: Primary Power Port NOTE: The datasheet is the first document to refer to for model-specific information. Refer to the Documentation Search on  the Horner website.  4.1: Ground Specifications Ideally, a ground resistance measurement from equipment to earth ground is 0Ω. In reality it typically is higher. The US National  Electrical Code (NEC) states the resistance to ground shall not exceed 25Ω. Horner Automation recommends less than 15Ω  resistance from the equipment to ground. Resistance greater than 25Ω can cause undesirable or harmful interference to the  device. Grounding Definition -   T he 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: 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 ...
  • Page 24: Primary Power Port

    Chapter 4: Electrical Installation 4.3: Primary Power Port The Primary Power Range is 10-30 VDC. Primary Power Port Pins Signal Description Ground Frame Ground Input Power Supply Ground Input Power Supply Voltage 4.3.1: DC Input/Frame   Solid/Stranded Wire: 12-24 AWG (Ø2.5-0.2 mm²)   Strip length: 0.28” (7 mm)   Torque, Terminal Hold-Down Screws: 4.5 – 7 in•lbs (0.50 – 0.78 N•m)   DC- is internally connected to I/O V-, but is isolated from the V- connection of both CAN1 and CAN2 ports.  A Class 2 power supply must be used. 4.3.2: Power Up  1.  OPTIONAL: Attach ferrite core with a minimum of two turns of the DC+ and DC- signals from the DC  supply that is powering the controllers.  2.  Connect to earth ground.  3.  Apply recommended power. NOTE: Refer to datasheet for power specifications Page 24 of 206...
  • Page 25 System Settings and Adjustments   Page 25...
  • Page 26: Chapter 5: System Settings

    Chapter 5: System Settings Chapter 5: System Settings 5.1 OCS System Menu – Overview, Navigation, and Editing 5.2: LED Indicator Lights 5.3: System Menu Map 5.4: Set Networks 5.5: View Status & Diags 5.6: View Battery Status, I/O Slots & Protocols 5.7: Removable Media 5.8: Fail –...
  • Page 27 Chapter 5: System Settings System Menu View Options There are two available System Menu views: Linear and Grid.   System Menu - Linear View: On the System Menu screen, select Linear View to display the System Menu items in a  single line. Scroll left and right to view all menu options.   System Menu - Grid View: On the System Menu screen, select Grid View to display the System Menu items in a table  containing multiple items.   System Menu Navigation Note: Select Close to exit submenus and return to the Main Menu, and to exit the Main Menu to return to the System Menu  screen. Following accessing the System Menu, use the up & down sliders to select an item and display the submenu of the item. The  submenu contains a list of choices for the System Settings and their values.    System Settings that can be edited are highlighted. Use the up & down sliders to scroll through the available System Setting  options. Use the touchscreen icons to select new values. Tap the touchscreen to change the values.   Select Enter to save the changes.   Select Back to cancel the edit.   Numeric Keys The numeric keys are used to enter number values into the System Settings. Use the arrows on the display to select digits and ...
  • Page 28: Led Indicator Lights

    Chapter 5: System Settings   5.2: LED Indicator Lights Canvas series controllers have virtual OK and Run LEDs in the System Menu as shown in the following image.     OCS LEDs   OFF   i ndicates OCS is in IDLE/STOP mode.      Flashing   i ndicates DO / IO mode or RUN with no ladder program.    ON   i ndicates ladder code running.         OFF   i ndicates one or more self-tests failed.           ON   i ndicates all self-tests passed.              ...
  • Page 29: System Menu Map

    Chapter 5: System Settings 5.3: System Menu Map   Page 29 of 206...
  • Page 30: Set Networks

    Chapter 5: System Settings 5.4: Set Networks   This sub menu allows setting for the CAN, LAN and WiFi network to be viewed or changed. CAN Settings   Yes   =  CAN1 connected to a CAN   n etwork and functioning properly CAN Ok? No   =  Not ready to communicate on   C AN network 1 to 253 = This node’s CsCAN Network ID CAN ID 1 to 127 = This node's CANopen or J1939 Network ID 0 to 63 = This node's Device network ID; must be   u nique on network 125kB = 125 kBd CAN network 500kB = 500 kBd CAN network CAN Baud 250kB = 250 kBd CAN network 1MB   =  1 MBd CAN network CAN Protocol CsCAN/CANopen/Device Net scanner/J1939     LAN Settings  ...
  • Page 31 Chapter 5: System Settings   MAC ID Displays the Ethernet MAC ID of the LAN IP Address Displays the Ethernet IP Address of the LAN Netmask Displays the Ethernet Netmask of the LAN Gateway Displays the Ethernet Gateway of the LAN DHCP Enable/Disable DHCP of the LAN Displays the DNS server of the LAN   NOTE: The IP address, Net Mask, and Gateway can be changed from the System Menu. This is designed for commissioning or  temporary field changes. The actual parameters are defined in Cscape under the Ethernet configuration. Page 31 of 206...
  • Page 32 Chapter 5: System Settings WiFi Settings     WiFi Hardware Displays Hardware Present or /not WiFi Mode Displays as None/AccessPoint/Client MAC ID Displays the MAC ID of the WiFi Hardware, if installed Access Point   Network Name (SSID) View/Modify the Network Name Password View/Modify the Password Encryption View/Modify the Encryption standard Network IP View/Modify the Network IP Channel View/Modify the Channel Client   Join Network View/Select the list of available Networks to join Auto Connect Set the network to Auto Connect or None Status Displays the Status as Connected or None Client IP Displays the Client IP Address Signal Health Displays the Signal Health   Page 32 of 206...
  • Page 33: View Status & Diags

    Chapter 5: System Settings 5.5: View Status & Diags View Status Performance   The View Status Sub-Menu displays up to 19 System Settings. Only the Mode System Setting is editable. Idle         =  Canvas 4 OCS is in Idle mode Mode DoIO   =  Canvas 4 OCS is in Do I/O mode Run   =  Canvas 4 OCS is in Run mode Ok = All power-on self-tests passed Self-Test Fault = One or more power-on self-tests failed Ok = All executed ladder instructions are legal for loaded firmware Logic Error Fault = A ladder instruction not supported by firmware was found 0 = Watchdog timer has not tripped since the last power-up Watchdog Trips  x = Number of times watchdog timer has tripped Ok = Ladder program and I/O configuration loaded successfully User Program Fault = Ladder program or I/O configuration not loaded or load failed Ok = Application graphics objects loaded successfully User Graphics Fault = Application graphics objects not loaded or load failed Ok = Time and date have been set...
  • Page 34 Chapter 5: System Settings View Diags Diagnostics This Sub-Menu displays the CPU and Memory, I/O Slots, CAN Network and Version to be viewed. CPU and Memory   0.0 = Canvas 4 OCS is not in Run Mode Scan Rate (mS) 0.1 to 999.9 = Average timefor each ladder scan, in milliseconds (ms) Internal Memory A 1 to 10% = Internal memory A percent used by this OCS node Internal Memory B 1 to 10% = Internal memory B percent used by this OCS node CPU Temperature x = Displays CPU in degrees Celsius (ºC) Page 34 of 206...
  • Page 35 Chapter 5: System Settings Minimum CPU  x = Displays CPU minimum in degrees Celsius (ºC) Temperature Maximum CPU  x = Displays CPU maximum in degrees Celsius (ºC) Temperature RTC Battery Age x = Displays RTC battery age in years     Page 35 of 206...
  • Page 36: View Battery Status, I/O Slots & Protocols

    Chapter 5: System Settings 5.6: View Battery Status, I/O Slots & Protocols View I/O Slots   Ok     =  I/O configuration matches the installed I/O and COM modules I/O System  Warning = I/O configuration needs updating to match installed modules   The View I/O Slots Sub-Menu displays four System Settings, all of which are not editable. Internal to the OCS, there is a CPU board, and up to two installed modules. Model 0 has no installed I/O or COM modules. All  other models have an I/O module and can have a user-installed COM module. Depending on which I/O module is installed and which I/O module has been configured by Cscape, one of the following six  System Settings should appear for Slot 1: Slot 1: I/O: Empty =   N ote I/O module installed or configured Slot 1: *Unsupported =   U nsupported 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 is configured Slot 1: ?I/O: XExyy = yy I/O module installed but another I/O module is configured Slot 1: I/O: XExyy...
  • Page 37 Chapter 5: System Settings Slot 3: I/O : ETN300 =   E TN300 has been configured through Cscape OCS-I/O Configuration =   O CS-I/O has been configured through Cscape   OCS-I/O Configuration Page 37 of 206...
  • Page 38 Chapter 5: System Settings CAN Network   0 = No CAN network bus-off errors have occurred CAN1 Error x = Number of CAN network bus-off errors that have occurred Ok = At least one other node was found on the CAN network CAN1 State Warning = No other nodes were found on the CAN network Ok = This node’s CAN Network ID is in the range 1 to 253 CAN1 ID Warning = This node’s CAN Network ID was out of range at power-up Ok = This node’s Network ID is unique on the CAN network CAN1 Duplicate ID Warning = This node’s Network ID is duplicated in another node Ok = Time and date have been set Clock Error Warning = Time and date need to be set Local Network Usage 0.0 to 100.0 = CAN network bandwidth percent used by this OCS node All Network Usage 0.0 to 100.0 = CAN network bandwidth percent used by all nodes   Version Page 38 of 206...
  • Page 39 Chapter 5: System Settings   Firmware Rev xx.yy.zz = Current firmware version FPGA Rev x.y = Current FPGA version (High Speed IO Sub System) OS Version a.bc.yz = Current Operating System version System Version xx = Current System version   Capacity   Logic Size x = Number of bytes in application ladder program I/O Configuration Size x = Number of bytes in application I/O configuration Graphics Size x = Number of bytes in application graphic screens Protocol Size x = Number of bytes in application downloaded protocols Page 39 of 206...
  • Page 40 Chapter 5: System Settings SMS File Size x = Number of bytes in application SMS protocol configuration Text Table Size x = Number of bytes in application text tables   Page 40 of 206...
  • Page 41 Chapter 5: System Settings 5.6.1 Set Serial Ports     The Set Serial Ports Sub-Menu displays three System Settings, all of which are editable & displays three System Settings (View  Protocol), none of which are editable. The Set Serial Ports Sub-Menu displays three System Settings, all of which are editable, and one optional item. For the Default  Prog Port System setting, only MJ1-232 can be selected.   MJ1-232     =  MJ1 RS-232 port is the default programming port Default Prog Port Modem         =  Modem COM   m odule   i s the default programming port No         =    M J2 RS-485 bias resistors are not enabled MJ2   R S-485 Bias Yes  ...
  • Page 42 Chapter 5: System Settings   Protocol Name (None Loaded) or name of the protocol assigned to COM Protocol Version Blank or version of the protocol assigned to COM Page 42 of 206...
  • Page 43 Chapter 5: System Settings 5.6.2 Set Time/Date The following instructions are to set and display the real-time clock in the controller.   M ore details can be found in the Help File in  Cscape.   Clock and Time Setting Terms Abbreviated to UTC,   C oordinated Universal Time is the primary time standard by which  Coordinated Universal Time (UTC) the   w orld regulates clocks and time.  In order to obtain the local time (anywhere in the world), the   u ser needs to subtract / add  Time Offset a certain number of hours from UTC depending on   h ow many time zones user is away  from Greenwich. A Networking Time Protocol (NTP) for clock synchronization   b etween computer  Network Time Protocol (NTP)  systems over packet-switched, variable latency data   n etworks.  Time as adjusted to achieve   l onger evening daylight, especially in summer, by setting  Daylight Saving Time the clocks an hour  ...
  • Page 44 Chapter 5: System Settings   To Set Time Zone: The Time Zone setting is an hourly offset from UTC time. If using the Time Zone setting, set it first, then set  the local time. UTC time will be automatically set based on the time zone and local time settings. If using NTP: NTP utilizes UTC time, therefore when using NTP, the appropriate hourly offset from UTC time must entered into  the time zone setting.   Daylight Saving Time: If currently observing Daylight Saving Time, set to Yes. If not currently observing Daylight Saving Time,  set to No. The OCS controller does not automatically switch to daylight saving time; however, program logic can be written to  accomplish an automatic switchover using system register %SR211. In program logic, move a “1” (INT) into %SR211 to enable  Daylight Saving Time. Move a “0” (INT) into %SR211 to disable Daylight Saving Time. Trigger the move to %SR211 based on a  compare function to the RTC date according to daylight saving practices in your desired region.   To Set Local Time: The Set Time/Date sub-menu displays three system settings. Time and Date may be edited, and Day is  automatically calculated from the Date setting.   NOTE: Time and Date are split into three fields each, all of them are editable. Toggle the edit enable buttons of Local Time /  Local Date to edit all these three fields.   Time 16:09:49 = Current time (hours:minutes:seconds in 24-hour format) Date 10-Jun-2013         =  Current date (day-month-year) Monday = Current day of week calculated from the Date setting Page 44 of 206...
  • Page 45: Removable Media

    Chapter 5: System Settings 5.7: Removable Media   The Removable Media Sub-Menu displays the Removable Media Manager. After selecting Removable Media from the Main  Menu, one of three Sub-Menu screens will appear.     If a directory name is highlighted, touch pressing on the folder 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 45 of 206...
  • Page 46: Fail - Safe System

    Chapter 5: System Settings 5.8: 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-Backed Register RAM or Application Flash corruption due to, for example, an excessive EMI, Electromagnetic  Interference, event.   Selecting “Fail-Safe System” menu will open the following menu screen:     Selecting Backup/Restore Data displays the following screen in:     Backup   Copies battery-backed RAM   c ontents on to the onboard flash memory of the OCS. Page 46 of 206...
  • Page 47 Chapter 5: System Settings Restore   Copies the backed-up data from   o nboard flash to the battery-backed RAM. Clear Backup The backup data will be   e rased from the onboard flash. Exit Goes back to previous menu   Page 47 of 206...
  • Page 48 Chapter 5: System Settings 5.8.1 Enable AutoRun   “Enable AutoRun” displays the following options which can be selected:     No = OCS will be in IDLE mode after AutoLoad or Automatic   R estore.   Enable AutoRun Yes = OCS will   a utomatically be placed into RUN mode after AutoLoad or Automatic Restore. Page 48 of 206...
  • Page 49 Chapter 5: System Settings 5.8.2 Enable AutoLoad   “Enable AutoLoad” displays the following options which can be selected:     No = Does not   l oad AUTOLOAD.PGM automatically when application program is absent or   Auto Load SD corrupted. Auto Load USB Yes = Loads   A UTOLOAD.PGM file automatically from RM (SD card/USB) when application  program is absent or   c orrupted.   Page 49 of 206...
  • Page 50: User Interface

    Chapter 5: System Settings 5.9: User Interface   Yes = Enable screen saver Screen Saver Enable No (default) = Disable screen saver 5 - 1200 = Amount of time in minutes to expire with no touch activity before activating screen  Screen Saver Timeout saver (black screen) Off (default) = Disable popup status Pop Up Notification Warning = Display popup status only if controller status changes to NOT Ok or NOT Run mode. On = Display popup status on any controller status change. Yes = Reset and all clear system functions enabled System Function Enable No = Reset and all clear system functions disabled Yes (default) = Enables beeper Beeper Enable No = Disables beeper (does NOT affect ladder access) Momentary = %K1-4 bits go On & Off as F1-F4 are pressed & released Fkeys Toggle = %K1-4 bits toggle each time F1-F4 are pressed Page 50 of 206...
  • Page 51: Touch Screen Calibration

    Chapter 5: System Settings 5.10: Touch Screen Calibration The touch screen is calibrated at the factory and rarely needs modification. However, if actual touch locations do not appear to  correspond with responding objects on the display, field adjustment is available. Ensure SYS_fn Enable is set to YES in System  Menu. To access the field adjustable touch screen calibration dialog, press and hold both the SYS and F1 key for longer than 2  seconds and a dialog similar to the figure below will appear.    For best results in screen calibration, use a stylus with a plastic tip. When the crosshair appears, touch the center of the  crosshair as exactly as possible and release. A small “+” should appear and will move closer to the center of the crosshair. Once  it has done so and disappeared again, repeat the process until “+” appears in the center of the crosshair. Then move on to the  next step.   Page 51 of 206...
  • Page 52 Chapter 5: System Settings Page 52 of 206...
  • Page 53 Register Mapping   Page 53...
  • Page 54: Chapter 6: System Register Tables

    Chapter 6: System Register Tables 6.1 Register Definitions 6.2 %S Registers 6.3 %SR Registers 6.4 I/O Register Map for Canvas 7 6.5: Default PWM Function Registers Map 6.6: Default HSC Functions Registers Map 6.7 Canvas 7 Resource Limits There are two types of System Registers that may be     u sed during programming. %S registers indicate the status of several ...
  • Page 55 Chapter 6: System Register Tables 6.2 %S Registers %S registers indicate     s ystem status as follows: Name Predefined Notes I/O Name First Scan FST_SCN On for 1 scan only each time the program is first run Network OK NET_OK If on, the Network is OK 10ms pulse T_10MS Cycling pulse that is high for 5ms and low for 5ms 100ms pulse T_100MS Cycling pulse that is high for 50ms and low for 50ms 1 second pulse T_1SEC Cycling pulse that is high for 500ms and low for 500ms I/O OK IO_OK If on, the I/O system is OK Always On ALW_ON This bit is always on  Always OFF ALW_OFF This bit is always off Pause Scan PAUSING_SCN...
  • Page 56 Chapter 6: System Register Tables 6.3 %SR Registers %SR registers are special word-length registers that     d isplay and/or control system operations in the controller. Not all controllers     support all defined system registers. Click on the name of the register     t o see more information on that register. SR # Name and Description Default Program (Read/Write) Display Name (Read/Write) Name Values %SR1 User         S creen Number (0=none) USER_SCR 0 to  Read/Write Read/Write 1023 %SR2...
  • Page 57 Chapter 6: System Register Tables 1= Do I/O 2= Run 3= Online Change %SR6 Average Scan Rate ms ( / 10)     Read Only Read Only %SR7 Minimum Scan Rate ms ( / 10)     Read Only Read Only %SR8 Maximum Scan Rate ms ( / 10)     Read Only Read Only %SR9 Current         T ouch Pressure TCH_ 0 to  Read Only Read Only PRESSURE 3000 %SR10 Threshold  ...
  • Page 58 Chapter 6: System Register Tables 0= Firmware Update (RISM)  1= CsCAN 2= Generic (Ladder- Controlled)  3= Modbus RTU   4= Modbus ASCII  %SR35-36 Unique Serial Number /      Read Only Read Only Hexadecimal  l LAN1 MAC ID   %SR37 Model Number     Read Only Read Only %SR38 Engine Version ( /100)     Read Only Read Only %SR39 BIOS Rev Number   (  / 100)     Read Only Read Only %SR40 FPGA Image Rev Number ( / 10)  ...
  • Page 59 Chapter 6: System Register Tables 100-255 = 100% On  %SR57.16 Temporarily disable Screen Saver      Read/Write Read/Write %SR58 User LEDs USER_LEDS   Read/Write Read/Write %SR59 Engine Build Number     Read Only Read Only (Only last three numbers displayed)  %SR60 Build Option    0 to 2 Read Only Read Only Build Test = 0  Build Beta = 1  Build Product = 2  %SR61 Number of CsCAN Network IDs NUM_IDS   Read Only Read Only %SR62-103 Reserved  ...
  • Page 60 Chapter 6: System Register Tables %SR154.12 setting this bit high (ON) will not      Read/Write Read/Write retain programs / variables after  firmware update. Setting this bit low  (OFF) will retain programs /  variables after firmware update. %SR154.14 If firmware upgrade is not required,      Read/Write Read/Write then %SR154.14 will be set. For example – in case firmware on  device and on uSD / USB is same. %SR154.15 this bit will be set by firmware if      Read/Write Read/Write there is any error in updating  firmware like missing firmware file. %SR155 Reserved         %SR156 Protocols   ...
  • Page 61 Chapter 6: System Register Tables (This bit goes high when  Make/Create Clone fails)  %SR164.12 Load Clone Fail  LD_CLN_FL   Read/Write Read/Write (This bit goes high when Load  Clone fails)  %SR164.14 Reserved     Read/Write Read/Write %SR164.15 Reserved     Read/Write Read/Write %SR165-166 Reserved         %SR167 Screen Update Time, Default= 5     2 to 50 Read/Write Read/Write %SR168-170 Reserved  ...
  • Page 62 Chapter 6: System Register Tables %SR192 Network TX Usage % ( / 10) (Max)   0 to  Read Only Read Only 1000 EXTENDED SYSTEM REGISTERS %SR193 Online Change ONLINE_CHG       %SR193.1 TRUE if 2 programs in target      Read Only Read Only FLASH %SR193.2 TRUE to switch programs, FALSE      Read Only Read Only when complete %SR193.3 TRUE if executing program is      Read Only Read Only temporary test %SR193.4...
  • Page 63 Chapter 6: System Register Tables %SR266-351 WiFi SR Registers     Read Only Read Only %SR266 WIFI Connection Mode         %SR267-275 WIFI MAC ID         %SR276-291 WIFI AP Mode Name         %SR292-307 WIFI AP Mode Password         %SR308 WIFI AP Mode Encryption        ...
  • Page 64: Default Pwm Function Registers Map

    Chapter 6: System Register Tables 6.4 I/O Register Map for Canvas 7 NOTE: These registers can be used as general purpose registers   Description Registers no I/O 102 I/O 103 I/O 104 I/O 105 I/O 106 I/O %I1-%I12 Unused Digital Inputs %I13-%I16 Unused Reserved Digital Inputs Reserved %I17-%I24 Unused Reserved Digital Inputs...
  • Page 65: Default Hsc Functions Registers Map

    Clear HSC1 Clear Quad 1 %Q1619 Clear HSC2 Clear Quad 2     %Q1635 Clear HSC3   %Q1651 Clear HSC4       6.7 Canvas 7 Resource Limits Resource Value 16000 16000 49999 1023 2048 2048 CsCAN, Ping, EGD, SRTP,   M odbus TCP Master (Downloadable protocol) & Slave,   Ethernet Ethernet IP, FTP, or   H TTP @ 10MBd or 100MBd CsCAN 125kBd, 250kBd, 500kBd, or   1 MBd 1 with RS-232 and RS-485 on first Modular Jack (M1/2) Serial Ports...
  • Page 66 Chapter 6: System Register Tables Resource Value IDs Per CsCAN Network 64 w/o repeat (253 w/ 3   r epeaters) Keypad 5 keys (4 Function keys and   a  System Key) Display 800 x 480 7” TFT, 65k colors Screen Memory 64MB User Screens 1023 Data Fields Per User Screen 1023 Ladder Code 2048kB   Page 66 of 206...
  • Page 67 Cscape Configuration             Page 67...
  • Page 68: Chapter 7: Cscape Configuration

    Chapter 7: Cscape Configuration Chapter 7: Cscape Configuration 7.1 Cscape Status Bar 7.2 Establishing Communications 7.3 Cscape Configuration Canvas 7 OCS hardware is programmed with a Windows based PC application called Cscape. This application can be used to  program, configure, monitor, and debug all aspects of the Canvas 7 OCS unit. Please see the Online Help provided with Cscape  for additional details.   7.1 Cscape Status Bar When the Canvas 7 OCS is connected to a PC using Cscape software, a Status Bar appears at the bottom of the screen. The  Cscape Status Bar can be used to determine if communications have been established between the Canvas 7 OCS and the  Cscape program. Components of the Cscape Status Bar are explained below:   Page 68 of 206...
  • Page 69: Establishing Communications

    Chapter 7: Cscape Configuration 7.2 Establishing Communications The Canvas 7 OCS can communicate with Cscape using USB to USB, USB to serial adapters, serial port communications via  MJ1 Port, Ethernet (with an Ethernet adapter board), onboard Ethernet Port, CAN (CsCAN), or modems.   If a direct USB connection is to be used, connect the Mini-USB port on the OCS (only on select models) to an open USB port on  the PC. (A cable for doing this is included in HE-CPK, the programming kits.) The OCS will install as a device once plugged in.  Drivers for it are normally found automatically by the Windows operating system as long as an Internet connection is established.   See also the Tools of the Trade on the Horner website.     The PC will detect a new device has been plugged into the USB port.   Now that the Canvas 7 is plugged in, go to Cscape > Controller > Connection Wizard. If you are just opening Cscape,  Connection Wizard usually opens by default.     Select USB and click Next >>.  ...
  • Page 70 Chapter 7: Cscape Configuration     If the Connection Wizard does not pop up upon opening Cscape, then select Controller (in the Cscape tool bar) > Connection Wizard, choose your connection method. If you are connecting for the first time, we suggest connecting via USB.     If Controller USB COM Port is not present in the dropdown list, the Windows operating system has not yet recognized the OCS  as an installed device. Be sure the installation process is complete and that the correct drivers are installed. The Connection  Wizard must be completely closed and reopened to refresh the USB dropdown list.   An alternate way to select the COM setting is to go to Cscape > Tools > Application Settings > Communication > Configure and choose connection method in Add Target.   Page 70 of 206...
  • Page 71 Chapter 7: Cscape Configuration     Page 71 of 206...
  • Page 72 NOTE: The controller should support the   t ype of connectivity selected and configured for Ethernet  communication. Select this option to communicate to   t he device through the internal modem of the computer. Cscape  will   a utomatically detect the internal modem attached with PC and list in the   a ttached drop down. User  Installed Modem can select modem and telephone number for target   c ontroller. NOTE: Cscape will do necessary   i nitialization for the selected internal modem. Select this option to communicate   o ver USB. Now Horner devices and Horner USB to serial  converters are   r ecognized and can be specifically selected. Connected Device NOTE: This configuration is required if the   c ontroller to which Cscape is communicating is connected to a CsCAN network. Connected Device By default, this option is selected   a nd networking feature of Cscape is disabled. On   s electing this option, Networking feature of Cscape is enabled. CsCAN ID for   t he target controller ...
  • Page 73: Communicating Via Mj1 Serial Port

    Chapter 7: Cscape Configuration If communications are successful, the message line should show “USB (COM8)” for this example, and an (R) should follow the  Target number.    If the controller is not communicating, you may need to set the target ID of the controller in Cscape or on the unit. The Target ID  allows directing communications to a particular unit when multiple units are connected via a CsCAN network. Units without  CsCAN network ports respond to any network ID and do not require the ID to be configured.   To check or change the ID on the Canvas 7 OCS, press the System Menu key.    The first item in the menu is Set Networks. Pressing Enter allows you to view or modify the ID of the unit.   To change the Target ID of Cscape, highlight CAN ID and press Enter                   t o provide a new number.   7.2.1 Communicating via MJ1 Serial Port If a serial programming connection is to be used and the PC has a 9-pin serial COM port, which is increasingly rare, there is  nothing to install assuming the port already works. All that is needed is a programming cable to go from the COM port to the OCS  programming port.   Page 73 of 206...
  • Page 74 Chapter 7: Cscape Configuration If a serial programming connection is to be used and the PC does not have a COM port, a USB-to-Serial adapter may be used.   Drivers for it are normally found automatically by the Windows operating system as long as an internet connection is established.  Otherwise, the drivers may be loaded from the Horner FTP site at https://hornerautomation.com/support-files.   Connect the PC’s serial port or the USB-to-Serial adaptor to the port labeled MJ1 on the Canvas 7.   The instructions are similar to using a USB port, as shown above. In the Connection Wizard, select the “Serial” option.   If communications are successful, the target indicator should show the mode of the controller Target: yy(R) as shown in the "7.1  Cscape Status Bar" on page 68.    If the controller is not communicating, you may need to set the Target ID of the controller in Cscape or on the unit. The Target ID  allows directing communications to a particular unit when multiple units are connected via a CsCAN network. Units without  CsCAN network ports respond to any network ID and do not require the ID to be configured.   To check or change the ID on the Canvas 7 OCS, press the System Menu Key.   The first item in the menu is Set Networks. Pressing Enter allows you to view or modify the ID of the unit. Pressing Enter allows you to view or modify the ID of the unit.   To change the Target ID of Cscape use the Controller > Set Target Network ID dialog.   Page 74 of 206...
  • Page 75: Communicating Via On Board Ethernet Port

    Chapter 7: Cscape Configuration 7.2.2 Communicating via On Board Ethernet Port From Cscape go to Controller > Hardware Configuration and do auto configuration for the connected controller, Click on  Config of Ethernet and select Module Setup.     The IP address, Net Mask, and Gateway of the controller may be temporarily set from the System Menu under the Set Networks  menu item. Once running or power cycled the configuration will come from the Cscape configuration stored in the unit.   Page 75 of 206...
  • Page 76 Chapter 7: Cscape Configuration In Module configuration dialog, go to IP Address field enter unused IP Address and configure unused registers in Register field &  then click OK. Screen shot for the same as follows:     Download the configuration in to Controller. Connect LAN cable to the Controller in default LAN Port.   From Cscape go to Tools > Editor Options > Communication Port > Configure. Select Ethernet and enter IP address which  is configured in the file. Select mode as Canvas Series mode from drop down list.   The controller should connect to Cscape. If communications are successful, the target indicator should show the mode of the  controller Target: yy(R) as shown in the as shown in the   " 7.1 Cscape Status Bar" on page 68   Page 76 of 206...
  • Page 77: Cscape Configuration

    Chapter 7: Cscape Configuration 7.3 Cscape Configuration An overview of configuration:  1.  Start the configuration by selecting the Controller > Hardware Configuration menu item.  2.  If the Canvas 7 OCS is connected to the PC, press the Auto Config System button to automatically detect the Base  model, I/O, and any communication options.  3.  If the Canvas 7 OCS is not connected, press the Config button to the right of the top of the unit. This allows the base  CPU to be selected.  4.  Select either Canvas 7 OCS CsCAN from the type drop down box.  5.  Once the type of Canvas 7 OCS is selected, the model # drop down box will provide the Canvas 7 OCS model numbers  from which to choose.  6.  Once the Canvas 7 OCS is selected, press OK to exit the dialog and configure the I/O that is present in the first slot.  7.  The I/O configure dialog (specifically the Module Setup tab) provides four (4) buttons to configure all of the I/O. Go  through each area of I/O and configure it.  8.  Once done configuring the I/O, OK out of configuration dialogs.     Configuring the Canvas 7 OCS I/O has four main portions that are covered in this chapter. For additional information on I/O, refer  "General I/O Configuration"  or "High Speed I/O (HSC / PWM) ".    ...
  • Page 78 General I/O Configuration   Page 78...
  • Page 79: Chapter 8: General I/O Configuration

    8.2 Removing the Back Cover 8.3 Digital / HSC Input Configuration 8.4 Digital / PWM Output Configuration 8.5 Analog Inputs 8.6 Analog Outputs 8.1 Built-in Digital and Analog I/O Overview The Horner OCS 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 Horner OCS unit, and configuring Cscape properly. This section will offer some  tips and suggestions to configure the I/O properly. For the register mapping of the I/O, refer to the "System Register Tables"  chapter for more details.   Built-in Digital & Analog I/O...
  • Page 80: Removing The

    8.2 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.   Some I/O configurations require jumper settings to be changed inside the Horner OCS unit. Examples of these settings are  setting positive or negative logic on digital inputs or setting current or voltage on analog inputs. Each Horner OCS I/O jumper is set to a factory default. Refer to the datasheet for a specific Horner OCS model to find the default  setting to determine if a jumper change is necessary. Refer to Horner's Documentation Search page.  To remove the back cover of the Horner OCS, remove the four (4) Phillips screws from the back of the unit. It may help to place ...
  • Page 81: Digital / Hsc Input Configuration

    Chapter 8: General I/O Configuration 8.3 Digital / HSC Input Configuration Horner controllers vary greatly on series and model numbers. Refer to the datasheets on the Document Search table on the  Horner website.  The inputs are designed to support both positive and negative input modes. For many models, the mode is set by a jumper  setting and a configuration parameter in Cscape. The Model 6 does not require jumpers, and only requires a configuration  parameter in Cscape. All the inputs on the unit must be configured to the same mode.    In positive logic mode a positive voltage applied to the input will turn the input. The internal design of this mode is basically a  resistor from the input to I/O ground. This mode is sometimes called sourcing.     In negative logic mode, connecting the input to the I/O ground or zero volts will turn the input on. The internal design of this mode  is basically a resistor from the input to the positive I/O voltage (usually 12 or 24V). This mode is sometimes called sinking.     Some of the digital inputs may support high-speed input functional such as counting or frequency measurement.   Page 81 of 206...
  • Page 82 Chapter 8: General I/O Configuration Digital Input Configuration   Home > Hardware Configuration [select Device Type/Model#] > Local I/O Tab > I/O / Config Button > Module Setup > Digital In/HSC Select Hardware Configuration from the Home menu and ensure that the correct Device Type and Model# are selected. Then  select the Local I/O tab.    After selecting Local I/O, select the Config button next to the I/O connector.    The Module Configuration screen will appear, select the Module Setup tab. See below.   ...
  • Page 83 Chapter 8: General I/O Configuration   The Module Setup allows a user to configure four types of I/O. NOTE: Not all controllers offer all four types. Refer to the  controller's datasheet on the using Horner's Documentation Search page.    Page 83 of 206...
  • Page 84 Chapter 8: General I/O Configuration Select Digital In/HSC to open the Digital / HSC Input configuration dialog for a specific controller.  The Active mode group box allows the user to select if inputs are active high (Positive logic) or active low (Negative logic). It is  important that this setting matches the jumper settings on the hardware. The High-Speed Counters group box contains all the windows that are used to configure the four available high-speed counters  on the Horner OCS. To configure a counter, the user needs to set the type, mode, and counts per rev.   The type drop down includes the following options:   Disabled   Frequency   Totalize   Pulse   Quadrature   Marker (Only available in counter #3 if counter #1 is set to quadrature.) The mode drop-down items are set according to the type selection. The Counts Per Rev. window is enabled/disabled according  to the type selection as well.   Page 84 of 206...
  • Page 85: Digital / Pwm Output Configuration

    Chapter 8: General I/O Configuration 8.4 Digital / PWM Output Configuration 8.4.1 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 some controllers 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. Use the  Documentation Page   t o view the datasheet for a specific controller for specifics on a module's I/O.  The digital outputs used in the OCS have electronic short circuit protection and current limiting. While these electronic  protections work in most applications, some application may require external fusing on these outputs.   The digital outputs in the OCS are typically controlled via %Q bits in the register mapping. Some of the outputs are designed for  high-speed applications and can be used for PWM or frequency output applications.    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.   NOTE: 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. Page 85 of 206...
  • Page 86: Relay Outputs

    Relay Life – Relays are mechanical devices that have a long but limited life. Typically, switching more current limits the  life of relays. Please check the data sheets at the end of this manual for expected relay life.   Current / Temperature De-Rating – Products containing relays often have total current limits based on the ambient  temperature of the application. Please see the product data sheet for current / temperature de-rating information for  relays.   Fusing – External fusing is generally required to protect the relays, devices and wiring from shorts or overloads.   WARNING:   T o protect the module and associated wiring from load faults, use external (5A) fuse(s) as shown.       F uses of lower  current or fusing for the entire system need to be in place to assure the maximum current rating of the unit is not exceeded.   WARNING: Connecting high voltage to any I/O pin can cause high voltage to appear at other I/O pins.   Below is an example of Relay Fusing:     Protection for Inductive Loads - Inductive loads can cause reverse currents when they shut off that can shorten the life of  relay contacts. Some protective measures need to be determined by an engineer. Below you will find recommendations that will  work for many applications. If you have additional questions on protection from inductive load, consult an application engineer or  Horner Technical Support. Details on devices that may protect outputs can be found in the Spark Quencher Datasheet,  MAN0962, which is located on the website.   Page 86 of 206...
  • Page 87: Digital Output Configuration

    Chapter 8: General I/O Configuration 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.  8.4.3 Digital Output Configuration Home > Hardware Configuration [select Device Type/Model#] > Local I/O Tab > I/O / Config Button > Module Setup > Digital Out/PWM Select Hardware Configuration from the Home menu and ensure that the correct Device Type and Model# are selected. Then  select the Local I/O tab.   ...
  • Page 88 Chapter 8: General I/O Configuration   The Module Setup allows a user to configure four types of I/O. NOTE: Not all controllers offer all four types. Refer to the  controller's datasheet the using Horner's Documentation Search page.      Select Digital Out/PWM to open the Digital / PWM Output Configuration dialogue.   Page 88 of 206...
  • Page 89 Chapter 8: General I/O Configuration   The Q1 and Q2 group boxes allow the user to specify the operation of the multifunction outputs.   PWM State On Controller Stop - Contains items that allow the user to specify how the PWM outputs behave when the  controller is stopped. These items can either hold their value or default to some value when the controller is stopped.  NOTE: The PWM outputs are set to the OFF state at power-up and during program download and remain in that state until the  unit is placed in RUN. Output State On Controller Stop - Contains items to allow the user to specify how the remaining digital outputs behave when  the controller is stopped. These items can either hold their value or default to some value when the controller is stopped. NOTE:  The number of Output States on Controller Stop vary by product.  Stop State - When a controller stops running ladder logic, the state of most output I/O modules can be configured. By default  digital outputs turn OFF and analog outputs go to a zero output level. Outputs can be configures to hold the last state the outputs  was in when the controller stopped, or it can be configured to go to a predefined state. NOTE: When a controller is in DO I/O  mode the outputs are still controlled by the values in the controller's registers.   NOTE: The number of Output State on Controller Stop varies by controller. See the datasheet on the Documentation Page for  more details.  Page 89 of 206...
  • Page 90: Analog Inputs

    Chapter 8: General I/O Configuration 8.5 Analog Inputs The analog inputs on the OCS allow voltage or current measurement from a variety of devices. The voltage or current mode is  set though jumpers on the unit and settings in Cscape. Each channel can be separately configured for voltage or current mode.   The analog inputs have a digital filter that can be used to filter electrical noise that may be unavoidable in some installations. The  downside to digital filtering is the inputs will respond more slowly to sudden changes in the actual input.   Home > Hardware Configuration [select Device Type/Model#] > Local I/O Tab > I/O / Config Button > Module Setup > Analog In Select Hardware Configuration from the Home menu and ensure that the correct Device Type and Model# are selected. Then  select the Local I/O tab.    After selecting Local I/O, select the Config button next to the I/O connector. ...
  • Page 91 Chapter 8: General I/O Configuration   The Module Configuration screen will appear, select the Module Setup tab. See below.        The Module Setup allows a user to configure four types of I/O. NOTE: Not all controllers offer all four types. Refer to the  controller's datasheet on the Horner website's Documentation Page   f or more information regarding specific models.      Select Analog In to open the Analog Input Configuration dialogue:   Page 91 of 206...
  • Page 92 Chapter 8: General I/O Configuration   The Channel x drop down windows allow the user to specify the mode for each analog input to operate. The Channel x drop  down windows are enabled/disabled according to which model is being configured. All of the models have the following modes  available: 0..10V, 0..20mA, and 4..20mA.   On the Canvas series, the Model 5 and Model 6 modules have more channel options.  Page 92 of 206...
  • Page 93 Chapter 8: General I/O Configuration Universal Analog Inputs - Model 5 The universal analog inputs provide a high resolution, very flexible interface for a variety of analog inputs.   T hese inputs include  voltage, current, theremocouple, RTD, and millivolt. Each channel can be configured separately using jumpers and configuration  settings in Cscape.   Like the standard analog inputs, these inputs have a digital filter that can be used to filter electrical noise that may be  unavoidable in some installations. The downside to digital filtering is the inputs will respond more slowly to sudden changes in  the actual input.   Analog In for Model 5 Channels 1 & 2 0..10V 0..20mA 4..20mA 100mV PT100   D IN RTD, 1/20°C Type   J  Thermocouple, 1/20°C Type  ...
  • Page 94 Chapter 8: General I/O Configuration Model 5 Universal Analog Input Configuration  1.  Select Analog In to access the Analog Input Configuration menu.  2.  Select any of the Analog input types from the drop-downs by clicking the down arrow beneath each corresponding  Channel, as seen below:   3.  Ensure the proper wiring is used for each of the pins on the Universal Analog Inputs as seen in the image and table  below:               Page 94 of 206...
  • Page 95 Chapter 8: General I/O Configuration Table for Model 5 Universal Wiring   J3 Connector for Universal Wiring TC (1+) or RTD (1+) or 100mV (1+) TC (1-) or RTD (1-) or 100mV (1-) TC (2+) or RTD (2+) or 100mV (2+) TC (2-) or RTD (2-) or 100mV (2-) 10V or 20mA OUT (1) 10V or 20mA OUT (2) Common  0-20mA IN (1) 0-10V IN (1) Common  0-20mA IN (2) 0-10V IN (2) Common    Page 95 of 206...
  • Page 96 Chapter 8: General I/O Configuration Universal Analog Inputs - Model 6 The Universal Analog Inputs on the Model 6 IO board are unique from other Horner series input/output cards in that they are  configurable through the module configuration instead of having to change jumper settings in order to setup the input type.    Analog In for Model 6 Channels 1-6 0..10V 0..20mA 4..20mA Disable 0-60mV PT100   D IN RTD, 1/10°C PT1000   D IN RTD, 1/10°C Type   J  Thermocouple, 1/10°C Type   K  Thermocouple, 1/10°C Type   N  Thermocouple, 1/10°C Type  ...
  • Page 97 Chapter 8: General I/O Configuration  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: 0-10 V Analog In Thermocouple In mV In 4-20 mA Analog Out       20mA Analog In - RTD In 0-10 V Analog Out 20mA Analog In - Not Self-Powered   Self-Powered  ...
  • Page 98: Scaling Analog Inputs & Examples

    Chapter 8: General I/O Configuration 8.5.1 Scaling Analog Inputs & Examples To access the Advanced Math Scaling function, select Home > View > Project Toolbox. This will open a side bar, and then  select Advanced Math > Scale.   Example 1 The Cscape Scale function, found in the Advanced Math functions, allows for very easy conversion of the raw input value into a  meaningful reading. For example, a pressure transducer may be specified as a 4-20mA signal to signify a 0-2000 psi pressure  reading.   W ith the analog channel set to the 4-20mA range, the raw analog input value, which is in INT format ranges from 0 to  4mA to 32000 for 20mA. Use the Scale function to obtain an Integer pressure reading using the 0-32000 raw input range and the  sensor’s 0-2000psi output range.   Example 2: If readings with fractions are required, the raw Integer input value must first be translated in REAL, or Floating Point Format, see  note below. The Cscape INT-to-REAL Conversion function may be used to convert the raw input value from INT to REAL format  in an intermediate memory location. The SCALE function, specified as REAL type, may be used to scale the converted raw value  into a reading that supports digits beyond the decimal place, i.e. 475.25psi.     Page 98 of 206...
  • Page 99: Analog Outputs

    Chapter 8: General I/O Configuration 8.6 Analog Outputs NOTE: Refer to the datasheet for details on jumper settings. The analog outputs on Horner OCS 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 (0).   The following figure illustrates the Analog Output Configuration dialog. To open the I/O configuration dialogs, select Controller > Hardware Configuration > Local I/O > Config > Module Setup.     The Output value on Stop group box contains items that allow the user to specify how the analog output channels behave when  the controller is stopped. The outputs can either hold their value or default to a value when the controller is stopped.   The Output Mode group box allows the user to select the operating modes for each of the analog outputs. The modes include the  following:   0-10V  ...
  • Page 100 High Speed I/O (HSC & PWM)     Page 100...
  • Page 101: Chapter 9: High Speed I/O (Hsc/Pwm)

    9.5: HSC Functions Register Maps 9.6: High Speed Output Functions 9.7: High Speed Output Functions Register Map 9.8: HSC I/O Filtering 9.1: Overview In addition to the compliment of simple analog and digital I/O, several of the OCS I/O modules support High Speed Counting  (HSC) I/O functions and may also support Pulse Width Modulation (PWM) Output functions (non-relay modules). The HSC  functions include internal timing, frequency, totalizing, pulse width/period, and quadrature measurement. The PWM functions  include traditional PWM (with variable rate and duty cycle) and a stepper (limited functionality) with variable acceleration and  deceleration rates.  The OCS contains a Field-Programmable Gate Array (FPGA), which is an integrated configurable circuit that allows the OCS  to be programmed to have either two high-speed counters or four high-speed counters. The OCS ships with two high-speed  counters, but a customer can contact Horner Technical Support to receive a file that will configure the unit to have four. These  modes are not supported simultaneously. Two counter mode supports Quadrature mode and two stepper outputs, while four  counter mode does not support Quadrature mode and supports only one stepper output. This chapter describes the operation of these high level I/O functions. For configuration details of these functions, see "Cscape  Configuration". Page 101 of 206...
  • Page 102: High Speed I/O Glossary

    Chapter 9: High Speed I/O (HSC/PWM) 9.2: High Speed I/O Glossary Glossary of High Speed I/O Terms Accumulator Register used to accumulate or store up a sum or count of   m any items or events.  A special function to zero out the value in a specific   r egister. (Not used with Frequency or Period  Clear Measurement.) Disable A special function to prevent the counter from running. Encoder A sensor or transducer for converting rotary motion or   p osition to a series of electronic pulses An integrated, configurable circuit that allows the   c ontroller to be programmed to have either two  FPGA high-speed counters or four   h igh-speed counters.  The number of times an electromagnetic signal repeats an   i dentical cycle in a unit of time, usually  Frequency Input one second.
  • Page 103: High Speed Counter (Hsc) Functions

    Chapter 9: High Speed I/O (HSC/PWM) 9.3: High Speed Counter (HSC) Functions The   s upports two   h igh speed, configurable counters. There are four dedicated inputs that can be configured to a number of  different options. Each of the two counters can run in one of five modes. Those modes are Totalizer, Frequency Counter, Pulse  Width Measurement, Period Measurement and Quadrature measurement. For some modes, more than one HSC input may be  consumed. The measurement values are provided to ladder in a %AI register. Refer to the Register chapter for more details.  9.3.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. Refer to the"High Speed I/O Glossary " on the previous page"High Speed I/O Glossary " on the  previous pagefor a description of these functions. 9.3.2: Totalize In totalize mode, the accumulator is simply incremented or decremented each time the input transitions in a specific direction. The totalizer supports the following modes: This mode ties the   i nput to the counter to an internal 10MHz or 1MHz clock. The special   f unctions  Internal can be used to accurately time events. This increments  ...
  • Page 104: 3: Pulse Width Measurement

    Chapter 9: High Speed I/O (HSC/PWM) NOTE: Counter triggers off the rising edge of the signal.  Three different options are available to reset the current count: 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.  NOTE: 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 compares function output  causing the output to remain low. 9.3.3: Pulse Width Measurement In pulse width measurement mode, the high-speed input can measure the width 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.  Refer to the "High Speed I/O Glossary " on page 102 for a description of these functions. 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. Page 104 of 206...
  • Page 105: 4: Period Measurement

    Chapter 9: High Speed I/O (HSC/PWM) 9.3.4: 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. Refer to the  "High Speed I/O Glossary " on page 102 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 1 μs units. The period  measurement will start on the falling edge of the input. 9.3.5: Quadrature Quadrature mode uses two HSC inputs, any of the four HSC inputs can be assigned for this purpose.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. So in order to determine the number of cycles, the accumulator would have to be divided by 4. Marker reset operation is configured in the special operations and can be assigned to any of the 4 high speed inputs or can be  assigned to be controlled by a “Q” bit in ladder. NOTE: The quadrature mode enables the Disable, Latch, Preload, Clear and Marker special functions. Refer to the "High  Speed I/O Glossary " on page 102for a description of these functions.
  • Page 106: Hsc Functions

    Chapter 9: High Speed I/O (HSC/PWM)  3.  The High-Speed Outputs are %Q1 for Counter 1 and %Q2 for Counter 2. They operate as high-speed  outputs, independent of the controller scan rate, when configured as ‘HSC Output’ in the Digital Out/PWM  configuration in Cscape.  4.  The High-Speed Output state reflects in the status register “High Speed Out”, e.g. %I0009 for Counter 1  (the update speed of the status bit is scan rate dependent)  5.  The High-Speed Output can be reset through ladder with the assigned output, e.g. %Q0022 for Counter 1  6.  Both Match 1 and Match 2 values will trigger the match function.  7.  If the output is already triggered by any Match register while using ‘Turn On’ or ‘Turn Off’ modes,  subsequent matches will not affect the output.  8.  If using ‘Toggle’ mode, every match of either Match value will toggle the output to the opposite state. 9.4: HSC Functions The high-speed input on the OCS contains many optional tasks. All of which can be disabled, or set to an internal pre-assigned  register (Assigned %Q) or to one of the external high speed inputs (External Input #1, 2, 3, or 4), or they can be set as an  “overflow interrupt” or “underflow interrupt” meaning that they will occur when either the Overflow or Underflow input has been  activated.   Disable: When the Disable function is active, it will “disable” the high-speed inputs and no longer count  pulses until it is re-enabled   Latch: When the Latch function is active, it takes the current value of the Accumulator and moves it into the  “Latch Value” register   Preload: When the pre-load function is active, it will take the value from the “Preload” register and put it into  the “Accumulator” for the corresponding Counter.   Clear: When the clear function is active, it will move a value of 0 into the “Accumulator” for the  corresponding counter.
  • Page 107: Hsc Functions Register Maps

    Chapter 9: High Speed I/O (HSC/PWM) 9.5: HSC Functions Register Maps The register assignments for the high-speed I/O can be reassigned via a setting in Cscape. The values shown are the DEFAULT  values and may not match the same starting point as the values shown below. 9.5.1: I/O Mapping 4-Counter Mode Default Analog Output Registers for HSC Register Function %AQ401 – 402 Preload Value (Counter1) %AQ403 – 404  Match1 Value (Counter1) %AQ405 – 406 Match2 Value (Counter1) %AQ407 – 408 Preload Value (Counter2) %AQ409 – 410 Match1 Value (Counter2) %AQ411 – 412 Match2 Value (Counter2) %AQ413 – 414 Preload Value (Counter3) %AQ415 – 416 Reserved %AQ417 – 418...
  • Page 108 Chapter 9: High Speed I/O (HSC/PWM) Default Output Registers for HSC Register Function %Q1601 Latch Trigger (Counter1) %Q1602 Preload Trigger (Counter1) %Q1603 Clear Trigger (Counter1) %Q1604 Disable Counter (Counter1) %Q1605 Direction (Counter1) %Q1606 Underflow/Overflow/HSCQ Reset (Counter1) ( High – Reset) %Q1607 Preload Disable (Counter1) (High – Disable) %Q1608 Latch Disable (Counter1)(High – Disable) %Q1609 Reserved %Q1610 Reserved %Q1611 Reserved %Q1612 Reserved %Q1613 Reserved %Q1614 Reserved %Q1615 Reserved...
  • Page 109 Chapter 9: High Speed I/O (HSC/PWM) Default Output Registers for HSC Register Function %Q1639 Preload Disable(Counter3) (High – Disable) %Q1640 Latch Disable (Counter3)(High – Disable) %Q1641 Reserved %Q1642 Reserved %Q1643 Reserved %Q1644 Reserved %Q1645 Reserved %Q1646 Reserved %Q1647 Reserved %Q1648 Reserved %Q1649 Latch Trigger (Counter4) %Q1650 Preload Trigger (Counter4) %Q1651 Clear Trigger (Counter4) %Q1652 Disable Counter (Counter4) %Q1653 Direction (Counter4)
  • Page 110 Chapter 9: High Speed I/O (HSC/PWM) Default Input Registers for HSC Register Function %I1611 HSCQ (Counter3) %I1612 Reserved (Counter3) %I1613 Overflow Flag (Counter4) %I1614 Underflow Flag (Counter4) %I1615 HSCQ (Counter4) %I1616 Reserved (Counter4) Page 110 of 206...
  • Page 111: High Speed Output Functions

    Chapter 9: High Speed I/O (HSC/PWM) 9.6: High Speed Output Functions On units that support high-speed output functions, two dedicated outputs are available that can be configured for one of four  modes of operation. Those modes are Normal, PWM, HSC Match and Stepper. 9.6.1: Normal When either Q1 or Q2 is configured for Normal operation, the digital output registers %Q1 and %Q2 drives that respective  output. 9.6.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 and can have independent frequency and duty cycles. The PWMs require two parameters (%AQs) to be set for operation. These parameters may be set at run-time. Duty Cycle – The Duty Cycle is a 32-bit value from 0 to 32,000 indicating the relative duty cycle of the output. For example, a  value of 8000 would indicate a 25% duty cycle, a value of 16,000 would indicate a 50% duty cycle. Zero (0) turns the output off,  32,000 turns the output on. Frequency – The Frequency is a 32-bit value indicating the output frequency in Hertz. One over the frequency is the period. At controller power-up or during a download, the PWM output is maintained at zero until both the Frequency and the Duty cycle  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 frequency and duty  cycle counts. Specifying zero for either the period or duty causes the PWM output to remain low during stop mode. Page 111 of 206...
  • Page 112: 3: Pwm Output Waveform

    Chapter 9: High Speed I/O (HSC/PWM) 9.6.3: PWM Output Waveform PWM Output Waveform Table Rise Time 150ns Max Fall Time 150ns Max PWM Period Frequency = 1/Period   1.6.4: High Speed Counter Match When either Q1 or Q2 is configured for HSC Output operation, their output state is based on a comparison between the counter  accumulator and match registers.   R efer to the "HSC Functions Register Maps" on page 107 for more details.   Page 112 of 206...
  • Page 113: 4: Stepper Function

    Chapter 9: High Speed I/O (HSC/PWM) 9.6.4: Stepper Function The OCS supports two stepper functions, one on each high-speed output when in two counter mode. In four counter mode, the  OCS supports one stepper function 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: Sets the frequency   f or the first cycle during the acceleration phase and the frequency of the   l ast cycle  Start Frequency during the deceleration phase. When an acceleration or   d eceleration count is specified, the Start  (pulses per second) Frequency   m ust   b e greater than 0 and must not exceed the run frequency or an error is   g enerated. Sets the frequency   f or the last cycle during the acceleration phase, the consistent frequency   d uring the  Run Frequency run phase, and the frequency of the first cycle during the  ...
  • Page 114: High Speed Output Functions Register Map

    Chapter 9: High Speed I/O (HSC/PWM) 9.7: High Speed Output Functions Register Map The register assignments for the high speed I/O can be moved via a setting in Cscape. The values shown are the DEFAULT  values and may not match the same starting point as the values shown below. 9.7.1: I/O Mapping 2–Counter Mode Default Analog Output Registers for PWM & Stepper Register Stepper %AQ421 – 422 Duty Cycle (PWM1) Start Frequency (Stepper1) %AQ423 – 424 Frequency (PWM1) Run Frequency (Stepper1) %AQ425 – 426   Acceleration Count (Stepper1) %AQ427 – 428  ...
  • Page 115: 2: I/O Mapping 4-Counter Mode

    Chapter 9: High Speed I/O (HSC/PWM) 9.7.2: I/O Mapping 4-Counter Mode Default Analog Output Registers for PWM & Stepper Register Stepper %AQ421 – 422 Duty Cycle (PWM1) Start Frequency (Stepper1) %AQ423 – 424 Frequency (PWM1) Run Frequency (Stepper1) %AQ425 – 426   Acceleration Count (Stepper1) %AQ427 – 428   Run Count (Stepper1) %AQ429 – 430   Deceleration Count (Stepper1) %AQ431 – 432 Duty Cycle (PWM2)   %AQ433 – 434 Frequency (PWM2)  ...
  • Page 116: 3: Pwm Examples

    Chapter 9: High Speed I/O (HSC/PWM) 9.7.3: PWM Examples Example 1 Duty Cycle Frequency To get   a  50% Duty Cycle   @  10kHz  Set   % AQ421–422 = 16,000 Set   % AQ423–424 = 10,000 waveform on PWM1: Example 2   Duty Cycle Frequency Set %AQ421–422 =   1 6,000 To get   a  50% Duty Cycle   o n PW1 and  Set %AQ423–424 =  ...
  • Page 117: 4: Stp Examples

    Chapter 9: High Speed I/O (HSC/PWM) 9.7.4: STP Examples Example 1 Start Frequency Run Frequency Accel Count Run Count Decel Count 10,000,000   s teps  Set %AQ421-422  Set %AQ423- Set %AQ425-426 =   Set %AQ427-428 =   Set %AQ429–430 =   control sequence = 2500   ( Hz) 424= 5000   ( Hz) 1,000,000 (Steps) 8,000,000 (Steps) 1,0000,000 (Steps) When the start bit   i s energized, the example starts at 2.5kHz and ramps up to 5kHz during the   f irst 1,000,000 steps. Then, it  runs at 5kHz for the next 8,000,000 steps.  ...
  • Page 118: Hsc I/O Filtering

    Chapter 9: High Speed I/O (HSC/PWM) 9.8: HSC I/O Filtering This feature is used to enable digital Filter for HSC Inputs. Selecting Digital In/HSC configuration opens up the following dialog where in HSC I/O Filtering is available. Input signal is filtered based on the filter frequency and Number of samples selected. User has to select Filter Frequency and  Number of samples based on the frequency of the Input signal. Filter Frequency: To set the filter, choose a value that is: 4*Number of Samples*Expected Max Hz on the high-speed inputs. Number of samples: The input must be stable for this many samples before the HSC accumulator is affected by any change. The state (high or low) of the high-speed input is sampled with every rising input edge of the filter frequency. The rising edges of  the filter frequency are totaled in a sample counter, and when that total equals the number of samples configured, the sample  counter is reset.   I f the high-speed input state did not change by the time of the sample counter reset, that state, high or low, is  passed on to the high-speed accumulator.   I f the high-speed input state changes during the sample counting, the sample counter  is reset to zero and the process starts over.   Page 118 of 206...
  • Page 119 Chapter 9: High Speed I/O (HSC/PWM) If user selects filter frequency as 1MHz and Number of samples as 4, then Input signal is sampled for 4 samples and if the signal  is stable for 4 samples i.e. 4μs then the signal is passed to Accumulator. If the Input state is changed in between the sampling counts, then the count is reset, and the Input state is again checked for  given number of samples. Refer to Dotted lines in the Figure 2, after 2 samples the state of input signal changes to 1, so the counter is again started to  count 4 samples, to pass the signal to accumulator. There will be a delay in passing the input signal to accumulator since we are filtering the Input signal and the delay is based on  the selected filter frequency and Number of samples. In the above example filter frequency is 1MHz (1μs) and number of  samples: 4, so the minimum delay in input signal will be 4μs. Page 119 of 206...
  • Page 120 Serial Communications     Page 120...
  • Page 121: Chapter 10: Serial Communications

    Chapter 10: Serial Communications Chapter 10: Serial Communications 10.1 Port Descriptions 10.2 Wiring 10.3 DIP Switches 10.4 RS-485 Termination 10.5 RS-485 Biasing 10.6 Cscape Programming via Serial Port 10.7 Ladder-Controlled Serial Communication 10.8 Configuration via Mini-B USB All Canvas 7 OCS models provide two independent serial ports, on the first 8-pin modular jack, which is labeled MJ1/MJ2. The  MJ1 serial port is RS-232 while the MJ2 port is RS-485. By default, MJ1 can be connected to the COM port of a PC running  Cscape, for OCS programming. In addition, both MJ1 and MJ2 can be used for application-specific communication, using a  variety of standard data exchange protocols.
  • Page 122 Chapter 10: Serial Communications MJ3 Pins TXD RS-232 RXD RS-232 GROUND   MJ1: RS-232 w/Full Handshaking  +5V   @    6 0mA MJ2:   R S-485 Half-Duplex TX- RS-485 TX+ RS-485 RX- RS-485 RX+ RS-485 Page 122 of 206...
  • Page 123: Dip Switches

    Chapter 10: Serial Communications 10.3 DIP Switches The DIP switches are used to provide a built-in termination to both the MJ1, MJ2 & MJ3 ports if needed. The termination for  these ports should only be used if this device is located at either end of the multidrop/daisy-chained RS-485 network.  DIP Switches SWITCH NAME FUNCTION DEFAULT MJ3 RS-485 Termination ON = Terminated Both ON = Half MJ3 Duplex Both OFF = Full MJ2 RS-485 Termination ON = Terminated   10.4 RS-485 Termination Proper RS-485 termination minimizes signal reflections and improves reliability. Both the MJ2 and MJ3 serial ports allow an  internal termination resistor to be placed across pins 1 and 2 by DIP Switch Setting.   Only the two devices physically located at the endpoints of the RS-485 network should be terminated.   10.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 the MJ2 and MJ3 serial ports allow internal bias resistors to be switched in, pulling pin 1 up to 3.3V and pulling pin 2 down to  ground. The Set Serial Ports item in the System Menu can be used to enable RS-485 biasing.   A lso, an application graphics  screen that writes to %SR164 can do the same thing. Setting %SR164.1 enables MJ2 biasing and setting %SR164.2 enables ...
  • Page 124: Cscape Programming Via Serial Port

    Chapter 10: Serial Communications 10.6 Cscape Programming via Serial Port The Canvas 7 OCS MJ1 and MJ3 serial ports support CsCAN Programming Protocol. If a PC COM port is connected to the  Canvas 7 OCS MJ1 or MJ3 serial port, Cscape can access the Canvas 7 OCS for programming and monitoring. Programming  can also be done via the CAN port, USB A port, or Ethernet.     10.7 Ladder-Controlled Serial Communication Using Serial Communication function blocks, MJ1, MJ2 and MJ3 serial ports support Generic Modbus Master and Modbus Slave  Protocols. In addition, external modems can be connected and accessed using Init and Dial and Answer Modem function blocks.     10.8 Configuration via Mini-B USB NOTE: The unit must be connected via the mini-USB port to the PC or laptop. It is possible to load the program and monitor data via the Mini-B USB. To load via Mini-B USB, configure the communications  port in Cscape as follows: Select Tools from the toolbar > Application Settings > Communications > USB button  ...
  • Page 125 Communications       Page 125...
  • Page 126: Chapter 11: Can Communications

    Chapter 11: CAN Communications 11.1: Port Description 11.2: CAN Port Wiring 11.3: Cscape Programming via CAN 11.4: Ladder-Controlled CAN Communication 11.5: Using CAN for I/O Expansion (Network I/O) NOTE: For additional CAN information, refer to the CAN Networks manual, MAN0799 (MAN0799) using Horner's  Documentation Search page.  OCS models provide a CAN network port, which is implemented with 5-pin connectors.   T he CAN port allows the   O CS to  exchange global data with other OCS controllers and to access remote Network I/O devices (SmartStix, Smart Blocks and Smart  Rail Modules).   T he port also supports pass-through communications for programming multiple OCS controllers over the CsCAN  network. Also, the CAN port supports CsCAN, CANopen, J1939, and DeviceNet Master (layer 3 as a selectable option).
  • Page 127: Cscape Programming Via Can

    Chapter 11: CAN Communications 11.3: Cscape Programming via CAN The CAN 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   O CS CAN port, Cscape can access the   O CS for programming and monitoring. In addition, the     O CS supports single-point-programming of all   O CS   d evices that are connected to the CAN port network. If the  PC COM port is connected to the OCS MJ1 serial port, the   O CS can act as a pass-through gateway allowing Cscape to access  all   O CS   d evices that are attached to the CAN port network. 11.4: Ladder-Controlled CAN Communication Using Put and Get Network Words function blocks, the CAN1 port can exchange digital and analog global data with other  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. 11.5: Using CAN for I/O Expansion (Network I/O) Connecting network I/O devices (SmartStix, SmartBlock, SmartMod, or SmartRail) to the OCS CAN1 port allows the  ...
  • Page 128 Ethernet Communication       Page 128...
  • Page 129: Chapter 12: Ethernet Communications

    ICMP (Ping) Internet   C ontrol Message Protocol EGD  Ethernet   G lobal Data SRTP Slave   ( 90-30 Service Request)  Service   R equest Transfer Protocol CsCAN   T CP Server Horner   A PG CsCAN over Ethernet (for Cscape to OCS programming) Modbus   S lave Modbus   o ver Ethernet Ethernet   /  IP  ODVA   C IP over Ethernet FTP (File   S erver) File   T ransfer Protocol HTTP (Web   S erver) HyperText  ...
  • Page 130: Ethernet Module Specifications

    Chapter 12: Ethernet Communications 12.2 Ethernet Module Specifications Speeds 10 BaseT Ethernet (10Mbps)     1 00 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 CAT5 (or better) UTP (Recommended) Port Auto MDI/MDI-X (Auto   C rossover)   12.3 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.  2.  If configuring a different OCS Model than the one shown in the Hardware Configuration dialog, click on the topmost ...
  • Page 131 Chapter 12: Ethernet Communications    4.  Configure the Ethernet Module parameters as follows:  IP Address: Enter the static IP Address for the Ethernet Module being configured.   NOTE: IP Addresses are entered as four numbers, each ranging from 0 to 255. These four numbers are called octets, and they  are always separated by decimal points.   Net Mask: Enter the Net Mask (sometimes called Subnet Mask) being used by all nodes on the local network. Typical local  networks use Class C IP Addresses, in which case the low octet (rightmost number) is used to uniquely identify each node on the  local network. In this case, the default Net Mask value of 255.255.255.0 should be used.   Gateway: Enter the IP Address of a Gateway Server on the local network that allows for communication outside of the local  network. To prevent the Ethernet Module from communicating outside the local network, set the Default Gateway IP Address to  0.0.0.0 (the default setting).   Status Register: Enter an OCS Register reference (such as %R100) to indicate which 16-bit OCS register will have the  Ethernet Status word written to it. The table shows how this register value is formatted and explains the meaning of each bit in  the Status Word.   Page 131 of 206...
  • Page 132 Chapter 12: Ethernet Communications 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 Link TCP Connections Status Values Status Bit Status Indication Minimum Maximum Reserved Always 0 1 = Full ...
  • Page 133: Ethernet Configuration - Ip Parameters

    Chapter 12: Ethernet Communications 12.4 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 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 ...
  • Page 134 Downloadable Protocols   Page 134...
  • Page 135: Chapter 13: Protocol Configuration

    Chapter 13: Protocol Configuration Chapter 13: Protocol Configuration 13.1: Overview 13.2: Protocol Device Driver Selection 13.3: Network Configuration 13.4: Device List and Device Configuration 13.5: Scan List 13.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.   F or a 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.   W hen updating device drivers, an install routine loads the  device driver to the Cscape directory structure and makes that driver available to Cscape applications.
  • Page 136 Chapter 13: Protocol Configuration (Scan List) must be configured through corresponding dialogues accessible through the respective buttons (Network, Devices  and Scan List). NOTE: If the MJ1 port is to be used in the Protocol Config, it will no longer be available for Cscape programming unless the  controller is put into IDLE mode. Three fields must be configured after a protocol is selected:  1.  Network  2.  Devices  3.  Scan List Page 136 of 206...
  • Page 137: Network Configuration

    Chapter 13: Protocol Configuration 13.3: Network Configuration 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. Network Protocols Baud Rate, Data Bits, Stop Bits, These field define the bit level transfer over the serial port.  Parity None – No   h andshake lines are used Multidrop Full – Rx remains active while Tx is occurring.  Handshake Multidrop Half – Rx is shut off while Tx is occurring.  Radio Modem – Wait for CTS acknowledgment before transmitting (legacy   r adio 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 RS-232 or RS-485 mode. Retries Specifies number of times a transaction is retried on a failed   r esponse.  Timeout Specifies the amount of time for a device to wait for a valid  ...
  • Page 138: Device List And Device Configuration

    Chapter 13: Protocol Configuration Network Protocols ID Select – If an analog is specified in the field, the ID Select filter   i s  enabled.  Specifies the starting OCS register of eight (8) consecutive   r egisters (4-32bit counters), which provide  Status Register an indication of the network   h ealth.  Scanner Address Specifies the OCS’s device (network) ID if a master ID is   r equired by the protocol. Protocol Help Provides protocol specific help.  13.4: Device List and Device Configuration 13.4.1: Device List This configuration list is reached from the Device button on the Protocol Config screen and provides a list of the configured  devices on the Network.   D evices must be created and exist in this list before corresponding Scan List entries can be created for  this device.  ...
  • Page 139: 2: Device Configuration

    Chapter 13: Protocol Configuration 13.4.2: Device Configuration This configuration is reached from the device list when adding or modifying an existing device.   W hile each protocol is somewhat  different and can contain protocol specific field, all protocols typically support at least:   Device Name - Specifies a tag name for this device.   T his tag name is used in the Data Mapping  configuration to identify this device.   T his allows device addresses to be modified without the need to  update all associated Data Mapping entries.   Device ID - Specifies the target device communications ID or station address.   Swap Words on 32-bit Data -   I f a Scan List   e ntry is configured to transfer 32-bits and this option is  checked, the high and low 16-bit values are swapped when transferred between the target and OCS.   Disable Device - From Cscape 9.90 SP3 and firmware 15.40 onwards, disable device feature has been  added in protocol device configuration. This option is used to disable a particular slave configured in the  network. Single bit register has to be configured to use this function. Setting the bit high disables the slave  and OCS will not send any serial   ( TCP for ethernet protocols) packets only to this slave until the bit is high.  Setting the bit low enables the communication with the slave again.
  • Page 140: Scan List

    Chapter 13: Protocol Configuration 13.5: Scan List This configuration list is reached from the Scan List   b utton on the Protocol Config screen or the Mapping button on the Device  List screen and provides a Scan List of the Data Mapping entries.   T o transfer data between the OCS and remote target, a Scan  List must be created that defines each transaction.   E ach 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.   S ort functions are provided to change  the order of the list.  ...
  • Page 141: 1: Menu

    Chapter 13: Protocol Configuration 13.5.1: Menu   Edit > Copy All - Copies Scan List to clipboard in a tab delimited format suitable for pasting into an  application like Microsoft Excel.   Edit > Paste - Loads Scan List from clipboard.   P asted items are added to the scan list even if they are  duplicates.   View > Toggle All Name View - Expands Scan List such that each point and corresponding local name is  displayed.   Sort Scan List   b y different criteria.   T he firmware will scan the devices based on the order they are  displayed or sorted.   T here are four ways to sort the scan list:  a.  By Local Address – Sorts the list by local register address in increasing order.  b. ...
  • Page 142: 4: Data Mapping Configuration (Scan List Entry)

    Chapter 13: Protocol Configuration 13.5.4: Data Mapping Configuration (Scan List Entry) Target   Device Name - Selects the target device (by tag name) to use for this transaction.   O nly those device  entries previously created from the Device Config menu are available.   Device Register - Specifies the target device’s register to use for this transaction.   T his designation is  target-specific.   T he configuration menu displays an error if a specified address is unacceptable.   G enerally, the data type of the local (OCS ) register must match the data type of the device register.  ...
  • Page 143 Chapter 13: Protocol Configuration   Length  a.  Specifies the number of consecutive device registers that are transferred in this transaction.   N ote  that some protocols can limit the length that can be transferred.   H owever, typically the length is limited to 32.   T he configuration menu displays an error if a specified length is unacceptable.  b.  If allowed, specifying a length greater than one (multiple consecutive register transfers per transaction) is more efficient than creating a single transaction for each register.   T his  grouping of registers per transaction can significantly reduce the transaction scan time; however, ...
  • Page 144 Chapter 13: Protocol Configuration   Polled Read/Write/Init  a.  On every transaction scan, a read target device register transaction occurs unless a local register  value has changed.   T he write transaction only updates those local registers that have changed in  value.   I f 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.  b.  On every transaction scan, a read target device register transaction occurs unless a local register  value has changed.   T he write transaction only updates those local registers that have changed in  value.   I f 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.  c.  When the OCS is placed in RUN mode, the initial action for this mapping type is a write target register transaction.     T his transaction initializes the target device register(s) to match that  of the local (OCS ) register(s).  ...
  • Page 145 User Interface Page 145...
  • Page 146: Chapter 14: User Interface

    Chapter 14: User Interface Chapter 14: User Interface 14.1 Screen Specifications 14.2 Displaying and Entering Data 14.3 Alpha-Numeric Keypad 14.4 Screen Navigation 14.5 Ladder-Based Screen Navigation 14.6 Beeper Acknowledgement 14.7 Touch (Slip) Sensitivity 14.8 Alarms 14.9 Removable Media 14.10 Screen Saver 14.11 Screen Brightness 14.12 Touch Screen Pressure This chapter presents the user interface (or operator view) of the Canvas 7  ...
  • Page 147: Displaying And Entering Data

    Chapter 14: User Interface 14.2 Displaying and Entering Data   Multiple objects are provided for displaying data such as virtual panel lights, push buttons, numeric value displays, bar graphs,  meters, graphs and animated bitmaps. On the Canvas 7 , these graphical objects (through ladder manipulation of attribute bits)  can change color, flash, or change visibility to attract operator attention.   On objects that accept user input, the input is provided by touching the object or alternately changing an OCS register (i.e.  function key registers). Objects that allow input generally have a raised 3D appearance. An exception is the binary type objects,  such as buttons, which are shown in a depressed 3D appearance when in the ON state. Objects that normally accept touch input  may be disabled through program control (through ladder manipulation of an attribute bit). If an object is disabled, the object’s  representation changes to a 2D appearance.   On objects that represent non-discrete information, more action may be required beyond that of simply touching the object. For  example, the slider object requires the operator to touch and slide the control in the direction desired. Alternately, alpha-numeric  entry objects invoke a pop-up alpha-numeric keypad for additional user input. The alpha-numeric keypad is discussed below.   NOTE: If the numeric entry object displays >>>>>>>, the value is too big to display in the field or is above the maximum for an  editable field. Likewise, if the numeric entry object displays <<<<<<< in a numeric field, the value is too small to display or is  below the minimum for an editable field.   Page 147 of 206...
  • Page 148: Alpha-Numeric Keypad

    Chapter 14: User Interface 14.3 Alpha-Numeric Keypad To allow entry of a specific number or text, several of the input objects invoke a pop-up alpha-numeric keypad when the object is  touched. An example of the alpha-numeric keypad invoked from a numeric input object is shown below. Once invoked, the  operator may touch the appropriate keys to enter a specific value. When entering a value, the alpha-numeric keypad is in one of  two modes [new-value or edit-value]. New-Value Mode - Generally, when the alpha-numeric keypad is first invoked, it is placed in new-value mode. Initially, the  alpha-numeric keypad displays the current value with all the digits being highlighted. Once the first digit is entered, the current  value is erased from the display and the new digit is placed in the first location. Thereafter, no digits are highlighted, and new  digits are added to the rightmost position while the other digits are shifted left. Edit-Value Mode - Edit-value mode may be entered from the initial new-value mode by pressing either the left or right arrow key  before any digit key is pressed. The result will be a single character highlighted. The user may then either touch a key to change  the digit at the selected position (or the up and down arrows may be used to add or sub-tract (respectively) from the selected  digit)t. The user may then use the left or right arrow keys to select a new position.   Once the desired value is entered, pressing the Enter key moves that value into the object (and the corresponding OCS register)  and the alpha-numeric keypad disappears. Alternately, pressing the ESC key any time before the Enter key cancels the  operation, leaves the objects current value unchanged, and the alpha-numeric keypad disappears.   NOTE: Each numeric entry object has a configured minimum and maximum value. If the operator enters a value outside of the  configured range, the new value is ignored when Enter is pressed and the current object value is NOT changed. Page 148 of 206...
  • Page 149: Screen Navigation

    Chapter 14: User Interface Since the alpha-numeric keypad services several different graphical objects, certain keys on the alpha-numeric keypad may be  disabled (grayed) when the keypad is invoked for certain objects. The following describes the alpha-numeric keypad variation  based on object.   Alpha-Numeric Keypad Variations When editing a numeric value, the   [ +/-] or the [.] key are disabled (grayed) if the object is NOT  Numeric   O bject configured   f or floating-point value or a signed value. When editing a password value, the   a rrow keys, [+/-], and the [.] keys are disabled.   A dditionally,  Password   O bject overwrite mode is disabled.   W hen entering digits, the pop-up keypad hides the value by  displaying ‘*’   a lternately for each digit. When editing an ASCII value, an   A SCII keypad is displayed. The ASCII keypad has 3 modes:   numeric, symbols and alpha. In Alpha mode, the Caps Lock button may be pressed   t o access  ASCII  ...
  • Page 150: Ladder-Based Screen Navigation

    Chapter 14: User Interface 14.5 Ladder-Based Screen Navigation Ladder logic can use several techniques to control screen navigation. Coils can be tied to %D registers to make them screen  coils. These coils have two modes: switch and alarm. If the ladder program energizes an alarm display coil, the screen  associated with this coil is displayed and overrides the normal user screens. This is designed to show alarm conditions or to  display other ladder-detected events. When the text coil is de-energized, the previous screen that was being viewed before the  alarm is returned. The switch display coil switches to the associated screen when it is energized. Once it is de-energized, the screen remains until  it is switched by the user or ladder.   There is also a system register that can be used to for control-based screen navigation. %SR1 can be read to determine the  current screen or written to change the current screen.   R efer to the   C scape Help File for more information on control-based  screen navigation.   14.6 Beeper Acknowledgement The Canvas 7   c ontains an internal beeper that provides an audible acknowledgment when an operator touches a graphic object  that accepts touch input. When the graphic object is enabled, a short 5ms tone is emitted. When the graphic object is disabled, a  longer 100ms tone is emitted to announce that the graphical object is not currently accepting the touch input.   If beep acknowledgment is not desired, the beeper function can be disabled from the System Menu.   14.7 Touch (Slip) Sensitivity Touch slip sensitivity is preset to meet most applications; however, adjustment is available to reduce the sensitivity for touch ...
  • Page 151: Alarms

    Chapter 14: User Interface 14.8 Alarms Alarm presentation to the operator is highly configurable and beyond the scope of this document to describe fully. For more  information, refer to the Graphics Editor help file in Cscape. This section presents a typical configuration thereby providing an  introductory description on what the operator should expect. The alarm object is generally used to enunciate alarms to the operator. While the display characteristics of this object is  configurable, it is generally displayed as a button that changes colors to indicate the highest state of the alarm(s) in the alarm  group it is monitoring. The following indicates the priority of the alarm states and the default colors associated with these states. To view, acknowledge and/or clear alarms, the operator must access the alarm viewer. This is accomplished by touching an  (enabled) alarm object. When accessed, the alarm viewer is displayed as pop-up alarm viewer dialog.    Alarm Viewer The currently selected entry is highlighted in blue color which can be moved up or down by directly touching an entry. The current state of the displayed alarm is indicated by its color and optionally by an abbreviated indicator after the date/time  stamp (ALM, ACK, RTN). The operator can acknowledge an alarm by selecting it from the list and touching the ACK button. The  operator can also clear an alarm if that function is enabled in the alarm object. If not enabled, the Clear buttons are grayed and  do not respond to touch. Once view operations are complete, simply touch the Esc button to remove the pop-up alarm viewer. NOTE: OCS registers %SR181 and %SR182 are available for ladder use, which indicate presence of unacknowledged or  acknowledged alarm (respectively). The screen designer may implement these registers to switch screens or activate the  beeper to attract the operator’s attention.   Page 151 of 206...
  • Page 152: Removable Media

    Chapter 14: User Interface 14.9 Removable Media The Removable Media Object is generally used to inform the operator on the current state of the removable media device and  allow access to its file structure. The Removable Media Object is displayed as a button that changes colors to indicate the  current state of the removable media device. The following indicates the device states and the default colors associated with  these states.       To view and perform file operations, the operator must access the removable viewer. This is accomplished by either touching an  (enabled) removable media object or through the System Menu. When accessed, the removable media viewer is displayed as  pop-up removable media dialog.    NOTE: The Removable Media Object can be configured to open the removable media viewer at a certain directory complete with  restrictions on transversing back up the file path. This may be used to restrict operator access to non-critical files. The currently selected entry is highlighted in grey color which can be moved up or down by directly touching an entry. File operations are accomplished by pressing the appropriate button at the bottom of the Removable Media Viewer. The  configuration of the removable media object that invokes the Removable Media Viewer defines what buttons are enabled and  available to the user. A button is grayed and does not respond to touch if configured as disabled.   The           ( Enter) button (if enabled) performs certain operations based on the selected file’s type: Change display to parent directory <DIR> Change display to child directory bmp, jpeg Display bitmap (if compatible format) Load application (if compatible model and version)   Page 152 of 206...
  • Page 153: Screen Saver

    Chapter 14: User Interface Alternately, the (enter) button can be configured to simply load the ASCII representation of the file path (including the file name)  to a group of OCS registers. That pathname can then be used by ladder for opening and manipulating that file. Once view operations are complete, simply touch the Esc button to remove the pop-up removable media viewer. If the removable media is used in an application, the Removable Media Device requires changing by the operator, and the  application is attempting to write to the removable media when it is removed, the screen designer should create objects that  allow the operator to temporarily halt access to the removable media. This prevents corruption to the file system if the removable  media is removed during a file-write sequence. The graphic objects should set OCS register %SR174.1 (when requesting the  card be removed) and provide an indicator based on OCS register %SR174.2 (which indicates that it is safe to remove the  removable media).   14.10 Screen Saver The Canvas 7   s creen backlight life is typically five (5) years when in continuous use. If the application does not require  interaction with the Canvas 7   f or long periods of time, the backlight life can be extended by using the screen saver function.  When enabled through the System Menu, the backlight is shut off (screen goes black) after a specified time of no touch activity  on the screen. When the screen saver shuts off the backlight, any operator touch on the screen or function keys reactivates the  backlight. NOTE: When the screen saver is active (backlight shut off), any initial touch activity on the screen (or function key) to reactivate  the backlight is otherwise ignored by the Canvas 7. Any additional touch activity is also ignored by the Canvas 7   f or  approximately one second thereafter. It is possible for the application to temporarily disable the screen saver by generating a positive transition to %SR57.16 (coil  only) at a rate faster than the screen saver timeout value. This may be desired while waiting for alarm acknowledgement.   14.11 Screen Brightness The Canvas 7   p rovides a feature that allows screen dimming for night operation. To enable this feature, the application must  access and control system register %SR57 (Display Backlight Brightness). Screen brightness is continuously variable by driving ...
  • Page 154: Touch Screen Pressure

    Chapter 14: User Interface 14.12 Touch Screen Pressure The Horner Canvas series OCS controllers have a resistive touch screen that allows mechanically detecting touch events. The  resistive touch screen works by measuring the resistance between two layers of conductive film.     NOTE:   T ouch creates contact between resistive circuit layers, closing a switch.   With a unique change to the touch monitoring firmware user can measure the pressure being exerted on the touch screen. This  feature has been added in some Horner Canvas series controllers. This allows the OCS programmer to be notified of the touch  pressure and it can configure the pressure required to accept a touch event.   There are two system registers that provide this touch feature:   %SR9 (I/O Name - TCH_PRESSURE) - Records the highest-pressure level of the last touch on the screen that  exceeds the threshold value set in %SR10. This is a range of 0 to 3000. Zero (0) indicates no pressure and 3000 is the  maximum amount of pressure that can be measured.   %SR10 (I/O Name - TCH_PRESSURE_TSH) - This register sets the pressure threshold to indicate a touch. A value of  200 is typically the lightest touch, 600 is moderate and 1000+ is a heavy touch.   These new features allow customizing the feel of the touch screen and can be used to add unique user interface features such  as having different operations depending on the force of the touch. Page 154 of 206...
  • Page 155 Video Object     Page 155...
  • Page 156: Chapter 15: Video Object

    Chapter 15: Video Object Chapter 15: Video Object 15.1: Video Object Overview 15.2: Opening Video Object in Cscape 15.3: Video Properties Configuration 15.4: Video Object Performance 15.5: Web Cameras 15.1: Video Object Overview The Video Object feature allows two options for video type: Stream and Playback.   T he Video Object trigger is used to start, stop,  and pause video, and the System Register provides the status of the video object, which supports various resolutions and  frames per second.   Specifications of Video Properties 4 channels supported through USB hub Streaming Channels 1 channel can be viewed at a time...
  • Page 157: Opening Video Object In Cscape

    Chapter 15: Video Object 15.2: Opening Video Object in Cscape In Cscape, select the OCS and model number by selecting Controller > Hardware Configuration from the toolbar. 1. Open the Screen by selecting under the “User Interface > Main Screen” from the project navigator. 2. In the Project toolbox click on video object. 3. Click on the grid. 4. Then double click on the object to open the Video Properties dialog.       Page 157 of 206...
  • Page 158 Chapter 15: Video Object 5. Then double click on the icon in the middle to open the Video Properties dialog. Page 158 of 206...
  • Page 159: Video Properties Configuration

    Chapter 15: Video Object 15.3: Video Properties Configuration 15.3.1: Video Type There are two options for video type: Stream and Playback.  Stream – This option can be selected to view live video from a web cam. Four channels are supported through the USB hub.  Only one channel can be viewed at a time. Enter Channel Number directly or through registers in the Enter Channel No field. Playback – This option can be selected to view videos that are stored in Removable Media on the controller. Videos present in  both A (microSD) and B (USB) drives are supported and can be viewed. Supported formats including .mp4, .mov, .mpg, and  .wmv, can be played. Select Playback and enter video name in the Enter Target Path field either directly or through registers. For example: Test1.mp4 (from microSD) or B:\Test2.mp4 (from USB).  Page 159 of 206...
  • Page 160: 2: Control

    Chapter 15: Video Object 15.3.2: Control Trigger - The video control trigger is used to start, stop and pause video. Video trigger is done by bit level addressing. The  trigger reserves eight (8) bits and uses the first two (2) bits.  NOTE: The least significant bit is Bit 1. High = Start Bit 1 Low   =    S top High = Pause Bit 2 Low   =    P lay System Bit - The Video Control System Bit provides the status of the Video Object. The status word is 16-bits and should be  viewed in hexadecimal format. 0x0001 Video is currently playing 0x0002 Video is paused 0x00010 Channel number cannot be greater than 4 0x0020 File not present or corrupted 0x0040 Frame per second not supported or not   c ompatible Page 160 of 206...
  • Page 161: 3: Configuring Display Properties

    Chapter 15: Video Object 15.3.3: Configuring Display Properties Variable Aspect ratio Resolution Options 4x3 Aspect ratio 16x9 Aspect ratio   15.4: Video Object Performance  1.  When Video Object is active, navigating to System Menu or any popup window, causes Video Object to be  inactive.  2.  Video Object can be made active in both Idle and Run modes.  3.  If Frames Per Second of the configured video is different from the video that is configured in Cscape,   frames can   b e missed during the video. 15.5: Web Cameras If multiple web cameras are directly connected to the OCS, then only one web cam will be considered. If user needs to connect  multiple web cams, USB hub needs to be used. A maximum of four channels (web cameras) are supported. Page 161 of 206...
  • Page 162 Removable Media   Page 162...
  • Page 163: Chapter 16: Removable Media

    16.2: Using the Removable Media Manager 16.3: Log Data 16.4: View and Capture Screens 16.5: Removable Media Object 16.6: Function Blocks in Cscape 16.7: Filenames 16.8: System Registers used with RM All Horner controllers 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. 16.1: microSD Cards MicroSD cards(Memory Cards) with up to 32GB of flash memory, are compatible with the Horner controller Memory Card slot. The Memory Card slot is equipped with a “push-in, push-out” connector and a microSD card can be safely inserted into the  Memory Card slot whether the Horner controller power is On or Off.
  • Page 164: 1: Microsd File System

    Chapter 16: Removable Media 16.1.1: microSD File System 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 Horner controller and can write files that can be read by the Horner  controller. However, the Horner controller 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 can be nested up to 16 levels deep as long as each path name string does not exceed 147  characters. 16.2: Using the Removable Media Manager The Removable Media Manager is an interactive Horner controller screen that performs the following functions:  a.  Display total capacity, and available space in kilobytes  b.  Browse file and directory lists  c.  Delete files and directories  d.  Format a microSD card  e.  Load and save application programs  f.  View screen capture bitmaps The Removable Media Manager can be accessed via the System Menu or by using Cscape to place a Removable Media  Manager object on an application graphics screen. Page 164 of 206...
  • Page 165: Log Data

    16.3: Log Data Using Read and Write Removable Media function blocks, an application ladder program can read and write Horner controller  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. 16.4: View and Capture Screens The Horner controller File System uses bitmap files with the .BMP extension or JPEG files with the .JPG extension to store  Horner controller graphic screen captures. To view a captured Horner controller screen, use the Removable Media Manager to find and highlight the desire .BMP or .JPG  file, and then press Enter.  To capture an Horner controller screen, turning on the assigned Screen Capture Control Register will capture the current  Horner controller graphics screen and write it to the microSD card using the assigned Screen Capture Filename. Before capturing an Horner controller screen, Cscape must first be used to assign a Screen Capture Control Register and  Filename in the application. To do this, first open the User interface menu then select the Screen Capture item of the Config  menu and then enter a Control Register and Filename. To capture an Horner controller screen, turning On the assigned Screen Capture Control Register will capture the current  Hornercontroller graphics screen and write it to the microSD card using the assigned Screen Capture Filename. To view a  captured Horner controller screen, use the Removable Media Manager to find and highlight the desired .BMP or .JPG file, and  then press Enter. 16.5: Removable Media Object The configuration of the Removable Media Object that loads the Removable Media Viewer defines what buttons are enabled ...
  • Page 166: Function Blocks In Cscape

    Chapter 16: Removable Media 16.6: 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:  a.  microSD when filename is prefixed with ‘A:’ or nothing  b.  USB A flash drive when filename is prefixed with ‘B:’ Allows reading   o f a comma-separated value file from the microSD interface into the   c ontroller  Read RM csv register space. Allows writing   o f a comma-separated value file to the microSD interface from the controller   Write RM csv 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  ...
  • Page 167: 3: Additional Configuration

    Chapter 16: Removable Media 16.6.3: Additional Configuration  a.  Alarms - Alarm data can be logged to a .csv file stored on Removable Media.  b.  Screen Capture - The 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. 16.7: Filenames 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. Filename Special Symbols Symbol Description Example Substitutes   t he current 2-digit year 2015   =  15 Substitutes  ...
  • Page 168 Chapter 16: Removable Media RM Status Values Unknown error Page 168 of 206...
  • Page 169 Clone Unit   Page 169...
  • Page 170: Chapter 17: Clone Unit

    Chapter 17: Clone Unit Chapter 17: Clone Unit 17.1: Make Clone 17.2: Load Clone "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 to "Removable Media"  for more details. 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. 17.1: Make Clone The user needs to perform the following to Clone: Step 1: The ‘Clone Unit’ can be accessed by going to the ‘System Menu’ of the OCS then select Removable Media, select “make  Clone” has been added at the end of the removable media. Page 170 of 206...
  • Page 171 Chapter 17: Clone Unit Step 2: Selecting “Make Clone” will open the make clone window, press YES to make “CLONE ”. NOTE: Free/Total – displays number of free and total bytes in Removable Media Make/Create Clone option enables user to duplicate/Clone application file, all unit settings and all register values from battery- backed RAM. Selecting Make Clone brings up the screen below for the user:   Make/Create clone can also be triggered by setting %SR164.9 bit to “1” from Ladder program or graphics. Once the operation is  completed, this bit is made zero by the firmware. When Make Clone operation is triggered by this SR bit, it does not ask the user  for confirmation for making clone. The success / failure of the operation is also not noti-fied on screen to the user. In case of failure of “Make Clone” operation, %SR164.11 bit is set to “1” by the firmware and never reset. NOTE: Backup of registers in flash memory is not performed by Clone Feature. Refer to "Fail-Safe System" Page 171 of 206...
  • Page 172: Load Clone

    Chapter 17: Clone Unit 17.2: Load Clone This option loads the application, all unit settings and register values from Removable media to the battery-backed RAM  (Regardless of AutoLoad settings) and then resets the OCS for the settings to take effect. User needs to perform the following to Load Clone: Step 1: Select “Load clone” from removable media of OCS as shown below: Step 2: Select “Load clone” in the menu option at bottom of the screen, “Load Clone” popup window will open then select Yes to  “Load clone”. Step 3: User needs to confirm Load Clone as shown below: Step 4: After confirmation, all unit settings and register values will be loaded from Removable media to the Battery backed RAM  (Regardless of AutoLoad settings) and then OCS resets for the settings to take effect. NOTE: For security enabled files, Load clone asks for password validation before loading the application. Load Clone can also be triggered by setting %SR164.10 bit to “1” from Ladder program or graphics. Once the operation is  completed, this bit is made zero by the firmware. When Load Clone operation is triggered by this SR bit, it does not ask the user  for confirmation for loading clone. The success / failure of the operation is also not notified on screen to the user. In case of failure of “Load Clone” operation, %SR164.12 bit is set to “1” by the firmware and never reset. Page 172 of 206...
  • Page 173 Fail-Safe System   Page 173...
  • Page 174: Chapter 18: Fail-Safe System

    Chapter 18: Fail-Safe System Chapter 18: Fail-Safe System 18.1: For the Canvas Series 18.2: Fail-Safe System Overview 18.3: Settings 18.4: Backup/Restore Data 18.5: Clear Backup Data 18.6: AutoLoad 18.7: AutoRun   18.1: For the Canvas Series 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:   Retentive Register or Application flash corruption due to, for example, an excessive EMI, Electromagnetic  Interference, event.
  • Page 175: Settings

    Chapter 18: Fail-Safe System 18.3: Settings To use the Fail-Safe feature, the following steps are required:  1.  From “Make Clone” option, create AUTOLOAD.PGM file or through Cscape, create AUTOLOAD.PGM for the  application program using ‘Export to Removable Media’.  2.  Place the Removable Media with AUTOLOAD.PGM in the device.  3.  Set the ‘Enable AutoLoad’ option in the device to YES.  4.  Set the ‘Enable AutoRun’ option to YES if the controller needs to be placed in RUN mode automatically after automatic  restore of data or AutoLoad operation.  5.  Backup the current battery-backed RAM Register contents in onboard flash memory using System Menu options. 18.4: Backup/Restore Data Selecting this option brings up a screen having four operations:   Backup OCS Data.   Restore OCS Data.   Clear Backup Data.   Exit 18.4.1: Backup OCS Data When initiated, this will allow the user to manually copy battery-backed RAM contents on to the onboard flash memory of the  OCS. This will have the effect of backing up all the registers and controller settings (Network ID, etc.) that would otherwise be  lost due to a battery failure. %SR164.4 is set to 1 when backup operation is performed. Page 175 of 206...
  • Page 176: 2: Restore Ocs Data

    Chapter 18: Fail-Safe System   18.4.2: Restore OCS Data When initiated, this will allow the user to manually copy the backed-up data from the onboard flash to the battery-backed RAM. A restore operation will be automatically initiated if 1) a backup has been previously created and 2) on power-up the battery- backed RAM registers fail their check. The following steps are required:   1.  Place the controller in IDLE mode.  2.  Copy data from onboard flash memory to OCS battery-backed RAM  3.  Reset the Controller.  4.  Put the controller in RUN mode if the AutoRun setting is ‘Yes’, or else it will remain in IDLE mode. %SR164.3 is set to 1 only when an automatic restore operation is performed, not on a manual one. This bit is reset to the value  of “0” when a new backup is created. Restoring of data can be manually performed by selecting RESTORE option from the Backup / Restore Data menu. This will  cause the controller to reset. Page 176 of 206...
  • Page 177: Clear Backup Data

    Chapter 18: Fail-Safe System 18.5: Clear Backup Data When initiated, the backup data will be erased from the onboard flash and no backup will exist.   % SR164.4 and %SR164.3 is  reset to 0 when backed up data is erased. Exit: Goes back to the previous screen. Page 177 of 206...
  • Page 178 Chapter 18: Fail-Safe System The OCS follows the following sequence in execution of Automatic Restore: Page 178 of 206...
  • Page 179: Autoload

    Chapter 18: Fail-Safe System 18.6: AutoLoad This System Menu option allows the user to specify whether the OCS automatically loads the application AUTOLOAD.PGM  located in Removable Media. When the AutoLoad setting is enabled (set to YES), it can either be manually initiated or automatically initiated at power-up. The automatic initiation will happen only in the following two cases:   When there is no application program in the OCS and a valid AUTOLOAD.PGM is available in the  removable media of the device.   When the program residing in onboard memory is corrupted and a valid AUTOLOAD.PGM is available in  the removable media of the device. AutoLoad can be manually initiated when the SYS-F3 key is pressed (OCS can be in any of the following mode –  Idle/Run/DOIO). This also requires a valid AUTOLOAD.PGM to be present in the removable media of the device. When the AutoLoad setting is not enabled (set to NO), OCS will be in IDLE mode and the application is not loaded. If the AUTOLOAD.PGM is security enabled, the user will be prompted to enter the password before loading the application. The  application will be loaded from the Removable media only after getting the correct password. %SR164.6 can be set to enable AutoLoad feature. No = Does not load AUTOLOAD.PGM   a utomatically   w hen application program is absent or  corrupted. Enable AutoLoad Yes = Loads AUTOLOAD.PGM file   a utomatically   f rom Removable Media when application  program is absent or   c orrupted.   Page 179 of 206...
  • Page 180 Chapter 18: Fail-Safe System The OCS follows the following sequence in execution of AutoLoad: Page 180 of 206...
  • Page 181: Autorun

    Chapter 18: Fail-Safe System 18.7: AutoRun This System Menu option, when enabled (YES), allows the user to automatically place the OCS into RUN mode after the  AutoLoad operation or automatic Restore Data operation. When the AutoRun setting is disabled (NO), the OCS remains in the IDLE mode after a Restore Data or AutoLoad operation. %SR164.5 can be set by putting the system into RUN mode automatically, once an AutoLoad has been performed or an  Automatic Restore has occurred. If for any reason the AutoLoad-Run (Loading the AUTOLOAD.PGM automatically and OCS put in RUN mode) sequence does  not succeed, a pop-up message box saying "AUTO-LOAD-RUN SEQUENCE FAILED" will be displayed. It will also show the  reason for its failure. On acknowledging this message box, the AutoLoad-Run sequence will be terminated, controller will return  to the first user-screen and will be placed in IDLE mode. No = OCS will be in IDLE   m ode after AutoLoad or Automatic Restore.   Enable AutoRun Yes = OCS will automatically   b e placed into RUN mode after AutoLoad or             A utomatic Restore. “Enable AutoLoad” displays the following options: No = Does not load   A UTOLOAD.PGM automatically when application program is absent or  corrupted. Enable AutoLoad Yes = Loads AUTOLOAD.PGM file   a utomatically from Removable Media when application  program is absent or   c orrupted. Page 181 of 206...
  • Page 182 Modbus Communications   Page 182...
  • Page 183: Chapter 19: Modbus Communications

    Chapter 19: Modbus Communications Chapter 19: Modbus Communications 19.1 Modbus Slave Overview 19.2 Modbus Master Overview 19.3 Modbus Addressing Table For complete Modbus instructions, please refer to the Help file in Cscape.   Modbus (serial) is a popular, de-facto standard protocol that allows industrial devices from multiple manufacturers to easily  share data in real-time. For Modbus serial communications, the Canvas 7   c an act as either a Master or a Slave.   Modbus protocol (serial) allows for one master and multiple slaves. The master always initiates the conversation by sending a  request to a particular slave. Only the addressed slave will send a response when the request is completed. Should the slave be  unable to complete the request, it returns the appropriate error response. Should the slave be unable to respond, the master’s ...
  • Page 184: Modbus Master Overview

    When acting as a Modbus master, there are two primary mechanisms used by the Canvas 7   t o allow the user to specify the data  to be read/written from/to the slaves. Modbus Master Function Block—This is for serial only. This is an advanced feature that should only be used in rare  occasions. Protocol Config—The Protocol Config is configured in the Hardware Configuration dialog box in Cscape (serial). Refer to the  Modbus Addressing section. This is the preferred method in most applications.   After the protocol has been selected from the dropdown menu, the Network, Devices, and Scan List become available. The  Protocol Config is configured on three different levels:   Network—Parameters, such as the polling rate of the data scan, are specified along with timeout values, retry, and re- acquisition settings. Serial configuration, baud rate, parity, etc. are also set here.   Devices—For every slave to be polled, configuration details are added in the Devices dialog box. This includes Slave  ID (serial). Under Device Type, the Modbus addressing style matching that specified in the slave’s user documentation  may be selected. For instance, some slaves specify Modbus addresses (i.e. 40,001), and others specify offsets (i.e.  0000).   Hex or Decimal—Some specify addresses in hex, and others in decimal. By allowing the user to select the  Modbus addressing style for each slave on the network, minimal address conversion is required. Also, if the  slave is another Horner product (i.e. another OCS), the “Native Addressing” option can be selected (i.e. %R1,  %M17, etc.), and this skips the conversion to Modbus style altogether.   Scan List—This is where the specific Modbus addresses to be read/written from/to each slave are specified. Up to 32  words of data can be read at the same time.   NOTE: Once configuration has been completed on the Network and Devices level, Modbus data can be directly read/written  from graphics objects in the Cscape screen editor. This is available even if the Modbus register is not listed on the scan list.   Page 184 of 206...
  • Page 185: Modbus Addressing Table

    To access Canvas 7   r egisters, a Modbus Master must be configured with the appropriate register type and offset. This is usually  accomplished with one of two methods:   Method 1: The first method uses Traditional Modbus References, in which the high digit represents the register type, and the  lower digits represent the register offset (starting with Register 1 for each type). Since only four register types can be  represented in this manner, Canvas 7   M odbus Function Blocks pack several Canvas 7   r egister types into each Modbus register  type. Starting addresses of each Canvas 7   r egister type are shown in the Traditional Modbus Reference column of the Mobus  Table.   Method 2: The second method requires the Modbus Master to be configured with a specific Modbus Command and Modbus  Offset. The supported Modbus commands and the associated offsets are also illustrated in Modbus Table.   Canvas 7 Modbus Master Mapping Expanded Trad. Modbus Maximum Modbus Reference Modbus Ref. Modbus Command(s) Range Offset Reference (5 Digits)
  • Page 186 Firmware Update   Page 186...
  • Page 187: Chapter 20: Firmware Updates

    Chapter 20: Firmware Updates Chapter 20: Firmware Updates 20.1 Check for Current Firmware Revision 20.2 Firmware Update Details 20.3 Download Firmware 20.4 Firmware Update Steps The Canvas 7   O CS products contain field updatable firmware to allow new features to be added to the product. Firmware  updates should only be performed when a new feature or correction is required.   WARNING: Firmware updates should only be performed when the equipment being controlled by the OCS is in a safe, non-operational state.
  • Page 188 Chapter 20: Firmware Updates 20.2 Firmware Update Details NOTE:   U pdating firmware will clear the application program, screens, configurations, and register data. If required, make sure to  backup program and register data before updating firmware. The controller’s User Manual has instructions for doing backups.   Removable Media Method – The controller firmware is updated by a bootloader, using a microSD card or USB Flash drive (not  through the Cscape Firmware Update Wizard). To update or change firmware: 1. Download desired Firmware set from the Horner APG website. Verify NOTE: Files from the Horner website come as a .ZIP file  which need to be unzipped and placed in the root of the drive for them to function properly. 2.Save Firmware files to microSD card or USB, these are the removable media devices.   20.3 Download Firmware In North America, visit https://hornerautomation.com. Then click Support > Downloads > Controller Firmware and download  the most recent firmware set with the correct communication protocol. -OR- In Europe, visit http://www.hornerautomation.eu and click Support > Firmware tab and download the desired firmware (an  account is required to access firmware updates, create one if necessary).   Page 188 of 206...
  • Page 189 Chapter 20: Firmware Updates 20.4 Firmware Update Steps Update firmware in an Canvas 7 by completing the following steps:  1.  Unzip all files from downloaded.zip file ("Download Firmware" on the previous page) onto removable media or USB.  2.  Plug the removable media or USB into a powered-up OCS controller.  3.  Press and hold the SYSTEM key until the SYSTEM RECOVERY SCREEN appears.  4.  Select “System Upgrade SD or USB” option then press YES for upgrade system from SD or USB.  5.  After validating the package firmware upgrade will starts.  6.  When Operation Completed appears, Power-cycle the OCS controller and wait for it to boot up.  7.  Press SYSTEM key, select Diagnostics then select versions and press the Enter button  8.  Check firmware version.  9.  If any of the version numbers are incorrect, verify the correct files were copied to the removable media device and  repeat the steps above     Page 189 of 206...
  • Page 190 Chapter 20: Firmware Updates   Perform Operation     Page 190 of 206...
  • Page 191 Chapter 20: Firmware Updates Screen Caching on Boot-up Go to User Interface > Configure > Display Settings for enabling screen caching on boot-up option.     To optimize graphics responsiveness at run-time, all user screens must be cached. This option allows a choice of whether  caching occurs at boot-up, or immediately after boot-up.   With this option "checked" - caching is included in boot-up and no screens will be accessible by the user until boot-up is  complete. This will extend boot-up time depending on the number and complexity of user screens.   With the option "unchecked" - caching occurs after boot-up and user screens are accessible sooner. During caching, a  banner will appear on the screen, and graphics responsiveness will be noticeably slower. In either case the logic scan is not impacted. The logic scan will be active during caching whether   o r not it is included in the boot- up process.   For more Firmware Update information refer to the Firmware Update Manual, MAN1011, which can be found on the Horner  website. NOTE: User must register and be logged into website in order to download this manual.  Page 191 of 206...
  • Page 192 Canvas OCS Battery       Page 192...
  • Page 193 Chapter 21: Canvas OCS Battery Chapter 21: Canvas OCS Battery 21.1: Safety 21.2: Replacing the Battery 21.1: Safety The Canvas OCS has an improved memory architecture that does not require a battery for program or register retention. The  onboard lithium coin-cell battery runs the real time clock and is user replaceable with an expected lifetime of seven (7) to ten  (10) years.  Environmental conditions, including extreme temperatures and humidity, can affect battery life. If the battery older than seven (7)  to ten (10) years old, it is recommended that it be replaced as preventative maintenance. NOTE: Use only the proper battery type  listed. NOTE: Use only the proper battery type listed. WARNING: DO NOT USE IF BATTERY IS LEAKING OR HAS BEEN DAMAGED. WARNING: LITHIUM BATTERIES MAY EXPLODE OR CATCH FIRE IF MISTREATED. WARNING:  DO NOT RECHARGE, DISASSEMBLE, HEAT ABOVE 100° C (212° F) INCINERATE, OR PUNCTURE. WARNING: EXPLOSION HAZARD – BATTERIES MUST BE ONLY BE CHANGED IN AN AREA KNOWN TO BE NON- HAZARDOUS. WARNING: Disposal of lithium batteries must be done in accordance with federal, state, and local regulations. Be sure to  consult with the appropriate regulatory agencies before disposing batteries. In addition, do not recharge, disassemble, heat  or incinerate lithium batteries.
  • Page 194 Chapter 21: Canvas OCS Battery 21.2: Replacing the Battery The   C anvas OCS uses a lithium coin-type battery with part no. HE-BAT013, with harness and connector available from Horner  APG. WARNING: Replacing the battery is a delicate procedure. If unsure about the procedure, please contact Horner Tech Support via Horner Contact Us .    Below are the steps to replace the battery:  1.  Make sure the user program and any data stored in retentive memory is backed up.  2.  Disconnect all power from the   C anvas OCS unit including I/O power.
  • Page 195 Troubleshooting & Tech Support Page 195...
  • Page 196 Chapter 22: Troubleshooting Chapter 22: Troubleshooting 22.1: Connecting to the OCS 22.2: Local Controller and Local I/O 22.3: CsCAN Network 22.4: USB Interfaces 22.5: Basic Troubleshooting 22.6: Technical Support Contacts 22.1: Connecting to the OCS Cscape connects to the local controller automatically when the serial connection is made. The status bar below shows an  example of a successful connection. This status bar is located in the bottom right-hand corner of the Cscape window. In general, the Target number should match the Local number. The exception to this is when the controller is being used as a  "pass through" unit where other controllers on a CsCAN network could be accessed through the local controller. See Cscape  Help File for more details.  Determine connection status by examining feedback next to Local & Target in the status bar of Cscape.
  • Page 197 22.1.1: Serial Port – MJ1 Programming  1.  Controller must be powered up.  2.  Ensure that the correct COM port is selected in Cscape. Tools > Applications Settings > Communications.  3.  Ensure that a cable with proper pinout is being used between PC and controller port MJ1.  4.  Check that a Loaded Protocol or ladder is not actively using MJ1. Taking the controller out of Run Mode  from the System Menu on the controller will make MJ1 available to Cscape.  5.  Successful communications with USB-to-serial adapters vary. If in doubt, Horner APG offers a USB to  serial adapter: part number HE-CPK. 22.1.2: USB Port - Mini B Programming  1.  Controller must be powered up.  2.  Ensure that the correct COM port is selected in Cscape.Tools > Applications Settings > Communications > Configure.  3.  Be sure that the USB cable is connected between the PC and the controller. Check Windows Device ...
  • Page 198   Loaded firmware versions   Loaded protocols   Removable media access 22.2.1: Local I/O Troubleshooting Checklist  1.  Verify the controller is in RUN mode.  2.  Check diagnostics to ensure controller passed self-tests. View Diags in System Menu or in Cscape, click  Controller/Diagnostics.  3.  Check data sheets to ensure proper wiring.  4.  Ensure that hardware jumpers and software configuration for I/O match.  5.  Check data sheets for voltage and current limits.  6.  Take ladder out of the picture. From Cscape set controller to “Do I/O” mode. In this mode inputs can be  monitored, and outputs set from a data watch window in Cscape without interference from the ladder  program. Some I/O problems are only a result of a mistake in the ladder program. WARNING: Setting outputs ON in Do I/O mode can result in injury or cause machinery to engage in an unsafe manner  depending on the application and the environment. 22.3: CsCAN Network For complete information on setting up a CsCAN network, refer to CAN Networks manual (MAN0799) by using Horner's  Documentation Search page.  Network status, node ID, errors, and baud rate in the controller System Menu are all in reference to the CsCAN network. These  indications can provide performance feedback on the CsCAN network and can also be used to aid in troubleshooting. Page 198 of 206...
  • Page 199 Chapter 22: Troubleshooting 22.3.1: CsCAN Network Troubleshooting Checklist  1.  Use the proper Belden wire type or equivalent for the network as specified in the CAN Networks Manual,  MAN0799.  2.  The Horner   O CS does not provide 24VDC to the network. An external voltage source must be used for  other devices such as SmartStix I/O.  3.  Check voltage at both ends of the network to ensure that voltage meets specifications of attached devices.  4.  Proper termination is required. Use 121Ω (or 120Ω) resistors at each end of the network.   T he resistors  should be placed across the CAN_HI and CAN_LO terminals.  5.  Measure the resistance between CAN_HI and CAN_LO. If the network is properly wired and terminated,  there should be around 60Ω.  6.  Check for duplicate node ID’s.  7.  Keep proper wires together. One twisted pair is for V+ and V- and the other twisted pair is used for CAN_HI  and CAN_LO.  8.  Make sure the baud rate is the same for all controllers on the network.  9.  Assure shields are connected at one end of each segment—they are not continuous through the network.  10.  Do not exceed the maximum length determined by the baud rate and cable type.  11.  Total drop length for each drop should not exceed 6m (20’). A drop may include more than one node. The  drop length adds to the overall network length.
  • Page 200 Chapter 22: Troubleshooting 22.5: Basic Troubleshooting Description Action OCS does not read media card. The media card should be formatted with the controller. Make   s ure the project file is saved as a .pgm file and not a .csp file. In   a ddition, the file  OCS will not download project   f ile. must be .pgm. The file's I/O configuration must match the controller   c onfiguration for it to  download. 22.6: Technical Support Contacts For manual updates and assistance, contact Technical Support at the following locations: North America: Tel: (317) 916-4274 Fax: (317) 639-4279 Website: https://hornerautomation.com Email: APGUSATechSupport@heapg.com Europe: Tel: (+) 353-21-4321-266 Fax: (+353)-21-4321826 Website: https://www.hornerautomation.eu Email: technical.support@horner-apg.com Page 200 of 206...
  • Page 201 Index Page 201...
  • Page 202 INDEX Cscape Target & Local   N umbers Alarm Viewer Device List and Device Configuration Alarms Digital / HSC Input Configuration Alpha-Numeric Keypad Digital / PWM Output Configuration Analog Inputs Dimensions Analog Outputs Dip Switches AutoLoad Displaying and Entering Data AutoRun Download Firmware Backup / Restore Data Electrical Installation Basic Troubleshooting Ground Specifications Beeper Acknowledgement How to Test for Good Ground Primary Power Port CAN Communications Entering Data CAN1 Port Wiring Establishing Communications Cscape Programming Ethernet Communications I/O Expansion Ethernet Configuration – IP Parameters Ladder-Controlled Ethernet Module Configuration Port Description Ethernet Module Protocol Configuration Canvas OCS Battery Ethernet Module Protocols and Features Replacing the Battery Ethernet Module Specifications Safety ETN Port Programming...
  • Page 203 INDEX Firmware Update High Speed Output Functions Download Files Normal Firmware Update Details Firmware Update Steps PWM Examples Firmware Updates PWM Output Waveform Check Revision Stepper For the Canvas Series STP Examples FPGA High Speed Output Functions Register Map Frequency How to Test for Good Ground Function Blocks in Cscape HSC Functions HSC Functions Register Maps HSC Functions Registers Map General I/O HSC I/O Filtering Analog Input HSC Input Configuration Analog Output Digital Input Digital Output I/O Register Map for EXLW & XLW Prime Installation Procedure Intro to the EXLW & XLW Prime Relay Outputs Scaling Analog Inputs Ladder-Based Screen Navigation Solid State Ladder-Controlled CAN Communication General I/O Configuration Ladder-Controlled Serial Communication Ground Specifications LED Indicator Lights Grounding Load Clone...
  • Page 204 INDEX Mounting Orientation Relay Outputs Mounting Requirements Removable Media 45, 152, 163 Filenames Function Blocks Network Configuration Log Data Network Protocols Media Manager Noise microSD cards Normal Registers RM Object View and Capture Screens Opening Video Object in Cscape Removable Media Object Removing the Back Cover Panel Layout Design and Clearance Checklist Replacing the Battery Period Measurement Resource Limits Primary Power Port RS485 Biasing Protocol Configuration RS485 Termination Data Mapping Device Configuration S Registers Device Driver Safety Device List Safety and Compliance Network Configuration FCC Compliance Network Protocols Safety Precautions Scan List Warnings Protocol Device Driver Selection...
  • Page 205 INDEX Shock and Vibration Solid State Digital Outputs Video Object Specifications of Video Properties Configuration SR Registers Cscape Status Bits Performance Stepper Function Specifications STP Examples Web Cameras System Menu Video Object Overview System Menu Map Video Object Performance System Register Tables Video Properties Configuration System Registers used with RM View and Capture Screens System Settings View Battery Status LED Indicator Lights View Diags LED Lights View Status System Settings - User Interface Visual Overview Technical Support Contacts Web Cameras Temperature / Ventilation Totalize Touch (Slip) Sensitivity Touch Screen Calibration Touch Screen Pressure troubleshooting Connecting to the OCS Troubleshooting Basic Troubleshooting CsCAN Checklist CsCAN Network...
  • Page 206 Chapter 23: Change Log Date Rev # Description of Revision Location in Doc 5/28/24 Created User Manual   Page 206 of 206...

Table of Contents