background image

The Ethernet interface updates these status bits every PLC I/O scan. The Ethernet status
bits normally occupy a single block of memory. Most of these bits are reserved. Five are
of interest for checking the status of the Ethernet interface:

Status Bits

Brief Description

1–2

Reserved, always 0

3

Full-duplex

4–12

Reserved, always 0

13

LAN OK

14

Resource problem

15

Reserved, always 0

16

LAN Interface OK

17-80

Reserved

Bit 3:

Full Duplex

If this bit 3 is 1, CPUE05 is operating in full-duplex Ethernet

mode. Full-duplex or half-duplex operation is automatically

negotiated between the CPUE05 and its

immediately-connected network device, usually a network

hub. If this bit is 0, CPUE05 is operating in half-duplex

Ethernet mode. This bit is only valid if bit 13 (LAN OK) is 1.

Bit 13:

LAN OK

This bit is 1 while the Ethernet interface is able to

communicate on the network. If the network is not accessible

due to local or network problems, this bit is 0. When

communication resumes, it is automatically set to 1.

Bit 14:

Resource Problem

This bit is 1 whenever the Ethernet interface has a resource

problem (i.e., lack of data memory). The bit is reset to 0 on a

subsequent PLC sweep. The Ethernet interface may or may

not be able to continue functioning, depending on the severity

of the problem. Use the PLC Fault Table to identify the

problem. The Station Manager STAT B and LOG commands

can also provide more information.

Bit 16:

LAN Interface OK

When this bit is 1, the Ethernet interface is properly

initialized. When this bit is 0, all other Ethernet status bits are

invalid.

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). The PLC
automatically writes exchange status information in this location when:

a producer/consumer period expires ( the value is set for the entire period)

an Ethernet Global Data configuration is stored to the PLC

the PLC powers up and it has an Ethernet Global Data configuration

the Ethernet interface configured for Ethernet Global Data is restarted

266

GFK-1503E

VersaMax PLC User Manual

For public disclosure

Summary of Contents for VersaMax PLC

Page 1: ...GE Intelligent Platforms GFK 1503E VersaMax PLC User Manual September 2015 For public disclosure ...

Page 2: ...nding patent applications covering subject matter in this document The furnishing of this document does not provide any license whatsoever to any of these patents GE provides the following document and the information included therein as is and without warranty of any kind expressed or implied including but not limited to any implied statutory warranty of merchantability or fitness for particular ...

Page 3: ...terface Unit module and the DeviceNet Network Slave Module GFK 1534 VersaMax Profibus Communications Modules User Manual Describes the installation and operation of the Profibus Network Interface Unit module and the Profibus Network Communications Module GFK 1535 VersaMax Genius NIU User Manual Describes the installation and operation of the Genius NIU GFK 1860 VersaMax Ethernet Network Interface ...

Page 4: ...ic Discharge LAN Local Area Network LED Light emitting Diode MCR Master Control Relay NIU Network Interface Unit NTP Network Time Protocol OEM Original Equipment Manufacturer PLC Programmable Logic Controller RAM Random Access Memory SLIP Serial Line Protocol SRTP Service Request Transport Protocol UDP User Datagram Protocol 4 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 5: ...result in personal injury or death Caution Indicates a procedure condition or statement that if not strictly observed could result in damage to or destruction of equipment Attention Indicates a procedure condition or statement that should be strictly followed to improve these applications For public disclosure ...

Page 6: ...t Email support ip ge com Customer Care Email customercare ip ge com Primary language of support English Europe the Middle East and Africa Online Technical Support http support ge ip com Phone 800 1 433 2682 EMEA Direct Dial 420 23 901 5850 if toll free 800 option is unavailable or dialing from a mobile telephone Technical Support Email support emea ip ge com Customer Care Email customercare emea ...

Page 7: ...ule 29 1 7 3 DeviceNet Network Control Module 30 1 7 4 Asi Network Master Module 30 1 7 5 Serial Communications Module 30 2 CPU Module Datasheets CPU001 CPU002 CPU005 31 2 1 Features 32 2 2 Module Specifications 32 2 3 VersaMax General Product Specifications 33 2 4 Serial Ports 34 2 4 1 Serial Port Baud Rates 35 2 5 Mode Switch 35 2 6 CPU LEDs 36 2 7 Configurable Memory 37 3 CPU Module Datasheet C...

Page 8: ...l Modules 59 4 6 Activating or Replacing the Backup Battery 60 4 6 1 Lithium Battery Replacement 60 4 7 Serial Port Connections 61 4 7 1 Providing Power to an External Device from Port 2 61 4 7 2 Cable Lengths and Baud Rates 61 4 7 3 Port 1 RS 232 62 4 7 4 Port 2 RS 485 64 4 7 5 RS 485 Point to Point Connection with Handshaking 65 4 7 6 RS 485 Multidrop Serial Connections 65 4 8 Ethernet Connectio...

Page 9: ... 2 Standard CPU Sweep Operation 97 7 2 1 The Sweep Windows 97 7 2 2 The Watchdog Timer 97 7 2 3 Constant Sweep Time Operation 97 7 3 CPU Stop Modes 98 7 4 Flash Memory 99 7 5 Controlling the Execution of a Program 99 7 5 1 Calling a Subroutine Block 99 7 5 2 Creating a Temporary End of Logic 99 7 5 3 Executing Rungs of Logic without Logical Power Flow 99 7 5 4 Jumping to Another Part of the Progra...

Page 10: ...it Operation Functions 124 10 1 1 Data Lengths for the Bit Operation Functions 124 10 1 2 Bit Operation Functions Logical AND Logical OR 124 10 1 3 Bit Operation Functions Exclusive OR 126 10 1 4 Bit Operation Functions Exclusive OR 127 10 1 5 Bit Operation Functions Logical Invert NOT 127 10 1 6 Bit Operation Functions Shift Bits Right Shift Bits Left 128 10 1 7 Bit Operation Functions Rotate Bit...

Page 11: ...167 10 5 6 Math and Numerical Functions Logarithmic Exponential Functions 169 10 5 7 Math and Numerical Functions Radian Conversion Functions 170 10 6 Relational Functions 171 10 6 1 Relational Functions Equal Not Equal Less Than Less Equal Greater Than Greater Equal 171 10 6 2 Relational Functions Range 172 10 7 Relay Functions 174 10 7 1 Relay Functions Normally open Normally closed Continuation...

Page 12: ... 11 12 1Output Parameter Block Format for SVCREQ 11 213 11 12 2Example of SVCREQ 11 213 11 13SVCREQ 13 Shut Down Stop PLC 214 11 13 1Parameter Block for SVCREQ 13 214 11 13 2Example of SVCREQ 13 214 11 14SVCREQ 14 Clear Fault 215 11 14 1Input Parameter Block for SVCREQ 14 215 11 14 2Example of SVCREQ 14 215 11 15SVCREQ 15 Read Last Logged Fault Table Entry 216 11 15 1Input Parameter Block for SVCR...

Page 13: ...t Can be Pending While Others Execute 237 12 4 4 Initialize Port Function 4300 237 12 4 5 Set Up Input Buffer Function 4301 238 12 4 6 Flush Input Buffer Function 4302 238 12 4 7 Read Port Status Function 4303 239 12 4 8 Write Port Control Function 4304 242 12 4 9 Cancel Commreq Function 4399 243 12 4 10Autodial Function 4400 243 12 4 11Write Bytes Function 4401 245 12 4 12Read Bytes Function 4402...

Page 14: ... of the PID Function Block 274 14 2 Reference Array for the PID Function 275 14 2 1 Scaling Input and Outputs 275 14 2 2 Reference Array Parameters 275 14 3 Operation of the PID Function 282 14 3 1 Automatic Operation 282 14 3 2 Manual Operation 282 14 3 3 Time Interval for the PID Function 283 14 4 PID Algorithm Selection PIDISA or PIDIND and Gain Calculations 284 14 4 1 Error Term 284 14 4 2 Der...

Page 15: ...l Functions 304 Sizes of Bit Operations Data Move Functions 305 Sizes of Table Functions 306 Sizes of Conversion and Control Functions 308 I O Module Scan Times 309 Reference to Discrete Module Types in the Scan Time Tables 309 Modules Located in Main PLC Rack 310 Modules Located in Single ended Expansion Rack 311 Modules Located in Multiple Remote Expansion Rack 312 Modules Located in Single ende...

Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 17: ...A 1 1 The VersaMax Family of Products The VersaMax family of products provides universally distributed I O that spans PLC and PC based architectures Designed for industrial and commercial automation VersaMax I O provides a common flexible I O structure for local and remote control applications The VersaMax PLC provides big PLC power with a full range of I O and option modules VersaMax I O Stations...

Page 18: ... 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 Two serial ports provide RS 232 and RS 485 interfaces for SNP slave and RTU slave communications CPU model IC200CPUE05 provides a built in Ethernet port 1 2 1 Basic CPU Features Programming in Ladder Diagram Sequential Function Chart and Instruction List Floating ...

Page 19: ... FAULT RUN PWR OK PORT 2 FORCE PORT 1 CPU001 CPU002 CPU005 Status LEDs Serial Ports RS485 PORT 2 RS232 PORT 1 CPUE05 FAULT RUN PWR OK PORT 2 FORCE PORT 1 PORT 1 LAN STAT ETHERNET 10 BASE T 100 BASE TX ETHERNET RESTART CPUE05 Ethernet Interface Introduction GFK 1503E User Manual 19 For public disclosure ...

Page 20: ...s 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 The AC or DC Power Supply on the CPU or NIU and the Power Supply that resides on the Booster Carrier must share the same external power source CPU models IC200CPU005 and IC200CPUE05 require the use of an expanded 3 3V power supply Ref...

Page 21: ...n 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 66 8mm 2 63in 110mm 4 33in Latch Individual Point LEDS on Discrete Modules Field Power LED indicates presence of power from external supply OK LED indicates presence of power from VersaMax power suppl Color cod...

Page 22: ...ative Logic Grouped 32 Point Module IC200MDL644 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 Output 24VDC Positive Logic 2 0A per Point 1 Group of ...

Page 23: ...MDD849 Mixed 240VAC In Isolated 4 Point Output Relay 2 0A Isolated 8 Point Module IC200MDD850 Analog Input Modules Analog Input Module 12 Bit Voltage Current 4 Channels IC200ALG230 Analog Input Module 16 Bit Voltage Current 1500VAC Isolation 8 Channels IC200ALG240 Analog Input Module 12 Bit Voltage Current 8 Channels IC200ALG260 Analog Input Module 15 Bit Differential Voltage 8 Channels IC200ALG26...

Page 24: ...xed Module Input Current 4 Channels Output Current 2 Channels IC200ALG430 Analog Mixed Module 0 to 10VDC Input 4 Channels Output 0 to 10VDC 2 Channels IC200ALG431 Analog Mixed Module 12 Bit 10 to 10VDC Input 4 Channels Output 10 to 10VDC 2 Channels IC200ALG432 24 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 25: ...pendicular to the DIN rail These carriers are normally used with Interposing I O Terminals as illustrated below Refer to the VersaMax Modules Power Supplies and Carriers User Manual GFK 1504 for information about VersaMax I O Carriers Terminal style I O carriers have 36 individual terminals for direct connection of field wiring Auxiliary I O Terminal Strips are available for applications requiring...

Page 26: ...O Terminals Main Base IC200CHS101 Disconnect Style Interposing I O Terminals Expansion Base IC200CHS102 Relay Style Interposing I O Terminals Main Base IC200CHS111 Relay Style Interposing I O Terminals Expansion Base IC200CHS112 Fuse Style Interposing I O Terminals Main Base IC200CHS121 Fuse Style Interposing I O Terminals Expansion Base IC200CHS122 Cables for use with Connector Style I O Carriers...

Page 27: ...C200ERM002 ERMs 750M with all IC200ERM001 ERMs VersaMax PLC or I O Station Main Rack 0 VersaMax ExpansionRack 7 IC200CBL601 602 615 Single ended A CPU or NIU I O Station connected directly to one expansion rack with non isolated Expansion Receiver Module IC200ERM002 Maximum cable length is 1 meter PS ERM VersaMax Expansion Rack 1 M VersaMax PLC or NIU I O Station Main Rack PS CPU NIU IC200CBL600 1...

Page 28: ...C200ERM002 Cables Expansion Cable Shielded 1 meter IC200CBL601 Expansion Cable Shielded 2 meters IC200CBL602 Expansion Cable Shielded 15 meters IC200CBL615 Firmware Update Cable IC200CBL002 Terminator Plug included with ETM IC200ACC201 Connector Kit IC200ACC302 Refer to the VersaMax Modules Power Supplies and Carriers User Manual GFK 1504 for information about VersaMax Expansion modules 28 GFK 150...

Page 29: ...ications Carrier IC200CHS006 For information about the Communications Carrier refer to the VersaMax Modules Power Supplies and Carriers User Manual GFK 1504 1 7 2 Profibus DP Network Slave Module The Profibus DP Network Slave Module IC200BEM002 is a communications module that exchanges PLC reference table data on the Profibus network The VersaMax PLC CPU can read and write this data as though it w...

Page 30: ...DeviceNet Network Communications User Manual GFK 1533 1 7 4 Asi Network Master Module The VersaMax AS Interface Network Master IC200BEM104 conforms to the AS Interface Specification for the master AS Interface protocol It can be used to connect a VersaMax PLC or I O station NIU to an Actuator Sensor network The AS Interface module supports communications with up to 31 slave devices exchanging to e...

Page 31: ...05 provide powerful PLC functionality in a small versatile system They are designed to serve as the system controller for up to 64 modules with up to 2048 I O points Two serial ports provide RS 232 and RS 485 interfaces for SNP slave and RTU slave communications RS485 PORT 2 RS232 PORT 1 CPU001 PORT 2 FORCE PORT 1 FAULT RUN PWR OK RS485 PORT 2 RS232 PORT 1 CPU005 FAULT RUN PWR OK PORT 2 FORCE PORT...

Page 32: ...o 6 months Backup battery has shelf life of 5 years when not in use Backplane current consumption IC200CPU001 IC200CPU002 no serial port converter or EZ Program Store device 5V output 40mA 3 3V output 100mA with serial port converter or EZ Program Store device 5V output 140mA Backplane current consumption IC200CPU005 no serial port converter or EZ Program Store device 5V output 35mA 3 3V output 30...

Page 33: ... 15 Radio Devices Class A EMC Immunity Electrostatic Discharge EN 61000 4 2 8KV Air 4KV Contact RF Susceptibility EN 61000 4 3 10Vrms m 80Mhz to 1000Mhz 80 AM ENV 50140 ENV 50204 10Vrms m 900MHz 5MHZ 100 AM with 200Hz square wave Fast Transient Burst EN 61000 4 4 2KV power supplies 1KV I O communication Surge Withstand ANSI IEEE C37 90a Damped Oscillatory Wave 2 5KV power supplies I O 12V 240V 1KV...

Page 34: ...mple straight through cable to connect with a standard AT style RS 232 port Maximum cable lengths from the CPU to the last device attached to the cable are Baud Rate Maximum Cable Length 19 2 K and below 15 meters 50 ft 38 4K 7 5 meters 25 ft 57 6K 5 meters 16 ft 115 2K 2 5 meters 8 ft Port 2 is an RS 485 port with a 15 pin female D sub connector This can be attached directly to an RS 485 to RS 23...

Page 35: ...s not supported by the CPU If a configuration using this baud rate is stored to the PLC 1 For RTU an Unsupported Feature in Configuration fault is logged and the PLC transitions to Stop Faulted mode 2 For Serial I O the same fault is logged when the transition to Run mode occurs The PLC will immediately transition to Stop Faulted mode 2 5 Mode Switch The CPU module has a convenient switch that can...

Page 36: ...d the green Run LED indicates that the CPU is in boot mode and is waiting for a firmware update through port 1 RUN Green when the CPU is in Run mode Amber when the CPU is in Stop IO Scan mode If this LED is OFF but OK is ON the CPU is in Stop No IO Scan mode 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 ...

Page 37: ...grammer The rest of the configurable memory can be easily allocated to suit the application Configurable memory CPU001 34K bytes maximum CPU002 42K bytes maximum CPU005 128K bytes maximum Application program size not configurable 128 bytes minimum CPU001 for rel 1 50 compatibility 2K bytes CPU002 for rel 1 50 compatibility 20K bytes Hardware configuration size not configurable 400 bytes minimum Re...

Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 39: ...communications CPUE05 also provides a built in Ethernet Interface The RS 232 serial port can be configured for Local Station manager operation to provide access to diagnostic information about the Ethernet interface CPUE05 has 128kB of configurable memory In addition CPUE05 is compatible with the EZ Program Store device which can be used to write read update and verify programs configuration and r...

Page 40: ...atile flash memory for program storage Battery backup for program data and time of day clock Run Stop switch Floating point real data functions Embedded RS 232 and RS 485 communications Embedded Ethernet interface 70mm height when mounted on DIN rail with power supply 40 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 41: ...2sec day 30C 100 ppm 0 01 or 9sec day full temperature range Embedded communications RS 232 RS 485 Ethernet interface Configurable memory 128K bytes maximum Ethernet Interface Specifications Number of SRTP server connections 8 Ethernet data rate 10Mbps Physical interface 10BaseT RJ45 Shielded WinLoader support via CPU port Number of Ethernet Global Data configuration based exchanges 32 EGD Exchang...

Page 42: ...ent Class A FCC 47 CFR 15 referred to as FCC part 15 Radio Devices Class A EMC Immunity Electrostatic Discharge EN 61000 4 2 8KV Air 4KV Contact RF Susceptibility EN 61000 4 3 10Vrms m 80Mhz to 1000Mhz 80 AM Fast Transient Burst EN 61000 4 4 2KV power supplies 1KV I O communication Surge Withstand ANSI IEEE C37 90a EN 61000 4 18 Damped Oscillatory Wave 2 5KV power supplies I O 12V 240V 1KV communi...

Page 43: ...use it can be forced to local Station Manager operation using the Restart pushbutton Once forced Port 1 remains available for station manager use until the PLC is power cycled or the Restart pushbutton is pressed If Port 1 is configured as a local Station Manager it cannot be used for CPU serial communications or for firmware upgrades using Winloader The Restart pushbutton will NOT toggle it to th...

Page 44: ...9600 19 2K 38 4K Local Station Manager this is independent of serial protocol baud rate 1200 2400 4800 9600 19 2K 38 4K 57 6K 115 2K NA Firmware Upgrade via WinLoader 2400 4800 9600 19 2K 38 4K 57 6K 115 2K NA 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 u...

Page 45: ...t of the CPUE05 module where the configured IP Address can be written PORT 1 LAN STAT ETHERNET 10 BASE T ETHERNET RESTART Ethernet LAN Port RJ 45 IP ADDRESS IP Address Writable Area 3 6 Mode Switch The Mode switch is located behind the module door It can be used to place the PLC in Stop or Run mode It can also be used to block accidental writing to CPU memory and forcing or overriding discrete dat...

Page 46: ...un LED indicates that the CPU is in boot mode and is waiting for a firmware update through port 1 RUN Green when the CPU is in Run mode Amber when the CPU is in Stop IO Scan mode If this LED is OFF but OK is ON the CPU is in Stop No IO Scan mode 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 wi...

Page 47: ...Ethernet network connection ON blinking green indicates Ethernet interface is online 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 PORT1 indicates when the Ethernet interface is controlling the RS 232...

Page 48: ...ation are automatically determined by the actual program and configuration entered from the programmer The rest of the 64K bytes can be easily configured to suit the application Configurable memory 128K bytes maximum Application program size not configurable 128 bytes minimum Hardware configuration size not configurable 528 bytes minimum Registers R 256 bytes minimum Analog Inputs AI 256 bytes min...

Page 49: ...es may be configured CPUE05 supports up to 1200 variables across all Ethernet Global Data exchanges and supports selective consumption of Ethernet Global Data exchanges Refer to chapter 13 for information about Ethernet Global Data 3 11 3 Station Manager Functionality CPUE05 has built in Station Manager functionality This permits on line diagnostic and supervisory access through either the Station...

Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 51: ...lling expansion modules Ethernet connection for CPUE05 CE Mark installation requirements System installation instructions which give guidelines for carrier power supply and module installation as well as information about field wiring and grounding are located in the VersaMax Modules Power Supplies and Carriers Manual GFK 1504 Installation GFK 1503E User Manual 51 For public disclosure ...

Page 52: ...il 4 1 1 Removing the CPU from the DIN Rail 1 Turn off power to the power supply 2 If the CPU is attached to the panel with a screw remove the power supply module Remove the panel mount screw 3 Slide the CPU along the DIN rail away from the other modules until the connector disengages 4 With a small flathead screwdriver pull down on the DIN rail latch tab s on the bottom of the module and lift the...

Page 53: ... the M3 5 6 32 steel screw threaded into material containing internal threads and having a minimum thickness of 2 4mm 0 093in SEE NOTE 2 M3 5 6 SCREW 15 9mm 0 62in REF SPLIT LOCK WASHER FLAT WASHER CPU TAPPED HOLE IN PANEL 5 1mm 0 200in 4 3mm 0 170in 4 3mm 0 170in Installation GFK 1503E User Manual 53 For public disclosure ...

Page 54: ...Attach the Expansion Transmitter to DIN rail to the left of the CPU position 3 Install the CPU Connect the modules and press them together until the connectors are mated 4 After completing any additional system installation steps apply power and observe the module LEDs PWR EXP TX On indicates presence of 5VDC power Off indicates no 5VDC power Blinking or On indicates active communications on expan...

Page 55: ...6 After completing any additional system installation steps apply power and observe the module LEDs PWR EXP RX SCAN On indicates presence of 5VDC power Off indicates no 5VDC power Blinking or On indicates module is communicating on expansion bus Off indicates module not communicating Green indicates CPU NIU is scanning I O in expansion racks Amber indicates not scanning 4 3 1 Removing an Expansion...

Page 56: ... port on the last Expansion Receiver Spare Terminator Plugs can be purchased separately as part number IC200ACC201 Qty 2 4 3 4 RS 485 Differential Inter Rack Connection IC200CBL601 602 615 Expansion Transmitter or Expansion Receiver Module Transmitting Port PIN 2 3 5 6 8 9 12 13 16 17 20 21 24 25 7 23 1 FRAME FRAME RIRQ RIRQ RUN RUN RERR RERR IODT IODT RSEL RSEL IOCLK IOCLK 0V 0V SHIELD PIN 2 3 5 ...

Page 57: ...IN 16 PIN MALE 16 PIN FEMALE 26 PIN MALE 26 PIN FEMALE 15 16 1 2 4 7 22 14 18 15 11 10 19 23 1 SINGLE_ 0V T_IOCLK T_RUN T_IODT_ T_RERR T_RIRQ_ T_FRAME T_RSEL 0V SHIELD 1 M Expansion Receiver IC200ERM002 Receiving Port VersaMax CPU or NIU Serial Port 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 expans...

Page 58: ...hardware configuration Power Supply installation instructions are given below 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 3 Turn th...

Page 59: ...carrier It protects the connector pins from damage and ESD during handling and use Do not remove the connector cover on the lefthand side Connector Cover Connector Cover Install each carrier close to the previously installed carrier then slide the properly aligned carriers together to join the mating connectors To avoid damaging the connector pins do not force or slam carriers together DIN rail cl...

Page 60: ...insulator tab 4 6 1 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 GE IC200ACC001 Panasonic BR2032 Use of another battery may present a risk of fire or explosion Caution Battery may explode if mistreated Do not recharge disassemble heat above 100 C 212 F or incinerate 60 GFK 1503E Versa...

Page 61: ...ngths and Baud Rates Maximum cable lengths the total number of feet from the CPU to the last device attached to the cable are Port 1 RS 232 15 meters 50 ft Port 2 RS 485 1200 meters 4000 ft Both ports support configurable baud rates as listed in the CPU descriptions in this manual The following pre assembled cables are available IC200CBL001 CPU Programming Cable RS232 IC200CBL002 Expansion Firmwar...

Page 62: ... signal reference 6 n c 7 CTS Input Clear to Send input 8 RTS Output Request to Send output 9 n c Shell SHLD Cable Shield wire connection 100 Continuous shielding cable shield connection 4 7 3 2 RS 232 Point to Point Connection In point to point configuration two devices are connected to the same communication line For RS 232 the maximum length is 15 meters 50ft 2 6 7 8 9 3 4 5 2 6 7 8 9 3 4 5 1 1...

Page 63: ...030 2487 017 AMP 205204 1 66506 9 Solder ITT Cannon ZDE9P AMP 747904 2 Connector Shell Kit ITT Cannon DE121073 54 9 pin size backshell kit Metal Plated Plastic Plastic with Nickel over Copper Cable Grounding Clamp included 40 cable exit design to maintain low profile installation Plus ITT Cannon 250 8501 010 Extended Jackscrew Threaded with 4 40 for secure attachment to CPU001 port Order Qty 2 for...

Page 64: ...ut Transmit Data B output 14 RTSB Output Request to Send B output 15 CTSA Input Clear to Send A input Shell SHLD Cable Shield wire connection 100 Continuous shielding cable shield connection 4 7 4 2 Connector and Cable Specifications for Port 2 Vendor Part numbers below are provided for reference only Any part that meets the same specification can be used Cable Low Capacitance Computer cable overa...

Page 65: ... feet Modems can be used for longer distances Shielded Twisted Pairs PIN PIN PLC Up to 15 2 meters 50 ft without isolation Computer 12 13 10 11 9 6 14 8 15 3 2 7 1 SD A SD B RD A RD B RT RTS A RTS B CTS B CTS A GND SHLD RD A RD B SD A SD B CTS A CTS B RTS B RTS A GND SHLD 4 7 6 RS 485 Multidrop Serial Connections In the multidrop configuration the host device is configured as the master and one or...

Page 66: ...690ACC900 15 PIN FEMALE RS 485 PORT 25 PIN FEMALE RS 232 PORT 9 Pin Female to 25 Pin Male RS 232 Shielded Cable 3 RD 2 TD 5 CTS 20 DTR 8 DCD 7 GND 1 SHLD RD 2 TD 3 RTS 7 CTS 8 DCD 1 DTR 4 GND 5 PIN PIN 9 Pin Male Connector Computer RS 232 Port DCD A 2 DCD B 3 RD A 10 RD B 11 SD A 12 SD B 13 RT 9 CTS A 15 CTS B 8 RTS A 6 RTS B 14 5V 5 0V 7 SHLD 1 CPU RS 485 Port 15 Pin Female Connector NC Terminati...

Page 67: ...e IEEE 802 standards 4 8 1 Network Connection Connection of the CPUE05 to a 10BaseT network is shown below 10BaseT Twisted Pair Cable 10BaseT Hub To Other Network Devices CPUE05 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 Ethernet Cable Series 90 70 PLC with Ethernet Interfac...

Page 68: ...ing the equipment If the AC mains are used to provide power for I O these lines should be suppressed prior to distribution to the I O so that immunity levels for the I O are not exceeded Suppression for the AC I O power can be made using line rated MOVs that are connected line to line as well as line to ground A good high frequency ground connection must be made to the line to ground MOVs AC or DC...

Page 69: ...ion and also establishes the program references that will used by each module in the system Autoconfiguration or programmer configuration Configuring racks and slots Configuring CPU parameters Configuring CPU memory allocation Configuring serial port parameters Storing a configuration from a programmer Autoconfiguration Configuration GFK 1503E User Manual 69 For public disclosure ...

Page 70: ... configuration Store write a configuration to the CPU Load read an existing configuration from a CPU Compare the configuration in a CPU with a configuration file stored in the programmer Clear a configuration that was previously stored to the CPU The CPU stores a software configuration in its non volatile RAM Storing a configuration disables autoconfiguration so the PLC will not overwrite the conf...

Page 71: ...tion module occupies a slot The module next to the CPU or Expansion Receiver module is in slot 1 Booster power supplies do not count as occupying slots 1 Booster Power Supply CPU 2 3 4 5 Main Rack rack 0 The main rack is rack 0 Additional racks are numbered 1 to 7 In a system that uses just one expansion rack which is attached to the expansion bus by a non isolated Expansion Receiver Module IC200E...

Page 72: ...ded Configure the power supply type and any booster power supplies and carriers Note that CPU005 and CPUE05 both require an expanded 3 3V supply Configure the CPU This includes changing the CPU type if necessary and assigning its parameters as described in this chapter Configure the parameters of the CPU serial ports as explained in this chapter For CPUE05 configure its Ethernet parameters as expl...

Page 73: ... program to be checksummed each sweep 8 8 to 32 Default Modem Turnaround Time Modem turnaround time 10ms unit This is the time required for the modem to start data transmission after receiving the transmit request 0mS 0 255mS Default Idle Time Time in seconds the CPU waits to receive the next message from the programming device before it assumes that the programming device has failed and proceeds ...

Page 74: ...configurable memory can easily be configured to suit the application For example an application may have a relatively large program that uses only a small amount of registers and analog memory Similarly there might be a small logic program but a larger amount of memory needed for registers and analog inputs and outputs 5 3 2 Configurable Memory for CPU Module IC200CPU001 CPU002 CPU005 Configurable...

Page 75: ...I 256 bytes 128 words minimum Analog Outputs AQ 256 bytes 128 words minimum 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 ...

Page 76: ...es the method of flow control to use None RTU mode None Hardware not required if Port Mode is SNP When changing Flow Control from None to Hardware Turnaround Delay is reset to 0 Serial I O mode None Hardware Software CPUE05 in Local Station Manager mode None Hardware Timeout Specifies the set of timeout values to be used by Protocol Long Long Medium Short None If Port Mode is SNP Stop Bits Number ...

Page 77: ...ications timing for radio modems receive to transmit delay The minimum length of time between the CPU receiving the last character of an incoming message and the CPU asserting RTS Asserting RTS is followed by the transmission of the response message This delay is configured as a minimum time because the actual delay is dependent upon the CPU sweep time turnaround delay The length of time between t...

Page 78: ...ew autoconfiguration to be generated Autoconfiguration remains enabled until the configuration is stored from the programmer again Storing a configuration disables autoconfiguration 5 3 8 2 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 ...

Page 79: ...d I0025 respectively For modules that utilize multiple data types for example mixed I O modules each data type is assigned reference addresses individually 5 4 2 Autoconfiguration Diagnostics Module Present But Non Working During Autoconfiguration If a module is physically present but not working during autoconfiguration the module is not configured and the CPU generates an extra module diagnostic...

Page 80: ...during powerup or normal operation addition of rack 1 An Expansion Receiver Module that was not previously configured is present during configuration 2 During normal operation communication is restored with a previously missing or failed Expansion Receiver Module The CPU starts scanning I O for the modules in that rack Addition of Module faults are not generated when scanning resumes However if co...

Page 81: ...erview Configuring the characteristics of the Ethernet interface Configuring Ethernet Global Data Configuring Advanced User Parameters The Ethernet interface configuration described in this chapter must be set up in addition to the basic CPU configuration described in chapter 5 Configuration Ethernet Configuration GFK 1503E User Manual 81 For public disclosure ...

Page 82: ...ves its configuration data in battery backed memory If the CPU battery backup is lost and the configuration has not been saved to Flash the Ethernet interface loses its backup configuration data If that happens after powerup the Ethernet interface operates with its factory default settings until it is reconfigured This default operation includes reverting to an IP address of 0 0 0 0 Because the ba...

Page 83: ...re familiar with these parameters If you have no network administrator and are using a simple isolated network with no gateways you can use the following values as local IP addresses 10 0 0 2 First PLC 10 0 0 3 Second PLC 10 0 0 4 Third PLC 10 0 0 254 PLC Programmer or host Also in this case set the subnet mask and Gateway IP address to 0 0 0 0 See chapter 13 for more detailed information about IP...

Page 84: ... servers used to synchronize timestamps in produced Ethernet Global Data exchanges If no NTP time servers are configured here the Ethernet interface is initialized from the clock in the CPU instead Refer to the section Timestamping of Ethernet Global Data Exchanges in chapter 13 for more information This feature is supported in IC200CPUE05 HK and previous versions only 84 GFK 1503E VersaMax PLC Us...

Page 85: ...xchanges to share data ranges The Ethernet Global Data configuration screens are reached via the rack configuration not the CPU configuration 6 3 1 Before You Configure EGD Exchanges Before configuring Ethernet Global Data exchanges you will need to collect information about the PLCs that will be exchanging the data Note that this information will be needed for each PLC s configuration Refer to ch...

Page 86: ...hour The default is 200 milliseconds Round this value to the nearest 10 milliseconds before you enter it The producer period has a resolution of 10 milliseconds If you enter a value such as 12 milliseconds the actual producer period will be rounded up to 20 milliseconds For easier troubleshooting and efficient network usage set the Producer Period to the same value as the Consumer Period Do not pr...

Page 87: ...2 milliseconds the actual update timeout will be rounded up to 30 milliseconds Status Word A data range that identifies the memory location where the status value for the consumed exchange will be placed Refer to chapter 13 Ethernet Communications for details of the status value Note that the Status Word address must be unique it is not automatically assigned the next highest address example Offse...

Page 88: ... 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 If the consuming PLC wants to consume only the analog value and place it into AI003 the consumer might be configured as shown below Offset Reference Low Point High Point Descript...

Page 89: ...nclosed 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 or H character IP address parameters must be entered in standard dotted decimal format Character string values are case sensitive Uppercase parameter values must be enclosed within a pair of ...

Page 90: ...s 3 0003H 0 65535 ffffH wnodelay TCP nodelay option 0 inactive 1 active 0 000H 0 1 wkal_idle TCP keepalive timer value in seconds 240 00f0H 4 0 minutes 0 65535 ffffH wkal_cnt TCP keepalive probe count 2 0002H wkal_intvl TCP keepalive probe interval in seconds 60 003cH wmsl TCP maximum segment lifetime in seconds 30 001eH wsnd_buf TCP send buffer size in bytes 4096 1000H 0 32767 7fffH wrcv_buf TCP ...

Page 91: ...out period in seconds The max time between network time updates to remain synchronized 300 012cH 150 65535 0096H ffffH Note The NTP feature is supported in IC200CPUE05 HK and previous versions only Ethernet Configuration GFK 1503E User Manual 91 For public disclosure ...

Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 93: ... and performs communications tasks This sequence of operations is called the sweep The basic operating mode of the PLC is called Standard Sweep mode In this mode the CPU performs all parts of its sweep normally Each sweep executes as quickly as possible with a different amount of time consumed each sweep The PLC may instead operate in Constant Sweep Time mode In this mode the CPU performs the same...

Page 94: ...ions NO NO NO YES YES YES Output Scan Input Scan Run Mode Logic Solution I O Enabled Programmer Communications System Communications Application Program Checksum Calculation and Verification of Physical and Programmed Configuration Start of Sweep Housekeeping I O Enabled Start Next Sweep 94 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 95: ...w set of output data Output Scan Immediately after the logic solution the CPU scans all output modules in ascending reference address order The output scan is completed when all output data has been sent If the CPU has been configured to not scan I O in Stop mode the output scan is also skipped when the CPU is in Stop mode For CPUE05 if I O is enabled and the producer period of an Ethernet Global ...

Page 96: ... the program checksum failure exception flag is raised A fault is entered in the PLC fault table and the PLC goes to Stop mode If the checksum calculation fails the programmer communications window is not affected Each sweep the CPU verifies the physical configuration of one module against its programmed configuration A missing additional or mismatched module causes a fault to be generated 96 GFK ...

Page 97: ...lete or when 6ms has elapsed Run to Completion Mode Regardless of the time assigned to a particular window the window runs until all tasks within that window are completed up to 400ms SVCREQ 2 can be used in the application program to obtain the current times for each window 7 2 2 The Watchdog Timer When the CPU is in Standard Sweep mode the Watchdog Timer catches failure conditions that could cau...

Page 98: ... exceeds the Constant Sweep Timer The CPU also resets the OV_SWP contact if it is not in Constant Sweep Time mode As with other fault contacts the application program can monitor this contact to keep informed about the occurrence of oversweep conditions 7 2 3 3 Enabling Disabling Constant Sweep Time Reading or Setting the Length of the Timer SVCREQ 1 can be included in the application program to e...

Page 99: ...rectly after the CALL instruction 7 5 2 Creating a Temporary End of Logic The END function can be used to provide a temporary end of logic It can be placed anywhere in a program No logic beyond the END function is executed and program execution goes directly back to the beginning This ability makes the END function useful for debugging a program The END function should not be placed in logic assoc...

Page 100: ...op position for at least second Then move it back to Run position The faults are cleared and the CPU goes to Run mode The LED stops blinking and stays on This can be repeated if necessary If the switch is not toggled as described after 5 seconds the Run LED goes off and the CPU remains in Stop Fault mode Faults stay in the fault table 7 6 2 Configurable Memory Protection Operation of the switch ca...

Page 101: ...if the software disconnects and reconnects the access level is 4 Privilege level 1 is always available because no password can be set for this level Level Access Description 4 Least Protected Write to all configuration or logic Configuration may only be written in Stop mode logic may be written in Stop or Run mode if run mode store is supported Set or delete passwords for any level Plus all access...

Page 102: ...f the passwords 7 7 2 The OEM Protection Feature The OEM protection feature is similar to the passwords and privilege levels and provides an even higher level of security The feature is enabled or disabled using a 1 to 7 character password called the OEM key When OEM protection is enabled no write access to the PLC program and configuration is permitted Reading the configuration from the PLC is pe...

Page 103: ...rograms are stored in the CPU s non volatile memory During the CPU Sweep described in the previous chapter the CPU reads input data from the modules in the system and stores the data in its configured input memory locations The CPU then executes the entire application program once utilizing this fresh input data Executing the application program creates new output data that is placed in the config...

Page 104: ... 4 Subroutine Subroutine A subroutine block can be called many times as the program executes Logic that should be repeated can be placed in a subroutine block reducing total program size Program Subroutine 2 In addition to being called from the program subroutine blocks can also be called by other subroutine blocks A subroutine block can even call itself Main Program Subroutine 2 3 4 Subroutine Su...

Page 105: ...raphic method of representing the functions of a sequential automated system as a sequence of steps and transitions Each step represents commands or actions that are either active or inactive The flow of control passes from one step to the next through a conditional transition that is either true 1 or false 0 If the transition condition is true 1 control passes from the current step which becomes ...

Page 106: ...n associated in the program For instance a relay might pass power flow if its associated memory location contained the value 1 The same relay would not pass power flow if the memory location contained the value 0 If a relay or other function in a rung does not pass logical power flow the rest of that rung is not executed Power then flows down along the left rail to the next rung Within a rung ther...

Page 107: ...coil is turned ON Otherwise the coil is turned OFF S SET Sets the associated discrete reference ON if the coil receives power It remains set until reset by an R coil R RESET Sets the associated discrete reference OFF if the coil receives power It remains reset until set by an S coil SM Retentive SET Sets the associated reference is set ON if the coil receives power The reference remains set until ...

Page 108: ... X Raises X to the power specified by IN and places the result in Q sin Trigonometric Sine Finds the trigonometric sine of a real number cos Trigonometric Finds the trigonometric cosine of a real number Cosine tan Trigonometric Tangent Finds the trigonometric tangent of a real number asin Inverse Sine Finds the inverse sine of a real number acos Inverse Cosine Finds the inverse cosine of a real nu...

Page 109: ...erforms a logical inversion of a bit string shl Shift Left Shifts a bit string left shr Shift Right Shifts a bit string right rol Rotate Left Rotates a bit string left ror Rotate Right Rotates a bit string right bittst Bit Test Test a bit within a bit string bitset Bit Set Sets one bit within a string to true bitclr Bit Clear Sets one bit within a string to false bitpos Bit Position Locates a bit ...

Page 110: ...qual Searches array for values less than or equal to a specified value 8 4 9 Conversion Functions bcd4 Convert to BCD4 From INT Converts a number to 4digit BCD format word Convert to Word From REAL Converts a Real value to Word format int Convert to INT From BCD4 or REAL Converts a number to signed integer format tdint Convert to DINT From BCD4 or REAL Converts a number to double precision integer...

Page 111: ...uction is useful for debugging purposes commnt Comment A rung explanation svcreq Service Request A special PLC service function mcr Master Control Relay Starts a master control relay range An MCR causes all rungs between the MCR and its subsequent ENDMCR to be executed with no power flow Up to 8 MCRs can be nested endmcr End Master Control Relay Ends a master control relay range jump Jump Jumps to...

Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 113: ...xplains how that data is stored in the VersaMax PLC s memory Data memory references Retentiveness of data Using names and descriptions for program references System status references Time tick contacts How program functions handle numerical data Program Data GFK 1503E User Manual 113 For public disclosure ...

Page 114: ...mory area The numerical value is the offset within that memory area 9 1 1 Word Memory References Each word memory address reference is on a 16 bit word boundary The PLC uses three types of references for data stored in word memory AI Normally used for analog inputs AQ Normally used for analog outputs R Registers are normally used to store program data in word format Word memory is represented belo...

Page 115: ...nces A specific M reference may be either retentive or non retentive depending on its use in the program T Used for temporary references that can be used many times in a program Data with T references is not retained through loss of power or RUN TO STOP TO RUN transitions T references cannot be used with retentive coils S System status references which have specific predefinitions n S SA SB and SC...

Page 116: ...rmines 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 However if Q0001 was last programmed on a non retentive coil then the Q0001 data is non retentive Q or M references that have been made retentive by specifically declaring them to be retentive Q and M references default to nonretentive The ...

Page 117: ...eference 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 S0004 T_100MS 0 1 second timer contact S0005 T_SEC 1 0 second timer contact S0006 T_MIN 1 0 minute timer contact S0007 ALW_ON Always ON S0008 ALW_OFF Always OFF S0009 SY_FULL Set when the PLC fault ...

Page 118: ...etects a problem with the CPU hardware Cleared by replacing the CPU module SA0011 LOW_BAT Set when a low battery fault occurs Cleared by replacing the battery then powering up the PLC SA0012 13 reserved SA0014 LOS_IOM Set when an I O module stops communicating with the CPU Cleared by replacing the module and cycling system power SA0015 LOS_SIO Set when an option module stops communicating with the...

Page 119: ...entries SC0010 SY_FLT Set when any fault occurs that causes an entry to be placed in the PLC fault table Cleared when the PLC fault table has no entries SC0011 IO_FLT Set when any fault occurs that causes an entry to be placed in the I O fault table Cleared when the I O fault table has no entries SC0012 SY_PRES Set as long as there is at least one entry in the PLC fault table Cleared when the PLC ...

Page 120: ...s four bits and can represent numbers between 0 and 9 BCD coding of the 16 bits has a value range of 0 to 9999 Word 2 4 BCD Digits 13 9 1 Bit Positions 5 1 2 3 4 16 Word 1 REAL Floating Point Real numbers use two consecutive 16 bit memory locations The range of numbers that can be stored in this format is 1 401298E 45 to 3 402823E 38 Refer to the following table for more information Two s Compleme...

Page 121: ...s Overflow occurs when a number greater than 3 402823E 38 or less than 3 402823E 38 is generated by a REAL function The ok output of the function is set OFF and the result is set to positive infinity for a number greater than 3 402823E 38 or negative infinity for a number less than 3 402823E 38 You can determine where this occurs by testing the sense of the ok output POS_INF 7F800000h IEEE positiv...

Page 122: ... does not change during the execution of the sweep These contacts provide a pulse having an equal on and off time duration The contacts are referenced as T_10MS 0 01 second T_100MS 0 1 second T_SEC 1 0 second and T_MIN 1 minute The following timing diagram represents the on off time duration of these contacts X X 2 SEC T XXXXX X 2 SEC SEC These time tick contacts represent specific locations in S ...

Page 123: ...rum Sequencer Service Request see chapter 11 PID see chapter 14 Relational Functions Equal Not Equal Greater Than Less Than Greater or Equal Less or Equal Range Data Move Functions Move Block Move Block Clear Shift Register Communication Request Relay Functions Contacts Coils Fault and No Fault Contacts Alarm Contacts Table Functions Array Move Search Data Type Conversion Functions Convert to BCD ...

Page 124: ...0 29 28 27 26 25 24 23 22 21 20 19 18 17 R0102 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 MSB Overlapping input and output reference address ranges in multi word functions is not recommended it can produce unexpected results 10 1 2 Bit Operation Functions Logical AND Logical OR Each scan that power is received a Logical AND or Logical OR function examines each bit in bit string I1 and the cor...

Page 125: ...ut Output Choices Description enable flow When the function is enabled the operation is performed I1 I Q M T S G R AI AQ constant Constant or reference for the first word of the first string I2 I Q M T S G R AI AQ constant Constant or reference for the first word of the second string ok flow none The OK output is energized whenever enable is energized Q I Q M T SA SB SC not S G R AI AQ Output Q co...

Page 126: ...changing state with each scan as long as power is received Longer cycles can be programmed by pulsing the power flow to the function at twice the desired rate of flashing the power flow pulse should be one scan long one shot type coil or self resetting timer The Exclusive OR function is useful for quickly comparing two bit strings or to blink a group of bits at the rate of one ON state per two sca...

Page 127: ...making output string Q the logical complement of I1 The function passes power flow to the right whenever power is received A length of 256 words can be selected Input 1 Output OK Enable NOT_ WORD I1 Q 10 1 5 1 Parameters of the Logical Invert Function Input Output Choices Description enable flow When the function is enabled the operation is performed I1 I Q M T S G R AI AQ constant Constant or ref...

Page 128: ...f 1 to 256 words can be selected for either function Word to be shifted in Number of bits Last bit shifted out Enable SHIFTL WORD IN B2 N Bit shifted in B1 Output Q 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 If the number of bits to be shifted ...

Page 129: ...it 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 The Rotate Right function rotates the bits in the string to the right When rotation occurs the specified num...

Page 130: ...on If the same reference is used for IN and Q a rotation will occur in place I0001 R0001 CONST 00003 ROL WORD IN N Q R0002 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 MSB LSB 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 MSB LSB R0002 after I0001 is set R0001 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...

Page 131: ...ses power flow and the coil Q0001 is turned on PRD_CDE BIT_ TEST_ WORD IN Q0001 Q PICKBIT BIT I0001 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 Each sweep that power is received the function sets the specified bit If a variable register rather than a constant is used to specify the bit ...

Page 132: ... SET WORD IN Q CONST 00012 BIT I0001 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 Input string 2 might contain their input state feedback such as limit switches or contacts Input 1 Bit nu...

Page 133: ...ly I Q M T SS SB SC G Reference for the bit string mask BIT I Q M T S G R AI AQ constant Reference for the bit number where the next comparison should start MC flow none User logic to determine if a miscompare has occurred Q R AI AQ For WORD only I Q M T SA SB SC G Output copy of the mask M bit string BN I Q M T S G R AI AQ Bit number where the last miscompare occurred length Constant The number o...

Page 134: ...1 1 0 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 I1 M0001 same I2 M0017 same M Q M0033 BIT BN R0001 8 MC Q0001 ON In this example contact T1 and coil M100 force one and only one execution otherwise the function would repeat with possibly unexpected results 10 1 11 Bit Operation Functions Bit Position The Bit Position function locates a bit set to 1 in a bit string Each sweep that power is received th...

Page 135: ...ring is written to AQ001 If I0001 is set bit M0001 is 0 and bit M0002 is 1 then the value written to AQ001 is 2 M0001 BIT_ POS WORD IN Q0001 Q AQ0001 POS I0001 10 1 12 Bit Operation Functions Bit Sequencer The Bit Sequencer function performs a bit sequence shift through an array of bits Starting Address Reset Address OK Enable BIT_ SEQ R ST Direction DIR Number STEP The operation of the function d...

Page 136: ...pointed to by the new step number is set to 1 The parameter ST is optional If it is not used the Bit Seqencer function operates as described above except that no bits are set or cleared The function just cycles the current step number through its legal range 10 1 12 1 Memory Required for a Bit Sequencer Each bit sequencer uses three words registers of R memory to store the information word 1 curre...

Page 137: ...ecremented STEP I Q M T G R AI AQ constant none When R is energized the step number is set to this value ST I Q M T SA SB SC G R AI AQ none STcontains the first word of the bit sequencer Optional ok flow none The OK output is energized whenever the function is enabled 10 1 12 3 Example In the example the Bit Sequencer operates on register memory R0001 Its static data is stored in registers R0010 1...

Page 138: ... while the function executes DO_IO ST END ALT Starting address Ending address enable OK 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 t...

Page 139: ...0 2 1 3 Example Do I O for Inputs In this example when the function receives power flow the PLC scans references I0001 64 and Q0001 is turned on Copies of the scanned inputs are placed in internal memory from M0001 64 Because a reference is specified for ALT the real inputs are not updated This allows the current values of inputs to be compared with their values at the beginning of the scan I0001 ...

Page 140: ...2 The start and end references must be either I or Q These references specify the first and last reference the module is configured for 10 2 1 7 Example Do I O for One Module In this example the Do I O function is executed only to a 16 point input module which is configured at I0001 through I0016 in location 2 I0001 DO_IO ST END ALT Q0001 I0001 I0016 CONST 00002 10 2 2 Control Functions Call The C...

Page 141: ... beyond the End of Logic function is executed and control is transferred to the beginning of the program for the next sweep The End of Logic function is useful for debugging purposes because it prevents any logic which follows from being executed The programming software provides an END OF PROGRAM LOGIC marker to indicate the end of program execution This marker is used if no End of Logic function...

Page 142: ... with the ENDMCRN The Master Control Relay has no outputs there can be nothing after it in a rung MCR name enable With a Master Control Relay function blocks within the scope of the Master Control Relay are executed without power flow and coils are turned off The ENDMCRN function must be tied to power rail there can be no logic before it in the rung The name of the ENDMCRN associates it with the c...

Page 143: ...jumps directly from the instruction to the rung with the named label Caution To avoid creating an endless loop with forward and backward Jump instructions a backward Jump must contain a way to make it conditional 10 2 5 1 Label The Label instruction is the target of a Jump Use the Label instruction to resume normal program execution There can be only one Label with a particular name in a program T...

Page 144: ...eout Fault First Follower Enable Step Reset Pattern Dwell Time Fault Timeout DRUM Control Block Length 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 para...

Page 145: ...n array Each value in the array represents the fault timeout for the corresponding step of the Drum Sequencer in 0 1 second units When the fault timeout has expired the Fault Timeout bit is set Control Block R The beginning reference address of the function s parameter block The length of the Control Block is 5 words A more complete description of what is contained within this block is listed belo...

Page 146: ...st not be written to Timer Control Two words of data that hold values needed to run the timer These values are reserved for use by the function block and must not be written to 10 2 7 3 Notes on Using the Drum Sequencer Function 1 The Dwell Timeout Output bit is cleared the first time the drum is in a new step This is true Whether the drum is introduced to a new step by changing the Active Step or...

Page 147: ...flow it copies data from input parameter IN to output parameter Q as bits If data is moved from one location in discrete memory to another for example from I memory to T memory the transition information associated with the discrete memory elements is updated to indicate whether or not the Move operation caused any discrete memory elements to change state Data at the input parameter does not chang...

Page 148: ...Length must be from 1 to 256 for all types except BIT If IN is a constant and Q is type BIT the length must be between 1 and 16 If IN is type Bit the length must be between 1 and 256 bits IN I Q M T G R AI AQ constant For bit or word data only S For real data R AI AQ IN contains the value to be moved For MOVE_BOOL any discrete reference may be used it does not need to be byte aligned However 16 bi...

Page 149: ...33 through M0080 1 M0048 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 M0064 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 M0080 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 33 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...

Page 150: ...unction copies the input constants into memory locations R0010 16 FST_SCN BLKMV INT R010 Q I1 CONST 32767 I2 CONST 32768 I3 CONST 00001 I4 CONST 00002 I5 CONST 00002 I6 CONST 00001 I7 CONST 00001 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 r...

Page 151: ...e word might be shifted into an area of memory with a specified length of five words As a result of this shift another word of data would be shifted out of the end of the memory area The reset input R takes precedence over the function enable input When the reset is active all references beginning at the shift register ST up to the length specified for LEN are filled with zeros If the function rec...

Page 152: ...SHFR_BIT any discrete reference may be used it does not need to be byte aligned ST I Q M T SA SB SC G R AI AQ STcontains the first bit or word of the shift register For SHFR_BIT any discrete reference may be used it does not need to be byte aligned ok flow none OK is energized whenever the function is enabled and R is not enabled Q I Q M T SA SB SC G R AI AQ Output Q contains the bit or word shift...

Page 153: ...200 NXT_CYC SHFR_ BIT R Q0033 Q IN M0200 M0001 ST CLEAR 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 After ...

Page 154: ...ask is not valid for the device TASK 3 The data length is 0 4 The device s status pointer address in the command block does not exist 10 3 5 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...

Page 155: ... at R0016 is sent to communications task 1 in the device located at rack 1 slot 2 of the PLC If an error occurs processing the COMMREQ Q0100 is set R0016 M0020 COMM_ REQ IN CONST 0102 SYSID CONST 00001 TASK FT Q0100 Instruction Set Reference GFK 1503E User Manual 155 For public disclosure ...

Page 156: ...making the result available via output Q The function passes power flow when power is received unless the specified conversion would result in a value that is outside the range 0 to 9999 Value to be converted OK Enable INT_ TO BCD4 IN Output Q 10 4 1 1 Parameters of the Convert to BCD 4 Function Input Output Choices Description enable flow When the function is enabled the conversion is performed I...

Page 157: ...nabled the conversion is performed IN For BCD 4 I Q M T G R AI AQ constant For REAL R AI AQ IN contains a reference for the BCD 4 REAL or Constant value to be converted to integer ok flow none The OK output is energized whenever enable is energized unless the data is out of range or NaN Not a Number Q I Q M T G R AI AQ Output Q contains the integer form of the original value in IN 10 4 2 2 Example...

Page 158: ... 24 significant bits 10 4 3 1 Parameters of the Convert to Double Precision Signed Integer Function Input Output Choices Description enable flow When the function is enabled the conversion is performed IN I Q M T G R AI AQ constant Constant or reference for the value to be converted ok flow none OK is energized whenever enable is energized unless the real value is out of range Q R AI AQ Reference ...

Page 159: ...use since the number of significant bits is reduced to 24 Value to be converted OK Enable INT_ TO REAL IN Output Q 10 4 4 1 Parameters of the Convert to Real Function Input Output Choices Description enable flow When the function is enabled the conversion is performed IN R AI AQ constant For INTonly I Q M T G IN contains a reference for the integer value to be converted to Real ok flow none OK is ...

Page 160: ...r the value to be converted to Word type ok flow none OK is energized when the function is performed without error Q I Q M T G R AI AQ Contains the word form of the original value in IN 10 4 5 2 Example I0002 R0001 R0003 RANGE WORD L1 Q REAL TO WORD IN Q L2 IN Q1001 HI_LIM LOW_LIM R0003 10 4 6 Data Type Conversion Functions Truncate Real Number The Truncate function copies a Real number and rounds...

Page 161: ...t is energized when the function is performed without error unless the value is out of range or IN is NaN Q R AI AQ For integer only I Q M T G Q contains the truncated INTor DINT value of the original value in IN 10 4 6 2 Example In the example the displayed constant is truncated and the integer result 562 is placed in T0001 I0002 CONST 5 62987E 02 OK REAL TRUN_ INT IN T0001 Q Instruction Set Refe...

Page 162: ...iplication and Division The Division function rounds down it does not round to the closest integer For example 24 DIV 5 4 When a math function receives power flow the operation is performed on input parameters I1 and I2 Parameters I1 I2 and output Q must be the same data type Input 1 Input 2 Output OK Enable ADD_ INT I1 Q I2 The math functions pass power if there is no math overflow If an overflow...

Page 163: ...ts or 32 bits 10 5 1 3 Avoiding Overflows Be careful to avoid overflows when using Multiplication and Division functions If you have to convert Integer to Double Precision Integer values remember that the CPU uses standard 2 s complement with the sign extended to the highest bit of the second word You must check the sign of the low 16 bit word and extend it into the second 16 bit word If the most ...

Page 164: ...05 M0001 R0201 CONST 00001 SUB_ INT I1 Q I2 R0201 M0002 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 INT Signed integer DINT Double precision signed integer When...

Page 165: ...ergized when the function is performed without overflow Q All data types R AI AQ INT data type only I Q M T G Output Q contains the result of dividing I1 by I2 to obtain a remainder 10 5 2 2 Example In the example the remainder of the integer division of BOXES into PALLETS is placed into NT_FULL whenever I0001 is ON I0001 PALLETS 00017 BOXES 0006 MOD_ INT I1 Q I2 NT_FULL 0005 10 5 3 Math and Numer...

Page 166: ...f the input value 10 5 3 2 Example In the example the registers R0120 through R0123 are used to store the high and low scaling values The input value to be scaled is analog input AI0017 The scaled output data is used to control analog output AQ0017 The scaling is performed whenever I0001 is ON I0001 R0120 R0121 R0122 R0123 AI0017 OK ILO OHI OLO IN AQ0017 OUT SCALE_ INT IHI 10 5 4 Math and Numerica...

Page 167: ... is performed without overflow unless an invalid operation occurs Q All data types R AI AQ INT data type only I Q M T G Output Q contains the square root of IN 10 5 4 2 Example In the example the square root of the integer number located at AI001 is placed into the result located at R0003 whenever I0001 is ON I0001 AI001 SQROOT INT IN Q R0003 10 5 5 Math and Numerical Functions Trigonometric Funct...

Page 168: ... The Inverse Tangent function accepts the broadest range of input values where IN Given a valid value for the IN parameter the Inverse Tangent Real function produces a result Q such that ATAN IN 2 π 2 π Q 10 5 5 3 Parameters of the Trigonometric Functions Input Output Choices Description enable flow When the function is enabled the operation is performed IN R AI AQ constant IN contains the constan...

Page 169: ...output parameters The OK output receives power flow unless the input is NaN Not a Number or is negative Input Output OK Enable LOG_ REAL IN Q Input 1 Output OK Enable EXPT_ REAL I1 Q Input 2 I2 10 5 6 1 Parameters of the Logarithmic Exponential Functions Input Output Choices Description enable flow When the function is enabled the operation is performed IN or I1 I2 R AI AQ constant For EXP LOG and...

Page 170: ...tput OK Enable RAD_ TO DEG IN Q 10 5 7 1 Parameters of the Radian Conversion Function Input Output Choices Description enable flow When the function is enabled the operation is performed IN R AI AQ constant IN contains the real value to be operated on ok flow none The OK output is energized when the function is performed without overflow unless IN is NaN Q R AI AQ Output Q contains the converted v...

Page 171: ...ndition output Q receives power flow and is set ON 1 otherwise it is set OFF 0 Data Types for Relational Functions Relational functions operate on these types of data INT Signed integer DINT Double precision signed integer REAL Floating Point The S0020 bit is set ON when a relational function using Real data executes successfully It is cleared when either input is NaN Not a Number 10 6 1 Relationa...

Page 172: ... reference BIN_FUL If the value in PWR_MDE is less than or equal to the value in BIN_FUL coil Q0002 is turned on I0001 PWR_MDE BIN_FUL LE_ INT IN1 Q IN2 Q0002 10 6 2 Relational Functions Range The Range function determines if a value is within the range of two numbers 10 6 2 1 Data Types for the Range Function The Range function operates on these types of data INT Signed integer default DINT Doubl...

Page 173: ...ORD only I Q M T G IN contains the value to be compared against the range specified by L1 and L2 Q flow none Output Q is energized when the value in IN is within the range specified by L1 and L2 inclusive 10 6 2 3 Example In this example when the Range function receives power flow from relay I0001 the function determines whether the value in AI001 is within the range 0 to 100 R0001 contains the va...

Page 174: ...n the state or status of the reference being monitored and on the contact type A reference is ON if its state is 1 it is OFF if its state is 0 Type of Contact Display Contact Passes Power to Right Normally Open When reference is ON Normally Closed When reference is OFF Continuation Contact If the preceding continuation coil is set ON 10 7 1 1 Normally Open Contact A normally open contact acts as a...

Page 175: ...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 or multiple each reference can be used with multiple Coils Set Coils and Reset Coils With multiple usage a reference could be turned On by either a Set Coil or a normal Coil and could be turned Off by a Reset Co...

Page 176: ...h system status references SA SB SC or G Example In the example coil E3 is ON when reference E1 is ON and reference E2 is OFF E1 E2 E3 10 7 2 3 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 Example In the example coil E3 is ON when reference E1 is OFF E1 E2 E2 E3 10 7...

Page 177: ...ls Transitional coils can be used with references from either retentive or non retentive memory Q M T G SA SB or SC 10 7 2 8 Example In the example when reference E1 goes from OFF to ON coils E2 and E3 receive power flow turning E2 ON for one logic sweep When E2 goes from ON to OFF power flow is removed from E2 and E3 turning coil E3 ON for one sweep E1 E2 P E2 E3 N 10 7 2 9 SET and RESET are non ...

Page 178: ...crete reference ON if the coil receives power flow The reference remains ON until reset by a retentive RESET coil 10 7 2 12 Retentive RESET Coil This coil sets a discrete reference OFF if it receives power flow The reference remains OFF until set by a retentive SET coil The state of this coil is retained across power failure or when the PLC transitions from Stop to Run mode 178 GFK 1503E VersaMax ...

Page 179: ... function then writes the copied elements to the output array starting with the indexed location For bit data when word oriented memory is selected for the parameters of the source array and or destination array starting address the least significant bit of the specified word is the first bit of the array The indices in an Array Move instruction are 1 based In using an Array Move no element outsid...

Page 180: ... SA SB SC R AI AQ For INT BIT BYTE WORD I Q M T G The starting address of the destination array For ARRAY_MOVE_ BOOL any reference may be used it does not need to be byte aligned length The number of elements starting at SR and DS that make up each array It is defined as the length of SR DS 10 8 1 2 Example 1 In this example if R100 3 then R0003 R0007 of the array R0001 R0016 is read and is writte...

Page 181: ...OOL SR N SNX DNX DS CONST 00007 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 Search Greater Than Greater than a specified value Search Greater Than or Equal Greater than or equal to a specified value Search Less Than Less than a specified ...

Page 182: ... is performed AR For all R AI AQ For INT BYTE WORD I Q M T G For BYTE WORD S Contains the starting address of the array Input NX I Q M T G R AI AQ constant Contains the zero based index into the array at which to begin the search IN For all R AI AQ constant For INT BYTE WORD I Q M T G For BYTE WORD S IN contains the object of the search Output NX I Q M T G R AI AQ Holds the one based position with...

Page 183: ... first sweep will start searching at AI006 and find a match at AI007 so FD is ON and AQ001 is 7 The second sweep will start searching at AI008 and find a match at AI015 so FD remains ON and AQ001 is 15 The next sweep will start at AI016 Since the end of the array is reached without a match FD is set OFF and AQ001 is set to zero The next sweep will start searching at the beginning of the array AQ00...

Page 184: ... having an equal on and off time duration The contacts are referenced as T_10MS 0 01 second T_100MS 0 1 second T_SEC 1 0 second and T_MIN 1 minute The following timing diagram represents the on off time duration of these contacts X X 2 SEC T XXXXX X 2 SEC SEC These time tick contacts represent specific locations in S memory Function Block Data Required for Timers and Counters Each timer or counter...

Page 185: ...receives power flow and holds its value when power flow stops Time may be counted in tenths 0 1 hundredths 0 01 or thousandths 0 001 of a second The range is 0 to 32 767 time units The state of this timer is retentive on power failure no automatic initialization occurs at power up When this function first receives power flow it starts accumulating time current value When this timer is encountered ...

Page 186: ... is greater than or equal to the preset value time tenths hundredths or thousandths of seconds Time increment for the low bit of the PV preset and CV current value 10 9 1 2 Operation of the On Delay Timer Function A B C D E F G H a42931 ENABLE RESET Q A ENABLE goes high timer starts accumulating B Current value reaches preset value PV Q goes high C RESET goes high Q goes low accumulated time is re...

Page 187: ...d The range is 0 to 32 767 time units The state of this timer is retentive on power failure no automatic initialization occurs at power up Enable Preset Value TMR PV Q Address 3 words Current Value TENTHS When the On Delay Timer function receives power flow the timer starts accumulating time Current Value The Current Value is updated when it is encountered in the logic to reflect the total elapsed...

Page 188: ... the preset value time tenths 0 1 hundredths 0 01 or thousandths 0 001 of seconds Time increment for the low bit of the PV preset and CV current value 10 9 2 2 Operation of the On Delay Timer Function ENABLE Q a42933 A B C D E A ENABLE goes high timer begins accumulating time B Current value reaches preset value PV Q goes high and timer continues accumulating time C ENABLE goes low Q goes low time...

Page 189: ...ction stops receiving power flow from the left it continues to pass power to the right and the timer starts accumulating time in the Current Value The Off Delay Timer does not pass power flow if the Preset Value is zero or negative If multiple occurrences of the same timer with the same reference address are enabled during a CPU sweep the Current Values of the timers will be the same updated to re...

Page 190: ... 0 E ENABLE goes low timer starts accumulating time F ENABLE goes high timer is reset CV 0 G ENABLE goes low timer begins accumulating time H V reaches PV Q goes low and timer stops accumulating time 10 9 3 3 Parameters of the Off Delay Timer Function Input Output Choices Description address R The function uses three consecutive words registers of R memory to store the following Current value CV w...

Page 191: ...h time the enable input transitions from OFF to ON the Current Value increments by 1 The current value can be incremented past the Preset Value PV The output is ON whenever the Current Value is greater than or equal to the Preset Value The state of the CTU is retentive on power failure no automatic initialization occurs at power up Enable Reset Preset Value CTU R PV Q Address 10 9 4 1 Parameters o...

Page 192: ...ero CONST 00100 I0012 M0001 M0001 CTU R PV PRT_CNT 10 9 5 Timer and Counter Functions Down Counter The Down Counter function counts down from a preset value The minimum Preset Value is zero the maximum present value is 32 767 counts The minimum Current Value is 32 768 When reset the Current Value of the counter is set to the Preset Value PV When the enable input transitions from OFF to ON the Curr...

Page 193: ... is energized when the current value is less than or equal to zero 10 9 5 2 Example 1 In the example the down counter identified as COUNTP counts 500 new parts before energizing output Q0005 CONST 0500 NEW_PRT Q0005 NXT_BAT CTD R PV COUNTP 10 9 5 3 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 tempora...

Page 194: ...0104 R0104 I00002 I00003 MOVE_ INT IN Q R0100 CONST 00005 I00003 I00002 CTD R PV R0104 I00009 Refer to the sections on Math functions for an example of using the Addition and Subtraction functions to provide storage tracking 194 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 195: ...nications Window Mode SVCREQ 6 Change Read Number of Words to Checksum SVCREQ 7 Read or Change the Time of Day Clock SVCREQ 8 Reset Watchdog Timer SVCREQ 9 Read Sweep Time from Beginning of Sweep SVCREQ 10 Read Folder Name SVCREQ 11 Read PLC ID SVCREQ 13 Shut Down Stop PLC SVCREQ 14 Clear Fault SVCREQ 15 Read Last Logged Fault Table Entry SVCREQ 16 Read Elapsed Time Clock SVCREQ 18 Read I O Overri...

Page 196: ...nge Read Number of Words to Checksum 7 Change Read Time of Day Clock 8 Reset Watchdog Timer 9 Read Sweep Time from Beginning of Sweep 10 Read Folder Name 11 Read PLC ID 12 reserved 13 Shut Down the PLC 14 Clear Fault Tables 15 Read Last Logged Fault Table Entry 16 Read Elapsed Time Clock 17 reserved 18 Read I O Override Status 19 22 reserved 23 Read Master Checksum 26 30 Interrogate I O 27 28 rese...

Page 197: ...r flow unless an incorrect function number incorrect parameters or out of range references are specified Specific SVCREQ functions have additional causes for failure 11 2 1 Parameters of the SVCREQ Function Input Output Choices Description enable flow When enable is energized the service request is performed FNC I Q M T G R AI AQ constant Contains the constant or reference for the requested servic...

Page 198: ...second word If the timer value should not be changed enter 0 in the second word If the timer value does not already exist entering 0 causes the function to set the OK output to OFF 11 3 1 3 Change the Constant Sweep Time To change the timer value without changing the selection for sweep mode state enter SVCREQ function 1 with this parameter block address 2 address 1 new timer value 11 3 1 4 Read t...

Page 199: ...ock is in local memory at location R0050 Because the MOVE and ADD functions require three horizontal contact positions the example logic uses discrete internal coil M00001 as a temporary location to hold the successful result of the first rung line On any sweep in which OV_SWP is not set M00001 is turned off OV_SWP R0051 ADD_ INT I1 I2 Q CONST 00002 M00001 CONST 00001 SVC_ REQ FNC PARM R0050 CONST...

Page 200: ...ms A window is disabled when the time value is zero 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 must be zero reserved All parameters are output parameters It is not necessary to enter values in the parameter bloc...

Page 201: ... Completion is selected The parameter block has a length of one word 11 5 1 Changing the Programmer Communications Window Mode To change the programmer window enter SVCREQ 3 with this parameter block 11 5 1 1 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 m...

Page 202: ...o Completion is selected The parameter block has a length of one word 11 6 1 Changing the System Communications Window Mode To change the programmer window enter SVCREQ 4 with this parameter block High Byte Low Byte address Mode 6 11 6 1 1 Example of SVCREQ 4 In the following example when enabling input I0003 is ON the system communications window is changed to Run to Completion mode The parameter...

Page 203: ...word count the first word of the parameter block must contain a zero address 0 read word count address 1 ignored The function returns the current word count in the second word of the parameter block address 0 address 1 current word count To change the word count the first word of the parameter block must contain a one address 1 change word count address 1 new word count 0 to 32 The PLC will change...

Page 204: ...R0150 151 The ADD function adds 32 to the current word count in R0151 and places the result in R0153 The parameter block for the Change function is located at R00152 153 The second SVCREQ then changes to the new word count specified in R0153 FST_SCN R0151 ADD_ INT I1 I2 Q CONST 00032 R0153 I0137 CONST 00006 SVC_ REQ FNC PARM R0150 XOR_ INT I1 I2 Q R0150 R0150 R0150 CONST 00001 MOVE INT IN Q R0152 ...

Page 205: ...s 6 words packed ASCII requires 12 words 13 words for 4 digit year For both data types Hours are stored in 24 hour format Day of the week is a numeric value from 1 Sunday to 7 Saturday 2 Digit Year Format 4 Digit Year Format address 0 read time and date 0 read time and date 1 set time and date 1 set time and date address 1 1 BCD format 81h BCD format 3 packed ASCII format 83h packed ASCII format a...

Page 206: ...D format month year address 2 07 July 98 year hours day of month address 3 14 hours 03 day seconds minutes address 4 30 seconds 45 minutes null day of week address 5 0 06 Friday 11 8 2 2 4 Digit Year The parameter block has six words All bytes are used 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 1 change or 0 read address 0 00 r...

Page 207: ...ate and Time in Packed ASCII Format Mon Oct 5 1998 at 11 13 00pm 1 change or 0 read address 0 read 3 ASCII format address 1 3 ASCII format year year address 2 38 8 39 9 month space address 3 31 1 20 space space month address 4 20 space 30 0 day of month day of month address 5 35 5 30 leading 0 hours space address 6 31 1 20 space hours address 7 3A 31 1 minutes minutes address 8 33 3 31 1 seconds a...

Page 208: ...dress 3 38 8 39 9 month tens space address 4 31 1 20 space space month ones address 5 20 space 30 0 day of month ones day of month tens address 6 35 5 30 leading 0 hours tens space address 7 31 1 20 space colon hours ones address 8 3A 31 1 minutes ones minutes tens address 9 33 3 31 1 seconds tens colon address 10 30 0 3A space seconds ones address 11 20 space 30 0 day of week ones day of week ten...

Page 209: ...st also contain the data at R0300 BCD format requires six contiguous memory locations for the parameter block FST_SCN T0001 CONST 00007 SVC_ REQ FNC PARM R0300 CONST 04608 MOVE INT IN Q NOON CONST 00007 SVC_ REQ FNC PARM R0300 CONST 00000 MOVE INT IN Q MIN_SEC T0001 AND_ WOR I1 I2 Q CONST 00FF R0303 R0303 I0017 R0303 ADD_ INT I1 I2 Q NOON R0303 I0016 CONST 00000 MOVE INT IN Q R0300 CONST 00001 MOV...

Page 210: ...rom a communications line Caution Be sure that resetting the watchdog timer does not adversely affect the controlled process 11 9 1 Parameter Block Format for SVCREQ 8 This function has no associated parameter block 11 9 2 Example of SVCREQ 8 In this example power flow through enabling output Q0027 or input I1476 or internal coil M00010 causes the watchdog timer to be reset CONST 0008 SVC_ REQ FNC...

Page 211: ... is an output parameter block only it has a length of one word address time since start of sweep 11 10 1 1 Example of SVCREQ 9 In the following example the elapsed time from the start of the sweep is always read into location R0200 If it is greater than 100ms internal coil M0200 is turned on CONST 00009 SVC_ REQ FNC PARM I1 I2 Q GT_ INT CONST 0100 M0200 R0200 R0200 The Service Request Function GFK...

Page 212: ...s character 1 character 2 address 1 character 3 character 4 address 2 character 5 character 6 address 3 character 7 0 11 11 2 Example of SVCREQ 10 In this example when enabling input I0301 goes OFF register location R0099 is loaded with the value 10 which is the function code for the Read Folder Name function The Program Block READ_ID is then called to retrieve the folder name The parameter block ...

Page 213: ...cter 1 character 2 address 1 character 3 character 4 address 2 character 5 character 6 address 3 character 7 0 11 12 2 Example of SVCREQ 11 In this example when enabling input I0302 goes OFF register location R0099 is loaded with the value 11 which is the function code for the Read PLC ID function The program block READ_ID is then called to retrieve the ID The parameter block is located at address...

Page 214: ...has no parameter block 11 13 2 Example of SVCREQ 13 In the example when a Loss of I O Module fault occurs SVCREQ 13 executes The PARM input is not used This example uses a JUMP to the end of the program to force a shutdown if the Shutdown PLC function executes successfully This JUMP and LABEL are needed because the transition to Stop mode does not occur until the end of the sweep in which the func...

Page 215: ... 11 14 2 Example of SVCREQ 14 In the example when input I0346 is on and input I0349 is on the PLC fault table is cleared When input I0347 is on and input I0349 is on the I O fault table is cleared When input I0348 is on and input I0349 is on both are cleared The parameter block for the PLC fault table is located at R0500 for the I O fault table the parameter block is located at R0550 Both paramete...

Page 216: ...pends on whether the function reads data from the PLC fault table or the I O fault table PLC Fault Table Output Format I O Fault Table Output Format High Byte Low Byte High Byte Low Byte 0 1 spare long short address 1 memory type long short spare spare address 2 offset slot rack address 3 slot rack task address 4 block bus fault action fault group address 5 point error code address 6 fault action ...

Page 217: ...251 are both on the first Move function places a zero read PLC fault table into the parameter block for SVCREQ 15 When input I0250 is on and input I0251 is off the Move instruction instead places a one read I O fault table in the SVCREQ parameter block The parameter block is located at location R0600 I0250 CONST 00015 SVC_ REQ FNC PARM R0600 CONST 00000 MOVE INT IN LEN 00001 Q R0600 I0250 CONST 00...

Page 218: ... of SVCREQ 16 In the example when internal coil M0233 is on the SVCREQ with a parameter block located at R0127 reads the system s elapsed time clock and sets internal coil M0234 When coil M0233 is off the SVCREQ with a parameter block at R0131 reads the elapsed time clock again The subtraction function finds the difference between the first and second readings which have been stored in the SVCREQ ...

Page 219: ...No overrides are set 1 Overrides are set 11 17 2 Example of SVCREQ 18 The following SVCREQ reads the status of I O overrides memory into location R1003 The equality function checks R1003 to see if it is equal to the constant 1 If it is the equality function turns on output T0001 CONST 00018 SVC_ REQ FNC PARM R1003 I0001 I1 I2 Q EQ_ INT R1003 CONST 00001 T0001 The Service Request Function GFK 1503E...

Page 220: ...cksum Valid 0 not valid 1 valid address 1 Master Configuration Checksum Valid 0 not valid 1 valid address 2 Number of Program Blocks including _MAIN address 3 Size of User Program in Bytes DWORD data type address 5 Program Additive Checksum address 6 Program CRC Checksum DWORD data type address 8 Size of Configuration Data in Bytes address 9 Configuration Additive Checksum address 10 Configuration...

Page 221: ...once rather than multiple times SVC_REQ 24 is useful to recover Ethernet interface from failures caused by heavy traffic or high bit error rate PLC fault table and LAN status bits below can be used to determine whether the Ethernet interface on IC200CPUE05 is healthy or faulted The meaning of each individual status bit can be found in chapter 13 of GFK 1503 VersaMax PLC User Manual Users are advis...

Page 222: ...tion The more configuration faults there are the longer it takes these SVCREQs longer to execute These SVCREQs have no parameter block They always output power flow 11 20 1 Example of SVCREQ 26 In the example when input I0251 is ON the SVCREQ checks the installed modules and compares them to the software configuration Output Q0001 is turned on after the SVCREQ is complete CONST 00026 SVC_ REQ FNC ...

Page 223: ... output parameter block only The parameter block has a length of 3 words address Power Down Elapsed Seconds low order address 1 Power Down Elapsed Seconds high order address 2 zero The first two words are the power down elapsed time in seconds The last word is always 0 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 ...

Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 225: ...ring Serial Ports Using the COMMREQ Function RTU Slave SNP Slave Operation with a Programmer Attached COMMREQ Command Block for Configuring SNP Protocol COMMREQ Data Block for Configuring RTU Protocol COMMREQ Data Block for Configuring Serial I O Serial I O COMMREQ Commands Initialize Port Set Up Input Buffer Flush Input Buffer Read Port Status Write Port Control Cancel Operation Autodial Write By...

Page 226: ...tput When the function receives power flow a command block of data is sent to the specified module First word of command block Enable COMM_ REQ IN Location SYSID Task identifier TASK FT 12 1 1 Parameters of the COMMREQ Function Input Output Choices Description enable flow When the function is energized the communications request is performed IN R AI AQ IN contains the first word of the command blo...

Page 227: ... Length in words address 1 Wait No Wait Flag address 2 Status Pointer Memory address 3 Status Pointer Offset address 4 Idle Timeout Value address 5 Maximum Communication Time address 6 to address 133 Data Block 12 1 3 Example of the COMMREQ Function In the example when M0021 is ON a Command Block located starting at R0032 is sent to port 2 communications task 20 of the CPU rack 0 slot 0 If an erro...

Page 228: ...r the old form length 10H or the new form length 12H of the COMMREQ can be used Only the new form supports the new parameters 12 2 1 Timing If a port configuration COMMREQ is sent to a serial port that currently has an SNP SNPX master for example the programmer connected to it the serial port configuration specified by the COMMREQ does not take effect until the CPU detects a loss of the SNP SNPX m...

Page 229: ...ol from the port and installs SNP Slave as the currently active protocol The SNP ID modem turnaround time and default idle time for this new SNP Slave session are obtained from the configured CPU settings not the port 1 or port 2 configurations Connection should be established within 12 seconds When the programmer connection has been enabled normal programmer communications can take place Failure ...

Page 230: ... of the COMMREQ status word for example a value of 99 gives an address of 100 for the status word Status Word Pointer Offset Address 4 0 Only used in Wait No Wait mode Idle Timeout Value Address 5 0 Only used in Wait No Wait mode Maximum Communication Time Address 6 FFF0H Command Word serial port setup Address 7 0001 Protocol 1 SNP Address 8 0000 Slave Port Mode Address 9 7 38400 6 19200 5 9600 4 ...

Page 231: ...Flow Control Address 12 0 255 units of 10ms e g 10 100ms Turnaround delay Address 13 not used Timeout Address 14 not used Bits per Character Address 15 not used Stop Bits Address 16 not used Interface Address 17 0 2 wire 1 4 wire Duplex Mode Address 18 Station Address 1 247 Device Identifier Address 19 21 not used Device Identifier Address 22 0 255 units of 10ms e g 10 100ms Receive to transmit de...

Page 232: ...cter Address 15 0 1 stop bit 1 2 stop bits Stop Bits Address 16 not used Interface Address 17 0 2 wire 1 4 wire Duplex Mode Address 18 21 not used Device Identifier Address 22 0 255 units of 10ms e g 10 100ms Receive to transmit delay Address 22 0 255 units of 10ms e g 10 100ms RTS drop delay Note The data block length Address 0 for a COMMREQ that includes the Receive to transmit delay and RTS dro...

Page 233: ...rogrammer will not be able to communicate with the PLC via that port 12 3 1 Compatibility The COMMREQ function blocks supported by Serial I O are not supported by other currently existing protocols such as SNP slave SNP master and RTU slave Errors are returned if they are attempted for a port configured for one of those protocols 12 3 2 Status Word for Serial I O COMMREQs A value of 1 is returned ...

Page 234: ...nd a command string to an attached external modem The minor error code identifies the specific error 1 01h Not used 2 02h The modem command string length exceeds end of reference memory type 3 03h COMMREQ Data Block Length too small Output command string data missing or incomplete 4 04h Serial output timeout The serial port was unable to transmit the modem autodial output 5 05h Response was not re...

Page 235: ...sted command Retry the modem command later 11 0Bh Unknown response received from the modem Modem unable to complete the request Check the modem command string and modem Response should be CONNECTor OK 50 32h COMMREQ timeout The COMMREQ did not complete within a 20 second time limit Serial I O SNP RTU Protocols GFK 1503E User Manual 235 For public disclosure ...

Page 236: ...d or transmit data through the serial port Autodial 4400 Write bytes 4401 Read bytes 4402 Read String 4403 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 Autodial 4400 Initialize Port 4300 Set Up Input Buffer 4301 Flush Input Buffer 4302 Read Port Status 4303 Wri...

Page 237: ... 12 4 4 Initialize Port Function 4300 This function causes a reset command to be sent to the specified port It also cancels any COMMREQ currently in progress and flushes the internal input buffer RTS is set to inactive 12 4 4 1 Example Command Block for the Initialize Port Function VALUE decimal VALUE hexadecimal MEANING address 0001 0001 Data block length address 1 0000 0000 NOWAIT mode address 2...

Page 238: ...ad Bytes function It is not directly accessible from the application program If data is not retrieved from the buffer in a timely fashion some characters may be lost 12 4 5 2 Example Command Block for the Set Up Input Buffer Function VALUE decimal VALUE hexadecimal MEANING address 0002 0002 Data block length address 1 0000 0000 NOWAIT mode address 2 0008 0008 Status word memory type R address 3 00...

Page 239: ...uest was initiated previously and transmission of the specified number of characters is complete or a time out has elapsed The status returned by the function indicates the event or events that have completed More than one condition can occur simultaneously if both a read and a write were initiated previously 12 4 7 1 Example Command Block for the Read Port Status Function VALUE decimal VALUE hexa...

Page 240: ... of characters in the input buffer that have not been retrieved by the application characters which have been received and are available word 1 Port status word see below word 2 Characters available in the input buffer 240 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 241: ...uccessfully completed Cleared New Write Bytes invoked 10 WT Write Time out Set Transmit timeout occurred during Write Bytes Cleared New Write Bytes invoked 9 CA Character Available Set Unread characters are in the buffer Cleared No unread characters in the buffer 8 OF OverFlow error Set Overflow error occurred on the serial port or internal buffer Cleared Read Port Status invoked 7 FE Framing Erro...

Page 242: ...2 4 8 3 Operating Note For CPU port 2 RS 485 the RTS signal is also controlled by the transmit driver Therefore control of RTS is dependent on the current state of the transmit driver If the transmit driver is not enabled asserting RTS with the Write Port Control COMMREQ will not cause RTS to be asserted on the serial line The state of the transmit driver is controlled by the protocol and is depen...

Page 243: ...erations 3 Write operations 12 4 9 2 Operating Notes This function does not update the status of words of the cancelled COMMREQs Caution If this COMMREQ is sent in either Cancel All or Cancel Write mode when a Write Bytes 4401 COMMREQ is transmitting a string from a serial port transmission is halted The position within the string where the transmission is halted is indeterminate In addition the f...

Page 244: ...dial the number 1 503 555 9999 ATDT9 15035559999 CR 18 12h Tone dial using outside line with pause ATH0 CR 5 05h Hang up the phone ATZ CR 4 04h Restore modem configuration to internally saved values 12 4 10 2 Example Autodial Command Block This example COMMREQ command block dials the number 234 5678 using a Hayes compatible modem Word Definition Values 1 0009h CUSTOM data block length includes com...

Page 245: ... 0000 0000 Not used address 5 0000 0000 Not used address 6 4401 1131 Write bytes command address 7 0030 001E Transmit time out 30 seconds Refer to the following note address 8 0005 0005 Number of bytes to write address 9 25960 6568 h 68h e 65h address 10 27756 6C6C l 6Ch l 6Ch address 11 111 006F o 6Fh Although printable ASCII characters are used in this example there is no restriction on the valu...

Page 246: ... is not updated until the read operation is complete either due to timeout or when all the data has been received If the time out interval is set to zero the COMMREQ remains pending until it has received the requested amount of data or until it is cancelled If this COMMREQ fails for any reason no data is returned to the buffer Any data that was already in the buffer remains and can be retrieved wi...

Page 247: ...d Port Status Function is set 12 4 13 Read String Function 4403 This function causes characters to be read from the specified port until a specified terminating character is received The characters are read from the internal input buffer and placed in the specified input data area The function returns both the number of characters retrieved and the number of unprocessed characters still in the inp...

Page 248: ... still available in the input buffer after the read is complete if any and the actual input characters Address Number of characters actually read Address 1 Number of characters still available in the input buffer if any Address 2 first two characters first character is in the low byte Address 3 third and fourth characters third character is in the low byte Address n subsequent characters 12 4 13 3...

Page 249: ...saMax 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 Troubleshooting Common Ethernet Difficulties Ethernet Communications GFK 1503E User Manual 249 For public disclosure ...

Page 250: ...t the same time Indirectly attach to other Local Area Networks and or wide area networks via third party IP routers CPUE05 can communicate with remote PLCs and other nodes via an IP Router Communicate with remote computers via Serial Line Protocol SLIP using modems and or serial lines Using third party SLIP devices a remote host computer can be attached to a TCP IP network Once attached the serial...

Page 251: ... between each node and a hub or repeater Typical hubs or repeaters support 4 to 12 nodes connected in a star wiring topology 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 interroga...

Page 252: ...uthorities A different hostid giving it a unique IP address The hostid is generally assigned by your local network administrator IP addresses are written in dotted decimal format as four decimal integers 0 255 separated by periods Each integer represents one byte of the IP address For example the 32 bit IP address 00001010 00000000 00000000 00000001 is written as 10 0 0 1 The class of an IP addres...

Page 253: ...B C R Router Host B can communicate with host C directly because they are on the same network Their IP addresses have the same netid However to send data to host A which is on another network it has a different netid host B must send it via the router The router has two IP addresses 172 16 0 1 and 172 17 0 1 The first is used by hosts on Network 1 and the second is used by hosts on Network 2 In th...

Page 254: ...configured individually for each PLC and consists of one or more data ranges See chapter 6 for configuration information 13 4 1 The Frequency of Sending Receiving an Exchange During configuration the repetition period of each Ethernet Global Data exchange is set up for the producer The range is 10 milliseconds to 1 hour which is selectable in increments of 10 mS It is not necessary to produce and ...

Page 255: ...s D IP address reserved by the Internet authorities The default Multicast IP addresses used by Ethernet Global Data are Group ID IP Address 1 224 0 7 1 2 224 0 7 2 32 224 0 7 32 Group Multicast IP Addresses used by Ethernet Global Data should not be changed unless the defaults would cause a network conflict If necessary they can be changed within the reserved range of multicast IP addresses 224 0 ...

Page 256: ...et interface is synchronized to either the clock in the CPU or an external Network Time Protocol NTP server NTP is supported in IC200CPUE05 HK and previous versions only The CPU Time Clock If no NTP servers are configured the Ethernet interface s built in time clock is synchronized once at power up or restart to the clock in the CPU Because the clocks in the other devices on the network are not sy...

Page 257: ... be used to improve the availability of time servers When the time is obtained from an NTP server dates from January 1 1970 are supported by the Ethernet Interface 13 4 5 Configuring NTP for the CPUE05 Ethernet Interface This feature is supported in IC200CPUE05 HK and previous versions only To implement Network Time Protocol in the Ethernet interface in CPUE05 the IP address of one to three NTP Ti...

Page 258: ...ry in byte mode P C Q Discrete output memory in byte mode P C T Discrete temporary memory in byte mode P C M Discrete momentary memory in byte mode P C SA Discrete system memory group A in byte mode P C SB Discrete system memory group B in byte mode P C SC Discrete system memory group C in byte mode P C G Discrete global data table in byte mode P C 13 4 7 1 The Data Ranges in a Global Data Exchang...

Page 259: ... the Ethernet interface requests that the data for the exchange be transferred from reference memory during the output scan portion of the next CPU sweep Once the data has been transferred by the CPU sweep the Ethernet interface immediately formulates a sample and transfers the sample on the network As soon as a sample for a consumed exchange is received it is transferred to the CPU during the nex...

Page 260: ...e up to producer CPU sweep time Producer Period 1 5 Times CPU Sweep Producer PLC Output Scan Ethernet Global Data Production Timer Expires Sample on Network Example 2 More than one sample can be produced per producer period expiration and stale samples are produced to the network Producer Period 2 3 Time of CPU Sweep Producer PLC Output Scan Ethernet Global Data Production Timer Expires Sample on ...

Page 261: ...call GE Automation NA 1 800 433 2682 Please have the following information available when you call The Name and Catalog Number marked on the product Description of symptoms of problem Depending on the problem you may also be asked for the following information The ladder logic application program and the PLC sweep length at the time the problem occurred A listing of the configuration parameters fo...

Page 262: ...ORT 1 LAN STAT Off Off Off Off Make sure the PLC has power Look in the PLC Fault Table for problems Recheck configuration Check module installation If the problem persists replace PLC CPU PORT 1 LAN STAT Off Off Blinking amber Hardware failure mode STAT Blinks 2 digit error code Note error code 1 2 unexpected interrupt Power cycle or restart Ethernet interface 1 3 timer failure If problem persists...

Page 263: ... 1 Available for Station Manager use PORT 1 LAN STAT Amber Off Slow blink green Waiting for IP Address LAN Ethernet interface is offline Attempting to recover if possible STAT IP Address has not been configured PORT 1 PLC CPU is controlling Port 1 PORT 1 LAN STAT Amber Off Slow blink green Waiting for IP Address LAN Ethernet interface is offline Attempting to recover if possible STAT IP Address ha...

Page 264: ...n the following section lists Ethernet interface faults and corrective actions To display fault text for the Ethernet interface access the PLC Fault Table from the programmer For the Ethernet interface the leftmost 14 digits of extra fault data show the corresponding log Events 2 digits and Entries 2 3 4 5 and 6 in that order 4 digits each and other optional data The following example reports an E...

Page 265: ...st Verify that connection limits are not being exceeded LAN transceiver fault Off network until fixed Ethernet interface is not properly connected to the network Check the connection to the network hub or switch LAN system software fault aborted connection resuming Internal system error LAN system software fault restarted LAN IF LAN system software fault resuming Module software corrupted requesti...

Page 266: ...to 1 Bit 14 Resource Problem This bit is 1 whenever the Ethernet interface has a resource problem i e lack of data memory The bit is reset to 0 on a subsequent PLC sweep The Ethernet interface may or may not be able to continue functioning depending on the severity of the problem Use the PLC Fault Table to identify the problem The Station Manager STAT B and LOG commands can also provide more infor...

Page 267: ...t data has not been refreshed from the network 7 Data after refresh timeout Consumed only The data has been refreshed since the previous consumption but was not refreshed within the timeout period 10 IP connection not available Produced and Consumed The IP network connection is not available 12 Lack of resource error Produced and Consumed Local resources are not available to establish the exchange...

Page 268: ...orarily be forced to local Station Manager operation using the Restart pushbutton or using the chport1 Station Manager command The CPUE05 also supports remote Station Manager operation over the Ethernet network via UDP protocol With UDP protocol the remote station is addressed via an IP address Unlike some Series 90 Ethernet products CPUE05 cannot send or receive remote Station Manager messages th...

Page 269: ...e errors may also be accompanied by either of the following Backplane communication with PLC fault lost request with exception Event 8 Entry 2 6 LAN system software fault resuming with exception Event 8 Entry 2 16 The PLC Timeout condition occurs when the CPUE05 cannot process requests within a specified timeout period The remedy is to reduce the requests or increase the processing capacity in the...

Page 270: ... software fault resuming with exception Event 28 Entry 2 1 SCode 95255037H Runtime errors suspend normal operation and a blink fatal error code in amber at the STAT LED To recover manually restart the Ethernet interface Runtime error codes 31 and 33 have been observed under heavy load Refer to the section Checking the Ethernet LEDs earlier in this chapter for descriptions of runtime diagnostic fat...

Page 271: ...e the same size If the consumer wishes to ignore certain portions of a consumed exchange be sure that the length of the ignored portions is correct The ignored portion is specified as a byte count 13 6 4 Receive Resource Exhaustion Errors Heavy network traffic can exhaust available memory in the Ethernet interface used for network communications This most often occurs under heavy Ethernet Global D...

Page 272: ...individual ping requests may be ignored depending upon the timing of the ping requests on the network The CPUE05 may initiate ping requests to another host on the network via the ping Station Manager command The ping request sequence is restricted to one remote host at a time Discarded ping requests are not reported to the PLC Fault Table or Ethernet exception log 13 6 7 SRTP Connection Timeout Wh...

Page 273: ...ion block which is used for closed loop process control Operands of the PID Function Reference Array for the PID Function PID Algorithm Selection and Gain Calculations Determining the Process Characteristics Setting and Tuning Loop Gains Example PID Built in Function Block GFK 1503E User Manual 273 For public disclosure ...

Page 274: ... using process variable counts the PID function adjusts the output control variable so that the process variable matches the set point zero error INT BOOL array of length 16 or more All except S SA SB and SC No PV Process Variable input from the process being controlled Often a AI input INT BOOL array of length 16 or more All except S SA SB and SC and constant No MAN When energized to 1 through a ...

Page 275: ... from the ladder logic 14 2 1 Scaling Input and Outputs All parameters of the PID function are 16 bit integer words for compatibility with 16 bit analog process variables Some parameters must be defined in either PV counts or units or in CV counts or units The SP input must be scaled over the same range as the PV because the PID function calculates error by subtracting these two inputs The process...

Page 276: ... as a ratio of percentages with two decimal places For example a Kp entered as 450 is displayed as 4 50 and results in a Kp Error 100 or 450 Error 100 contribution to the PID Output PID_ISA Same as PID_IND Kp is generally the first gain set when adjusting a PID loop 0 01 CV PV CV PV 0 to 327 67 7 Address 6 PID_IND Derivative Gain Kd PID_ISA Derivative Time Td Kd PID_IND Change in the control varia...

Page 277: ...he second gain set after Kp Repeats 0 001 Sec 0 to 32 767 repeats sec 9 Address 8 CV Bias Output Offset Number of CV Counts added to the PID Output before the rate and amplitude clamps It can be used to set non zero CV values when only Kp Proportional gains are used or for feed forward control of this PID loop output from another control loop CV Counts 32768 to 32767 add to PID output 10 11 Addres...

Page 278: ...m is PV SP Setting this bit to 1 modifies the standard PID Error Term from the normal SP PV to PV SP reversing the sign of the feedback term This mode is used for reverse acting controls where the CV must go down when the PV goes up Bit 1 Output Polarity When this bit is 0 the CV output is the output of the PID calculation When it is set to 1 the CV output is the negated output of the PID calculat...

Page 279: ...st order filter is applied This will limit the effects of higher frequency process disturbances such as measurement noise on the derivative term Setting Config Word Set Config Word to 0 for default operation Add 1 16 0001 to set bit 0 add 2 16 0002 to set bit 1 add 4 16 0004 to set bit 2 add 8 16 0008 to set bit 3 add 16 16 0010 to set bit 4 and add 32 16 0020 to set bit 5 For example to set bits ...

Page 280: ...ontacts below If 1 set them externally 1 2 Manual Auto If 1 block is in Manual mode If other numbers it is in Automatic mode 2 4 Enable Should normally be 1 Otherwise block is never called 3 8 UP Raise If 1 and Manual bit 1 is 1 CV is incremented every solution 4 16 DN Lower If 1 and Manual bit 1 is 1 CV is decremented every solution 16 Address 15 Internal SP Tracks the SP input If Override 1 must...

Page 281: ...riting to these locations Note If you call the PID block in Automatic mode after a long delay you might want to use SVC_REQ 16 or SVC_REQ 51 to load the current CPU elapsed time clock into Word 24 to update the last PID solution time to avoid a step change of the integral term Set and maintained by the CPU Non configurable 27 Address 26 Integral Remainder Storage Holds remainder from integral term...

Page 282: ...Manual Command word is incremented UP or decremented DN by one CV count every PID solution For faster manual changes of the output CV it is also possible to add or subtract any CV count value directly to from the Manual Command word word 14 of the reference array The PID function block uses the CV Upper Clamp and CV Lower Clamp parameters to limit the CVoutput If a positive Minimum Slew Time word ...

Page 283: ... 0 the PID function is restricted to a minimum of 10 milliseconds between solutions If the sweep time is less than 10 milliseconds the PID function waits until enough sweeps have occurred to accumulate an elapsed time of 10 milliseconds For example if the sweep time is 9 milliseconds the PID function executes every other sweep and the time interval between solutions is 18 milliseconds If a specifi...

Page 284: ...s that adjusting Kc changes the contribution for the integral and derivative terms as well as the proportional term which can simplify loop tuning If you have the PID_ISA Kc Ti and Td values use the following equations to convert them to use as PID_IND parameters Kp Kc Ki Kc Ti and Kd Kc Td The following diagram shows how the PID_IND algorithm works Ki Error Time Integral Term Proportional Term Kp...

Page 285: ...nt swings in the derivative term and hence the output Loop stability may be improved by eliminating the effect of SP changes on the derivative term To calculate the Derivative based only on the change in PV set bit 2 of the Config Word to 1 This modifies the equations above by assuming SP is constant ΔSP 0 For bit 2 set in normal mode bit 0 0 ΔError ΔPV For bit 2 set in Reverse Acting mode bit 0 1...

Page 286: ...p Action bit bit 4 of Config Word word 13 of the reference array is zero the default the integral term is adjusted at each PID solution to match the error input and limited CV output exactly When PV changes while CV is clamped or when CV is both rate and amplitude limited in a particular PID solution this option assures that a smooth transition will always occur after CV is no longer limited If th...

Page 287: ...total time constant divided by 1000 or the Ki Error dt term for the PID integral term will round down to 0 For example a very slow process that takes 10 hours or 36 000 seconds to reach the 63 level should have a Sample Period of 40 seconds or longer Variations of the time interval between PID function solutions can have shortterm effects on the CVoutput For example if a step change to PV caused b...

Page 288: ...ocess The following process model parameters can be determined from the PV unit reaction curve K Process open loop gain final change in PV change in CV at time t0 Tp Process or pipeline time delay or dead time after t0 before the process output PV starts moving Tc First order Process time constant time required after Tp for PV to reach 63 2 of the final PV One way to measure these parameters is by...

Page 289: ...ng that dampens out to a steady value in two to three cycles This may require reducing Kp Also try different SP step sizes and CVoperating points 5 After suitable Kp and Ki gains are found try adding Kd to get quicker responses to input changes providing it doesn t cause oscillations Kd is often not needed and will not work with noisy PV 6 Check gains over different SP operating points and add Dea...

Page 290: ...s variable is returned in AI0003 CV Upper and CV Lower Clamps must be set in this case to 20000 and 4000 and an optional small Dead Band of 5 and 5 is included The 40 word reference array starts in R0100 Normally user parameters are set in the reference array but M0006 can be set to reinitialize the 14 words starting at R0102 word 3 from constants stored in logic a useful technique The block can b...

Page 291: ...on Address Value 12 Minimum Slew Time R111 0 13 Config Word R112 0 14 Manual Command R113 0 15 Control Word R114 0 16 Internal SP R115 0 PID Built in Function Block GFK 1503E User Manual 291 For public disclosure ...

Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 293: ... Global Data and Advanced User Parameters for Ethernet A programmer and PLC CPU are used to initially write data to the device In addition to writing data to the device the programmer can read data already stored on an EZ Program Store device and compare that data with similar files already present in the programmer Once the data is written to the EZ Program Store device the data can be written to...

Page 294: ...t does not need to be screwed down to the PLC The device can be hot inserted and hot removed without disrupting the system Features 2 Megabit Serial Data Flash for non volatile storage Pushbutton initiates update from the device to a PLC Dual color status LED Configurable OEM key password protection Compatible with all VersaMax CPU models release 2 10 and later 294 GFK 1503E VersaMax PLC User Manu...

Page 295: ... it is important to be sure that the information placed on the EZ Program Store device is complete for proper operation of the PLC system For example if the EZ Program Store device contains an application program but instead of a customized hardware configuration it contains the default PLC configuration the update will overwrite any existing configuration data in a PLC being updated If that happe...

Page 296: ... 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 Select RAM only to update only RAM memory in the target PLC Select RAM FLASH to update both 15 1 5 Using the EZ Program Store Device with the Programmer Programmer EZ Program Store Device CPUE05 To read write or verify some or all of the data follow t...

Page 297: ...op No I O the Run LED goes off Note that to change the PLC mode from Run to Stop or from Stop to Run mode when an EZ Program Store device is attached the PLC s Run Stop switch must be used If a programmer computer is also connected to the PLC at the same time the programmer cannot be used to change the PLC mode 4 Start the programming software and change the request timeout values as needed 5 Conn...

Page 298: ... 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 CPUE05 FAULT RUN PWR OK PORT 2 FORCE PORT 1 Port 2 LED Run LED 2 If the PLC s Run LED is blinking and the LED on the device is green stop the PLC by moving the Run Stop switch from Run On to Stop Off po...

Page 299: ... tables to or from the EZ Program Store device may take 30 seconds or more to complete When the device s LED turns solid green and the CPU s Run LED starts blinking the update has completed successfully EZ Program Store Device LED 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 The EZ Program Store Device GFK 1503...

Page 300: ...ng green amber and the CPU s Run LED is off an error occurred during the transfer after the data in the PLC was erased Try the update again by disconnecting and reconnecting the device and pressing the pushbutton If the second update fails contact the update provider for service Update errors are reported as USD Flash Read faults in the PLC Fault Table The first two bytes of extra fault data descr...

Page 301: ...ta Base Sweep Time The table below shows the base sweep time with the default program in Run mode no I O modules present or configured and no serial connections to either serial port Model Time in milliseconds CPU001 002 1 605 CPU005 1 039 CPUE05 1 91 Boolean Instruction Time This table shows the typical sweep impact time for boolean instructions Model Typical Time in microseconds CPU001 002 1 7 C...

Page 302: ... 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 For table functions increment is in units of length specified For bit operation functions microseconds bit For data move functions microseconds number of bits or words For functions that have an incr...

Page 303: ...2 60 10 13 Modulo Division DINT 80 12 60 10 19 Square Root INT 85 12 60 10 10 Square Root DINT 126 12 70 10 13 Square Root REAL 514 12 340 10 11 Scale INT 112 12 78 10 22 Scale WORD 110 12 73 10 22 Trigonometric SIN REAL 1432 12 945 10 11 COS REAL 1437 12 945 10 11 TAN REAL 2135 20 1400 20 11 ASIN REAL 1838 12 1200 10 11 ACOS REAL 1793 12 1200 10 11 ATAN REAL 820 12 542 10 11 Logarithmic LOG REAL ...

Page 304: ...10 10 Equal DINT 50 12 37 10 16 Equal REAL 60 12 41 10 14 Not Equal INT 40 12 30 10 10 Not Equal DINT 45 12 30 10 16 Not Equal REAL 60 12 40 10 14 Greater Than INT 40 12 30 10 10 Greater Than DINT 45 12 30 10 16 Greater Than REAL 60 12 40 10 14 Greater Than Equal INT 40 12 30 10 10 Greater Than Equal DINT 46 12 30 10 10 Greater Than Equal REAL 60 12 40 10 14 Less Than INT 40 12 30 10 10 Less Than ...

Page 305: ...110 12 70 10 18 45 16 Rotate Bit Right 111 12 70 10 18 41 16 Bit Position 76 12 57 10 13 Bit Clear 70 12 56 10 13 Bit Test 60 12 44 10 13 Bit Set 70 12 56 10 13 Mask Compare WORD 158 12 110 10 25 Mask Compare DWORD 150 12 100 10 25 Bit Sequencer 150 109 101 77 0 24 16 Data Move Move INT 45 12 32 10 2 83 10 Move BIT 80 12 60 10 10 76 13 Move WORD 46 12 32 10 2 82 10 Move REAL 60 12 47 10 2 75 13 Bl...

Page 306: ... BYTE 81 12 60 10 2 58 19 WORD 90 12 70 10 6 59 19 Search Not Equal INT 100 12 78 10 6 66 19 DINT 110 12 81 10 7 14 22 BYTE 74 12 57 10 2 56 19 WORD 100 12 78 10 6 66 19 Search Greater Than INT 100 12 80 10 6 69 19 DINT 94 12 70 10 7 12 22 BYTE 90 12 69 10 2 58 19 WORD 100 12 76 10 6 69 19 Search Greater Than Equal INT 90 12 70 10 6 79 19 DINT 90 12 60 10 7 15 22 BYTE 81 12 60 10 2 56 19 WORD 90 1...

Page 307: ...BYTE 72 12 54 10 2 59 19 WORD 80 12 60 10 6 66 19 Appendix A Performance Data GFK 1503E User Manual 307 For public disclosure ...

Page 308: ...13 Truncate to DINT 179 12 128 10 13 Control Call a Subroutine 60 12 40 10 7 Do I O 130 12 130 10 13 PID ISA Algorithm 231 85 150 57 16 PID IND Algorithm 231 85 150 57 16 Service Request 6 77 12 60 10 10 7 Read 221 12 173 10 10 7 Set 2610 12 2211 10 10 14 169 12 139 10 10 15 100 12 72 10 10 16 110 12 80 10 10 18 346 12 251 10 10 23 377 12 361 10 10 26 30 912 12 912 10 10 29 72 12 60 10 10 Nested M...

Page 309: ...e tables discrete modules are grouped by type Module Type Module Catalog Number IC200 Discrete Input Type 1 MDL140 MDL141 MDL143 MDL144 MDL631 MDL635 MDL640 MDL643 MDD842 MDD843 MDD844 MDD845 MDD846 MDD847 MDD848 MDD849 MDD850 MDL930 Discrete Input Type 2 MDL240 MDL241 MDL243 MDL244 MDL632 MDL636 MDL644 MDL650 MDD840 Discrete Output Type 1 MDL329 MDL331 MDL740 MDL741 MDL743 MDD842 MDD843 MDD844 MD...

Page 310: ...ls 239 312 Analog Input 15 Channels 377 526 Analog Output 2 Channels 109 161 Analog Output 4 Channels 145 202 Analog Output 8 Channels 217 285 Analog Output 12 Channels 289 367 Intelligent Analog Input 4 Channels 237 281 Intelligent Analog Input 7 Channels 261 305 Intelligent Analog Input 8 Channels 272 313 Intelligent Analog Output 4 Channels 212 264 PLC Network Comm Profibus DP Slave DeviceNet N...

Page 311: ...e Input 20 Points 643 763 Intelligent Discrete Output 12 Points 714 756 Analog Input 4 Channels 317 389 Analog Input 8 Channels 527 631 Analog Input 15 Channels 896 1054 Analog Output 2 Channels 204 266 Analog Output 4 Channels 296 374 Analog Output 8 Channels 480 592 Analog Output 12 Channels 664 809 Intelligent Analog Input 4 Channels 438 533 Intelligent Analog Input 7 Channels 479 580 Intellige...

Page 312: ...177 261 Intelligent Discrete Input 20 Points 651 766 Intelligent Discrete Output 12 Points 728 757 Analog Input 4 Channels 324 393 Analog Input 8 Channels 541 646 Analog Input 15 Channels 920 1087 Analog Output 2 Channels 206 267 Analog Output 4 Channels 300 377 Analog Output 8 Channels 489 596 Analog Output 12 Channels 678 815 Intelligent Analog Input 4 Channels 442 535 Intelligent Analog Input 7...

Page 313: ...put 20 Points 4050 4086 Intelligent Discrete Output 12 Points 5135 5135 Analog Input 4 Channels 2054 2093 Analog Input 8 Channels 3660 3660 Analog Input 15 Channels 6471 6471 Analog Output 2 Channels 1221 1251 Analog Output 4 Channels 1991 2021 Analog Output 8 Channels 3531 3560 Analog Output 12 Channels 5071 5099 Intelligent Analog Input 4 Channels 3155 3196 Intelligent Analog Input 7 Channels 34...

Page 314: ...h exchange that will be transferred during the sweep This overhead varies depending on whether the exchange is consumed or produced and if the time stamp for the exchange originates from the PLC itself or from a remote Network Time Protocol NTP server When computing the sweep impact include overhead time for each exchange The NTP time synchronization feature is supported in IC200CPUE05 HK and prev...

Page 315: ...ase conditions These numbers will scale downwards based on the size of the user program the presence of other Ethernet traffic etc The term Best Case indicates the following setup parameters apply No user logic is present so the logic sweep time is nearly 0 There are no modules present in the system No other Ethernet traffic present on the network Assumed data refresh timeout is 2 refresh period 1...

Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...

Page 317: ......

Page 318: ...GE Intelligent Platforms 1 800 433 2682 1 434 978 5100 www ge ip com GFK 1503E For public disclosure ...

Reviews: