Table of Contents

Advertisement

Quick Links

User Manual
GFK-1503F
Jan 2020
PACSystems
VersaMax
TM
PLC USER MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Emerson PaCSystems VersaMax Series

  • Page 1 User Manual GFK-1503F Jan 2020 PACSystems VersaMax PLC USER MANUAL...
  • Page 2: Table Of Contents

    User Manual Contents GFK-1503F Jan 2020 Contents Chapter 1: Introduction ............1 The VersaMax Family of Products ..............2 CPU Modules for VersaMax PLCs ................3 1.2.1 Basic CPU Features ..................3 1.2.2 Available VersaMax CPUs ................3 1.2.3 EZ Program Store ..................4 Power Supplies ....................
  • Page 3 User Manual Contents GFK-1503F Jan 2020 Module Specifications ..................22 VersaMax General Product Specifications ............23 Serial Ports ......................24 3.4.1 Cable Lengths ..................25 3.4.2 Serial Port Baud Rates ................25 Ethernet LAN Port ....................26 Mode Switch ..................... 26 CPU LEDs ......................
  • Page 4 User Manual Contents GFK-1503F Jan 2020 4.7.1 Providing Power to an External Device from Port 2........41 4.7.2 Cable Lengths and Baud Rates ..............41 4.7.3 Port 1: RS-232 ..................41 4.7.4 Port 2: RS-485 ..................43 4.7.5 RS-485 Point to Point Connection with Handshaking ....... 44 4.7.6 RS-485 Multidrop Serial Connections ............
  • Page 5 User Manual Contents GFK-1503F Jan 2020 6.5.1 Selective Consumption ................67 Configuring Advanced User Parameters ............. 67 6.6.1 Format of the Advanced User Parameters File .......... 67 6.6.2 Example Advanced User Parameter File ........... 68 6.6.3 Advanced User Parameter Definitions ............. 68 Chapter 7: CPU Operation .............
  • Page 6 User Manual Contents GFK-1503F Jan 2020 8.4.2 Coils ......................85 8.4.3 Timers and Counters ................86 8.4.4 Math Functions ..................86 8.4.5 Relational Functions ................87 8.4.6 Bit Operation Functions ................87 8.4.7 Data Move Functions ................88 8.4.8 Table Functions ..................88 8.4.9 Conversion Functions ................
  • Page 7 User Manual Contents GFK-1503F Jan 2020 10.1.10 Bit Operation Functions Masked Compare ........110 10.1.11 Bit Operation Functions Bit Position ..........112 10.1.12 Bit Operation Functions Bit Sequencer ..........113 10.2 Control Functions .................... 116 10.2.1 Control Functions Do I/O ............... 116 10.2.2 Control Functions Call ................
  • Page 8 User Manual Contents GFK-1503F Jan 2020 10.7 Relay Functions ....................154 10.7.1 Relay Functions Normally-open, Normally-closed, Continuation Contacts154 10.7.2 Relay Functions Coils ................155 10.8 Table Functions ....................159 10.8.1 Table Functions Array Move..............159 10.8.2 Table Functions Search for Array Values ..........162 10.9 Timer and Counter Functions ................
  • Page 9 User Manual Contents GFK-1503F Jan 2020 11.11 SVCREQ 10: Read Folder Name ................ 189 11.11.1 Output Parameter Block Format for SVCREQ 10....... 189 11.11.2 Example of SVCREQ 10 ..............189 11.12 SVCREQ 11: Read PLC ID .................. 190 11.12.1 Output Parameter Block Format for SVCREQ 11....... 190 11.12.2 Example of SVCREQ 11 ..............
  • Page 10 User Manual Contents GFK-1503F Jan 2020 12.2 Configuring Serial Ports Using the COMMREQ Function ........204 12.2.1 Timing ....................204 12.2.2 Sending Another COMMREQ to the Same Port ........204 12.2.3 Invalid Port Configuration Combinations ..........205 12.2.4 12.2.4 RTU Slave/SNP Slave Operation With Programmer Attached ..205 12.2.5 Example COMMREQ Command Block for Configuring SNP Protocol ..
  • Page 11 User Manual Contents GFK-1503F Jan 2020 13.4.1 The Frequency of Sending/Receiving an Exchange ......... 229 13.4.2 The Consumer Update Timeout Period ..........229 13.4.3 Ethernet Global Data Groups ..............230 13.4.4 Timestamping of Ethernet Global Data Exchanges......... 231 13.4.5 Configuring NTP for the CPUE05 Ethernet Interface ....... 232 13.4.6 The Content of an Ethernet Global Data Exchange .........
  • Page 12 User Manual Contents GFK-1503F Jan 2020 14.4.1 Error Term ..................... 262 14.4.2 Derivative Term..................263 14.4.3 CV Bias Term ..................263 14.4.4 CV Amplitude and Rate Limits ............... 264 14.4.5 Sample Period and PID Function Block Scheduling ......... 265 14.5 Determining the Process Characteristics ............266 14.6 Setting Tuning Loop Gains ................
  • Page 13 User Manual Contents GFK-1503F Jan 2020 A-4.5 Modules Located in Single-ended Isolated Expansion Rack ....291 Ethernet Global Data Sweep Impact ..............292 A-5.1 Exchange Overhead ................292 A-5.2 Byte Transfer Time ................292 Support for Large Ethernet Global Data Configurations ........293 Contents xiii...
  • Page 14 Changes, modifications, and/or improvements to equipment and specifications are made periodically and these changes may or may not be reflected herein. It is understood that Emerson may make changes, modifications, or improvements to the equipment referenced herein or to the document itself at any time.
  • Page 15: Chapter 1: Introduction

    User Manual Chapter 1 GFK-1503F Jan 2020 Chapter 1: Introduction Guide to the VersaMax Document Set This manual contains general information about CPU operation and program content. It also provides detailed descriptions of specific programming requirements. Chapter 1: is a general introduction to the VersaMax family of products. CPU Modules are described in detail in Chapter 2:and Chapter 3:.
  • Page 16: The Versamax Tm Family Of Products

    User Manual Chapter 1 GFK-1503F Jan 2020 VersaMax DeviceNet Communications Describes the installation and operation of the Modules User’s Manual (catalog DeviceNet Network Interface Unit module and number GFK-1533) the DeviceNet Network Slave Module. VersaMax Profibus Communications Describes the installation and operation of the Modules User’s Manual (catalog Profibus Network Interface Unit module and the number GFK-1534)
  • Page 17: Cpu Modules For Versamax Plcs

    User Manual Chapter 1 GFK-1503F Jan 2020 CPU Modules for VersaMax PLCs A VersaMax PLC consists of a group of VersaMax modules with a VersaMax CPU and attached power supply in the first position. Figure 1 All VersaMax CPUs provide powerful PLC functionality. They are designed to serve as the system controller for up to 64 modules with up to 2048 I/O points.
  • Page 18: Ez Program Store

    User Manual Chapter 1 GFK-1503F Jan 2020 Figure 2 1.2.3 EZ Program Store The EZ Program Store device (IC200ACC003) can be used to store and update the configuration, application program, and reference table data of a VersaMax PLC. A programmer and PLC CPU are used to initially write data to the device. Figure 3 Introduction...
  • Page 19: Power Supplies

    User Manual Chapter 1 GFK-1503F Jan 2020 Power Supplies An AC or DC Power Supply provides +5V and +3.3V power to the modules in the rack. Additional power supplies can be installed on special booster carriers if needed for systems where the number of modules creates the need for a booster.
  • Page 20: I/O Modules

    User Manual Chapter 1 GFK-1503F Jan 2020 I/O Modules VersaMax IO and option modules are approximately 110mm (4.33in) by 66.8mm (2.63in) in size. Modules can be mounted either horizontally or vertically on several types of available I/O Carriers. Modules are 50mm (1.956 in) in depth, not including the height of the carrier or the mating connectors.
  • Page 21 User Manual Chapter 1 GFK-1503F Jan 2020 Input 24VDC Positive/Negative Logic (4 Groups of 8) 32 Point Module IC200MDL650 Discrete Output Modules Output 120VAC 0.5A per Point Isolated 8 Point Module IC200MDL329 Output 120VAC 0.5A per Point Isolated 16 Point Module IC200MDL330 Output 120VAC 2.0A per Point Isolated 8 Point Module IC200MDL331...
  • Page 22: Carriers

    User Manual Chapter 1 GFK-1503F Jan 2020 Analog Input Modules Analog Input Module, 15 Bit Differential Voltage 8 Channels IC200ALG261 Analog Input Module, 16 Bit Differential Current 8 Channels IC200ALG262 Analog Input Module, 15 Bit Voltage 15 Channels IC200ALG263 Analog Input Module, 15 Bit Current 15 Channels IC200ALG264 Analog Input Module, 16 Bit RTD, 4 Channels IC200ALG620...
  • Page 23: Available Carriers And Terminal Strips

    User Manual Chapter 1 GFK-1503F Jan 2020 Figure 6 1.5.1 Available Carriers and Terminal Strips The following types of Carriers, terminals, and cables are available: Terminal-Style I/O Carriers Barrier-Style Terminal I/O Carrier IC200CHS001 Box-Style Terminal I/O Carrier IC200CHS002 Spring-Style Terminal I/O Carrier IC200CHS005 Compact Terminal-Style I/O Carriers Compact Box-Style I/O Carrier...
  • Page 24: Expansion Modules

    User Manual Chapter 1 GFK-1503F Jan 2020 2 connectors, 0.5m, no shield IC200CBL105 2 connectors, 1.0m, no shield IC200CBL110 2 connectors, 2.0m, no shield IC200CBL120 1 connector, 3.0m, no shield IC200CBL230 Auxiliary I/O Terminal Strips for use with Terminal-style I/O Carriers and Interposing Terminals Barrier-Style Auxiliary I/O Terminal Strip IC200TBM001...
  • Page 25: Versamax Modules For Expansion Racks

    User Manual Chapter 1 GFK-1503F Jan 2020 Figure 8 1.6.1 VersaMax Modules for Expansion Racks All types of VersaMax I/O and communications modules can be used in expansion racks. Some VersaMax analog modules require specific module revisions as listed below: Module Module Revision IC200ALG320...
  • Page 26: Communications Modules

    User Manual Chapter 1 GFK-1503F Jan 2020 Communications Modules Communications modules provide additional flexibility for VersaMax systems. These communications modules install on a VersaMax Communications Carrier. Power for the communications module comes from the main system power supply or from a booster supply as shown below.
  • Page 27: Devicenet Network Control Module

    User Manual Chapter 1 GFK-1503F Jan 2020 1.7.3 DeviceNet Network Control Module The DeviceNet Network Control Module (IC200BEM103) is a communications module that can be configured to operate as a master, as a slave, or as both simultaneously. It can exchange up to 512 bytes of input data and 512 bytes of output data with other devices on the DeviceNet network.
  • Page 28: Chapter 2: Cpu Module Datasheets: Cpu001, Cpu002, Cpu00514

    User Manual Chapter 2 GFK-1503F Jan 2020 Chapter 2: CPU Module Datasheets: CPU001, CPU002, CPU005 This chapter describes the appearance, features, and functionality of the following VersaMax PLC CPU modules: • IC200CPU001 CPU with 34kB Configurable Memory • IC200CPU002 CPU with 42kB Configurable Memory •...
  • Page 29: Features

    User Manual Chapter 2 GFK-1503F Jan 2020 Features • Non-volatile flash memory for program storage. • Programming in Ladder Diagram, Sequential Function Chart, and Instruction List. • Battery backup for program, data, and time of day clock. • Run/Stop switch. •...
  • Page 30: Versamax General Product Specifications

    User Manual Chapter 2 GFK-1503F Jan 2020 VersaMax General Product Specifications VersaMax products should be installed and used in conformance with product-specific guidelines as well as the following specifications: Environmental Vibration IEC68-2-6 1G @57-150Hz, 0.012in p--p @10- 57Hz Shock IEC68-2-27 15G, 11ms Operating Temp.
  • Page 31: Serial Ports

    User Manual Chapter 2 GFK-1503F Jan 2020 Power Supply Input Dips, Variations EN 61000-4-11 During Operation: Dips to 30% and 100%, Variation for AC +/-10%, Variation for DC +/-20% Serial Ports The two serial ports are software-configurable for SNP slave or RTU master or slave operation.
  • Page 32: Serial Port Baud Rates

    User Manual Chapter 2 GFK-1503F Jan 2020 The following table compares the functions of Port 1 and Port 2. Port 1 Port 2 CPU Protocols (SNP slave, RTU Defaults to SNP slave Defaults to SNP slave master/slave, Serial I/O) Firmware Upgrade PLC in Stop/No I/O mode.
  • Page 33: Cpu Leds

    User Manual Chapter 2 GFK-1503F Jan 2020 Figure 12 CPU LEDs The seven CPU LEDs, visible through the module door, indicate the presence of power and show the operating mode and diagnostic status of the CPU. They also indicate the presence of faults, forces, and communications on the CPU’s two ports.
  • Page 34: Configurable Memory

    User Manual Chapter 2 GFK-1503F Jan 2020 FAULT ON if the CPU is in Stop/Faulted mode because a fatal fault has occurred. To turn off the Fault LED, clear both the I/O Fault Table and the PLC Fault Table. If this LED is blinking and the OK LED is OFF, a fatal fault was detected during PLC powerup diagnostics.
  • Page 35: Chapter 3: Cpu Module Datasheet: Cpue05

    User Manual Chapter 3 GFK-1503F Jan 2020 Chapter 3: CPU Module Datasheet: CPUE05 This chapter describes the appearance, features, and functionality of the following VersaMax PLC CPU module: IC200CPUE05: CPU with Two Serial Ports, Embedded Ethernet Interface, and 128K Configurable Memory CPU IC200CPUE05 shares the basic features of the other VersaMax PLC CPUs.
  • Page 36: Module Specifications

    User Manual Chapter 3 GFK-1503F Jan 2020 Module Specifications Item Description Size 4.95” (126mm) x 5.04” (128mm) Program storage System flash, battery-backed RAM Battery backup for program, data, Super capacitor provides power to memory for 1 hour and time-of-day clock Over 1 hour, backup battery protects memory contents up to 6 months.
  • Page 37: Versamax General Product Specifications

    User Manual Chapter 3 GFK-1503F Jan 2020 Item Description Configurable Advanced User Parameters CPUE05 requires a power supply with expanded 3.3V. VersaMax General Product Specifications VersaMax products should be installed and used in conformance with product-specific guidelines as well as the following specifications Environmental Vibration IEC60068-2-6...
  • Page 38: Serial Ports

    User Manual Chapter 3 GFK-1503F Jan 2020 Isolation Dielectric Withstand UL508, UL840, IEC664 1.5KV Power Supply Input Dips, Variations EN 61000-4-11 During Operation: Dips to 30% and 100%, Variation for AC +/-10%, Variation for DC +/-20% Serial Ports The two serial ports are software-configurable for SNP slave or RTU master or slave operation.
  • Page 39: Cable Lengths

    User Manual Chapter 3 GFK-1503F Jan 2020 The following table compares the functions of Port 1 and Port 2. Port 1 Port 2 CPU Protocols (SNP slave, RTU Defaults to SNP slave Defaults to SNP slave master/ slave, Serial I/O) Local Station Manager Yes (see above) Firmware Upgrade...
  • Page 40: Ethernet Lan Port

    User Manual Chapter 3 GFK-1503F Jan 2020 Port 1 Port 2 Only on one port at a time. Some versions of VersaPro software allow configuration of RTU and Serial I/O at 115.2K baud. However, this baud rate is not supported by the CPU. If a configuration using this baud rate is stored to the PLC: 1.
  • Page 41: Cpu Leds

    User Manual Chapter 3 GFK-1503F Jan 2020 Figure 17 CPU LEDs The seven CPU LEDs, visible through the module door, indicate the presence of power and show the operating mode and diagnostic status of the CPU. They also indicate the presence of faults, forces, and communications on the CPU’s two ports indicate the status of the 3.3V power output.
  • Page 42: Ethernet Restart Pushbutton

    User Manual Chapter 3 GFK-1503F Jan 2020 If this LED is flashing green and the Fault LED is ON, the module switch was moved from Stop to Run mode while a fatal fault existed. Toggling the switch will continue to Run mode. FAULT ON if the CPU is in Stop/Faulted mode because a fatal fault has occurred.
  • Page 43: Configurable Memory

    User Manual Chapter 3 GFK-1503F Jan 2020 STAT indicates the general status of the Ethernet interface. ON green indicates no “exception” detected. ON amber indicates an exception. Blinking amber indicates error code. Blinking green indicates waiting for configuration or waiting for IP address.
  • Page 44: Ethernet Interface Overview

    User Manual Chapter 3 GFK-1503F Jan 2020 3.11 Ethernet Interface Overview CPUE05 has a built-in Ethernet interface that makes it possible to communicate on a 10BaseT network. Both half-duplex and full-duplex operation are supported. Using 10/100 hubs allows CPUE05 to communicate on a network containing 100Mb devices.- 3.11.1 SRTP Server CPUE05 supports up to eight simultaneous SRTP Server connections for use by other devices...
  • Page 45: Chapter 4: Installation

    User Manual Chapter 4 GFK-1503F Jan 2020 Chapter 4: Installation This chapter describes: • Installing the CPU • Installing the power supply • Installing additional modules • Activating or replacing the backup battery • Serial port connections • Installing expansion modules •...
  • Page 46: Panel-Mounting

    User Manual Chapter 4 GFK-1503F Jan 2020 4. With a small flathead screwdriver, pull down on the DIN rail latch tab(s) on the bottom of the module and lift the module off the DIN rail. 4.1.2 Panel-Mounting For maximum resistance to mechanical vibration and shock, the equipment must also be installed on a panel.
  • Page 47: Installing An Expansion Transmitter Module

    User Manual Chapter 4 GFK-1503F Jan 2020 Installing an Expansion Transmitter Module If the VersaMax PLC will have more than one expansion rack or one expansion rack that uses an Isolated Expansion Receiver Module (IC200ERM001) as its interface to the expansion bus, an Expansion Transmitter Module must be installed to the left of the CPU.
  • Page 48: Installing An Expansion Receiver Module

    User Manual Chapter 4 GFK-1503F Jan 2020 Installing an Expansion Receiver Module An Expansion Receiver Module (IC200ERM001 or 002) must be installed in the leftmost slot of each VersaMax expansion “rack”. 1. Insert the label inside the small access door at the upper left corner of the module. 2.
  • Page 49: Expansion Rack Power Sources

    User Manual Chapter 4 GFK-1503F Jan 2020 4.3.2 Expansion Rack Power Sources Power for module operation comes from the Power Supply installed on the Expansion Receiver Module. If the expansion rack includes any Power Supply Booster Carrier and additional rack Power Supply, it must be tied to the same source as the Power Supply on the Expansion Receiver Module.
  • Page 50: Differential Inter-Rack Connection (Ic200Cbl601, 602, 615)

    User Manual Chapter 4 GFK-1503F Jan 2020 4.3.4 RS-485 Differential Inter-Rack Connection (IC200CBL601, 602, 615) Figure 28 4.3.5 Building a Custom Expansion Cable Custom expansion cables can be built using Connector Kit IC200ACC202, Crimper AMP 90800-1, and Belden 8138, Manhattan/CDT M2483, Alpha 3498C, or equivalent AWG #28 (0.089mm ) cable.
  • Page 51: Single-Ended Inter-Rack Connection (Ic200Cbl600)

    User Manual Chapter 4 GFK-1503F Jan 2020 4.3.7 Single-Ended Inter-Rack Connection (IC200CBL600) Figure 30 4.3.8 Power Sources for Single-Ended Expansion Rack Systems When operating the system in single-ended mode, power supplies for the main rack and expansion rack must use the same main power source. The main rack and expansion racks cannot be switched ON and OFF separately;...
  • Page 52: Removing The Power Supply

    User Manual Chapter 4 GFK-1503F Jan 2020 Figure 31 1. The latch on the power supply must be in the unlocked position. 2. Align the connectors and the latch post and press the power supply module down firmly, until the two tabs on the bottom of the power supply click into place. Be sure the tabs are fully inserted in the holes in bottom edge of the CPU, ERM, or carrier.
  • Page 53: Installing Additional Modules

    User Manual Chapter 4 GFK-1503F Jan 2020 Installing Additional Modules A CPU or Expansion Receiver Module can serve up to 8 additional I/O and option modules on the same section of DIN rail. Power must be off before adding a carrier to the “rack”. Before joining carriers to the CPU or ERM, remove the connector cover on the righthand side of the CPU/ERM.
  • Page 54: Activating Or Replacing The Backup Battery

    Lithium Battery Replacement To replace the battery, use a small screwdriver to gently pry open the battery holder. Replace battery only with one of the following: Emerson IC200ACC001 Panasonic BR2032 Use of another battery may present a risk of fire or explosion.
  • Page 55: Serial Port Connections

    User Manual Chapter 4 GFK-1503F Jan 2020 Serial Port Connections Figure 36 4.7.1 Providing Power to an External Device from Port 2 If either port is set up for communications with a serial device that requires 100mA or less at 5VDC, the device can obtain power from Port 2. 4.7.2 Cable Lengths and Baud Rates Maximum cable lengths (the total number of feet from the CPU to the last device attached...
  • Page 56 User Manual Chapter 4 GFK-1503F Jan 2020 Signal Direction Function Output Transmit Data output Input Receive Data input 0V/GND signal reference Input Clear to Send input Output Request to Send output Shell SHLD Cable Shield wire connection / 100% (Continuous) shielding cable shield connection RS-232 Point to Point Connection In point-to-point configuration, two devices are connected to the same communication...
  • Page 57: Port 2: Rs-485

    User Manual Chapter 4 GFK-1503F Jan 2020 Connector and Cable Specifications for Port 1 Vendor Part numbers below are provided for reference only. Any part that meets the same specification can be used. Cable: Belden Computer cable, overall braid over foil shield 9610 5 conductor †...
  • Page 58: Rs-485 Point To Point Connection With Handshaking

    User Manual Chapter 4 GFK-1503F Jan 2020 Signal Direction Function Output Transmit Data (B) output RTSB Output Request to Send (B) output CTSA’ Input Clear to Send (A) input Shell SHLD Cable Shield wire connection / 100% (Continuous) shielding cable shield connection Connector and Cable Specifications for Port 2 Vendor Part numbers below are provided for reference only.
  • Page 59: Rs-485 Multidrop Serial Connections

    User Manual Chapter 4 GFK-1503F Jan 2020 Figure 38 4.7.6 RS-485 Multidrop Serial Connections In the multidrop configuration, the host device is configured as the master and one or more PLCs are configured as slaves. The maximum distance between the master and any slave may not exceed 4000 feet (1200 meters).
  • Page 60: Ethernet Connection For Cpue05

    10BaseT hub or switch or a hub or repeater with auto- sense of 10/100 using a twisted pair cable. Cables are readily available from commercial distributors. Emerson recommends purchasing rather than making cables. Your 10BaseT twisted pair shielded cables must meet the applicable IEEE 802 standards.
  • Page 61: Ce Mark Installation Requirements

    User Manual Chapter 4 GFK-1503F Jan 2020 The cable between each node and a hub or repeater can be up to 100 meters in length. Typical hubs or repeaters support 4 to 12 nodes connected in a star wiring topology. Figure 42 CE Mark Installation Requirements The following requirements for surge, electrostatic discharge (ESD), and fast transient burst...
  • Page 62: Chapter 5: Configuration

    User Manual Chapter 5 GFK-1503F Jan 2020 Chapter 5: Configuration This chapter describes the process by which a VersaMax® CPU and the modules it serves are configured. Configuration determines certain characteristics of module operation and also establishes the program references that will used by each module in the system. •...
  • Page 63: Configuring "Racks" And "Slots

    User Manual Chapter 5 GFK-1503F Jan 2020 However, actually clearing a configuration from the programmer does cause a new autoconfiguration to be generated. In that case, autoconfiguration is enabled until a configuration is stored from the programmer again. One of the parameters that can be controlled by the software configuration is whether the CPU reads the configuration and program from Flash at powerup, or from RAM.
  • Page 64 User Manual Chapter 5 GFK-1503F Jan 2020 Figure 44 In a system with an Expansion Transmitter Module (IC200BTM001) and up to seven expansion “racks”, each with an Isolated Expansion Receiver Module (IC200ERM001 or IC200ERM002), the additional racks are configured as rack 1 through rack 7. Figure 45 Configuration...
  • Page 65: Software Configuration

    User Manual Chapter 5 GFK-1503F Jan 2020 Software Configuration The configuration software makes it possible to create a customized configuration for the VersaMax PLC system. For CPUE05, it is also used to configure Ethernet Global Data. When you enter Hardware Configuration for VersaMax equipment folders, the default view is the Rack (Main).
  • Page 66 User Manual Chapter 5 GFK-1503F Jan 2020 Parameter Description Default Choices Settings Parameters I/O Scan-Stop Yes, No Determines whether I/O is to be scanned while the PLC is in STOP mode. Powerup Mode Selects powerup mode. Last Last, Stop, Run Logic/Configuration Source of program and configuration when RAM, Flash...
  • Page 67: Configurable Memory For Cpu Module Ic200Cpu001, Cpu002, Cpu005

    User Manual Chapter 5 GFK-1503F Jan 2020 Parameter Description Default Choices EZ Program RAM only Specifies where data that is read from the EZ RAM only, RAM Program Store device will be loaded. & Flash Store Configuring CPU Memory Allocation CPU001 and CPU002 (release 2.0 or later), CPU005 and CPUE05 have configurable user memory.
  • Page 68: Configuring Serial Port Parameters

    User Manual Chapter 5 GFK-1503F Jan 2020 If you reconfigure memory allocation from the default sizes, storing a hardware configuration to the PLC in the future will clear memory contents. If you want to retain memory contents, first load memory contents from the PLC to the programmer. Then, re- store memory when you store the hardware configuration from the programmer to the PLC.
  • Page 69: Rtu And Serial Io Delays

    User Manual Chapter 5 GFK-1503F Jan 2020 Feature Description Default Choices SNP ID 8-byte ID for Port 1. None Editable Receive to Delay between receiving SNP: Not available transmit last character of a RTU and Serial IO: 0-255 delay message to asserting (units of 10ms, e.g.
  • Page 70: Configuration Required To Use Winloader

    User Manual Chapter 5 GFK-1503F Jan 2020 Figure 46 • is the Receive to Transmit delay • is the Turnaround Delay • is the RTS Drop Delay 5.3.6 Configuration Required to use Winloader The Winloader utility, which can be used for firmware updates, requires SNP configuration. If Port 1 is configured for another mode or forced to Local Station Manager operation, Winloader will not be able to do a firmware update on port 1.
  • Page 71: Autoconfiguration

    User Manual Chapter 5 GFK-1503F Jan 2020 Storing a Configuration with Non-default Memory Allocation If you reconfigure reference tables from the default sizes, storing a hardware configuration to the PLC in the future will clear memory contents. If you want to retain memory contents, first load reference memory contents from the PLC to the programmer.
  • Page 72: Autoconfiguration Assigns Reference Addresses

    User Manual Chapter 5 GFK-1503F Jan 2020 5.4.1 Autoconfiguration Assigns Reference Addresses Modules are automatically assigned reference addresses in ascending order. For example, if the system contains a 16-point input module, an 8- point input module, a 16-point output module, and another 16-point input module, in that order, the input modules are assigned reference addresses of %I0001, %I0017, and %I0025, respectively.
  • Page 73: Diagnostic Message Summary

    User Manual Chapter 5 GFK-1503F Jan 2020 5.4.3 Diagnostic Message Summary addition of A module is present at powerup but not configured. It is added to the module configuration. Autoconfiguration is enabled and the module is capable of being autoconfigured. addition of A previously-configured module is inserted after powerup.
  • Page 74: Chapter 6: Ethernet Configuration

    User Manual Chapter 6 GFK-1503F Jan 2020 Chapter 6: Ethernet Configuration This chapter describes the configuration needed for the Ethernet interface of VersaMax CPU module IC200CPUE05: • Ethernet configuration overview • Configuring the characteristics of the Ethernet interface • Configuring Ethernet Global Data •...
  • Page 75: Autoconfiguration

    User Manual Chapter 6 GFK-1503F Jan 2020 6.1.1 Autoconfiguration If the PLC CPU has not had a configuration stored from the programmer, it automatically creates its own configuration at powerup. To create the Autoconfiguration, the CPU reads configuration data from each module and from the Ethernet interface. This includes an Advanced User Parameter file for the Ethernet interface.
  • Page 76: Configuring Ethernet Global Data

    User Manual Chapter 6 GFK-1503F Jan 2020 Parameters Description Status Address The beginning reference for 10 bytes of Ethernet status data. The content of this data is described in chapter 13, “Checking the Status of the Ethernet Interface.” The Status address can be assigned to %I, %Q, %R, %AI or %AQ memory. The default value is the next available %I address.
  • Page 77: Configuring A Global Data Exchange For A Producer

    User Manual Chapter 6 GFK-1503F Jan 2020 • Determine for each PLC what data needs to be produced and consumed. • Make a list of the IP addresses of the Ethernet Interfaces in the PLCs that are being used to produce or consume the exchanges. •...
  • Page 78: Configuring A Global Data Exchange For A Consumer

    User Manual Chapter 6 GFK-1503F Jan 2020 Parameters Description Producer The scheduled repetition period for sending the data on the network. The range is 10–3,600,000 milliseconds (10 milliseconds to 1 hour). The default Period is 200 milliseconds. Round this value to the nearest 10 milliseconds before you enter it.
  • Page 79 User Manual Chapter 6 GFK-1503F Jan 2020 Parameters Description Adapter Name Always 0.0 for CPUE05 Producer ID The Local Producer ID of the device sending the exchange. Group ID Used only if the same data is consumed by more than one consuming device. Enter the same Group ID that has been configured as the “Consumer Address”...
  • Page 80 User Manual Chapter 6 GFK-1503F Jan 2020 Parameters Description Time Stamp A data range that identifies the memory location where the timestamp of the last data packet will be placed. The timestamp is not an actual date; it is an 8- byte value representing the time elapsed since midnight, January 1, 1970.
  • Page 81: Selective Consumption

    User Manual Chapter 6 GFK-1503F Jan 2020 6.5.1 Selective Consumption Not all data ranges within a produced exchange need to be consumed by each PLC. For example, a producer is producing an exchange consisting of a 4-byte floating point value, followed by a 2-byte integer, followed by a 2- byte analog value.
  • Page 82: Example Advanced User Parameter File

    User Manual Chapter 6 GFK-1503F Jan 2020 Parameter values are converted to lowercase unless they are enclosed in a pair of double quotes. The format for the individual parameter values depends on the parameter. Numeric parameters are entered in decimal or hexadecimal format; hexadecimal values must end with an ‘h’...
  • Page 83 User Manual Chapter 6 GFK-1503F Jan 2020 Name Description Default Range gXX_addr 224.0.7.XX 224.0.0.2 - IP group address for host group XX (must be class D address) 239.255.255.255 ittl 64 (0040H) 0-255 (00ffH) IP header default time-to-live (hop count) ifrag_tmr IP fragment timeout interval (in 3 (0003H) 0-65535 (ffffH)
  • Page 84: Chapter 7: Cpu Operation

    User Manual Chapter 7 GFK-1503F Jan 2020 Chapter 7: CPU Operation This chapter describes the operating modes of the VersaMax PLC CPUs, and shows the relationship between the application program execution and other tasks performed by the CPU. CPU Operating Modes The application program in a PLC executes repeatedly.
  • Page 85: Parts Of The Cpu Sweep

    User Manual Chapter 7 GFK-1503F Jan 2020 Parts of the CPU Sweep Figure 47 CPU Operation...
  • Page 86 User Manual Chapter 7 GFK-1503F Jan 2020 Parts of the CPU Sweep Start of Sweep Housekeeping includes the tasks necessary to prepare for the start of the sweep. Before starting the actual sweep, the CPU: Housekeeping Calculates the sweep time Schedules the start of the next sweep Determines the mode of the next sweep Updates the fault reference tables...
  • Page 87: Standard Cpu Sweep Operation

    User Manual Chapter 7 GFK-1503F Jan 2020 System Next, the CPU processes communications requests from intelligent option Communications modules. The modules are polled in round-robin fashion, so no module has Window priority. In default (“Run to Completion”) mode, the length of the system communications window is limited to 400 milliseconds.
  • Page 88: The Sweep Windows

    User Manual Chapter 7 GFK-1503F Jan 2020 7.2.1 The Sweep Windows The programmer communications window and the system communications window have two operating modes: Limited Mode The execution time of the window is 6ms. The window terminates when it has no more tasks to complete or when 6ms has elapsed.
  • Page 89: Cpu Stop Modes

    User Manual Chapter 7 GFK-1503F Jan 2020 If the Constant Sweep Timer expires before the sweep completes, the CPU still completes the entire sweep, including the windows. However, it automatically provides notice when a too-long sweep has occurred. On the next sweep after the oversweep, the CPU places an oversweep alarm in the PLC fault table.
  • Page 90: Controlling The Execution Of A Program

    User Manual Chapter 7 GFK-1503F Jan 2020 Controlling the Execution of a Program The VersaMax CPU Instruction Set contains several powerful Control functions that can be included in an application program to limit or change the way the CPU executes the program and scans I/O.
  • Page 91: Run/Stop Mode Switch Operation

    User Manual Chapter 7 GFK-1503F Jan 2020 Run/Stop Mode Switch Operation The CPU Run/Stop mode switch can be configured to place the CPU in Stop or Run mode. It can also be configured to prevent writing to program or configuration memory and forcing or overriding discrete data.
  • Page 92: Privilege Levels And Passwords

    User Manual Chapter 7 GFK-1503F Jan 2020 Privilege Levels and Passwords Passwords are an optional configurable feature of the VersaMax PLC. Passwords provide different levels of access privilege to the PLC when the programmer is in Online or Monitor mode. Passwords are not used if the programmer is in Offline mode. Passwords can restrict: •...
  • Page 93: Protection Level Request From Programmer

    User Manual Chapter 7 GFK-1503F Jan 2020 Level Access Description • Write to any data memory, but this does not include storing tables. • This includes the toggle/force of reference values but does not include overriding discrete I/O. • The PLC can be started or stopped. •...
  • Page 94 User Manual Chapter 7 GFK-1503F Jan 2020 Clearing Logic/Configuration, and References It is possible to clear logic, configuration, and references from the programmer with the CPU at any privilege level, even with the OEM key locked. Operators can clear logic, configuration, and references, and store a new application program to the CPU without knowing passwords.
  • Page 95: Chapter 8: Elements Of An Application Program

    User Manual Chapter 8 GFK-1503F Jan 2020 Chapter 8: Elements of an Application Program This chapter provides basic information about the application program for a VersaMax PLC. • Structure of an application program • Subroutines • Program languages • The Instruction Set Structure of an Application Program The application program consists of all the logic needed to control the operations of the PLC CPU and the modules in the system.
  • Page 96: Subroutines

    User Manual Chapter 8 GFK-1503F Jan 2020 Subroutines The program can consist of one Main program that executes completely during each CPU sweep. Figure 49 Or a program can be divided into subroutines. The maximum size of a main program or subroutine block is 64kB.
  • Page 97: Declaring A Subroutine

    User Manual Chapter 8 GFK-1503F Jan 2020 The main program is level 1. The program can include up to eight additional nested call levels. 8.2.1 Declaring a Subroutine A subroutine must be declared through the block declaration editor of the programming software.
  • Page 98: Ladder Diagram

    User Manual Chapter 8 GFK-1503F Jan 2020 Figure 54 8.3.2 Ladder Diagram This traditional PLC programming language, with its rung-like structure, executes from top to bottom. The logic execution is thought of as “power flow”, which proceeds down along the left “rail” of the ladder, and from left to right along each rung in sequence. Figure 55 The flow of logical power through each rung is controlled by a set of simple program functions that work like mechanical relays and output coils.
  • Page 99: The Instruction Set

    User Manual Chapter 8 GFK-1503F Jan 2020 Within a rung, there are many complex functions that can be used for operations like moving data stored in memory, performing math operations, and controlling communications between the CPU and other devices in the system. Some program functions, such as the Jump function and Master Control Relay, can be used to control the execution of the program itself.
  • Page 100: Timers And Counters

    User Manual Chapter 8 GFK-1503F Jan 2020 –(RM)– Retentive RESET Resets the associated discrete reference OFF if the coil receives power. The reference remains reset until set by an –(SM)– coil. Its state is retained through power failure and STOP-TO-RUN transition.
  • Page 101: Relational Functions

    User Manual Chapter 8 GFK-1503F Jan 2020 Convert to Performs a RAD_TO_DEG conversion on a real radian value. Degrees Convert to Performs a DEG_TO_RAD conversion on a real degree value. Radians scale Scaling Scales an input constant or word value. sqroot Square Root Finds the square root of an integer or real value.
  • Page 102: Data Move Functions

    User Manual Chapter 8 GFK-1503F Jan 2020 8.4.7 Data Move Functions move Move Moves one or more bits of data. blkmov Block Move Moves a block of up to 7 constants. blkclr Block Clear Clears to zero one or more bytes/words of memory. shfreg Shift Register Shifts one or more words or bits of data through a block of...
  • Page 103: Control Functions

    User Manual Chapter 8 GFK-1503F Jan 2020 Truncate to Double Truncates to a 32-bit signed number. The range is - →→dint Precision INT (from 2,147,483,648 to +2,147,483,647. REAL) 8.4.10 Control Functions call Call Causes a program execution to go to a specified subroutine block. do io Do I/O Services a specified range of inputs or outputs immediately (all...
  • Page 104: Chapter 9: Program Data

    User Manual Chapter 9 GFK-1503F Jan 2020 Chapter 9: Program Data This chapter describes the types of data that can be used in an application program, and explains how that data is stored in the VersaMax PLC’s memory. • Data memory references •...
  • Page 105: Bit Memory References

    User Manual Chapter 9 GFK-1503F Jan 2020 addresses 12467 12004 9.1.2 Bit Memory References Each bit memory address (reference) is on a bit boundary. Data is stored in bit memory as represented below. The illustration shows 160 individually-addressed bits, with address 1 in the upper left and address 160 in the lower right.
  • Page 106: Transition Bits And Override Bits

    User Manual Chapter 9 GFK-1503F Jan 2020 The PLC uses six types of references for data stored in bit memory. Normally used for discrete inputs, and viewable in the Input Status Table. Normally used for physical output references, and viewable in the Output Status Table. A %Q reference may be either retentive or non-retentive, depending on its use in the program.
  • Page 107: System Status References

    User Manual Chapter 9 GFK-1503F Jan 2020 The last time a %Q or %M reference is used with a coil, the coil type determines whether the data is retentive or non-retentive. For example, if %Q0001 was last programmed as the reference of a retentive coil, the %Q0001 data is retentive.
  • Page 108: S References

    User Manual Chapter 9 GFK-1503F Jan 2020 9.3.2 %S References References in %S memory are read only. Reference Name Definition %S0001 FST_SCN Set to 1 when the current sweep is the first sweep. %S0002 LST_SCN Reset from 1 to 0 when the current sweep is the last sweep. %S0003 T_10MS 0.01 second timer contact.
  • Page 109: Sa, %Sb, And %Sc References

    User Manual Chapter 9 GFK-1503F Jan 2020 9.3.3 %SA, %SB, and %SC References References in %SA, %SB, and %SC memory can be both read and written to. Reference Name Definition %SA0001 PB_SUM Set when a checksum calculated on the application program does not match the reference checksum.
  • Page 110: How Program Functions Handle Numerical Data

    User Manual Chapter 9 GFK-1503F Jan 2020 Reference Name Definition %SB0010 BAD_RAM Set when the CPU detects corrupted RAM memory at powerup. Cleared when RAM memory is valid at powerup. %SB0011 BAD_PWD Set when a password access violation occurs. Cleared when the PLC fault table is cleared.
  • Page 111 User Manual Chapter 9 GFK-1503F Jan 2020 Type Name Description Data Format WORD Word data type uses consecutive bits of data memory; but, instead of the bits in the data location representing a number, the bits are independent of each other. Each bit represents its own binary state (1 or 0).
  • Page 112: Real Numbers

    User Manual Chapter 9 GFK-1503F Jan 2020 9.4.1 Real Numbers The REAL data type, which can be used for some Math functions and Numerical functions, is actually floating point data. Floating-point numbers are stored in single precision IEEE- standard format. This format requires 32 bits, which occupy two (adjacent) 16-bit PLC words.
  • Page 113 User Manual Chapter 9 GFK-1503F Jan 2020 The following timing diagram represents the on/off time duration of these contacts Figure 58 These time-tick contacts represent specific locations in %S memory. Program Data...
  • Page 114: Chapter 10: Instruction Set Reference

    User Manual Chapter 10 GFK-1503F Jan 2020 Chapter 10: Instruction Set Reference This section is a reference to the functions in the VersaMax® PLC Instruction Set: Bit Operation Functions Math and Numerical Functions Logical AND, Logical OR Add, Subtract, Multiply, Divide Exclusive OR, Logical Invert (NOT) Modulo Division Shift Right/Shift Left...
  • Page 115: Bit Operation Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 10.1 Bit Operation Functions The Bit Operation functions perform comparison, logical, and move operations on bit strings. The Bit Operation functions are: • Logical AND • Logical OR • Exclusive OR • Logical Invert (NOT) •...
  • Page 116 User Manual Chapter 10 GFK-1503F Jan 2020 Logical AND If both bits examined by the Logical AND function are 1, a 1 is placed in the corresponding location in output string Q. If either or both bits are 0, a 0 is placed in string Q in that location. The Logical AND function can be used to build masks or screens, where only certain bits are passed through (bits opposite a 1 in the mask), and all other bits are set to 0.
  • Page 117: Bit Operation Functions Exclusive Or

    User Manual Chapter 10 GFK-1503F Jan 2020 10.1.3 Bit Operation Functions Exclusive OR The Exclusive OR function compares each bit in bit string I1 with the corresponding bit in string I2. If the bits are different, a 1 is placed in the corresponding position in the output bit string.
  • Page 118: Bit Operation Functions Exclusive Or

    User Manual Chapter 10 GFK-1503F Jan 2020 10.1.4 Bit Operation Functions Exclusive OR Example In the example, whenever %I0001 is set, the bit string represented by the nickname WORD3 is cleared (set to all zeros). Figure 63 10.1.5 Bit Operation Functions Logical Invert (NOT) The Logical Invert (NOT) function sets the state of each bit in the output bit string Q to the opposite of the state of the corresponding bit in bit string I1.
  • Page 119: Bit Operation Functions Shift Bits Right, Shift Bits Left

    User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Logical Invert Function Input/ Output Choices Description enable flow When the function is enabled, the operation is performed. Constant or reference for the word to be negated. I, Q, M, T, S, G, R, AI, AQ, constant flow, none The OK output is energized whenever enable is...
  • Page 120 User Manual Chapter 10 GFK-1503F Jan 2020 Figure 68 If the number of bits to be shifted (N) is greater than the number of bits in the array * 16, the array (Q) is filled with copies of the input bit (B1), and the input bit is copied to the output power flow (B2).
  • Page 121: Bit Operation Functions Rotate Bits Right,Rotate Bits Left

    User Manual Chapter 10 GFK-1503F Jan 2020 10.1.7 Bit Operation Functions Rotate Bits Right,Rotate Bits Left The Rotate Left function rotates all the bits in a string a specified number of places to the left. When rotation occurs, the specified number of bits is rotated out of the input string to the left and back into the string on the right.
  • Page 122: Bit Operation Functions Bit Test

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 70 10.1.8 Bit Operation Functions Bit Test The Bit Test function tests a bit within a bit string to determine whether that bit is currently 1 or 0. The result of the test is placed in output Q. Each sweep power is received, the Bit Test function sets its output Q to the same state as the specified bit.
  • Page 123: Bit Operation Functions Bit Set And Bit Clear

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 72 10.1.9 Bit Operation Functions Bit Set and Bit Clear The Bit Set function sets a bit in a bit string to 1. The Bit Clear function sets a bit in a string to 0.
  • Page 124: Bit Operation Functions Masked Compare

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 74 10.1.10 Bit Operation Functions Masked Compare The Masked Compare function compares the contents of two separate bit strings. It provides the ability to mask selected bits. Input string 1 might contain the states of outputs such as solenoids or motor starters.
  • Page 125 User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Masked Compare Function Input/ Output Choices Description enable flow Permissive logic to enable the function. R, AI, AQ Reference for the first bit string to be compared. For WORD only: I, Q, M, T, S, G R, AI, AQ Reference for the second bit string to be compared.
  • Page 126: Bit Operation Functions Bit Position

    User Manual Chapter 10 GFK-1503F Jan 2020 Example In the example, after first scan the Masked Compare Word function executes. It compares %M0001–16 with %M0017–32. %M0033–48 contain the mask. The value in %R0001 determines the bit position in the two input strings where the comparison starts. Figure 76 Before the function block is executed, the contents of the above references are: Figure 77...
  • Page 127: Bit Operation Functions Bit Sequencer

    User Manual Chapter 10 GFK-1503F Jan 2020 A string length of 1 to 256 words can be selected. The function passes power flow to the right whenever enable is ON. Figure 79 Parameters for the Bit Position Function Input/ Output Choices Description enable...
  • Page 128 User Manual Chapter 10 GFK-1503F Jan 2020 Figure 81 The operation of the function depends on the previous value of the parameter EN: R Current EN Previous EN Current Execution Execution Execution Bit Sequencer Execution Bit sequencer does not execute. Bit sequencer increments/decrements by 1.
  • Page 129 User Manual Chapter 10 GFK-1503F Jan 2020 Figure 82 Parameters for the Bit Sequencer Function Choices Description Input/ Output address Address is the location of the bit sequencer’s current step, length, and the last enable and OK status. enable flow When the function is enabled, if it was not enabled on the previous sweep and if R is not energized, the bit sequence shift is performed.
  • Page 130: Control Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 83 10.2 Control Functions This section describes the control functions, which may be used to limit program execution and to change the way the CPU executes the application program. • Service specified I/O: DO IO •...
  • Page 131 User Manual Chapter 10 GFK-1503F Jan 2020 Execution of the function continues until all inputs in the selected range have reported or all outputs have been serviced on the I/O modules. Program execution then returns to the next function. If the range of references includes an option module, all the input data (%I and %AI) or all the output data (%Q and %AQ) for that module will be scanned.
  • Page 132: Control Functions Call

    User Manual Chapter 10 GFK-1503F Jan 2020 Do I/O for Outputs If output references are specified, when the function receives power flow, the PLC writes the latest output values from the starting reference (ST) to the END reference to the output modules.
  • Page 133: Control Functions End Of Logic

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 88 10.2.3 Control Functions End of Logic The End of Logic function provides a temporary end of logic. The program executes from the first rung to the last rung or the End of Logic function, whichever is encountered first. The End of Logic function unconditionally terminates program execution.
  • Page 134: Control Functions Master Control Relay (Mcr) / End Mcr

    User Manual Chapter 10 GFK-1503F Jan 2020 10.2.4 Control Functions Master Control Relay (MCR) / End All rungs between an active Master Control Relay (MCRN) and its corresponding End Master Control Relay (ENDMCRN) function are executed without power flow to coils. The ENDMCRN associated with the Master Control Relay is used to resume normal program execution.
  • Page 135: Control Functions Jump, Label

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 93 10.2.5 Control Functions Jump, Label The Nested Jump instruction causes a portion of the program logic to be bypassed. Program execution continues at the Label specified. When the Jump is active, all coils within its scope are left at their previous states.
  • Page 136: Control Functions Comment

    User Manual Chapter 10 GFK-1503F Jan 2020 With a Jump, any function blocks between the Jump and the Label are not executed, and coils are not affected. In the example, when %I0002 is ON, the Jump is taken. Since the logic between the Jump and the Label is skipped, %Q0001 is unaffected (if it was ON, it remains ON;...
  • Page 137 User Manual Chapter 10 GFK-1503F Jan 2020 Power flow to the Enable input causes the Drum Sequencer to copy the content of a selected reference to the Out reference. Power flow to the Reset input or to the Step input selects the reference to be copied. The Control Block input is the beginning reference for the Drum Sequencer function’s parameter block, which includes information used by the function.
  • Page 138 User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output Drum Coil I, Q, M, T, G, This optional bit reference is set whenever the function block is enabled, none and Active Step is not equal to Preset Step. Dwell I, Q, M, T, G, This optional bit reference is set if the dwell time for the current step has...
  • Page 139: Data Move Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 2. The Active and Preset Step of the Drum Sequencer’s control block must be initialized for the Drum Sequencer to work or to pass power flow. Even if the Active Step is in the correct range (between 1 and length of the Pattern array) and the Preset Step is not used, the drum will not function if the Preset Step is not in the proper range.
  • Page 140 User Manual Chapter 10 GFK-1503F Jan 2020 reference. For example, if a constant value of 4 is specified for IN, then 4 is placed in the memory location specified by Q. If the length is greater than 1 and a constant is specified, then the constant is placed in the memory location specified by Q and the locations following, up to the length specified.
  • Page 141 User Manual Chapter 10 GFK-1503F Jan 2020 Example 1 When enabling input %Q0014 is ON, 48 bits are moved from memory location %M0001 to memory location %M0033. (%M0001 and %M0003 are defined as WORD types if length 3.) Figure 99 Even though the destination overlaps the source for 16 bits, the move is done correctly.
  • Page 142: Data Move Functions Block Move

    User Manual Chapter 10 GFK-1503F Jan 2020 10.3.2 Data Move Functions Block Move The Block Move function copies a block of seven constants to a specified location. When the Block Move function receives power flow, it copies the constant values into consecutive locations beginning at the destination specified in output Q.
  • Page 143: Data Move Functions Block Clear

    User Manual Chapter 10 GFK-1503F Jan 2020 10.3.3 Data Move Functions Block Clear The Block Clear function fills a specified block of data with zeros. When the function receives power flow, it writes zeros into the memory location beginning at the reference specified by IN.
  • Page 144: Data Move Functions Shift Register

    User Manual Chapter 10 GFK-1503F Jan 2020 10.3.4 Data Move Functions Shift Register The Shift Register function shifts one or more data words or data bits from a reference location into a specified area of memory. For example, one word might be shifted into an area of memory with a specified length of five words.
  • Page 145 User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output I, Q, M, T, SA, SB, ST contains the first bit or word of the shift register. For SC, G, R, AI, AQ SHFR_BIT, any discrete reference may be used; it does not need to be byte aligned.
  • Page 146: Data Move Functions Communication Request

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 108 10.3.5 Data Move Functions Communication Request The Communication Request (COMMREQ) function communicates with an intelligent module. Many types of COMM REQs have been defined. The information below describes only the basic format of the function. When the function receives power flow, a command block of data is sent to the specified module.
  • Page 147 User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output flow, none FT is energized if an error is detected processing the COMM REQ: The specified target address is not present (SYSID). The specified task is not valid for the device (TASK). The data length is 0.
  • Page 148: Data Type Conversion Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 10.4 Data Type Conversion Functions The Data Type Conversion functions are used to change a data item from one number type to another. Many programming instructions, such as math functions, must be used with data of one type.
  • Page 149: Data Type Conversion Functions Convert To Signed Integer

    User Manual Chapter 10 GFK-1503F Jan 2020 Example In the example, whenever input %I0002 is set and no errors exist, the integer at input location %I0017 through %I0032 is converted to four BCD digits, and the result is stored in memory locations %Q0033 through %Q0048.
  • Page 150: Data Type Conversion Functions Convert To Double Precision Signed Integer

    User Manual Chapter 10 GFK-1503F Jan 2020 Example In the example, whenever input %I0002 is set, the BCD-4 value in PARTS is converted to a signed integer and passed to the Addition function, where it is added to the signed integer value represented by the reference RUNNING.
  • Page 151: Data Type Conversion Functions Convert To Real Data

    User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output R, AI, AQ Reference that contains the double precision signed integer form of the original value. Example In the example, whenever input %I0002 is set, the integer value at input location %I0017 is converted to a double precision signed integer and the result is placed in location %R0001.
  • Page 152: Data Type Conversion Functions Convert Real Data To Word Data

    User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output flow, none OK is energized when the function is performed without error. R, AI, AQ The Real form of the original value in IN. Example In the example, the integer value of input IN is 678. The result value placed in %T0016 is 678.000.
  • Page 153: Data Type Conversion Functions Truncate Real Number

    User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Convert to Word Function Input/ Choices Description Output enable flow When the function is enabled, the conversion is performed. R, AI, AQ, constant IN contains a reference for the value to be converted to Word type.
  • Page 154: Math And Numerical Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Truncate Function Input/ Choices Description Output enable flow When the function is enabled, the conversion is performed. R, AI, AQ, constant IN contains a reference for the real value to be truncated.
  • Page 155: Math And Numerical Functions Add, Subtract,Multiply, Divide

    User Manual Chapter 10 GFK-1503F Jan 2020 Converting Data for the Math and Numerical Functions The program may need to include logic to convert data to a different type before using a Math or Numerical function. The description of each function includes information about appropriate data types.
  • Page 156 User Manual Chapter 10 GFK-1503F Jan 2020 Data Types for Standard Math Functions Standard math functions operate on these types of data: Signed integer DINT Double precision signed integer REAL Floating Point The input and output parameter data types must be the same (16 bits or 32 bits). Avoiding Overflows Be careful to avoid overflows when using Multiplication and Division functions.
  • Page 157: Math And Numerical Functions Modulo Division

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 124 10.5.2 Math and Numerical Functions Modulo Division The Modulo Division function divides one value by another of the same data type, to obtain the remainder. The sign of the result is always the same as the sign of input parameter I1. The Modulo function operates on these types of data: Signed integer DINT...
  • Page 158 User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Modulo Division Function Choices Description Input/ Output enable flow When the function is enabled, the operation is performed. I1 contains a constant or reference for the All data types: R, AI, AQ, constant value to be divided by I2.
  • Page 159: Math And Numerical Functions Scaling

    User Manual Chapter 10 GFK-1503F Jan 2020 10.5.3 Math and Numerical Functions Scaling The Scaling function scales an input parameter and places the result in an output location. For integer-type data, all parameters must be integer-based (signed). For wordtype data, all parameters must be word-based (unsigned) Figure 127 Parameters of the Scaling Function...
  • Page 160: Math And Numerical Functions Square Root

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 128 10.5.4 Math and Numerical Functions Square Root The Square Root function finds the square root of a value. When the function receives power flow, the value of output Q is set to the integer portion of the square root of the input IN. The output Q must be the same data type as IN.
  • Page 161: Math And Numerical Functions Trigonometric Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output All data types: R, AI, AQ, A constant or reference for the value whose square root is constant to be calculated. If IN is less than zero, the function will not pass power flow.
  • Page 162 User Manual Chapter 10 GFK-1503F Jan 2020 Inverse Sine, Cosine, and Tangent When an Inverse Sine, Cosine, or Tangent function receives power flow, it operates on IN and stores the result in output Q, whose units are radians. Both IN and Q are floating-point values.
  • Page 163: Math And Numerical Functions Logarithmic / Exponential Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 10.5.6 Math and Numerical Functions Logarithmic / Exponential Functions When a Logarithmic or Exponential function receives power flow, it performs the appropriate logarithmic/exponential operation on the Real value in input IN and places the result in output Q.
  • Page 164: Math And Numerical Functions Radian Conversion Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 134 10.5.7 Math and Numerical Functions Radian Conversion Functions When Degree/Radian Conversion function receives power flow, the appropriate conversion (radians to degrees or degrees to radians) is performed on the Real value in input IN and the result is placed in output Q.
  • Page 165: Relational Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 10.6 Relational Functions The Relational functions can be used to compare two numbers and to determine whether a number lies within a specified range. Equal Test two numbers for equality Not Equal Test two numbers for non-equality Greater Than Test whether one number is greater than another Greater Than or Equal...
  • Page 166: Relational Functions Equal, Not Equal, Less Than, Less/Equal, Greater Than, Greater/Equal

    User Manual Chapter 10 GFK-1503F Jan 2020 10.6.1 Relational Functions Equal, Not Equal, Less Than, Less/Equal, Greater Than, Greater/Equal Parameters for the Relational Functions Input/ Choices Description Output enable flow When the function is enabled, the operation is performed. R, AI, AQ, constant IN1 contains a constant or reference for the first value to be compared.
  • Page 167 User Manual Chapter 10 GFK-1503F Jan 2020 When the Range function is enabled, it compares the value of input IN against the range specified by limits L1 and L2. Either L1 or L2 can be the high or low limit. When the value is within the range specified by L1 and L2, inclusive, output parameter Q is set ON (1).
  • Page 168: Relay Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 IN Value %AI001 Q State %Q0001 < 0 0 — 100 > 100 10.7 Relay Functions • Normally Open Contact –| |– • Normally Closed Contact –|/|– • Normally Open Coil –( )– •...
  • Page 169: Relay Functions Coils

    User Manual Chapter 10 GFK-1503F Jan 2020 Normally Open Contact -| |- A normally open contact acts as a switch that passes power flow if the associated reference is ON (1). Normally Closed Contact -|/|- A normally closed contact acts as a switch that passes power flow if the associated reference is OFF (0).
  • Page 170 User Manual Chapter 10 GFK-1503F Jan 2020 References and Coil Checking When the level of coil checking is set to “single”, you can use a specific %M or %Q reference with only one Coil, but you can use it with one Set Coil and one Reset Coil simultaneously. When the level of coil checking is “warn multiple”...
  • Page 171 User Manual Chapter 10 GFK-1503F Jan 2020 Example In the example, coil E3 is ON when reference E1 is ON and reference E2 is OFF. Figure 143 Negated Coil A negated coil sets a discrete reference ON when it does not receive power flow. It is not retentive, so it cannot be used with system status references (%SA, %SB, %SC, or %G).
  • Page 172 User Manual Chapter 10 GFK-1503F Jan 2020 Negative Transition Coil If the reference associated with this coil is OFF, when the coil stops receiving power flow the reference is set to ON until the next time the coil is executed. Do not write from external devices to references used on negative transition coils since it will destroy the one-shot nature of these coils.
  • Page 173 User Manual Chapter 10 GFK-1503F Jan 2020 Retentive SET Coil Retentive SET and RESET coils are similar to SET and RESET coils, but they are retained across power failure or when the PLC transitions from to Run mode. A retentive SET coil sets a discrete reference ON if the coil receives power flow.
  • Page 174 User Manual Chapter 10 GFK-1503F Jan 2020 • (N + DNX – 1) is greater than (length). Figure 147 Parameters for the Array Move Function Input/ Choices Description Output enable flow When the function is enabled, the operation is performed. For all: R, AI, AQ SR contains the starting address of the source array.
  • Page 175 User Manual Chapter 10 GFK-1503F Jan 2020 Figure 148 Example 2: Using bit memory for SR and DS, %M0011 - %M0017 of the array %M0009 - %M0024 is read and then written to %Q0026 - %Q0032 of the array %Q0022 - %Q0037. (%M009 and %Q0022 are declared as type BOOL of length 16).
  • Page 176 User Manual Chapter 10 GFK-1503F Jan 2020 10.8.2 Table Functions Search for Array Values Use the Search functions listed below to search for values in an array. Search Equal Equal to a specified value. ▪ ▪ Search Not Equal Not equal to a specified value. ▪...
  • Page 177 User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output Output NX I, Q, M, T, G, R, AI, Holds the one-based position within the array of the search target. flow, none FD indicates that an array element has been found and the function was successful.
  • Page 178: Timer And Counter Functions

    User Manual Chapter 10 GFK-1503F Jan 2020 10.9 Timer and Counter Functions This section describes the timing and counting functions of the Instruction Set. The data associated with these functions is retentive through power cycles. • On-delay Stopwatch Timer • Off-delay Timer •...
  • Page 179: Timer And Counter Functions On Delay Stopwatch Timer

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 155 The control word stores the state of the boolean inputs and outputs of its associated function block in the following format: Figure 156 Bits 0 through 11 are used for timer accuracy; not for counters. If the Preset Value (PV) is not a constant, PV is normally set to a different location than the second word.
  • Page 180 User Manual Chapter 10 GFK-1503F Jan 2020 Figure 157 When the Current Value equals or exceeds the Preset Value PV, output Q is energized. As long as the timer continues to receive power flow, it continues accumulating until the maximum value is reached. Once the maximum value is reached, it is retained and output Q remains energized regardless of the state of the enable input.
  • Page 181 User Manual Chapter 10 GFK-1503F Jan 2020 Operation of the On Delay Timer Function Figure 158 ENABLE goes high; timer starts accumulating Current value reaches preset value PV; Q goes high RESET goes high; Q goes low, accumulated time is reset (CV=0) D. RESET goes low; timer then starts accumulating again ENABLE goes low;...
  • Page 182: Timer And Counter Functions On Delay Timer

    User Manual Chapter 10 GFK-1503F Jan 2020 10.9.2 Timer and Counter Functions On Delay Timer The On-Delay Timer (TMR) increments while it receives power flow and resets to zero when power flow stops. Time may be counted in tenths of a second (the default selection), hundredths of a second, or thousandths of a second.
  • Page 183 User Manual Chapter 10 GFK-1503F Jan 2020 Input/ Choices Description Output flow, none Output Q is energized when TMR is enabled and the current value is greater than or equal to the preset value. time tenths (0.1), Time increment for the low bit of the PV preset and CV hundredths (0.01), or current value.
  • Page 184: Timer And Counter Functions Off Delay Timer

    User Manual Chapter 10 GFK-1503F Jan 2020 Figure 162 10.9.3 Timer and Counter Functions Off Delay Timer The Off-Delay Timer increments while power flow is off and resets to zero when power flow is on. Time may be counted in tenths (0.1), hundredths (0.01), or thousandths (0.001) of a second.
  • Page 185 User Manual Chapter 10 GFK-1503F Jan 2020 Example In the example, an Off-Delay Timer is used to turn off an output (%Q00001) whenever an input (%I00001) turns on. The output is turned on again 0.3 seconds after the input goes off.
  • Page 186: Timer And Counter Functions Up Counter

    User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Off-Delay Timer Function Input/ Choices Description Output address The function uses three consecutive words (registers) of %R memory to store the following: • Current value (CV) = word 1. • Preset value (PV) = word 2.
  • Page 187: Timer And Counter Functions Down Counter

    User Manual Chapter 10 GFK-1503F Jan 2020 Parameters of the Up Counter Function Input/ Choices Description Output address The function uses three consecutive words (registers) of %R memory to store the following: • Current value (CV) = word 1. • Preset value (PV) = word 2.
  • Page 188 User Manual Chapter 10 GFK-1503F Jan 2020 The Current Value of the Down Counter is retentive on power failure; no automatic initialization occurs at power-up. Figure 168 Parameters of the Down Counter Function Input/ Choices Description Output address The function uses three consecutive words (registers) of %R memory to store the following: •...
  • Page 189 User Manual Chapter 10 GFK-1503F Jan 2020 Example 2: Keeping Track of Parts in a Temporary Storage Area The following example shows how the PLC can keep track of the number of parts in a temporary storage area. It uses an up/down counter pair with a shared register for the accumulated or current value.
  • Page 190: Chapter 11: The Service Request Function

    User Manual Chapter 11 GFK-1503F Jan 2020 Chapter 11: The Service Request Function This chapter explains the Service Request (SVCREQ) function, which requests a special PLC service. It describes SVCREQ parameters for the VersaMax CPU. • SVCREQ Function Numbers • Format of the SVCREQ Function •...
  • Page 191: Format Of The Svcreq Function

    User Manual Chapter 11 GFK-1503F Jan 2020 Function # Description Read Sweep Time from Beginning of Sweep Read Folder Name Read PLC ID reserved Shut Down the PLC Clear Fault Tables Read Last-Logged Fault Table Entry Read Elapsed Time Clock reserved Read I/O Override Status 19-22...
  • Page 192: Parameters Of The Svcreq Function

    User Manual Chapter 11 GFK-1503F Jan 2020 11.2.1 Parameters of the SVCREQ Function Input/ Choices Description Output enable flow When enable is energized, the service request is performed. I, Q M, T, G, R, AI, Contains the constant or reference for the requested AQ, constant service.
  • Page 193 User Manual Chapter 11 GFK-1503F Jan 2020 Enable Constant Sweep Mode To enable Constant Sweep mode, enter SVCREQ function #1 with this parameter block: Figure 174 Note: If the timer should use a new value, enter it in the second word. If the timer value should not be changed, enter 0 in the second word.
  • Page 194: Svcreq 2: Read Window Times

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 177 Example of SVCREQ 1 In this example, if contact OV_SWP is set, the Constant SweepTimer is read, the timer is increased by two milliseconds, and the new timer value is sent back to the PLC. The parameter block is in local memory at location %R0050.
  • Page 195: Output Parameter Block For Svcreq 2

    User Manual Chapter 11 GFK-1503F Jan 2020 11.4.1 Output Parameter Block for SVCREQ 2 The parameter block has a length of three words: High Byte Low Byte address Mode Value in ms Programmer Window address + 1 Mode Value in ms System Communications Window address + 2 must be zero...
  • Page 196: Svcreq 4: Change System Communications Window Mode

    User Manual Chapter 11 GFK-1503F Jan 2020 Example of SVCREQ 3 In the following example, when enabling input %I006 goes ON, the programmer communications window is enabled and assigned a value of 6ms. The parameter block is in reference memory location %R0051. Figure 180 11.6 SVCREQ 4: Change System Communications...
  • Page 197: Change/Read Number Of Words To Checksum

    User Manual Chapter 11 GFK-1503F Jan 2020 11.7 Change/Read Number of Words to Checksum Use SVCREQ 6 to read or change the number of words in the program to be checksummed. The function is successful unless some number other than 0 or 1 is entered as the requested operation.
  • Page 198: Svcreq 7: Read Or Change The Time-Of-Day Clock

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 185 11.8 SVCREQ 7: Read or Change the Time-of-Day Clock Use SVCREQ 7 to read or change the time of day clock in the PLC. The data can be either BCD or ASCII. Either 2-digit-year or 4-digit-year format is available. The function is successful unless some number other than 0 (read) or 1 (change) is entered for the requested operation, or an invalid data format is specified, or data is provided in an unexpected format.
  • Page 199: Svcreq 7 Parameter Block Content: Bcd Format

    User Manual Chapter 11 GFK-1503F Jan 2020 Words 3 to the end of the parameter block contain output data returned by a read function, or new data being supplied by a change function. In both cases, format of these data words is the same.
  • Page 200: Svcreq 7 Parameter Block Content: Packed Ascii Format

    User Manual Chapter 11 GFK-1503F Jan 2020 11.8.3 SVCREQ 7 Parameter Block Content: Packed ASCII Format In Packed ASCII format, each digit of the time and date items is an ASCII formatted byte. Spaces and colons are embedded into the data to format it for printing or display. ASCII format requires 12 words in the parameter block (13 words for 4-digit year).
  • Page 201 User Manual Chapter 11 GFK-1503F Jan 2020 Parameter Block Format: Example: High Byte: Low Byte Read Date and Time in BCD format (Sun., July 3, 1998, at 2:45:30 p.m.) Minutes (ones) minutes (tens) address + 9 33 (3) 31 (1) Seconds (tens) : (colon) address + 10...
  • Page 202: Svcreq 8: Reset Watchdog Timer

    User Manual Chapter 11 GFK-1503F Jan 2020 11.9 SVCREQ 8: Reset Watchdog Timer Use SVCREQ 8 to reset the watchdog timer during the sweep. Ordinarily, when the watchdog timer expires, the PLC shuts down without warning. SVCREQ 8 allows the timer to keep going during a time-consuming task (for example, while waiting for a response from a communications line) CAUTION...
  • Page 203: Svcreq 10: Read Folder Name

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 188 11.11 SVCREQ 10: Read Folder Name Use SVCREQ 10 to read the name of the currently-executing folder. 11.11.1 Output Parameter Block Format for SVCREQ 10 The output parameter block has a length of four words. It returns eight ASCII characters; the last is a null character (00h).
  • Page 204: Svcreq 11: Read Plc Id

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 189 11.12 SVCREQ 11: Read PLC ID Use SVCREQ 11 to read the name of the PLC executing the program. 11.12.1 Output Parameter Block Format for SVCREQ 11 The output parameter block has a length of four words. It returns eight ASCII characters; the last is a null character (00h).
  • Page 205: Svcreq 13: Shut Down (Stop) Plc

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 190 11.13 SVCREQ 13: Shut Down (Stop) PLC Use SVCREQ 13 to stop the PLC at the end of the next sweep. All outputs go to their designated default states at the start of the next PLC sweep. An informational Shut Down PLC fault is placed in the PLC Fault Table.
  • Page 206: Svcreq 14: Clear Fault

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 191 11.14 SVCREQ 14: Clear Fault Use SVCREQ 14 to clear either the PLC fault table or the I/O fault table. The SVCREQ output is set ON unless some number other than 0 or 1 is entered as the requested operation. 11.14.1 Input Parameter Block for SVCREQ 14 For this function, the parameter block has a length of 1 word.
  • Page 207: Svcreq 15: Read Last-Logged Fault Table Entry

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 192 11.15 SVCREQ 15: Read Last-Logged Fault Table Entry Use SVCREQ 15 to read the last entry logged in either the PLC fault table or the I/O fault table. The SVCREQ output is set ON unless some number other than 0 or 1 is entered as the requested operation or the fault table is empty.
  • Page 208: Long/Short Value

    User Manual Chapter 11 GFK-1503F Jan 2020 Parameter Block Format: I/O Fault Table Output Format High Byte: Low Byte High Byte: Low Byte spare long/short address + 1 memory type long/short spare spare address + 2 offset slot rack address + 3 slot rack task...
  • Page 209: Svcreq 16: Read Elapsed Time Clock

    User Manual Chapter 11 GFK-1503F Jan 2020 Figure 193 11.16 SVCREQ 16: Read Elapsed Time Clock Use SVCREQ 16 to read the system's elapsed time clock. The elapsed time clock measures the time in seconds since the PLC was powered on. 11.16.1 Output Parameter Block for SVCREQ 16 This function has an output parameter block only.
  • Page 210: Svcreq 18: Read I/O Override Status

    User Manual Chapter 11 GFK-1503F Jan 2020 The subtraction function finds the difference between the first and second readings, which have been stored in the SVCREQ parameter blocks. The subtraction ignores the hundred microsecond ticks. The difference between the two readings is placed in memory location %R0250. Figure 194 11.17 SVCREQ 18: Read I/O Override Status...
  • Page 211: Svcreq 23: Read Master Checksum

    User Manual Chapter 11 GFK-1503F Jan 2020 11.18 SVCREQ 23: Read Master Checksum Use SVCREQ 23 to read the master checksums of the application program and the configuration. The SVCREQ output is always ON if the function is enabled. 11.18.1 Output Parameter Block for SVCREQ 23 For this function, the output parameter block has a length of 12 words with this format: The first two items in the output parameter block indicate when the program and...
  • Page 212: Svcreq 24: Reset Ethernet Daughter Board

    User Manual Chapter 11 GFK-1503F Jan 2020 11.19 SVCREQ 24: Reset Ethernet Daughter Board Service request #24 is added for user to reset Ethernet daughterboard from ladder. The FNC number “24” is the instruction number to reset Ethernet daughterboard on IC200CPUE05. The first WORD in the parameter block for the SVC_REQ #24 should be “0”...
  • Page 213: Svcreq 26/30: Interrogate I/O

    User Manual Chapter 11 GFK-1503F Jan 2020 11.20 SVCREQ 26/30: Interrogate I/O Use SVCREQs 26 and 30 to check whether the installed modules match the software configuration. If not, these SVCREQs place appropriate addition, loss, and mismatch faults in the PLC and/or I/O fault tables. SVCREQs 26 and 30 both perform the same function. The more configuration faults there are, the longer it takes these SVCREQs longer to execute.
  • Page 214: Example Of Svcreq 29

    User Manual Chapter 11 GFK-1503F Jan 2020 11.21.2 Example of SVCREQ 29 In the example, when input %I0251 is ON, the Elapsed Power-Down Time is placed into the parameter block that starts at %R0050. The output coil (%Q0001) is turned on. Figure 199 The Service Request Function...
  • Page 215: Chapter 12: Serial I/O / Snp / Rtu Protocols

    User Manual Chapter 12 GFK-1503F Jan 2020 Chapter 12: Serial I/O / SNP / RTU Protocols This chapter describes the VersaMax CPU’s Serial I/O feature, which can be used to control the read/write activities of one of the CPU ports directly from the application program. This chapter also contains instructions for using COMMREQs to configure the CPU serial ports for SNP, RTU, or Serial I/O protocol.
  • Page 216: Parameters Of The Commreq Function

    User Manual Chapter 12 GFK-1503F Jan 2020 The COMMREQ requires that all its command data be placed in the correct order (in a command block) in the CPU memory before it is executed. The COMMREQ should then be executed by a contact of a one-shot coil to prevent sending the data multiple times. A series of Block Move (BLKMV) commands should be used to move the words to create a command block in the Register tables.
  • Page 217: Command Block For The Commreq Function

    User Manual Chapter 12 GFK-1503F Jan 2020 12.1.2 Command Block for the COMMREQ Function The Command Block starts at the reference specified in COMMREQ parameter IN. The length of the Command Block depends on the amount of data sent to the device. The Command Block contains the data to be communicated to the other device, plus information related to the execution of the COMMREQ.
  • Page 218: Configuring Serial Ports Using The Commreq Function

    User Manual Chapter 12 GFK-1503F Jan 2020 12.2 Configuring Serial Ports Using the COMMREQ Function The following tables list the command block values required for setting up a Serial Port for SNP, RTU, and Serial I/O. All values are in hexadecimal unless otherwise indicated. The BLKMV commands that are used to create the command block are described in the example.
  • Page 219: Invalid Port Configuration Combinations

    User Manual Chapter 12 GFK-1503F Jan 2020 12.2.3 Invalid Port Configuration Combinations The configurations of both ports must be compatible. One port must be available for PLC programmer connection. The CPU rejects the following combinations: Port 1 Port 2 Disabled Disabled Disabled Serial I/O...
  • Page 220: Example Commreq Command Block For Configuring Snp Protocol

    User Manual Chapter 12 GFK-1503F Jan 2020 After the programmer is removed, there is a slight delay (equal to the configured SNP T3’ timeout) before the CPU recognizes its absence. During this time, no messages are processed on the port. The CPU detects removal of the programmer as an SNP Slave protocol timeout.
  • Page 221: Example Commreq Data Block For Configuring Rtu Protocol

    User Manual Chapter 12 GFK-1503F Jan 2020 Values Meaning Address + 9 7=38400, 6=19200, 5=9600, Data Rate 4=4800 Address + 10 0 = None, 1 = Odd, 2 = Even Parity Address + 11 1 = None Flow Control Address + 12 0 = None, 1 = 10ms, 2 = 100ms, Turnaround Delay 3 = 500ms...
  • Page 222 User Manual Chapter 12 GFK-1503F Jan 2020 Values Meaning Address + 10 0 = None, 1 = Odd, 2 = Even Parity Address + 11 0 = Hardware, 1 = None Flow Control Address + 12 0-255 (units of 10ms, Turnaround delay e.g.
  • Page 223: Example Commreq Data Block For Configuring Serial I/O Protocol

    User Manual Chapter 12 GFK-1503F Jan 2020 12.2.7 Example COMMREQ Data Block for Configuring Serial I/O Protocol Values Meaning First 6 words Reserved for COMMREQ use. Address + 6 FFF0H Command Address + 7 Protocol: 0005=Serial IO Address + 8 0 = Slave Port Mode Address + 9...
  • Page 224: Calling Serial I/O Commreqs From The Plc Sweep

    User Manual Chapter 12 GFK-1503F Jan 2020 12.3 Calling Serial I/O COMMREQs from the PLC Sweep Implementing a serial protocol using Serial I/O COMMREQs may be restricted by the PLC sweep time. For example, if the protocol requires that a reply to a certain message from the remote device be initiated within 5mS of receiving the message, this method may not be successful if the PLC sweep time is 5mS or longer, since timely response is not guaranteed.
  • Page 225 User Manual Chapter 12 GFK-1503F Jan 2020 Major Error Description Code 1 (01h) Successful Completion (this is the expected completion value in the COMMREQ status word). 12 (0Ch) Local error —Error processing a local command. The minor error code identifies the specific error.
  • Page 226: Serial I/O Commreq Commands

    User Manual Chapter 12 GFK-1503F Jan 2020 Major Error Description Code 6 (06h) Modem responded with BUSY. Modem is unable to complete the requested connection. The remote modem is already in use; retry the connection request later. 7 (07h) Modem responded with NO CARRIER. Modem is unable to complete the requested connection.
  • Page 227: Overlapping Commreqs

    User Manual Chapter 12 GFK-1503F Jan 2020 12.4.1 Overlapping COMMREQs Some of the Serial I/O COMMREQs must complete execution before another COMMREQ can be processed. Others can be left pending while others are executed. 12.4.2 COMMREQS that Must Complete Execution •...
  • Page 228: Set Up Input Buffer Function (4301)

    User Manual Chapter 12 GFK-1503F Jan 2020 Example Command Block for the Initialize Port Function VALUE VALUE MEANING (decimal) (hexadecimal) address 0001 0001 Data block length address +1 0000 0000 NOWAIT mode address +2 0008 0008 Status word memory type (%R) address +3 0000 0000...
  • Page 229: Flush Input Buffer Function (4302)

    User Manual Chapter 12 GFK-1503F Jan 2020 Example Command Block for the Set Up Input Buffer Function VALUE VALUE MEANING (decimal) (hexadecimal) address 0002 0002 Data block length address +1 0000 0000 NOWAIT mode address +2 0008 0008 Status word memory type (%R) address +3 0000 0000...
  • Page 230: Read Port Status Function (4303)

    User Manual Chapter 12 GFK-1503F Jan 2020 12.4.7 Read Port Status Function (4303) This function returns the current status of the port. The following events can be detected: • A read request was initiated previously, and the required number of characters has now been received or the specified time-out has elapsed.
  • Page 231: Write Port Control Function (4304)

    User Manual Chapter 12 GFK-1503F Jan 2020 Name Definition Meaning Cleared New Read Bytes or Read String invoked Read Time-out Receive timeout occurred during Read Bytes or Read String Cleared New Read Bytes or Read String invoked Write In progress New Write Bytes invoked Cleared Previously-invoked Write Bytes has timed...
  • Page 232: Cancel Commreq Function (4399)

    User Manual Chapter 12 GFK-1503F Jan 2020 VALUE VALUE MEANING (decimal) (hexadecimal) address +5 0000 0000 Not used address +6 4304 10D0 Write port control command address +7 xxxx xxxx Port control word Port Control Word The Port Control Word can be: Commanded state of the RTS output 1 = Activates RTS 0 = Deactivates RTS...
  • Page 233: Autodial Function (4400)

    User Manual Chapter 12 GFK-1503F Jan 2020 VALUE VALUE MEANING (decimal) (hexadecimal) address +2 0008 0008 Status word memory type (%R) address +3 0000 0000 Status word address minus 1 (%R0001) address +4 0000 0000 Not used address +5 0000 0000 Not used address +6...
  • Page 234: Write Bytes Function (4401)

    User Manual Chapter 12 GFK-1503F Jan 2020 Autodial Command Block The Autodial command automatically transmits an Escape sequence that follows the Hayes convention. If you are using a modem that does not support the Hayes convention, you may be able to use the Write Bytes command to dial the modem. Examples of commonly used command strings for Hayes-compatible modems are listed below: Command String...
  • Page 235: Read Bytes Function (4402)

    User Manual Chapter 12 GFK-1503F Jan 2020 Up to 250 characters can be transmitted with a single invocation of this operation. The status of the operation is not complete until all of the characters have been transmitted or until a timeout occurs (for example, if hardware flow control is being used and the remote device never enables the transmission).
  • Page 236 User Manual Chapter 12 GFK-1503F Jan 2020 If insufficient characters are available to satisfy the request and a non-zero value is specified for the number of characters to read, the status of the operation is not complete until either sufficient characters have been received or the time-out interval expires. In either of those conditions, the port status indicates the reason for completion of the read operation.
  • Page 237: Read String Function (4403)

    User Manual Chapter 12 GFK-1503F Jan 2020 As data is received from the serial port it is placed in the internal input buffer. If the buffer becomes full, then any additional data received from the serial port is discarded and the Overflow Error bit in the Port Status word (See Read Port Status Function) is set 12.4.13 Read String Function (4403)
  • Page 238 User Manual Chapter 12 GFK-1503F Jan 2020 Return Data Format for the Read String Function The return data consists of the number of characters actually read, the number of characters still available in the input buffer after the read is complete (if any), and the actual input characters: address Number of characters actually read...
  • Page 239: Chapter 13: Ethernet Communications

    User Manual Chapter 13 GFK-1503F Jan 2020 Chapter 13: Ethernet Communications This chapter describes the Ethernet communications features of VersaMax® CPU model IC200CPUE05. • Overview of the Ethernet interface • IP Addressing • Routers • Ethernet Global Data • Checking the status of an Ethernet Global Data exchange Diagnostic Tools •...
  • Page 240: Ethernet Global Data

    Maintain compatibility with other devices. CPUE05 is compatible with the Emerson Series 90-30 Ethernet Interface, Series 90-30 CPU364 Embedded Ethernet Interface, and Series 90-70 Ethernet Interface (Type 2). It is also compatible with Emerson programming packages supporting TCP/IP Ethernet communications.
  • Page 241: The Station Manager Software

    User Manual Chapter 13 GFK-1503F Jan 2020 13.1.5 The Station Manager Software CPUE05 provides built-in Station Manager support. It accommodates online diagnostic and supervisory access through either the Station Manager port or via Ethernet. Station Manager services include: • An interactive set of commands for interrogating and controlling the station. •...
  • Page 242: Routers

    User Manual Chapter 13 GFK-1503F Jan 2020 Range of first integer Class 0 - 127 128 - 191 192 - 223 224-239 D (Reserved for Multicast Use) 240 - 255 E (Reserved for Experimental Use) RFC 1918 reserves IP addresses in the following ranges for private networks. 10.0.0.0 –...
  • Page 243: Ethernet Global Data

    The range is 0 for no timeout detection, or 10 to 3,600,000 milliseconds. The consumer’s timeout period should be greater than the producer’s repetition period. Emerson recommends that the consumer timeout be set to no lower than twice the production period,...
  • Page 244: Ethernet Global Data Groups

    User Manual Chapter 13 GFK-1503F Jan 2020 13.4.3 Ethernet Global Data Groups If more than one device on the network should consume a Global Data exchange, those devices can be set up as a group. The network can include up to 32 numbered groups. Groups allow each sample from the producer to be seen simultaneously by all consumers in the group.
  • Page 245: Timestamping Of Ethernet Global Data Exchanges

    User Manual Chapter 13 GFK-1503F Jan 2020 13.4.4 Timestamping of Ethernet Global Data Exchanges The PLC CPU timestamps each Ethernet Global Data Message it produces. The timestamp indicates when the data was transferred from the producing PLC's CPU to its Ethernet interface for transmission over the network.
  • Page 246: Configuring Ntp For The Cpue05 Ethernet Interface

    User Manual Chapter 13 GFK-1503F Jan 2020 • NTP Server Time Clock: If time servers are configured and present on the network (see chapter 6 for configuration details), the Ethernet interface’s built-in clock is periodically synchronized to the clock from one to three NTP servers on the network. The Ethernet interface periodically requests time from the servers and uses the time from the most accurate server (based on NTP stratum number).
  • Page 247: The Content Of An Ethernet Global Data Exchange

    User Manual Chapter 13 GFK-1503F Jan 2020 13.4.6 The Content of an Ethernet Global Data Exchange ranges transmitted as a sequence of 1 to 1400 bytes of data. The content of the data is defined for both the producer and consumers of the data. In this example, a producer sends an 11-byte exchange consisting of the current contents of %R00100 through % R00104 followed by the current contents of %I00257 through %I00264: Address...
  • Page 248: Effect Of Plc Modes And Actions On Ethernet Global Data

    User Manual Chapter 13 GFK-1503F Jan 2020 Different exchanges may share some or all of the same data ranges even if the exchanges are produced at different rates. A consumer does not have to consume all of the data from a produced exchange.
  • Page 249 User Manual Chapter 13 GFK-1503F Jan 2020 In general, it is not useful or necessary to configure the production period to be less than the CPU sweep time. If the producer period for an exchange is set lower than the CPU sweep time, the Ethernet interface will send a “stale”...
  • Page 250: Diagnostic Tools

    Station Manager. 13.5.1 What to do if you Cannot Solve the Problem If you still cannot solve your problem, call Emerson – NA, 1- 800-433–2682. Please have the following information available when you call. •...
  • Page 251 User Manual Chapter 13 GFK-1503F Jan 2020 1. Turn power OFF to the PLC for 3–5 seconds, then turn the power back ON. This starts a series of diagnostic tests. During powerup diagnostics, after a brief delay the STAT LED on the Ethernet side of the CPU module blinks. Both the LAN and PORT1 LEDs are off.
  • Page 252 User Manual Chapter 13 GFK-1503F Jan 2020 Ethernet LEDs Indications Actions 3 – 2 unexpected SWI interrupt 3 – 3 prefetch abort error 3 - 4 data abort error 3 – 5 unexpected IRQ request 3 – 6 unexpected FIQ interrupt 3 - 7 reserved exception...
  • Page 253 User Manual Chapter 13 GFK-1503F Jan 2020 Ethernet LEDs Indications Actions Waiting for IP Address LAN: Ethernet interface is offline. Attempting to recover if STAT Slow blink green possible. PORT 1 Amber STAT: IP Address has not been configured. PORT 1: PLC CPU is controlling Port 1.
  • Page 254: Using The Plc Fault Table

    User Manual Chapter 13 GFK-1503F Jan 2020 Ethernet LEDs Indications Actions Operational LAN: Ethernet interface is offline. Attempting to recover STAT Green if possible. PORT 1 Amber STAT: No “exception” detected PORT 1: Forced to Station Manager use Software Load No action necessary;...
  • Page 255 Internal system error. * LAN system-software fault; restarted LAN IF LAN system-software fault; resuming Module software corrupted; requesting Catastrophic internal system error. Contact Emerson reload Technical Support at https://www.emerson.com/Industrial-Automation- Controls/support. Module state doesn’t permit COMMREQ received when Ethernet interface cannot process COMMREQ.
  • Page 256: Checking The Status Of The Ethernet Interface

    Attempt has been made to configure a feature not supported by the Ethernet interface. Check CPU revision; order upgrade kit for CPU and/or Ethernet interface. * If the problem persists, contact Emerson– NA. 13.5.4 Checking the Status of the Ethernet Interface The application program can monitor the status of the Ethernet interface using the status bits described below.
  • Page 257: Checking The Status Of An Ethernet Global Data Exchange

    User Manual Chapter 13 GFK-1503F Jan 2020 Bit 16: LAN Interface identify the problem. The Station Manager STAT B and LOG commands can also provide more information. 13.5.5 Checking the Status of an Ethernet Global Data Exchange To check the status of any Ethernet Global Data exchange, monitor the value in the Exchange Status word (selected during Ethernet Global Data configuration).
  • Page 258: Using The Ethernet Station Manager Function

    User Manual Chapter 13 GFK-1503F Jan 2020 Value Error Description (Decimal) Lack of resource Produced and Consumed: Local resources are not available to error establish the exchange. Look in the PLC Fault Table for details. Length error Consumed only: The packet received did not match the length expected.
  • Page 259: Plc Timeout Errors

    User Manual Chapter 13 GFK-1503F Jan 2020 13.6.1 PLC Timeout Errors When the SRTP traffic to the CPUE05 exceeds the PLC’s ability to process the requests, PLC Timeout errors may occur. PLC Timeout errors will take down an SRTP Server connection; in this case, the remote SRTP client must reestablish a new SRTP connection to the CPUE05.
  • Page 260: Egd Configuration Mismatch Errors

    User Manual Chapter 13 GFK-1503F Jan 2020 Restart errors are indicated in the PLC Fault Table as one or more of the following: “Loss of daughterboard” (no exception Event) “ Reset of daughterboard” (no exception Event) “ LAN system-software fault; restarted LAN I/F” with exception Event = 3, Entry 2 = 1, Entry 3 = 5f0fH After any of the above errors, the Ethernet interface restarts itself automatically without manual intervention.
  • Page 261: Receive Resource Exhaustion Errors

    User Manual Chapter 13 GFK-1503F Jan 2020 Cause Corrective Action Producer and Consumer exchange Review the conflicting exchange definitions at the definitions are of different size. producer and at the consumer. Change the incorrect exchange definition so that produced and consumed definitions are the same size.
  • Page 262: Srtp Connection Timeout

    If all the SRTP connections in the CPUE05 are in use or otherwise unavailable, a new SRTP client connection must wait until the TCP reconnect time expires on an existing connection. The SRTP connection timeout is normal expected behavior and is consistent with other Emerson PLC products. Ethernet Communications...
  • Page 263: Chapter 14: Pid Built-In Function Block

    User Manual Chapter 14 GFK-1503F Jan 2020 Chapter 14: PID Built-in Function Block This chapter describes the PID (Proportional plus Integral plus Derivative) built-in function block, which is used for closed-loop process control. • Operands of the PID Function • Reference Array for the PID Function •...
  • Page 264: Parameters Of The Pid Function Block

    User Manual Chapter 14 GFK-1503F Jan 2020 14.1.1 Parameters of the PID Function Block Parameter Description Allowed Types Allowed Optional Operands Address Location of the PID reference array, WORD R, L, P, W and which contains user-configurable symbolic (????) and internal parameters, described on Reference Array Parameters later in this chapter.
  • Page 265: Scaling Input And Outputs

    User Manual Chapter 14 GFK-1503F Jan 2020 The configurable words of the reference array must be specified before executing the PID function. Zeros can be used for most default values. Once suitable PID values have been chosen, they can be defined as constants in BLKMOV functions so the program can set and change them as needed.
  • Page 266 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units 3 (Address + 2) Sample Period 10 ms. 0 (every sweep) to The shortest time, in 10 ms. increments, between solutions of the PID algorithm. For 65535 example, use a 10 for a 100ms.
  • Page 267 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units PID_IND: Derivative Gain (Kd) 0.01 0 to 327.67 (Address + 6) PID_ISA: Derivative Time (Td = Kd) seconds PID_IND: Change in the Control Variable in CV Counts if the Error or PV changes 1 PV Count every 10 ms.
  • Page 268 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units 8 (Address + 7) PID_IND: Integral Rate (Ki) Repeats/ 0 to 32.767 repeats/sec PID_ISA: Integral Rate (1/Ti = Ki) 0.001 Sec. PID_IND: Rate of change in the Control Variable in CV Counts per second when the Error is a constant 1 PV Count.
  • Page 269 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units 12 (Address + Minimum Slew Time Seconds / 0 (none) to Full Travel Minimum number of seconds for the CV output 32000 sec to to move from 0 to full travel of 100% or 32000 move full CV CV Counts.
  • Page 270 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units Config Word Low 6 bits Boolean used (Address + The low 6 bits of this word are used to modify default PID settings. The other bits should be set to 0. Bit 0: Error Term Mode.
  • Page 271 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units 14 (Address + Manual Command CV Counts Tracks CV in Auto or sets Set to the current CV output while the PID block CV in is in Automatic mode. When the block is Manual switched to Manual mode, this value is used to set the CV output and the internal value of the...
  • Page 272 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units Enable Should normally be 1. Otherwise, block is never called. UP / Raise If 1 and Manual (bit 1) is 1, CV is incremented every solution. DN / Lower If 1 and Manual (bit 1) is 1, CV is decremented...
  • Page 273 User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units Output Set and Non- maintained configurable (Address +18) Signed word value representing the output of by the CPU. the function block before the optional inversion. If the output polarity bit in the Config Word is set to 0, this value equals the CV output.
  • Page 274: Operation Of The Pid Function

    User Manual Chapter 14 GFK-1503F Jan 2020 Words Parameter/Description Low Bit Range Units 31, 32 (Address Previous Derivative Term Storage Set and Non- maintained configurable Used in calculations for derivative filter. Do not by the CPU. 30, Address write to these locations. + 31) 33 –40 Reserved...
  • Page 275: Time Interval For The Pid Function

    User Manual Chapter 14 GFK-1503F Jan 2020 This operation, with the Manual Command tracking CV in Automatic mode and setting CV in Manual mode, provides a bump-less transfer between Automatic and Manual modes. The CV Upper and Lower Clamps and the Minimum Slew Time always apply to the CV output in Manual mode and the integral term is always updated.
  • Page 276: Error Term

    User Manual Chapter 14 GFK-1503F Jan 2020 The ISA (PID_ISA) algorithm has different coefficients for the terms: PID Output = Kc * (Error + Error * dt/Ti + Td * Derivative) + CV Bias where Kc is the controller gain, Ti is the Integral time and Td is the Derivative time. The advantage of PID_ISA is that adjusting Kc changes the contribution for the integral and derivative terms as well as the proportional term, which can simplify loop tuning.
  • Page 277: Derivative Term

    User Manual Chapter 14 GFK-1503F Jan 2020 14.4.2 Derivative Term The Derivative Term is Kd (word 7 of the reference array) multiplied by the time rate of change of the Error term in the interval since the last PID solution. Derivative = Kd * ∆Error / dt = Kd * (Error –...
  • Page 278: Cv Amplitude And Rate Limits

    User Manual Chapter 14 GFK-1503F Jan 2020 If a non-zero Integral rate is used, the CV Bias will normally be 0 as the integral term acts as an automatic bias or “reset.” Just start up in Manual mode and use the Manual Command word (word 14 of the reference array) to set the desired CV, and then switch to Automatic mode.
  • Page 279: Sample Period And Pid Function Block Scheduling

    User Manual Chapter 14 GFK-1503F Jan 2020 14.4.5 Sample Period and PID Function Block Scheduling The PID function block is a digital implementation of an analog control function, so the dt sample time in the PID Output equation is not the infinitesimally small sample time available with analog controls.
  • Page 280: Determining The Process Characteristics

    User Manual Chapter 14 GFK-1503F Jan 2020 14.5 Determining the Process Characteristics The PID loop gains, Kp, Ki and Kd, are determined by the characteristics of the process being controlled. Two key questions when setting up a PID loop are: •...
  • Page 281: Setting Tuning Loop Gains

    User Manual Chapter 14 GFK-1503F Jan 2020 14.6 Setting Tuning Loop Gains 14.6.1 Basic Iterative Tuning Approach Because PID parameters are dependent on the process being controlled, there are no predetermined values that will work. However, a simple iterative process can be used to find acceptable values for Kp, Ki, and Kd gains.
  • Page 282: Ideal Tuning Method

    User Manual Chapter 14 GFK-1503F Jan 2020 Kp = 0.9/(R * Tp) = 0.9 * Tc/(K * Tp) Ki = 0.3 * Kp/Tp For Proportional, Integral and Derivative control, use: Kp = G/(R * Tp) where G is from 1.2 to 2.0 Ki = 0.5 * Kp/Tp Kd = 0.5 * Kp * Tp 3.
  • Page 283 User Manual Chapter 14 GFK-1503F Jan 2020 Reference Array Initialization using %M00006 For details on the contents of the reference array, refer to the section, Reference Array for the PID Function earlier in this chapter Reference Reference Array Initialization Reference Array Reference Array Array using %M00006...
  • Page 284 User Manual Chapter 14 GFK-1503F Jan 2020 Figure 216 PID Built-in Function Block...
  • Page 285: Chapter 15: The Ez Program Store Device

    User Manual Chapter 15 GFK-1503F Jan 2020 Chapter 15: The EZ Program Store Device This chapter describes the VersaMax EZ Program Store device (IC200ACC003), which can be used to transfer program, configuration, and reference tables data from one PLC to one or more others of the same type.
  • Page 286: Read/Write/Verify Data With A Programmer Present

    User Manual Chapter 15 GFK-1503F Jan 2020 Figure 218 The EZ Program Store device and PLC must both have no OEM key password or the same OEM key password for an update to occur. The EZ Program Store device does not perform special processing for other types of passwords.
  • Page 287: Including All The Necessary Information

    User Manual Chapter 15 GFK-1503F Jan 2020 WARNING Do not use the pushbutton on the EZ Program Store device to invoke an update while: 1. Loading program logic, configuration data, and/or reference tables from the PLC to the programmer. 2. Verifying program logic, configuration data, and/or reference tables in the PLC with the programmer.
  • Page 288: Using The Ez Program Store Device With The Programmer

    User Manual Chapter 15 GFK-1503F Jan 2020 The EZ Program Store device can be used to update data in a PLC’s RAM memory only, or in both RAM and Flash memory. In the configuration data stored to the EZ Program Store device, be sure to specify which type of memory should be updated.
  • Page 289: Update A Plc Cpu Without A Programmer Present

    User Manual Chapter 15 GFK-1503F Jan 2020 This blinking indicates that the Run/Stop switch is enabled, regardless of the configuration of the switch. 3. If the EZ Program Store device’s LED is green and the PLC’s Run LED is blinking, stop the PLC by moving the Run/Stop switch from the On/Run position to the Stop/Off position.
  • Page 290 User Manual Chapter 15 GFK-1503F Jan 2020 Figure 222 If the PLC is in Run mode when the EZ Program Store device is connected, the Run LED on the PLC blinks at a 1 Hz rate. This blinking indicates that the Run/Stop switch is enabled, regardless of the configuration of the switch.
  • Page 291 User Manual Chapter 15 GFK-1503F Jan 2020 3. To start the update, press the pushbutton on the EZ Program Store device. Figure 225 The LED on the EZ Program Store device turns amber and the Port 2 LED on the PLC blinks. Figure 226 4.
  • Page 292: Error During Update

    User Manual Chapter 15 GFK-1503F Jan 2020 Figure 227 When the PLC is placed into Run mode (by moving the Run/Stop switch from Stop/Off to Run/On position) it uses the new data immediately. 15.2.1 Error During Update If the EZ Program Store device’s LED is blinking green/amber and the CPU’s Run LED is blinking, an error was detected before the old data was erased.
  • Page 293: Appendix A: Performance Data

    User Manual Appendix A GFK-1503F Jan 2020 Appendix A: Performance Data This section presents performance data collected on the VersaMax CPUs IC200CPU001, CPU002, CPU005, and CPUE05. The data includes base sweep time, sweep impact of Boolean instructions, function block sweep impact times, function block sizes, and I/O module scan time data.
  • Page 294: A-3.2 Sizes Of Timers, Counters, Math Functions, Trig Functions, Log Functions280

    User Manual Appendix A GFK-1503F Jan 2020 All timings represent typical execution time. Timings may vary with input and error conditions. Each timing includes the time to execute one contact, and normal overhead including a connection with a programmer. Note: Timings listed in previous versions of this manual did not include this overhead.
  • Page 295: A-3.3 Sizes Of Exponential Functions, Radian Conversion, Relational Functions

    User Manual Appendix A GFK-1503F Jan 2020 Group Function CPU001/002 CPU005/E05 Increment Size Enabled Disabled Enabled Disabled Modulo Division – (INT) Modulo Division – (DINT) Square Root – (INT) Square Root – (DINT) Square Root – (REAL) Scale (INT) – Scale (WORD) –...
  • Page 296: A-3.4 Sizes Of Bit Operations, Data Move Functions

    User Manual Appendix A GFK-1503F Jan 2020 Group Function CPU001/002 CPU005/E05 Increme Size Enable Disable Enable Disable Not Equal (REAL) – Greater Than (INT) – Greater Than (DINT) – Greater Than (REAL) – – Greater Than/Equal (INT) Greater Than/Equal – (DINT) Greater Than/Equal –...
  • Page 297 User Manual Appendix A GFK-1503F Jan 2020 Group Function CPU001/002 CPU005/E05 Increment Size Enabled Disabled Enabled Disabled Rotate Bit 18.45 Left Rotate Bit 18.41 Right Bit Position 76 – Bit Clear – Bit Test – Bit Set – Mask – Compare (WORD) Mask...
  • Page 298: A-3.5 Sizes Of Table Functions

    User Manual Appendix A GFK-1503F Jan 2020 A-3.5 Sizes of Table Functions The size of a function is the number of bytes consumed in user logic space for each instance of the function in a ladder diagram application program. Group Function CPU001/002 CPU005/E05...
  • Page 299: A-3.6 Sizes Of Conversion And Control Functions

    User Manual Appendix A GFK-1503F Jan 2020 Group Function CPU001/002 CPU005/E05 Incremen Size Enabled Disabled Enabled Disabled DINT 7.13 BYTE 2.58 WORD 6.66 Search Less Than/Equal 6.66 DINT 7.13 BYTE 2.59 WORD 6.66 A-3.6 Sizes of Conversion and Control Functions The size of a function is the number of bytes consumed in user logic space for each instance of the function in a ladder diagram application program.
  • Page 300 User Manual Appendix A GFK-1503F Jan 2020 Group Function CPU001/002 CPU005/E05 Increment Size Enabled Disabled Enabled Disabled – PID – ISA Algorithm PID – IND – Algorithm Service Request – #7 (Read) – #7 (Set) 2610 2211 – #14 ** –...
  • Page 301: I/O Module Scan Times

    User Manual Appendix A GFK-1503F Jan 2020 I/O Module Scan Times The tables that follow show typical scan times for modules in a VersaMax PLC. Each module was configured with its default settings and user power was applied when applicable. Four tables are included: •...
  • Page 302: A-4.2 Modules Located In Main Plc Rack

    User Manual Appendix A GFK-1503F Jan 2020 A-4.2 Modules Located in Main PLC Rack CPU005/CPUE05 CPU001/CPU002 Main Rack Main Rack Module Type Input Output Input Output Discrete Input Type 1 * Discrete Input Type 2 * Discrete Output Type 1 * Discrete Output Type 2 * Discrete Output w/ ESCP Per Point Fault Reporting...
  • Page 303: A-4.3 Modules Located In Single-Ended Expansion Rack

    User Manual Appendix A GFK-1503F Jan 2020 A-4.3 Modules Located in Single-ended Expansion Rack The table below shows timing for modules located in a single-ended expansion rack with a non-isolated Expansion Receiver module ((C200ERM002). This type of system does NOT have an Expansion Transmitter module (IC200ETM001) in the main rack.
  • Page 304: A-4.4 Modules Located In Multiple Remote Expansion Rack

    User Manual Appendix A GFK-1503F Jan 2020 A-4.4 Modules Located in Multiple Remote Expansion Rack The table below shows timing for modules located in the expansion racks of a multiple-rack expansion system that uses only Isolated Expansion Receiver Modules (IC200ERM001). In this type of system, there is an Expansion Transmitter module (IC200ETM001) in the CPU rack.
  • Page 305: A-4.5 Modules Located In Single-Ended Isolated Expansion Rack

    User Manual Appendix A GFK-1503F Jan 2020 A-4.5 Modules Located in Single-ended Isolated Expansion Rack The table below shows timing for modules located in an expansion rack in a single-ended expansion system that has an Isolated Expansion Receiver Module (IC200ERM001) in the expansion rack and an Expansion Transmitter module (IC200ETM001) in the CPU rack.
  • Page 306: Ethernet Global Data Sweep Impact

    User Manual Appendix A GFK-1503F Jan 2020 Ethernet Global Data Sweep Impact Depending on the relationship between the CPU sweep time and Ethernet Global Data (EGD) exchange’s period, the exchange data may be transferred every sweep or periodically after some number of sweeps. Therefore, the sweep impact will vary based on the number of exchanges that are scheduled to be transferred during the sweep.
  • Page 307: Support For Large Ethernet Global Data Configurations

    User Manual Appendix A GFK-1503F Jan 2020 Support for Large Ethernet Global Data Configurations The VersaMax CPUE05 Ethernet Global Data (EGD) feature supports a configuration of up to 32 exchanges, at periods as short as 10 ms, with data sizes as large as 1400 bytes. However, the CPUE05 cannot support a configuration in which every aspect of EGD is maximized.
  • Page 308 Note: If the product is purchased through an Authorized Channel Partner, please contact the seller directly for any support. Emerson reserves the right to modify or improve the designs or specifications of the products mentioned in this manual at any time without notice.

Table of Contents