Model a built-in i/o: 12 digital inputs, 12 digital outputs, 4 analog inputs, 2 analog outputs
model r built-in i/o: 12 digital inputs, 6 relay outputs, 2 pwm outputs, 4 analog inputs, 2 analog outputs (4 pages)
It is the sole responsibility of the system designer utilizing the X10 OCS module to design the end system, integrate the X10 OCS module, and make safety provisions for the end equipment customary to industrial applications as defined in any codes or standards which apply.
Page 3
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. Ethernet™ is a trademark of Xerox Corporation.
1.3: Safety Precautions Chapter 2: Intro to the X10 2.1: Visual Overview 2.2: Where to find more information for the X10 OCS 2.3: Four Main Types of Information are covered in this Manual 2.4: Connectivity to the X10 2.5: Features of X10 Micro OCS Chapter 3: Mechanical Installation 3.1: Mounting Overview...
Page 6
10.5: Ladder-Controlled Serial Communication 10.6: Configuration via Mini-B USB Chapter 11: CAN Communications 11.1: Overview 11.2: CAN Port Wiring 11.3: Cscape Programming via CAN 11.4: Ladder-Controlled CAN Communication 11.5: CAN for I/O Expansion (Network I/O) 11.6: CAN and Termination and Bias Chapter 12: Ethernet Communications 12.1: Ethernet Module Protocols 12.2: Ethernet System Requirements...
Page 7
21.1.2: USB Port - Mini BType C Programming 21.1.3: ETN Port Programming 21.2: Local Controller and Local I/O 21.2.1: Local I/O Troubleshooting Checklist 21.3: CsCAN Network 21.3.1: CsCAN Network Troubleshooting Checklist 21.4: USB Interfaces 21.5: Basic Troubleshooting 21.6: Technical Support Contacts X10 Change Log Chapter 22: Index...
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.
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: This device may not cause harmful interference. This device must accept any interference received, including interference that may cause undesired operation.
Chapter 2: Intro to the X10 Chapter 2: Intro to the X10 2.1: Visual Overview 2.2: Where to find more information for the X10 OCS 2.3: Four Main Types of Information are covered in this Manual 2.4: Connectivity to the X10 2.5: Features of X10 Micro OCS...
Configuration and Use of the X10 OCS Maintenance and Support 2.4: Connectivity to the X10 The X10 has excellent capability for connecting to a variety of devices. The diagram below shows some examples of devices that can be used with the X10 OCS. Connectivity...
Chapter 2: Intro to the X10 2.5: Features of X10 Micro OCS The X10 OCSs 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 X10 OCS include the following.
Horner Automation website. Carefully locate an appropriate place to mount the X10. Be sure to leave enough room at the top of the unit for insertion. Remove the microSD card to prevent damage to the panel edge.
Chapter 3: Mechanical Installation 3.3: Mounting Clip Locations 3.3.1: X10 OCS Mounting Orientation NOTE: For panel mounting - the orientation shown above provides for optimum readability of the screen and ease of use of the keypad. Page 17 of 179...
Chapter 3: Mechanical Installation 3.4: Dimensions For installations requiring NEMA 4X liquid and dust protection, the panel cutout should be cut with a tolerance of +0.5mm / - 0mm. Panel Tolerance: +/-1.0mm Page 18 of 179...
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D; Class II, Division 2 Groups F and G; and Class III Hazardous Locations or Non-Hazardous Locations only. The X10 utilizes a clip installation method to ensure a robust and watertight seal to the enclosure. Follow the steps below for the proper installation and operation of the unit.
Chapter 3: Mechanical Installation 3.6.1: 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.80mm) Minimum Distance between base of device and wiring ducts 1.5”...
Chapter 3: Mechanical Installation 3.6.6: Panel Layout Design and Clearance Checklist The following list provides highlights of panel layout design factors: Meets the electrical code and applicable standards for proper grounding, etc.? Meets the panel manufacturer’s requirements for grounding, etc.? Is the panel box properly connected to earth ground? Is the panel door properly grounded? Has the appropriate procedure been followed to properly ground the devices in the panel box and on the panel door?
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.
Chapter 4: Electrical Installation 4.3: Primary Power Port The Primary Power Range is 24VDC ± 20%. 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.2mm) Strip length: 0.28”...
5.1: System Menu - Overview The X10 OCS has a built-in System Menu, which lets the user view System Settings and makes adjustments. To start the System Menu, press the SYSTEM key (or set %SR3 to 1), which will display the Main Menu. Then use the ↑ and ↓ (Up Arrow or Down Arrow) keys to select a Main Menu item and press Enter (Return Arrow) to display the item’s Sub-Menu.
Page 27
Chapter 5: System Settings and Adjustments OCS LEDs OFF indicates OCS is in IDLE/STOP mode. Flashing indicates DO / IO mode or RUN with no ladder program. ON indicates ladder code running. OFF indicates one or more self-tests failed. ON indicates all self-tests passed. Flashing at 1 Hz indicates forcing is active.
5.2: Navigation and Editing As mentioned above, the System Menu is started by pressing the System key on the X10. Next press ESC to exit the System Menu, or use ↑ and ↓ to select an item and press the Enter key to display the item’s Sub-Menu.
Chapter 5: System Settings and Adjustments 5.3: Set Networks This sub menu allows setting for the CAN and Ethernet network to be viewed or changed. Yes = connected to a network and functioning properly Network Ok? No = Not ready to communicate on the network Network ID 1 to 253 = This node’s CsCAN Network ID;...
Chapter 5: System Settings and Adjustments 5.4: Set Network Baud Rate The Set Network Baud Sub-Menu for both X10 models displays just one System Setting and it is editable. 125 kB = 125 kBd CAN network 250 kB = 250 kBd CAN network...
0.1 to 999.9 = Average number of mS for each ladder scan Lcl Net Use % 0.0 to 100.0 = CAN network bandwidth % used by this X10 node All Net Use % 0.0 to 100.0 = CAN network bandwidth % used by all nodes...
The View Diags Sub-Menu displays up to 11 System Diagnostics, none of which are editable. The first two System Diagnostics are critical. If any of them indicate a Fault condition, the X10 OCS will not enter or remain in Run mode, and the problem must be investigated and corrected.
Chapter 5: System Settings and Adjustments The first five System Diagnostics are critical. If any of them indicate a Fault condition, then the X10 will not enter or remain in Run mode, and the problem must be investigated and corrected.
As mentioned in "Wiring—MJ1/MJ2 Serial Ports" on page 101 section, both the MJ1 (Port 1) and MJ2 (Port 2) serial ports support downloadable protocols. To assign a downloadable protocol to an X10 serial port, select the Protocol Config item in Cscape’s Program menu and then setup a protocol for Port 1 or Port 2 (or both).
16:09:49 = Current time (hours:minutes:seconds in 24-hour format) Date 10-Jun-1996 = Current date (day-month-year) Monday = Current day of week calculated from the Date setting NOTE: The X10 must be power-cycled (or reset) before the changes take effect. Page 36 of 179...
Chapter 5: System Settings and Adjustments 5.11: Calibrate Analog When first entering this option, the user is presenting with information about the X10 model and current state of the IO points. Refer to "General I/O Configuration" on page 1 for more details.
Chapter 5: System Settings and Adjustments 5.12: Set Beeper The Set Beeper Sub-Menu displays one System Setting, which is editable. Yes (default) = Enables beeper Beeper Enable No = Disables beeper (does NOT affect ladder access) 5.13: Set Screen The Set Screen Sub-Menu displays four System Settings, all of which are editable. Yes = Enable screen saver Saver enable No (default) = Disable screen saver...
Chapter 5: System Settings and Adjustments 5.14: Removable Media See also: "Removable Media" on page 132 The Removable Media Sub-Menu displays the Removable Media Manager. After selecting Removable Media from the Main Menu, one of four Sub-Menu screens will appear: = No microSD card has been installed in the Memory Slot = microSD card is installed, but it is still initializing = microSD card is installed and initialized, but contains no files = microSD card is installed and initialized, and it contains...
Chapter 5: System Settings and Adjustments If a directory name is highlighted, pressing Enter will switch to that directory showing its files and sub-directories. In a sub- directory, highlighting .. (dot dot) and pressing Enter will move up one directory. 5.15: Fail –...
Chapter 5: System Settings and Adjustments Backup = Copies battery-backed RAM contents on to the onboard flash memory of the OCS. Restore = Copies the backed-up data from onboard flash to the battery-backed RAM. Clear Backup = The backup data will be erased from the onboard flash. Exit = Goes back to previous menu 5.16: Enable AutoRun...
Chapter 5: System Settings and Adjustments 5.17: Enable AutoLoad “Enable AutoLoad” displays the following options which can be selected: No = Does not load AUTOLOAD.PGM automatically when application program is absent or corrupted. Enable Yes = Loads AUTOLOAD.PGM file automatically from RM when application program is absent or AutoLoad corrupted.
Chapter 5: System Settings and Adjustments 5.18: Clone Unit See also: "Clone Unit" on page 139 ‘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" on page 132 for details on using RM.
5.20: WebMI License Details License details page displays the information about the WebMI license. Please refer to MAN1036 for the WebMI Manual using Horner's Documentation Search page. The information can also be viewed from Cscape using the following %SR registers: %SR209.3...
Chapter 5: System Settings and Adjustments 5.21: 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.
6.5: X10 Resource Limits 6.6: PWM Function Registers Map 6.7: HSC Functions Registers Map For I/O Register Maps for individual controllers, refer to the Horner website Document Search page. There are two types of System Registers that may be used during programming. %S registers indicate the status of several system operations.
Chapter 6: Registers %S Registers 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...
Chapter 6: Registers 6.4: I/O Register Map for X10 OCS NOTE: These registers can be used as general purpose registers X10 Models Fixed Address Digital/Analog I/O Function Digital Inputs 1-12 1-12 Reserved 13-32 13-32 Digital Outputs 1-12 Relay Outputs Reserved...
7.2: Cscape Status Bar When the X10 Micro 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 X10 Micro OCS and the Cscape program.
Port, onboard Ethernet Port, CAN (CsCAN), or modems. For X10, use Cscape Version 9.90 SP4 or newer. To communicate with the X10 via USB you will need the Automated Driver Installer located on the Horner APG website. If a direct USB connection is to be used, connect the Mini-USB port on the OCS 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.
Page 54
Chapter 7: Cscape Configuration 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.
Page 55
Chapter 7: Cscape Configuration NOTE: The following fields need to be filled for communication configuration if Cscape Connection Wizard was not used. The table below explains the information needed in each field. Target Name Connection Medium Connected Device Connection Settings Communication Configuration Dialog Name for connection.
CsCAN network ports respond to any network ID and do not require the ID to be configured. The main method for communicating between Cscape and an X10 is RS-232 serial. The X10 can communicate with Cscape using USB to serial adapters, CAN (CsCAN) or modems. For communications other than RS-232 serial please refer to the manual that ships with the adapter hardware being used for programming.
Page 57
ID and do not require the ID to be configured. To check or change the ID on the X10, press the far upper right corner of the touch screen to bring out the function keys, then press the System Menu key.
The X10 Ethernet address may be set from the System Menu depending on the program currently loaded into the X10. To check or change the Ethernet address on the X10 OCS, press in the far upper right corner of the touch screen to bring out the function keys, then press the System Menu key.
Page 59
Chapter 7: Cscape Configuration Click next to use the folloowing IP address 192.168.254.111 or something other than that of the X10 OCS. The Subnet Mask (255.255.255.0) should fill in automatically once the IP address has been entered. The Default Gateway is not required for a direct connection.
Below the main controller configuration, under Network Ports, find LAN1, and click on the Config button to the right of the greyed-out ETN300. In the LAN1 Configuration, fill in the network setup for the X10 OCS. It may be required to consult IT personnel to determine proper settings if connection to a corporate network is required.
Chapter 7: Cscape Configuration 7.6: 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.
Page 62
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 using Horner's Documentation Search page.
Page 63
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:...
Chapter 7: Cscape Configuration 7.7: 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 65
Chapter 7: Cscape 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 66
Chapter 7: Cscape Configuration The Q1 and Q2 group boxes allow the user to specify the operation of the multifunction outputs. The PWM State on Controller Stop group box contains items that allow the user to specify how the PWM outputs behave when the controller is stopped.
Chapter 7: Cscape Configuration 7.8: Analog Input Configuration 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.
Page 68
Chapter 7: Cscape 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 Horner website's Documentation Page for more information regarding specific models.
Page 69
Chapter 7: Cscape Configuration Select Analog In to open the Analog Input Configuration dialogue: 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...
Page 70
Chapter 7: Cscape Configuration Analog Input uses five consecutive 16-Bit registers for configuration and each register has the following description: %Rxx channel-1 Input Type selection %Rxx+1 channel-2 Input Type selection %Rxx+2 channel-3 Input Type selection %Rxx+3 channel-4 Input Type selection %Rxx+4 Filter Constant For example, if user entered %R1 in Config Register then:...
Chapter 7: Cscape Configuration 7.9: 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.
Chapter 7: Cscape Configuration 7.10: Analog Output Configuration NOTE: Refer to the X10 datasheet and "High Speed I/O" on page 89 for more information. The analog outputs on X10 devices provide high resolution current outputs. NOTE: Each channel can be separately configured for current mode.
Page 73
Chapter 7: Cscape Configuration The Module Setup allows a user to configure four types of I/O. Select Analog Out to open the following dialogue: 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.
Page 74
Chapter 7: Cscape Configuration NOTE: If a Conf Register is configured, it takes immediate precedence over other configuration for the I/O, thus requiring valid values in the registers. These values can be changed during runtime so care needs to be taken to not mistakenly overwrite these values and program logic.
Page 75
Chapter 7: Cscape Configuration Analog Output uses six consecutive 16-Bit registers for configuration and each register has the following description: %Rxx channel-1 Output Type selection %Rxx+1 channel-2 Output Type selection %Rxx+2 channel-1 Hold Last or Goto value selection %Rxx+3 channel-2 Hold Last or Goto value selection %Rxx+4 Channel-1 Goto value %Rxx+5...
8.1: Built-in Digital and Analog I/O Overview The X10 is a compact unit that contains high density and very versatile I/O. Using the I/O properly requires wiring to the proper terminals 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 "Registers"...
The digital outputs in the X10 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. Refer to the X10 datasheet and the High- Speed I/O chapter for additional information.
Chapter 8: General I/O Configuration 8.2.1: Model A & Model R Digital Output Wiring Position Digital Model Q1 (%Q1) Dig. Out 1 (PWM) Q2 (%Q2) Dig. Out 2 (PWM) Q3 (%Q3) Dig. Out. 3 Q4 (%Q4) Dig. Out. 4 External V+ Common Q5 (%Q5) Dig Out.
Some protective measures must be determined by an engineer. Below are some recommendations that will work for many applications. If there are additional questions on protection from inductive load, consult Horner Technical Support. DC Loads – General purpose diode (IN4004) in reverse bias across the load.
Chapter 8: General I/O Configuration 8.3: J1 Wiring: Model R - Relay/Digital Out Position Digital Model R1 (%Q3) Relay 1 N.O. Relay 1 C R2 (%Q4) Relay 2 N.O. Relay 2 C R3 (%Q5) Relay 3 N.O. Relay 3 C R4 (%Q6) Relay 4 N.O.
Chapter 8: General I/O Configuration 8.3.1: Model R: Sinking and Sourcing Outputs NOTE: Cscape provides an option to invert the output be selection "sourcing" for the output mode. This may be useful when using some devices in this configuration. It does not change the type of output. Page 82 of 179...
Chapter 8: General I/O Configuration 8.4: Digital / HSC Input Configuration NOTE: Refer to the High Speed I/O chapter for more information and refer to the datasheet for X10 [MAN1278] via the Document Search. NOTE: The digital inputs on the X10 are designed for low voltage DC inputs.
0 to 32,000. The AQ items show the raw analog outputs scaled from 0 to 32,000. The X System Menu contains an “I/O Status and Calibration” selection.When first entering this option, the user is presented with information about the X10 model and current state of the I/O points. 8.5.2: I/O Calibration This controller has a field calibration option in the System Menu.
Chapter 8: General I/O Configuration 8.5.3: To calibrate 0-20mA, 4-20mA, or RTD PT100 Analog Inputs NOTE: During Calibration process, the application may be placed in Idle. Select the channel and mode as described above Connect the analog channel to be calibrated to the calibration equipment. Apply the lower current or RTD value as directed by the screen to the selected analog input channel.
Chapter 8: General I/O Configuration RTD: 2 x 3 - Wire RTD & 2 x 4-20mA Output Wire Connection Al1 (%Al1) RTD Sense R1+ (%Al1) RTD Excitation Al2 (%Al2) RTD Sense R2+ (%Al2) RTD Excitation No Connection (AI3/%AQ1) R3+ or AQ1 mA Output (AI3/%AQ1) No Connection (AI4/%AQ2) R4+ or AQ2 mA Output...
Chapter 9: High Speed I/O Chapter 9: High Speed I/O 9.1: Overview 9.2: High Speed Counter (HSC) Functions 9.3: High Speed Counter 9.4: Pulse Width Modulation (PWM) Functions 9.5: HSC Pulse Output 9.1: Overview In addition to the compliment of simple analog and digital I/O, the Micro OCS controller supports High Speed Counting (HSC) I/O functions and may support Pulse Width Modulation (PWM) Output functions.
Chapter 9: High Speed I/O NOTE: The edge polarity selection in the mode parameter for the totalize and pulse width functions (Digital/HSC Input Configuration) assume Positive Logic regardless of the associated I/O board’s jumper setting for the Digital DC inputs polarity.
Chapter 9: High Speed I/O 9.2.2: Totalize In totalize mode, the accumulator is simply incremented each time the input transitions in a specific direction. Totalize mode is configurable to specify the edge (rising or falling) on which the accumulator is incremented. Three different options are available to reset the current count: Configured reset value - When configuring the Totalize function, a value may be specified under the Counts per Rev column.
Chapter 9: High Speed I/O 9.2.3: Pulse In pulse mode, the high-speed input can measure the width or period of a pulse stream in one of four modes and provides a continuous indication of the last sampled value. Width High 1μs Counts – In this sub-mode the accumulator value will contain the number of 1μs counts the pulse is high. Width Low 1μs Counts - In this sub-mode the accumulator value will contain the number of 1μs counts the pulse is low.
Chapter 9: High Speed I/O 9.2.5: Quadrature Two HSC inputs are consumed for each of the two possible Quadrature counters. For example, selecting quadrature mode for HSC 1 will use HSC inputs 1 and 2, which correspond to A and B quadrature signals. Therefore, HSC 1 and 3 may be configured for quadrature input.
Page 94
Chapter 9: High Speed I/O Asynchronous modes ignore the quadrature inputs and reset the quadrature accumulator to zero on the configured edge (rising, falling or both). These are the most common settings used. When configuring, asynchronous mode selections are prefixed with the word Async. Synchronous modes synchronize the reset (or set) to the selected quadrature input and the selected marker polarity.
Chapter 9: High Speed I/O 9.2.6: Sync Pulse Mode Table Definition: CPR most commonly stands for Counts per Revolution, and refers to the number of quadrature decoded states that exist between the two outputs A and B. With both outputs A and B switching between high and low, there exists 2 bits of information represented as 4 distinct states.
Chapter 9: High Speed I/O 9.3: High Speed Counter When either Q1 or Q2 is configured for HSC operation, HSC1 or HSC2 totalize functions are extended to allow respective direct output control based on a comparison of the current count and a preset value (PV). Refer to the Totalize section in the HSC section above for more information.
Chapter 9: High Speed I/O 9.4: Pulse Width Modulation (PWM) Functions On units that support the PWM, two dedicated outputs are available that can be configured for one of four modes of operation. Those modes are Normal, PWM, and HSC (count = PV). Normal - When either Q1 or Q2 is configured for Normal operation, the digital output registers %Q1 and %Q2 drives that respective output.
Chapter 9: High Speed I/O 9.4.1: PWM Output Waveform PWM Output Waveform Table Rise Time 150ns Max Fall Time 150ns Max PWM Period Frequency = 1/Period 9.4.2: PWM Functions Register Map Register %AQ3 HSC1 Preset Value (AQ3-4) %AQ4 %AQ5 HSC2 Preset Value (AQ5-6) %AQ6 %AQ7...
Chapter 9: High Speed I/O 9.4.3: PWM Examples Example 1 Duty Cycle Frequency To get a 50% Duty Cycle @ 10kHz waveform on PWM1: Set %AQ7 – 8 = 16,000 Set %AQ9 – 10 = 10,000 Example 2 Duty Cycle Frequency To get a 25% Duty Cycle @ 5kHz waveform on PWM2: Set %AQ11 –...
Chapter 10: Serial Communications Chapter 10: Serial Communications 10.1: Port Descriptions 10.2: Wiring—MJ1/MJ2 Serial Ports 10.3: RS-485 Termination and Biasing 10.4: Cscape Programming via Serial Port 10.5: Ladder-Controlled Serial Communication 10.6: Configuration via Mini-B USB All Micro OCS Controller models provide two serial ports, which are implemented with a single 8-position modular jack that is labeled MJ1/2.
10.4: Cscape Programming via Serial Port MJ1 is the serial port available for programming. The connection is RS-232 and is compatible with the Horner programming cable kits HE-XCK or HE-XCPK. Unlike some other OCS models, the MJ2 port cannot be configured as a programming port.
Chapter 11: CAN Communications Chapter 11: CAN Communications 11.1: Overview 11.2: CAN Port Wiring 11.3: Cscape Programming via CAN 11.4: Ladder-Controlled CAN Communication 11.5: CAN for I/O Expansion (Network I/O) 11.6: CAN and Termination and Bias NOTE: For additional CAN information, refer to the CAN Networks manual (MAN0799) via Documentation Search for more details .
Horner controllers that are attached to the CAN network. 11.4: Ladder-Controlled CAN Communication Using Put and Get Network Words function blocks, the CAN port can exchange digital and analog global data with other Horner controllers attached to the CAN network.
Chapter 12: Ethernet Communications Chapter 12: Ethernet Communications 12.1: Ethernet Module Protocols 12.2: Ethernet System Requirements 12.3: Ethernet Module Specifications 12.4: Ethernet Module Configuration 12.5: Ethernet Configuration – IP Parameters 12.6: Ethernet Module Protocol Configuration NOTE: Refer to the Ethernet Supplement (SUP0740)on the Document Search page for more details.
Page 108
Chapter 12: Ethernet Communications Step 2: If configuring a different OCS Model than the one shown in the Hardware Configuration dialog, click on the topmost Config button, select the desired OCS Model, and then click OK. Page 108 of 179...
Page 109
Chapter 12: Ethernet Communications Step 3: Click the Config button to the right of the LAN1 for LAN 1 or LAN2 for LAN 2, revealing the Ethernet Module Configuration dialog. Configure the following: 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.
Page 110
Chapter 12: Ethernet Communications 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. Ethernet Status Word Register Format High Byte Low Byte...
Chapter 12: Ethernet Communications 12.5: Ethernet Configuration – IP Parameters For primary operation, the IP address, Net Mask, and Gateway should be set in the LAN config of the Cscape Hardware Configuration. There are options to get IP parameters from the LAN Config or to get parameters from registers. It is possible to set the Ethernet IP parameters from the OCS System Menu, but only as a temporary measure.
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.
Chapter 13: Protocol Configuration When downloaded to the OCS , the Scan List is scanned sequentially to generate data transactions with the remote device. This transaction scanning can be on a continual basis (automatic) or controlled from ladder logic (manual) once a complex connection is created via a program.
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,...
Chapter 13: Protocol Configuration Network Protocols Scan List. ID Select – If an analog is specified in the field, the ID Select filter is enabled. Specifies the starting OCS register of eight (8) consecutive registers (4-32bit counters), which provide Status Register an indication of the network health.
Chapter 13: Protocol Configuration 13.4.2: Device Configuration This configuration is reached from the device list when adding or modifying an existing device. While 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.
Chapter 13: Protocol Configuration 13.5: Scan List This configuration list is reached from the Scan List button on the Protocol Config screen or the Mapping button on the Device List screen and provides a Scan List of the Data Mapping entries. To transfer data between the OCS and remote target, a Scan List must be created that defines each transaction.
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. Pasted items are added to the scan list even if they are duplicates.
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. Only 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.
Page 121
Chapter 13: Protocol Configuration Length Specifies the number of consecutive device registers that are transferred in this transaction. Note that some protocols can limit the length that can be transferred. However, typically the length is limited to 32. The configuration menu displays an error if a specified length is unacceptable. 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.
Page 122
Chapter 13: Protocol Configuration Polled Read/Write/Init On every transaction scan, a read target device register transaction occurs unless a local register value has changed. The write transaction only updates those local registers that have changed in value. If several non-consecutive local registers (contained in a single mapping entry) change value between transaction scans, it takes several consecutive scans to write each changed register.
14.10: Screen Brightness This chapter presents the user interface (or operator view) of the X10 and some of the model specific characteristics of the X10 as compared to the rest of the OCS line. This chapter does NOT cover building screens or using the Cscape graphics editor. For instructions on creating screens and using the graphics editor, refer to the Help File in Cscape.
Chapter 14: User Interface 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.
Chapter 14: User Interface Time/Date Object - When editing a Time/Date Table Object, all the keys, except the Up, Down, Left, and Right arrow keys, are grayed and disabled. The specific field (i.e. hour or minutes) is selected using the Left and Right arrows. The value in the selected field is changed by pressing either the Up or Down arrow.
That is, once a graphical object (button) is touched and held by a finger, the default touch slip sensitivity allows for a slight slip of the finger on the graphical object before the X10 assumes touch been released (equates to approximately a quarter inch of movement with a stylus).
Chapter 14: User Interface 14.7: Alarms Alarm presentation to the operator is highly configurable and beyond the scope of this document to describe fully. The alarm object is generally used to enunciate alarms to the operator. Alarm presentation to the operator is highly configurable and beyond the scope of this document to describe fully.
Chapter 14: User Interface 14.8: 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.
14.9: Screen Saver The X10 screen backlight life remains sufficiently bright for five (5) years. It will dim to 70% brightness if it is left on continuously for five (5) years. If the application does not require interaction with the X10 for long periods of time, the backlight life can be extended by using the screen saver function.
Memory Card slot whether the Horner controller power is On or Off. To install a microSD card: Align its 8-pin gold edge connector down, facing the front of the Horner controller unit as shown above; then carefully push it all the way into the Memory Card slot. Ensure that it clicks into place.
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.
15.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.
Chapter 15: Removable Media 15.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.
Chapter 15: Removable Media 15.6.3: Additional Configuration Alarms - Alarm data can be logged to a .csv file stored on Removable Media. 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.
Page 137
Chapter 15: Removable Media RM Status Values No card in slot Card present, but not supported Card swapped before operation was complete Unknown error Page 137 of 179...
Chapter 16: Clone Unit Chapter 16: Clone Unit 16.1: Make Clone 16.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 the following: Prime Series: retentive memory Non-Prime controllers: battery-backed RAM of an OCS into the RM This feature can be used for:...
Page 140
Chapter 16: Clone Unit Step 2: Selecting “Make Clone” will open the following menu screen. 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. Selecting Make Clone brings up the screen below for the user: Page 140 of 179...
Page 141
Chapter 16: Clone Unit After confirmation, the OCS will create two new files in the root directory of the Removable Media Drive as shown below. AUTOLOAD.PGM Application file CLONE.DAT File having all unit settings and register values NOTE: Make/Create clone operation automatically includes the security in \AUTOLOAD.PGM file for security enabled files. Once the cloning is successful, OCS gives a message as below: Page 141 of 179...
Chapter 16: Clone Unit 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.
Page 143
Chapter 16: Clone Unit Step 4: After confirmation, all unit settings and register values will be loaded from Removable media to the OCS memory (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”...
Chapter 17: Fail-Safe System for the XL and X Series Chapter 17: Fail-Safe System for the XL and X Series 17.1: For the XL & X Series 17.2: Fail-Safe System Overview 17.3: Settings 17.4: Backup/Restore Data 17.5: Clear Backup Data 17.6: AutoLoad 17.7: AutoRun 17.1: For the XL &...
Chapter 17: Fail-Safe System for the XL and X Series The fail-safe system can be accessed from the System Menu of the OCS; see the Fail-Safe System on the main System Menu. 17.3: Settings To use the Fail-Safe feature, the following steps are required: From Cscape, create AUTOLOAD.PGM for the application program using Export to Removable Media.
Chapter 17: Fail-Safe System for the XL and X Series 17.4.1: Backup OCS Data When initiated, the user can manually copy register contents onto the an alternate section of onboard flash memory of the OCS. This will have result in backing up all the registers and controller settings (Network ID, etc.) that would otherwise be lost due to a memory failure.
Page 148
Chapter 17: Fail-Safe System for the XL and X Series Exit: Goes back to the previous screen. Page 148 of 179...
Page 149
Chapter 17: Fail-Safe System for the XL and X Series The OCS follows the following sequence in execution of Automatic Restore: Page 149 of 179...
Chapter 17: Fail-Safe System for the XL and X Series 17.6: AutoLoad This System Menu option permits 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.
Page 151
Chapter 17: Fail-Safe System for the XL and X Series The OCS follows the following sequence in execution of AutoLoad: Page 151 of 179...
Chapter 17: Fail-Safe System for the XL and X Series 17.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.
Chapter 18: Modbus Communications Chapter 18: Modbus Communications 18.1: Modbus Slave Overview 18.2: Modbus Master Overview 18.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.
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.
Chapter 18: Modbus Communications 18.3: Modbus Addressing Table To access the registers, 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).
Save Firmware files to microSD card or USB, these are the removable media devices. Update the firmware through the controller’s Firmware Update Wizard 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.
Chapter 19: Firmware Updates 19.4: Firmware Update Steps Unzip all files from downloaded .zip file onto removable media. Establish communication between Cscape and the controller using a direct serial connection to MJ1 or USB. Make sure your application is available on your PC or upload the application. Make sure the machinery connected to the OCS is in a safe state for firmware update (refer to warning above).
Page 161
Chapter 19: Firmware Updates Auto firmware update via %SR’s Place “.s19” file in the root of microSD card and insert the card. When %SR154.9 is set to high, %SR154.16 bit goes high and controller will update the firmware which is placed in the root directory of SD Card. Once firmware update process is successful, %SR154.9 and %SR154.16 bits are reset (goes low).
Page 162
Chapter 19: Firmware Updates Auto firmware update via %SR’s Setting %SR154.10 and %SR154.11 high, whenever new firmware folder is placed in the microSD card, firmware update will happen automatically setting %SR154.16 bit high. Once firmware update process will be completed, %SR154.16 bit will be reset but %SR154.10 and %SR154.11 will remain high (for auto update of firmware).
WARNING: Do not make substitutions for the battery. Be sure to only use the authorized part number to replace the battery. The Micro OCS controller uses a 3V lithium coin battery which can be ordered from Horner APG, part number HE-BAT009.
Chapter 20: Battery 20.1.1: Lost Program If the user has created a backup, then the program, along with the register data, will be saved in the internal memory and can be auto-restored. To create a backup, go to System Menu > Failsafe > Backup/Restore. Click on the "Backup" button to store the program and register content in internal memory.
Page 166
Troubleshooting & Tech Support Page 166...
Chapter 21: Troubleshooting Chapter 21: Troubleshooting 21.1: Connecting to the OCS 21.2: Local Controller and Local I/O 21.3: CsCAN Network 21.4: USB Interfaces 21.5: Basic Troubleshooting 21.6: Technical Support Contacts 21.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.
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. Successful communications with USB-to-serial adapters vary. If in doubt, Horner APG offers a USB to serial adapter: part number HE-CPK.
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. 21.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.
Manual, MAN0799. The Horner OCS does not provide 24VDC to the network. An external voltage source must be used for other devices such as SmartStix I/O. Check voltage at both ends of the network to ensure that voltage meets specifications of attached devices.
21.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 171 of 179...
Load Clone Make Clone Communicating via MJ1 Serial Port Communicating via On Board Ethernet Port Configuration via Mini-B USB Connecting to the OCS Connectivity to the X10 CsCAN Network CsCAN Network Troubleshooting Checklist Cscape Configuration Establishing Communications Ethernet via PC...
Page 174
Scaling Analog Inputs Factors Affecting Panel Layout Design and Clearances Fail-Safe System AutoLoad AutoRun Backup/Restore Data Clear Backup Data Settings XL & X Series FCC Compliance Features of X10 Micro OCS Filenames Firmware Update Details Firmware Update Steps Page 174...
Page 175
Firmware Update via microSD card Firmware Updates Download Firmware For the XL & X Series Frequency Function Blocks in Cscape General I/O Configuration Digital Inputs Relay Outputs Scaling Analog Inputs Sinking & Sourcing Solid State Digital Outputs Ground Specifications Grounding High-Speed I/O Glossary HSC Functions...
Page 176
I/O Calibration I/O Register Map for X10 OCS I/O Status Installation Procedure Intro to the X10 Ladder-Controlled CAN Communication Ladder-Controlled Serial Communication Ladder Based Screen Navigation Load Clone Local Controller and Local I/O Local I/O Troubleshooting Checklist Log Data Make Clone...
Page 177
Device Configuration Device Driver Device List Network Configuration Network Protocols Scan List Protocol Device Driver Selection Pulse Pulse Width Modulation (PWM) Functions PWM Examples PWM Function Registers Map PWM Functions Register Map PWM Output Waveform Quadrature Register Definitions Registers HSC Functions PWM Function Registers Removable Media Relay Outputs...
Page 178
Screen Brightness Screen Navigation Screen Saver Screen Specifications Serial Communications %S-485 Termination & Biasing Cscape Programming via Serial Port Ladder-Controlled Mini-B USB MJ1/MJ2 Serial Ports Port Descriptions Serial Port – MJ1 Programming Shock and Vibration Sinking and Sourcing Outputs Solid-State Digital Outputs SR Registers Status Bar Sync Pulse Mode Table...
Page 179
View and Capture Screens Visual Overview Page 179...
Need help?
Do you have a question about the X10 and is the answer not in the manual?
Questions and answers