Kuhnke KUAX 680C Instruction Manual

Compact control
Hide thumbs Also See for KUAX 680C:
Table of Contents

Advertisement

Kuhnke Electronics
Instruction Manual
Compact Control KUAX 680C
E 399 GB
16 January 1996 / 67.977

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KUAX 680C and is the answer not in the manual?

Questions and answers

Summary of Contents for Kuhnke KUAX 680C

  • Page 1 Kuhnke Electronics Instruction Manual Compact Control KUAX 680C E 399 GB 16 January 1996 / 67.977...
  • Page 2 This manual is primarily intended for the use of the designing engineer, the project planning engineer, and the developing engineer. It does not give any information about delivery possibilities. Data is only given to describe the product and must not be regarded as guaranteed properties in the legal sense. Any claims for damages against us –...
  • Page 3: Table Of Contents

    Table of contents Table of contents 1. Introduction ..............1-1 2. Safety and Reliability ........... 2-1 2.1. Target group ....................2-1 2.2. Reliability ....................... 2-1 2.3. Notes ......................2-2 2.3.1. Danger ......................2-2 2.3.2. Dangers caused by high contact voltage ............ 2-2 2.3.3 Important information / cross reference ............
  • Page 4 Table of contents 3.2. Basic device: dimensions and mounting ............3-5 3.2.1. Wall mounting ....................3-5 3.2.2. Carrier rail mounting ..................3-6 3.3. Power supply ....................3-7 3.3.1. Emergency Off installation for the outputs ..........3-8 3.4. Interfaces for serial communication ............3-11 3.4.1. RS 232 (V.24) ..................3-11 3.4.1.1.
  • Page 5 Table of contents 4.3. Commands overview ..................4-5 4.3.1. Logical operations commands ..............4-5 4.3.2. Arithmetic commands ................4-11 4.3.3. Comparison commands ................4-12 4.3.4. Shift and rotation commands ..............4-13 4.3.5. Byte and flag manipulation ..............4-14 4.3.6. Module calls ..................... 4-14 4.3.7.
  • Page 6 Table of contents 4.7. Module programming ................. 4-37 4.7.1. Organization module ................4-38 4.7.2. Program module ..................4-38 4.7.3. Function module ..................4-39 4.7.4. Timer module ................... 4-40 4.7.5. Interrupt module ..................4-41 4.7.6. Initialization module ................4-43 4.7.7. Data module ..................... 4-43 4.7.8.
  • Page 7 Table of contents 6.4. S-marker as AND/OR marker ..............6-10 6.4.1. Network with OR marker ................ 6-10 6.4.2. Network with AND marker ..............6-11 6.4.3. Network with multiple use of the OR marker ......... 6-12 6.5. Circuit conversion ..................6-13 6.6.
  • Page 8 Table of contents 6.13.3.To copy sixteen 1bit operands into two bytes ........6-34 6.13.4. To copy two bytes into sixteen 1bit operands ........6-34 6.14. Comparator circuits .................. 6-35 6.14.1. 8bit comparator ..................6-35 6.14.1.1. Result of the comparison: logical evaluation ........6-35 6.14.1.2.
  • Page 9 Table of contents Appendix A. Technical specifications ..........A-1 B. Order specifications ............ B-1 C. Literature and trademarks ..........C-1 C.1. References to literature ................C-1 C.1.Trademarks ....................C-1 D. Reactions to failures ............ D-1 D.1. Short circuit on an output (failure #1) ............D-3 D.2.
  • Page 10 Table of contents Contents - 8...
  • Page 11: Introduction

    16 digital outputs 2 analog outputs Should you need more you can extend the configuration of the KUAX 680C by up to 4 modules. All modules of the KUAX 680I can be used with the sole exception of the event counter module.
  • Page 12 Introduction 1 - 2...
  • Page 13: Safety And Reliability

    2.2. Reliability Reliability of Kuhnke controllers is brought to the highest pos- sible standards by extensive and cost-effective means in their design and manufacture. These include:...
  • Page 14: Notes

    Safety and Reliability 2.3. Notes Please pay particular attention to the additional notes which we have marked by symbols in this instruction manual: 2.3.1. Danger This symbol warns you of dangers which may cause death, (grievous) bodily harm or material damage if the described precautions are not taken.
  • Page 15: Safety

    Safety and Reliability 2.4. Safety Our product normally becomes part of larger systems or install- ations. The following notes are intended to help integrating the product into its environment without dangers for man or mate- rial/equipment. 2.4.1. To be observed during project planning and installation - 24V DC power supply: Generate as electrically safely separated low voltage.
  • Page 16: To Be Observed During Maintenance And Servicing

    (Admissible deviations during working on parts) in particular, when measuring or checking a controller in a power-up con- dition, . - Repairs must only be executed by the trained Kuhnke person- nel (usually in the main factory in Malente). Warranty ex- pires in any other case.
  • Page 17: Electromagnetic Compatibility

    Safety and Reliability 2.5. Electromagnetic compatibility 2.5.1. Definition Electromagnetic compatibility is the ability of a device to func- tion satisfactorily in its electromagnetic environment without itself causing any electromagnetic interference that would be intolerable to other devices in this environment. Of all known phenomena of electromagnetic noise, only a cer- tain range occurs at the location of a given device.
  • Page 18: Interference Emission

    Safety and Reliability 2.5.3. Interference emission Interfering emission of electromagnetic fields, HF in accordance with EN 55011, limiting value class A, group 1 If the controller is designed for use in residential districts, then high-frequency emissions must comply with limiting value class B as described in EN 55011.
  • Page 19: Protection Against External Electrical Influences

    Safety and Reliability 2.5.5. Protection against external electrical influences Connect the control system to the protective earth conductor to eliminate electromagnetic interference. Ensure practical wiring and laying of cables. 2.5.6. Cable routing and wiring Separate laying of power supply circuits, never together with control loops: DC voltage 60 V ...
  • Page 20: Location Of Installation

    Safety and Reliability 2.5.7. Location of installation Make sure that there are no impediments due to temperatures, dirt, impact, vibrations and electromagnetic interference. Temperature Consider heat sources such as general heating of rooms, sun- light, heat accumulation in assembly rooms or control cabinets. Dirt Use suitable casings to avoid possible negative influences due to humidity, corrosive gas, liquid or conducting dust.
  • Page 21: Hardware

    3. Hardware The KUAX 680C has a compact design. The basic configuration is as follows: User memory User memory User memory User memory User memory program and data: 112 KByte flash EPROM data: 64 KByte RAM, buffered by accu Internal inputs and outputs...
  • Page 22: Layout Of Leds And Connectors

    Basic device 3.1. Layout of LEDs and connectors 3.1.1. Top view 16 outputs 16 inputs 24VDC 0,5A 24VDC 5ms stop failure cnt. inputs 24VDC int. inputs com1 com2 680.430.01 plc output supply 24VDC 24VDC 0V Legend 3 system LEDs: run (green), stop (red), failure (red) 16 LEDs "internal outputs"...
  • Page 23: Front View

    Layou, connectors, LEDs 3.1.2. Front view 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3...
  • Page 24: Screw-Type Locking Connectors

    Basic device 3.1.3. Screw-type locking connectors Power supply, inputs, outputs and the RS 485 interface are all connected by means of screw-type locking connectors (COMBICON of the Phoenix company): Power supply: connector type COMBICON matrix 5.08 mm, connector 0.2...2.5 mm², max. load 12 A all other connectors: connector type MINI-COMBICON matrix 3.81 mm, connector 0.14...1.5 mm²...
  • Page 25: Basic Device: Dimensions And Mounting

    H = 51 mm, with modules: 108 mm, when mounted on carrier rail: + 7.5 mm 3.2.1. Wall mounting Use 5 M4 screws to attach the device. The illustration shows the positions of the drill holes in the base plate of the KUAX 680C. ø4,2 50,5 131,5 Dimensions and positions of the drill holes are the same as on the KUAX 680I (with 4 module slots).
  • Page 26: Carrier Rail Mounting

    Basic device 3.2.2. Carrier rail mounting The basic device can also be mounted on a carrier rail in ac- cordance with DIN EN 50022 (35 x 7.5 mm). Screw 2 quick screw connectors for carrier rail mounting into the base plate for this purpose (use 3 for devices with 8 slots). These must be ordered separately (see appendix "B.1.
  • Page 27: Power Supply

    3.3. Power supply The device is supplied with power via a 4pin screw-type locking connector (matrix 5,08). 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7...
  • Page 28: Emergency Off Installation For The Outputs

    Power supply 3.3.1. Emergency Off installation for the outputs Due to the separate power supply of the outputs, these can be deactivated via a shared emergency off installation. The advantage is that the system is still supplied with power, the inputs read and communication (with terminal, PC...) con- tinued.
  • Page 29 Emergency Off installation Correct: To avoid this situation, also connect the supply of supplemen- tary key switches or other switching elements (in this case: the test switch) to the emergency off installation if the switches are connected in parallel to the outputs: power supply +24 V DC emergency-off installation...
  • Page 30 Power supply 3.3.2. Grounding On the base plate of the device (see "3.1.1. Top view", pos. 10a) there is a threaded bolt of dimensions M4 x 15 mm with two nuts for connecting the grounding wire with the frame ground. ²...
  • Page 31: Interfaces For Serial Communication

    (RS 232/1 and RS 232/2 or RS 232/1 and RS 485). 3.4.1. RS 232 (V.24) The KUAX 680C has two V.24 interface connectors which can be accessed from above. Use these interfaces to program the de- vice and to establish the connection for communication with PCs, user terminals or other machines.
  • Page 32: Interface Rs 232/1

    You can use a KUBES module to disable this inter- face and to activate the RS 485. 3.4.1.3. Programming Programs for the KUAX 680C are written using KUBES, the Kuhnke user software (as from version 4.12). KUBES runs on PCs under the Windows user interface (version 3.1 or better).
  • Page 33 Interfaces 3.4.2. Interface RS 485 Serial interface, used for networking with other devices. The connector is located at the front of the device (see "3.1.2. Front view", pos. 8). Use a KUBES module (please ask us) to activate this interface. Activating the RS 485 deactivates interface RS 232/2.
  • Page 34: User Memory

    Basic device 3.5. User memory The KUAX 680C is equipped with a Flash-EPROM and RAM. Some of these memory resources are available for the user: Program memory Program memory Program memory Program memory Program memory Programs are mainly stored in the Flash-EPROM. Here the pro- gram is saved and stored safely without the use of electrical en- ergy.
  • Page 35: System Messages

    Flash-EPROM Bank 2 64 KByte 3.6. System messages The operating status of the KUAX 680C is indicated by three light emitting diodes (LEDs) which are located on the left side of the device (see chapter "3.1.1. Top view"). Colour Function...
  • Page 36: Internal Inputs And Outputs

    Process image Process image Process image The KUAX 680C has a process image for the digital inputs and outputs. The processor works with this process image when the program instructs it to read inputs or to write to outputs. The status of inputs is requested between two subsequent pro- gram cycles and then entered as information into the process image.
  • Page 37: Digital Inputs, 5 Ms

    Internal inputs and outputs 3.7.1. Digital inputs, 5 ms These inputs are designed for registering digital signals from various sources. When working with proximity switches and semiconductor sensors in particular, you must make sure that they operate within the range of switching threshold values indi- cated below.
  • Page 38 Basic device Signal line connection Signal line connection Signal line connection Signal line connection Signal line connection The input signal lines are connected to the front of the device via two 8pin screw-type locking connectors. Please refer to the illustration given in chapter "3.1.2. Front view", pos. 24, to find the exact location of the connectors.
  • Page 39: Counter Inputs, 10 Μs

    Internal inputs and outputs 3.7.2. Counter inputs, 10 µs The KUAX 680C has two fast counters. Each of these is as- signed an input for recognising the counting signals. These in- puts have a particularly short signal delay. They can also be read in the user program (via the process image) and treated like normal inputs.
  • Page 40 Basic device Signal line connection Signal line connection Signal line connection Signal line connection Signal line connection The input signal lines are connected to the front of the device via a 2pin screw-type locking connector. Please refer to the il- lustration given in chapter "3.1.2.
  • Page 41 Internal inputs and outputs Counting function Inputs Inputs Inputs Inputs Inputs The counters work as event counters. The inputs are perma- nently allocated to the counters: SI00.00 counter #1 SI00.01 counter #2 Transfer buffer memory Transfer buffer memory Transfer buffer memory Transfer buffer memory Transfer buffer memory A memory area is used as transfer buffer for communication be-...
  • Page 42: Interrupt Inputs, 300 Μs

    Basic device 3.7.3. Interrupt inputs, 300 µs The KUAX 680C has two interrupt inputs for very fast recogni- tion of external events. These inputs have a particularly short signal delay. They can be read like normal inputs in the user program (operands SI01.00...01.01) and trigger a processor in-...
  • Page 43 Internal inputs and outputs Signal line connection Signal line connection Signal line connection Signal line connection Signal line connection The input signal lines are connected to the front of the device via a 2pin screw-type locking connector. Please refer to the il- lustration given in chapter "3.1.2.
  • Page 44 Basic device Interrupt function Interrupt module no. 10 Interrupt module no. 10 Interrupt module no. 10 Interrupt module no. 10 Interrupt module no. 10 If one of the two inputs triggers an interrupt, this event immedi- ately calls up interrupt module no. 10. Use this module for the program that defines the reaction to an interrupt event.
  • Page 45: Analog Inputs, 0

    Internal inputs and outputs 3.7.4. Analog inputs, 0...10 V, 10 bit, single-ended In its basic configuration, the KUAX 680C is equipped with four analog inputs. Further analog inputs can be added as plug- in modules. Signal line connection Signal line connection...
  • Page 46 Basic device Representation of the analog value Representation of the analog value Representation of the analog value Representation of the analog value Representation of the analog value The read analog value is digitalised and the digital value written into a 16bit address as two's complements. In this address, the value is contained in bits 5...14.
  • Page 47: Digital Outputs, 500 Ma

    Internal inputs and outputs 3.7.5. Digital outputs, 500 mA Digital outputs provide the connection to the external actuators (relays, contactors, solenoids, valves...). Resistive or inductive loads can be applied. Free-wheeling di- odes have been added to suppress inductive switch-off surges. The switching state of the outputs is indicated by LEDs.
  • Page 48 Basic device Protection against short circuit and overload Protection against short circuit and overload Protection against short circuit and overload Protection against short circuit and overload Protection against short circuit and overload The following means have been implemented to protect the out- puts against destruction caused by overload or short circuit: the load current is limited to approx.
  • Page 49: Analog Outputs, 0

    Internal inputs and outputs 3.7.6. Analog outputs, 0...10 V, 8 bit In its basic configuration, the KUAX 680C is equipped with two analog outputs. Further outputs can be added as plug-in mod- ules. The internal analog outputs described in this chapter are gener- ated by the processor via the PWM outputs.
  • Page 50 Basic device Representation of the analog value Representation of the analog value Representation of the analog value Representation of the analog value Representation of the analog value The user program must write the analog value to be output into a 16bit address in two's complements. In this addres, the value is contained in bits 7...14, the sign bit (bit 15) is 0.
  • Page 51: Module Slots

    27/95 – that were developed for the KUAX 680I. Modules produced before calendar week 27/95 do not fit into the slots of the KUAX 680C. They have no drilled hole at the bottom for locking the module into place (see chapter "3.2.2.
  • Page 52: Differences To The Kuax 680I

    The instruction manual of the modules (E 326 GB) describes the use of the modules in the KUAX 680I. When using the modules in the KUAX 680C, please observe the differences described below which are due to the fact that, in its basic configuration, the KUAX 680C has some I/Os.
  • Page 53: Input / Output Configuration

    Module slots 3.8.2. Input / output configuration Module slots Internal Permanently equipped Allowed configuration of all slots: 8/16 digital I/Os., 4 analog O with: interface or 2 multi-function counter. Illegal configuration: event counter module. 2 serial interfaces, Additional: Additional: Addi 16 digital inputs, 2 x stepping 2 x stepping...
  • Page 54: The Kubes Module Configurator

    KUBES (see KUBES, Main menu, command "Configuration 680" of the "Edit" menu). The Configurator shows 8 slots. In the KUAX 680C, slots 4 to 7 are reserved for the internal configuration. The entries for slots 4 and 5 cannot be changed.
  • Page 55: Software

    - User program memory The monitor program contains all system features of the con- troller KUAX 680C. It is part of the basic configuration of the device when delivered. The user program memory contains all programs for controlling the machine or plant.
  • Page 56: Operands Overview

    Operands 4.2. Operands overview I_._ Internal inputs I00.00 I01.07 With process chart I_._ Module inputs max.64 I02.00 I09.07 (basic configuration SI_._ Counter inputs SI00.00 SI00.01 of the device includes internal SI_._ Interrupt inputs SI01.00 SI01.01 I/Os) O_._ Internal outputs O00.00 O01.07 O_._ Module outputs...
  • Page 57: Short Description Of The Operands

    Digital inputs and outputs Digital inputs and outputs In its basic configuration the KUAX 680C is already equipped with inputs and outputs. This I/O range can be extended by modules which you can plug into slots 0...3 if and when re- quired.
  • Page 58 Analog inputs and outputs Analog inputs and outputs In its basic configuration the KUAX 680C is already equipped with analog inputs and outputs. This I/O range can be extended by modules which you can plug into slots 0...3 if and when re- quired.
  • Page 59: Commands Overview

    Software 4.3. Commands overview The following overview contains information about all available commands including the possible types of addressing, the neces- sary memory capacity and the processing time. Please take special care of only linking operands of the same size (bit, byte or word). Mixed operations must be avoided as they may lead to wrong results.
  • Page 60 Commands overview Load commands I00.00 0,63 load 1bit address BM00.00 0,63 load 8bit address load 8bit constant I00.00[10] 1,13 load 1bit address with constant offset I00.00[BM01.00] 4,32 load 1bit address with variable offset BM00.00[10] 1,13 load 8bit address with constant offset BM00.00[BM01.00] 4,38 load 8bit slave address with variable offset...
  • Page 61 Software AND commands I00.00 0,63 AND 1bit address BM00.00 0,63 AND 8bit address AND 8bit constant I00.00[10] 1,38 AND 1bit address with constant offset I00.00[BM01.00] 4,63 AND 1bit address with variable offset BM00.00[10] 1,38 AND 8bit address with constant offset BM00.00[BM01.00] 4,63 AND 8bit slave address with variable offset...
  • Page 62 Commands overview OR commands I00.00 0,63 OR 1bit address BM00.00 0,63 OR 8bit address OR 8bit constant I00.00[10] 1,38 OR 1bit address with constant offset I00.00[BM01.00] 4,63 OR 1bit address with variable offset BM00.00[10] 1,38 OR 8bit address with constant offset BM00.00[BM01.00] 4,63 OR 8bit slave address with varibale offset...
  • Page 63 Software EXCLUSIVE-OR commands I00.00 0,63 Exclusive-OR 1bit address BM00.00 0,63 Exclusive-OR 8bit address Exclusive-OR 8bit constant I00.00[10] 1,38 Exclusive-OR 1bit addr. with constant offset I00.00[BM01.00] 4,63 Exclusive-OR 1bit addr. with variable offset BM00.00[10] 1,38 Exclusive-OR 8bit addr. with constant offset BM00.00[BM01.00] 4,63 Excl.-OR 8bit slave addr.
  • Page 64 Commands overview Assignments and set commands I00.00 0,63 Assignment 1bit address BM00.00 0,63 Assignment 8bit address O00.00[10] 1,13 Assignment 1bit address with constant offset O00.00[BM01.00] 4,38 Assignment 1bit address with variable offset BM00.00[10] 1,13 Assignment 8bit address with constant offset BM00.00[BM01.00] 4,38 Assignment 8bit slave addr.
  • Page 65: Arithmetic Commands

    Software 4.3.2. Arithmetic commands BM00.00 0,63 Addition 8bit address Addition 8bit constant BM00.00 0,75 Addition 16bit address (even address) BM00.01 3,75 Addition 16bit address (odd address) 10000 Addition 16bit constant BM00.00 0,63 Subtraction 8bit address Subtraction 8bit constant BM00.00 0,75 Subtraction 16bit address (even address) BM00.01 3,75...
  • Page 66: Comparison Commands

    Commands overview 4.3.3. Comparison commands BM00.00 0,63 Compare 8bit address Compare 8bit constant BM00.00 Compare 16bit address (even) BM00.01 3,75 Compare 16bit address (odd) 10000 Compare 16bit constant BM00.00 1,75 Compare if equal 8bit address Compare if equal 8bit constant BM00.00 2,25 Compare if equal 16bit address (even)
  • Page 67: Shift And Rotation Commands

    Software 4.3.4. Shift and rotation commands Accu 0,25 Log. shift left in accu, 8bit yes yes Accu 0,75 Log. shift right in accu, 8bit yes yes Accu 0,25 Log. shift left in accu, 16bit yes yes Accu 0,25 Log. shift right in accu, 16bit yes yes BM00.00 1,75 Log.
  • Page 68: Byte And Flag Manipulation

    Commands overview 4.3.5. Byte and flag manipulation BM00.00 0,63 Increment 8bit address -- yes BM00.00 0,63 Decrement 8bit address -- yes BM00.00 1,75 Increment 16bit address BM00.01 7,25 Increment 16bit address (odd) BM00.00 1,75 Decrement 16bit address BM00.01 7,25 Decrement 16bit address (odd) BM00.00 0,5 Clear 8bit address 0,25 Do-nothing operation...
  • Page 69: Jump Commands

    Software 4.3.7. Jump commands Jump mark 0,5 Unconditional jump Jump mark 0,5 Conditional jump if yes (logical 1) Jump mark 0,5 Conditional jump if no (logical 0) Jump mark 0,5 Jump if equal Jump mark 0,5 Jump if inequal Jump mark 0,5 Jump if smaller Jump mark 0,5 Jump if greater...
  • Page 70: Programmable Pulses, Timers And Counters

    Commands overview 4.3.9. Programmable pulses, timers and counters PP00.00 5,13 programmable pulse at positive edge ++ ++ PP00.00 5,13 programmable pulse at negative edge ++ ++ 0,63 PP00.00 0,63 logical operation with pulse signal 0,63 0,88 PP00.00 1,13 logical operation with pulse signal, negated 1,13 PT00.00:100*10ms:E:R progr.
  • Page 71: Special Commands

    Write (decimal) value into 8bit address 1,18,0,125... Write values into 8bit and subsequent addresses BM00.00 [8],128 Write value into 8bit and the following 7 addresses "KUHNKE" Write text into 8bit and subsequent addresses 19285 Write (decimal) value into 16bit address BM00.00 1,18,0,125...
  • Page 72: Commands For The Data Modules

    Commands overview 4.3.12. Commands for the data modules load data module <name> into DBx00.00...15.15 x,<name> load data module <name> into DBx00.00...15.15 (x byte1,<name> = value 0...7 in byte1) load data module number y (y = value 1...255 in x,byte2 byte2) into DBx00.00...15.15 (x = 0...7) load data module number y (y = value 1...255 in byte1,byte2 byte2) intoDBx00.00...15.15(x = value 0...7 in byte1)
  • Page 73: Registers

    - 1bit operands - 8bit operands (bytes) - 16bit operands (words) The accumulator in the CPU of the KUAX 680C can be used as a 1bit, 8bit or 16bit register. Please do not confuse: the term "accu(mulator)" in the software part stands for a general-purpose register in the processor.
  • Page 74: Address Mnemonics

    Registers, addressing 4.5.1. Address mnemonics The operand addresses are indicated as mnemonic symbols, e.g. BM00.00, O00.00, PT00.00. The actual address management of the processor remains invisible. Thus, "L BM00.00" stands for loading the contents of a memory location which carries the mnemonic name "BM00.00". 4.5.2.
  • Page 75: Addresses Occupied By The Operands

    Software 4.5.3. Addresses occupied by the operands 09000 090FF 0AE00 0AEFF 09100 091FF 0AF00 0AFFF 09200 092FF 0B000 0BFF0 09300 093FF 0B100 0B1FF 09400 094FF 0B200 0B2FF 09500 095FF 0B300 0B3FF 09600 096FF 0B400 0B4FF 09700 097FF 0B500 0B5FF 09800 098FF 0B600 0B6FF...
  • Page 76: Types Of Addressing: Overview

    Registers, addressing 4.5.4. Types of addressing: overview The load command is taken as an example to give an overview of the different types of addressing. 1bit address 8bit address 16bit address decimal hexadecimal binary ASCII decimal hexadecimal binary voltage (-10...+10V) current(-20...+20mA) 1bit address 8bit address...
  • Page 77: Description Of The Commands

    Software 4.6. Description of the commands The following overview explains all commands in plain text. 4.6.1 Logical operations commands Logical 8bit operations include bit-by-bit negation (one's com- plement) if an N is added to the command 4.6.1.1. Load and logical operations commands load Loads the value of the operand into the accu logical AND operation Logical AND operation bit-by-bit between the value of the operand and the contents of the accu.
  • Page 78: Assignments And Set Commands

    Description of the commands 4.6.1.2. Assignments and set commands assignment Writes the contents of the accu into the memory addressed by the operand. conditional set Sets the value of the operand to log 1 if there is log 1 in the accu after the preceding operation;...
  • Page 79: Arithmetic Commands

    Software 4.6.2 Arithmetic commands Addition Adds the value of the operand to the contents of the accu. The sum is stored in the accu after the operation. Subtraction Subtracts the value of the operand from the contents of the accu. The difference is stored in the accu after the operation.
  • Page 80: Shift And Rotation Commands

    Description of the commands 4.6.4. Shift and rotation commands logical shift left in the accu Shifts the contents of the accu by one binary position (has the same effect as a multiplication by 2). The result of the operation is stored in the accumulator.
  • Page 81: Byte And Flag Manipulation

    Software 4.6.5. Byte and flag manipulation Increment Increments the value of the operand by one. Decrement Decrements the value of the operand by one. Clear The value of the operand becomes 0. Do-nothing operation No operation, just forwarding to the next instruction. Set CARRY Sets the CARRY bit to 1.
  • Page 82: Jump Commands

    Description of the commands 4.6.7. Jump commands Jumps within a program module are carried out to a program line identified by a jump mark. Difference is made between the following types of jumps: unconditional jumps, conditional jumps that analyse the logical state of bit oper- ands, conditional jumps that analyse the result of comparison opera- tions.
  • Page 83: Copy And Bcd Commands

    Software 4.6.8. Copy and BCD commands The operating method of the copy commands is explained by the program examples (see chapter "6.13. Bit-to-byte transfer"). copies the values of eight 1 bit operands into the 8bit accu copies the values of sixteen 1 bit operands into the 16bit accu copies the value of 8bit accus into eight 1 bit operands copies the value of 16bit accus into sixteen 1 bit operands Binary-to-BCD conversion into a 3 decade BCD value...
  • Page 84: Programmable Pulses (Edge Analysis)

    Description of the commands 4.6.9. Programmable pulses (edge analysis) The programmable pulse output is set when the status of the input changes from 0 to 1. The programmable pulse output is reset at the next run of this program part (next cycle). The programmable pulse output is set when the status of the input changes from 1 to 0.
  • Page 85: Programmable Timers

    Software 4.6.10. Programmable timers You can program up to 128 software timers in the range of 10 ms - 65535s. These timers have the addresses PT00.00 -PT07.15. To start a timer: Assignent Address :Time value *Time basis :Function :Remanence R=Remanence R Raising delay F Falling delay P Impulse...
  • Page 86: Programmable Counters

    Description of the commands 4.6.11. Programmable counters You can program up to 32 software counters in the range of 1-65535. These counters have the addresses C00.00 -C01.15. To start a counter: Assignment Address :Counter value :Function :Remanence R=Remanence F Forward count B Backward count 16bit constant (1 - 65535) 16bit variable (e.g.
  • Page 87: Special Commands

    Software 4.6.12. Special commands Outputs off. Deactivates the actuating elements of all outputs but does not change the internal status of the output "markers". The program keeps running. Use for example to react to short circuits (see appendix "D. Reactions to failures").
  • Page 88: Commands Of The Initialization Modules

    Description of the commands 4.6.13. Commands of the initialization modules The initialization modules are a special variety of modules. None of the commands described previously in this chapter can be used here. On the other hand can the following commands only be used in the initialization modules.
  • Page 89: Commands Of The Data Modules

    Software 4.6.14. Commands of the data modules Data modules are stored in the user memory (either in the EPROM or the RAM). You can create up to 255 data modules of a capacity of 256 byte each. Operand ranges DB0...DB7 are used for accessing the data mod- ules from within the user program.
  • Page 90 Description of the commands 4 - 36...
  • Page 91: Module Programming

    Software 4.7. Module programming The user program of the KUAX 680C is built up as a module structure. The user is thus enabled to divide the technological problem he wants to control up into separate sub-tasks. The in- dividual modules form a hierarchical system on a maximum of 5 levels in which modules on higher levels call up modules on lower ones.
  • Page 92: Organization Module

    Module programming 4.7.1. Organization module Name: ORG.ORG Number: Length: max. 253 lines incl. max. 128 code lines Function: organization of the overall program Call: automatically at the beginning of each program cycle The organization module is the main program module of a pro- ject.
  • Page 93 Software Name: xxxxxxxx.FUN Number: Length: max. 253 lines incl. 128 code lines Parameters: max. 16 Function: general-purpose module. It is created by the user and can be equipped with parameters. Call: from the organization or program module Up to 16 input and output parameters make it possible to ex- ecute the function with different variables (operands, constants).
  • Page 94 Module programming Name: xxxxxxxx.TIM Number: Length: max. 253 lines incl. 128 code lines Function: Processing of sections of the program in intervals of quartz precision controlled by time interrupts. The following 4 time bases are available: 10 ms, 100 ms, 1 s, 10 s Call: automatically by the assigned time interrupt Amongst other things, the time interrupts serve the processing...
  • Page 95: Function Module

    Software 4.7.5. Interrupt module Interrupt modules are called up by interrupts which are sig- nalled to the CPU via the control bus. Interrupts can be trig- gered by interrupt inputs, other interrupt modules or by failure or error messages. Name: xxxxxxxx.INT Number: Legth:...
  • Page 96 Module programming Assignment of transfer addresses and interrupt modules Assignment of transfer addresses and interrupt modules Assignment of transfer addresses and interrupt modules Assignment of transfer addresses and interrupt modules Assignment of transfer addresses and interrupt modules Using/ Address Interrupt triggering range module...
  • Page 97: Initialization Module

    Software Name: xxxxxxxx.INI Number: Length: max. 253 lines incl. max. 128 code lines Function: Serves easy assignment of a certain value to oper- ands without having to use logical operations. E.g. for presetting process parameters, tables, text fields, etc. Call: from the organization and the program module Only a limited set of instructions is applicable (see chapter "4.6.13.
  • Page 98: Trigger Module

    Module for special solutions. Call: from the organization and the program module Created by Kuhnke in high-level programming language or As- sembler and delivered in one or several libraries on diskette. By using the input and output parameters you can execute the function with different variables (operands, constants).
  • Page 99: Module Hierarchy (Example For Different Module Calls)

    Software 4.7.10. Module hierarchy (example for different module calls) 4 - 45...
  • Page 100 Module programming KUBES module overview Use the KUBES View Tree function to have the entire module hierarchy of a project displayed. All modules of the current project are shown. You can also print the tree. 1) Modules which are called up automatically - Interrupt modules (.INT);...
  • Page 101: Networking

    5. Networking The KUAX 680C was mainly developed as a local controller. It was not designed for use as a master in a PROFIBUS network. However, the built-in serial RS 485 interface allows communi- cation with less extended protocols. Details concerning network communication were not available at the copy deadline of this edition of the instruction manual, though.
  • Page 102 Networking 5 - 2...
  • Page 103: Programming Examples

    Examples 6. Programming examples The following examples use operands that are partly not avail- able in the KUAX 680C (inputs and outputs are counted octally; channels ".08" ...".15" do not exist). They can be arbi- trarily replaced, however. 6.1. Basic functions 6.1.1.
  • Page 104: Negation At Input

    Examples 6.1.3. Negation at input Circuit diagram Function diagram Instruction list I00.04 O00.02 6.1.4. Negation at output Circuit diagram Function diagram Instruction list I00.05 O00.03 6 - 2...
  • Page 105: Nand

    Examples 6.1.5. NAND Circuit diagram Function diagram Instruction list I00.06 I00.07 O00.04 6.1.6. NOR Circuit diagram Function diagram Instruction list I00.08 I00.09 O00.05 6 - 3...
  • Page 106: Xo Exclusive-Or (Non-Equivalence)

    Examples 6.1.7. XO EXCLUSIVE-OR (non-equivalence) Circuit diagram Function diagram Instruction list I00.10 I00.11 O00.06 6.1.8. XON EXCLUSIVE-NOR (equivalence) Circuit diagram Function diagram Instruction list I00.12 I00.13 O00.07 6 - 4...
  • Page 107: Self-Locking Circuit

    Examples 6.1.9. Self-locking circuit Circuit diagram Function diagram Instruction list I00.14 O00.08 I00.15 O00.08 6 - 5...
  • Page 108: Memory Functions

    = O00.10 *) If, in controls that work without process mapping, the set and reset inputs are acti- vated simultaneously a jittering of the output may occur. In the KUAX 680C, the result must therefore be stored temporarily in a marker.
  • Page 109: Combinational Circuits

    Examples 6.3. Combinational circuits 6.3.1. OR-AND circuit Circuit diagram Function diagram Instruction list I00.04 I00.05 I00.06 O00.11 6.3.2. Parallel circuit to output Circuit diagram Function diagram Instruction list I00.07 I00.13 O00.12 I00.14 O00.13 6 - 7...
  • Page 110: Network With One Output

    Examples 6.3.3. Network with one output Circuit diagram Function diagram Instruction list I00.15 I00.00 I00.01 O00.14 I00.02 O00.14 6 - 8...
  • Page 111: Network With Outputs And Markers

    Examples 6.3.4. Network with outputs and markers Circuit diagram Instruction list Function diagram I00.12 M00.02 I00.13 I00.14 M00.02 I00.15 M00.03 M00.02 I00.14 M00.03 M00.02 I00.00 O00.04 M00.02 M00.03 O00.05 6 - 9...
  • Page 112: S-Marker As And/Or Marker

    Examples 6.4. S-marker as AND/OR marker 6.4.1. Network with OR marker Circuit diagram Function diagram Instruction list I00.01 Note: In this example, a part result I00.02 has to be stored temporarily. SM15.15 Definition: S-marker SM15.15 is basically I00.03 always used as OR marker I00.04 as it can always be re-used in SM15.15...
  • Page 113: Network With And Marker

    Examples 6.4.2. Network with AND marker Circuit diagram Function diagram Instruction list Note: In this example, too, a I00.05 result has to be stored I00.06 temporarily in an S-marker. SM15.14 This marker is linked in I00.07 an AND operation. I00.08 Definition: S-marker 15.14 is basically always SM15.14...
  • Page 114: Network With Multiple Use Of The Or Marker

    Examples 6.4.3. Network with multiple use of the OR marker Circuit diagram Function diagram Instruction list I00.00 I00.01 SM15.15 ;set OR marker I00.02 I00.03 SM15.15 SM15.14 ;set AND marker I00.04 I00.05 SM15.15 ;set OR marker I00.06 I00.07 SM15.15 SM15.14 O00.09 6 - 12...
  • Page 115: Circuit Conversion

    Examples 6.5. Circuit conversion Circuit diagram before Circuit diagram after Instruction list before Instruction list after I00.00 I00.03 I00.01 I00.04 SM15.14 I00.02 I00.02 I00.00 SM15.15 I00.01 I00.03 O00.12 I00.04 SM15.15 SM15.14 O00.12 Circuit conversion leads to a different sequence of commands. Program genera- tion is thus facilitated as the storing of part results is partly made redundant.
  • Page 116: Special Circuits

    Examples 6.6. Special circuits 6.6.1. Current surge relay Signal course Instruction list I00.00 PP00.00 PP00.00 O00.00 O00.00 6 - 14...
  • Page 117: Reverse Circuit (Reverse Contactor) With Forced Halt

    Examples 6.6.2. Reverse circuit (reverse contactor) with forced halt Circuit diagram Instruction list I00.01 ;right sensor O00.00 ;right contactor O00.01 ;left contactor I00.00 ;sensor halt *2) O00.00 ;right contactor I00.02 ;left sensor O00.01 ;left contactor O00.00 ;right contactor I00.00 ;sensor halt*2) O00.01 ;left contactor 6.6.3.
  • Page 118: Pulse Edge Evaluation

    Examples 6.7. Pulse edge evaluation The KUAX 680C contains 128 programmable pulses for status change recogni- tion of logical signals (edge evaluation). They can be used for both the positive and the negative edge. 6.7.1. Programmable pulse with positive edge...
  • Page 119: Programmable Pulse With Negative Edge

    Examples 6.7.2. Programmable pulse with negative edge Circuit diagram Switching symbol Instruction list I00.01 PP00.01 PP00.01 O00.01 Signal course T = 1 cycle Behaviour of the progr. pulses after switching the controller on After switching the controller on (or after a RESET), the pulse has to be passed once at a value of 0 as the function cannot be guaranteed otherwise.
  • Page 120: Pulse With Positive Signal

    Examples As opposed to the programmable pulses (see above) which are activated by edge reversals, the signal status is evaluated in the following two examples. This causes a different behavior when switching the control on. 6.7.3. Pulse with positive signal Circuit diagram Switching symbol Instruction list...
  • Page 121: Pulse With Negative Signal

    Examples 6.7.4. Pulse with negative signal Circuit diagram Switching symbol Instruction list I00.03 SM15.14 M00.01 O00.03 SM15.14 M00.01 Signal course T = 1 cycle 6 - 19...
  • Page 122: Software Timers

    Examples 6.8. Software timers 6.8.1. Impulse at startup Circuit diagram Switching symbol Instruction list L I00.01 = PT00.01:135*10ms:P L PT00.01 = O00.01 Signal course T= Time preselection (here: 1.35s) 6 - 20...
  • Page 123: Impulse With Constant Duration

    Examples 6.8.2. Impulse with constant duration Circuit diagram Switching symbol Instruction list L I00.02 O PT00.02 = PT00.02:123*100ms:P L PT00.02 = O00.02 Signal course T= Time preselection (here: 12.3s) 6 - 21...
  • Page 124: Raising Delay

    Examples 6.8.3. Raising delay Switching symbol Instruction list L I00.03 = PT00.03:185*10ms:R L PT00.03 = O00.03 Signal course T= Time preselection (here: 1.85s) 6 - 22...
  • Page 125: Falling Delay

    Examples 6.8.4. Falling delay Switching symbol Instruction list L I00.04 = PT00.04:35*100ms:F L PT00.04 = O00.04 Signal course T= Time preselection (here: 3.5s) 6 - 23...
  • Page 126: Impulse Generator With Pulse Output

    Examples 6.8.5. Impulse generator with pulse output Switching symbol Instruction list I00.05 O00.05 PT00.05:55*10ms:R PT00.05 O00.05 Signal course T1= Time preselection (here: 0.55s) T2= Cycle time 6 - 24...
  • Page 127: Flash Generator With One Timer

    Examples 6.8.6. Flash generator with one timer Switching symbol Instruction list I00.06 PT00.06:50*10ms:C PT00.06 O00.06 Signal course T= Time preselection (here: 0.50s), Flash frequency = 1 Hz 6 - 25...
  • Page 128: Flash Generator With Two Timers

    Examples 6.8.7. Flash generator with two timers Switching symbol Instruction list I00.00 PT00.02 PT00.01:5*100ms:P PT00.01 O00.00 PT00.01 PT00.02:10*100ms:P Signal course T1= Time preselection for switch-on (here: 500ms=0.5s) T2= Time preselection for switch-off (here: 1,000ms=1s) 6 - 26...
  • Page 129: Programmable Clock

    Examples 6.9. Programmable clock Apart from the software timers, there are four programmable clock pulses available in the operands PC00.00 - PC00.03: T00.00 10 ms T00.01 100 ms 0-255 T00.02 T00.03 10 s Each of these operands is automatically incremented in the stated clock pulse.
  • Page 130: Software Counters

    Examples 6.10. Software counters Example: Forward counter to 12 I00.00 ;start counter C00.00:12:F I00.01 ;count (transfer clock pulse) C00.00 C00.00 ;scanning "Count completed” A00.12 C00.00 ;scan actual value BM00.00 6.11. Programming of an operational sequence Path-step diagram 6 - 28...
  • Page 131 Examples Function diagram Program I00.00 ;Start I00.01 ;Limit switch a0 I00.03 ;Limit switch b0 I00.05 ;Limit switch c0 SM00.01 ;Step 1 SM00.01 ;Step 1 O00.00 ;Cylinder A+ I00.02 ;Limit switch a1 SM00.01 ;Step 1 SM00.02 ;Step 2 SM00.02 ;Step 2 O00.01 ;Cylinder B+ I00.04...
  • Page 132 Examples 6 - 30...
  • Page 133: Register Circuits

    Examples 6.12. Register circuits 6.12.1. 1bit shift register In this example, the shift register is 6 steps long. The signal input is shifted from O00.01 to O00.06 when the shift clock pulse is applied from I00.00. signal input I00.01 I00.01 shift clock pulse I00.00 I00.00...
  • Page 134: 8Bit Shift Register

    Examples 6.12.2. 8bit shift register In this example, the shift register is 6 steps long. The set information is shifted from BM00.00 to BM00.06 when the shift clock pulse is applied from I00.00. signal input BM00.01 BM00.00 shift clock pulse I00.00 I00.00 SO.1 BM00.01...
  • Page 135: Bit-To-Byte Transfer

    Examples 6.13. Bit-to-byte transfer It is possible to transfer the contents of 8 or 16 1bit operands into byte operands in two operations. In the same way, the con- tents of byte operands can be copied directly into the 1bit range.
  • Page 136: To Copy One Byte Into Eight 1Bit Operands

    Examples 6.13.2.To copy one byte into eight 1bit operands BM00.01 ;load contents of BM00.01 into the accumulator C8T1 O00.03 ;copy contents of the accu into operands O00.03-O00.10 6.13.3.To copy sixteen 1bit operands into two bytes C1T16 I01.00 ;load contents of I01.00-I01.15 into the accumulator BM00.02 ;copy contents of the accumulator into BM00.02-BM00.03 ;(I01.00-I01.07 into BM00.02, I01.08-I01.15 into BM00.03) 6.13.4.
  • Page 137: Comparator Circuits

    Examples 6.14. Comparator circuits 6.14.1. 8bit comparator 6.14.1.1. Result of the comparison: logical evaluation The result of the comparison is evaluated as logical 1 or logical 0 by an assignment: comparison value 1 BM00.00 BM00.00 comparison value 2 BM00.01 BM00.01 CO O00.00 comparator output O00.00 8bit...
  • Page 138: 16Bit Comparator

    Examples 6.14.2. 16bit comparator 6.14.2.1. Result of the comparison: logical evaluation The result of the comparison is as logical 1 or logical 0 in the accu and can be evaluated for example by an assignment. comparison value 1 BM00.00 BM00.00+BM00.01 BM00.02 CO O00.00 comparison value 2...
  • Page 139: Arithmetic Functions

    Examples 6.15. Arithmetic functions 6.15.1. Binary 8bit adder 1st summand 8bit 0-255 ($FF) BM00.00 BM00.00 2nd summand 8bit 0-255 ($FF) BM00.01 BM00.02 BM00.01 8bit 0-255 ($FF) binary BM00.02 8bit adder Program BM00.00 ;Z1 1st summand BM00.01 ;Z2 2nd summand BM00.02 ;Z3 sum In case of a carry, the carry bit is set.
  • Page 140: 8Bit Bcd Adder

    Examples 6.15.3. 8bit BCD adder BM00.00 1st summand 8bit 0-99 BM00.00 BM00.01 BM00.02 2nd summand 8bit 0-99 BM00.01 8bit 8bit 0-99 BM00.02 adder Program ****** BCD correction ****************************** CLR LBM00.01 ;marker for BCD correction BM00.00 ;Z1 1st summand %00001111 ;extract upper 4 bits LBM00.00 ;1st decade of this BM00.01...
  • Page 141: Binary 8Bit Subtractor

    Examples 6.15.4. Binary 8bit subtractor minuend 8bit 0-255 ($FF) BM00.00 BM00.00 subtrahend 8bit 0-255 ($FF) BM00.01 BM00.02 BM00.01 difference 8bit 0-255 ($FF) binary BM00.02 8bit subtractor Z3 becomes negative and is filed as two’s complement if Z2 > Z1. Further evaluation of Z3 has to take this into considera- tion.
  • Page 142: 8Bit Bcd Subtractor

    Examples 6.15.6. 8bit BCD subtractor BM00.00 minuend 8bit 0-99 BM00.00 BM00.01 BM00.02 subtrahend 8bit 0-99 BM00.01 8bit difference 8bit 0-99 BM00.02 subtractor Program ****** BCD correction ****************************** BM00.00 ;Z1 minuend %00001111 ;mask upper 4 bits LBM00.00 ;1st decade of this BM00.01 ;Z2 subtrahend %00001111 ;1st decade of this...
  • Page 143: Binary 8Bit Multiplier

    Examples 6.15.7. Binary 8bit multiplier multiplicand 8bit 0-255 ($FF) BM00.00 BM00.00 multiplier 8bit 0-255 ($FF) BM00.01 BM00.02 BM00.01 product 16bit 0-65025 ($FE01) binary BM00.03(HB)+BM00.02(LB) 8/16bit multiplier Program BM00.00 ;Z1 multiplicand BM00.01 ;Z2 multiplier BM00.02 ;Z3 product (16bit) 6.15.8. Binary 16bit multiplier multiplicand 16bit 0-65535 ($FFFF) BM00.00 BM00.01(HB)+BM00.00(LB)
  • Page 144: Binary 8Bit Divider

    Examples 6.15.9. Binary 8bit divider dividend 8bit 0-255 ($FF) BM00.00 BM00.00 divisor 8bit 0-255 ($FF) BM00.01 BM00.02 BM00.01 quotient 8bit 0-255 ($FF) binary BM00.02 8/16bit divider Program BM00.00 ;Z1 dividend BM00.01 ;Z2 divisor BM00.02 ;Z3 quotient 6.15.10. Binary 16bit divider BM00.00 dividend 16bit 0-65535 ($FFFF) BM00.01(HB)+BM00.00(LB)
  • Page 145: Code Converters

    Examples 6.16. Code converters 6.16.1. 8bit BCD-to-binary converter BCD: 8bit 0-99 BM00.00 BM00.00 binary: 8bit 0-99 ($63)BM00.01 binary BM00.01 8bit BCD- to-binary converter Program BM00.00 ;load BCD value ;shift ;tens ;units ;multiply BM00.01 ;store temporarily BM00.00 ;load BCD value %00001111 ;mask tens BM00.01 ;add binary tens BM00.01...
  • Page 146: 8Bit Binary-To-Bcd Converter

    Examples 6.16.2. 8bit binary-to-BCD converter binary: 8bit 0-99 ($63)BM00.00 BM00.00 binary BCD: 8bit 0-99 BM00.01 BM00.01 8bit bin.- to-BCD converter Program BM00.00 ;load binary value ;determine and LBM00.00 ;mark tens ;calculate and mark down LBM00.01 ;integer tens value BM00.00 LBM00.01 ;determine and LBM00.01 ;mark units...
  • Page 147: 16Bit Bcd-To-Binary Converter

    Examples 6.16.3. 16bit BCD-to-binary converter BCD: 16bit 0-9999 BM00.00 BM00.01(HB)+BM00.00(LB) binary: 16bit 0-9999 ($270F) Binary BM00.02 BM00.03(HB)+BM00.02(LB) 16bit BCD- to-binary converter Program BM00.03 ;clear because of LD BM00.02 LBM00.03 ;clear because of LD LBM00.02 BM00.00 ;separate units decade %00001111 BM00.02 ;binary units BM00.00 ;separate tens decade...
  • Page 148: 16Bit Binary-To-Bcd Converter

    Examples 6.16.4. 16bit binary-to-BCD converter Binary: 16bit 0-9999 ($270F) BM00.00 Binary BM00.01(HB)+BM00.00(LB) BCD: 16bit 0-9999 BM00.02 BM00.03(HB)+BM00.02(LB) 16bit bin.- to-BCD converter Program BM00.02 ;set to zero BM00.03 ;ditto THOU1 LD BM00.00 ;load binary value CMPD 1000 JP< THOU2 ;smaller than a thousand? SUBD 1000 ;subtract 1000 if yes...
  • Page 149: Decade Bcd-To-Binary Converter

    Examples BM00.02 ;count subtraction steps TEN1 ;back to enquiry TEN2 BM00.02 ;shift tens to the ; upper nibble of the ; lowbyte of the ; BCD output ; if no BM00.00 ;units remainder into the lower nibble BM00.02 ;output from the lowbyte 6.16.5.
  • Page 150: Decade Binary-To-Bcd Converter

    Examples 6.16.6. 3 decade binary-to-BCD converter binary: 16bit 0-999 ($03E7) BM00.00 Binary BM00.01(HB)+BM00.00(LB) BCD: 16bit 0-999 BM00.02 BM00.03(HB)+BM00.02(LB) 3 decade bin.-to-BCD converter Program BM00.00 ;load binary value BINBCD3 BM00.02 ;output BCD value 6 - 48...
  • Page 151: Module Programming

    Examples 6.17. Module programming Task (example): Sets of 12 pieces each are to be transported on a conveyor belt. The drive of the belt is operated by start and stop keys. The belt is stopped after every twelfth piece. Before leaving the belt, each piece triggers an impulse via an initiator which is used for counting.
  • Page 152 Examples Printout of program listing ======== Kubes ===================================== KUAX 657 ======== Project structure Project structure Project structure Project structure Project structure Project : E205GB created : Nov 19 1991 09:42 User : Gerd Hildebrandt altered : Nov 21 1991 08:17 Comment : Example "Module programming”...
  • Page 153 Examples ======== Kubes ===================================== KUAX 657 ======== Organisation module Organisation module Organisation module Organisation module Organisation module IL Project : E205GB Module : ORG No.: 1 created : Nov 26 1991 16:08 User : KUBES altered : Nov 26 1991 16:08 ====================================================================== ONOFF COUNTER...
  • Page 154 Examples ======== Kubes ===================================== KUAX 657 ======== Program module Program module Program module Program module Program module IL Project : E205GB Module : CURNUM CURNUM CURNUM CURNUM CURNUM No.: 3 created: Nov 26 1991 16:20 User : Gerd Hildebrandt altered: Nov 26 1991 16:20 Comment : CURNUM ====================================================================== COUNTER...
  • Page 155 Examples ======== Kubes ===================================== KUAX 657 ======== Program module Program module Program module Program module Program module IL Project : E205GB Module : ONOFF ONOFF ONOFF ONOFF ONOFF No.: 1 created : Nov 26 1991 16:12 User : Gerd Hildebrandt altered : Nov 26 1991 16:12 Comment : ONOFF ======================================================================...
  • Page 156 Examples ======== Kubes ===================================== KUAX 657 ======== Program module Program module Program module Program module Program module IL Project : E205GB Module : SUM No.: 5 created : Nov 26 1991 16:18 User : Gerd Hildebrandt altered: Nov 26 1991 16:18 Comment : SUM ====================================================================== COUNTER...
  • Page 157 Technical specifications A. Technical specifications Admissible ambient conditions Storage temperature ......-25...+70 °C Ambient temperature during oper..0...55 °C Relative humidity ....... 50...95 % Power supply ..........24 V DC -20%/+25% Current consumption of basic device 160 mA max. (without modules) Test voltage ..........
  • Page 158 Appendix Digital inputs of the basic device Number ..........16 Addressing .......... I00.00...00.07, I01.00...01.07 Supply voltage ........24 V DC - 20 % /+ 25 % for further information ....... 3.7.1. Digital inputs Counter inupts of the basic device Number ..........2 Addressing ..........
  • Page 159 Technical specifications Module slots ..........4 Usable modules ........modules of KUAX 680I and 680C, produced as from calendar week 27/95 for further information ....... 3.8. Module slots Program memory ........built-in Flash-EPROM ........112 KByte RAM ........... 64 KByte Data protection in the RAM ....
  • Page 160 Appendix A - 4...
  • Page 161: Order Specifications

    Order specifications B. Order specifications Basic device ..................680.430.01 Screw-type locking terminals for the basic device (1 set) .............. 680.180.11 8pin, with wiring and 3 m cable (1 pc.) .......... 680.180.08 Simulator box for digital inputs (4 x 8pin)........... 680.155.50 Mounting material Quick screw connectors for carrier rail mounting (2 pcs.) .....
  • Page 162 Appendix Analog input/output modules Analog input/output module, 2 I 0...10 V, 2 O 0...± 10 V ..... 680.441.03 Analog input/output module, 2 I 0...20 mA, 2 O 0...±10 V ... 680.441.06 Analog input/output module, 2 I 0...10 V, 2 O 0...20 mA ..... 680.441.08 Analog input/output module, 2 I 0...20 mA, 2 O 0...20 mA ..
  • Page 163: Literature And Trademarks

    C.1. References to literature Instruction Manual E 326 GB, Modules of KUAX 680I and 680C Kuhnke GmbH, Malente Beginner's Guide E 327 GB, KUBES, Kuhnke User Software Kuhnke GmbH, Malente Instruction Manual E 386 GB, KUBES Modules Kuhnke GmbH, Malente C.1.Trademarks...
  • Page 164 Appendix C - 2...
  • Page 165: Reactions To Failures

    Reactions to failures D. Reactions to failures The KUAX 680C monitors itself. Any occurring errors or fail- ures are reported and lead to reactions in the control according to their dangerousness. The errors and failures are numbered from 1 through max. 255.
  • Page 166 Appendix Legend for the failures overview LED "failure" The red light emitting diode is located on the left side of the de- vice. It flashes in a rhythm that indicates the failure number: Flash rhythm etc. The counting impulses follow each other in a short sequence (250/250 ms).
  • Page 167: Short Circuit On An Output (Failure #1

    Reactions to failures D.1. Short circuit on an output (failure #1) Cause Short circuit Overload Indication "failure" LED flashes KUBES reports the failure in plain text Error byte "ERR00.00" is set to 1 Event notification on the PROFIBUS Reaction the corresponding output is switched off thermally interrupt module no.
  • Page 168: Undervoltage (Supply, Failure #2

    Appendix D.2. Undervoltage (supply, failure #2) Supply voltage: 24 V DC - 20%/+25% A built-in voltage monitoring reacts in two steps to falling be- low certain limiting values: 1st Step Cause Supply voltage approx. < 19 V Reaction interrupt module no. 17 is activated the program run is not yet interrupted Buffered operands (markers, timers and counters) can be reset unvolutarily if the user program is processed further in this...
  • Page 169 Reactions to failures 2nd Step 1st alternative Cause Supply voltage rises back to 24 V DC ± 20% Reaction "failure" LED extinguishes Error byte "ERR00.00" is reset The program is continued without interruption 2nd alternative Cause Supply voltage continues to fall, approx. < 17.5 V Reaction 5 V system voltage is interrupted =>...
  • Page 170: Watchdog (Program Run Time Exceeded, Failure #3

    Appendix D.3. Watchdog (program run time exceeded, failure #3) Cause run time of a module > 50...70 ms run time of the overall program > 2 s Indication "failure" LED flashes KUBES reports the failure in plain text Event notification on the PROFIBUS Reaction STOP: program run is stopped RESET: outputs and unbuffered markers, timers and counters...
  • Page 171: Checksum In The User Program (Failure #8

    Reactions to failures D.4. Checksum in the user program (failure #8) During program generation, a checksum (CS) is generated over the entire user program memory according to a certain algo- rithm. Cause When starting the controller, the monitor re-calculates the checksum and compares it to the stored value.
  • Page 172: Hierarchy Error (Failure #9

    Appendix D.5. Hierarchy error (failure #9) Program calls and other module calls must not exceed certain hierarchy limits (see chapter "4.7. Module programming"). During programming, the controller reports a hierarchy error when it receives a program. At this stage, this is only a warning that there could be an error.
  • Page 173: Versions

    Versions E. Versions We will continue to develop the KUAX 680C further. At vari- ous stages of development we will release new versions. E.1 Hardware Laboratory sample (produced before calendar week 28/95) Laboratory sample (produced before calendar week 28/95) Laboratory sample (produced before calendar week 28/95)
  • Page 174: Software (Monitor Program

    Appendix E.2. Software (monitor program) The monitor program of the KUAX 680C is stored in the Flash- EPROM. This has the great advantage that new versions can be transferred into the controller easily by using a PC and the re- quired program.
  • Page 175 Index Index arithmetic commands 4-11, 4-25 Symbols assignments and set commands 4- = 4-10, 4-16 10, 4-24 =0 4-10 =1 4-10 =C 4-16 banks 3-15 =D 4-10 basic device =N 4-10, 4-16 configuration 3-1 =TH 4-16 dimensions 3-5 mounting 3-5 BCD commands 4-15, 4-29 A 4-7, 4-16 BCDBIN3 4-15...
  • Page 176 Index COMBICON 3-4 commands electromagnetic compatibility 2-5 description 4-23 electrostatic discharge 2-5 overview 4-5 emergency off installation 3-8 comparison commands 4-12, 4-25 emergency stop 2-3 connectors EMV 2-5 grounding 3-10 enable position on device 3-2 analog conversion 3-26 power supply 3-7 ESD 2-5 wire diameter 3-7 EXCLUSIVE-OR commands 4-9...
  • Page 177 Index inputs and outputs internal 3-16 KUBES installation Module Configurator 3-36 to be observed 2-3 KUBES module 4-44 interface RS 232 3-11 RS 485 3-13 L 4-6, 4-16 interference emission 2-6 light emitting diodes Particular sources of interference 2- status and error messages 3-15 literature interrupt inputs references C-1...
  • Page 178 Index module hierarchy 4-45 module programming 4-37 parallel connection return jump to the calling mod- of outputs 3-27 ule 4-37 power supply modules voltage 3-7 addressing 3-34 process image 3-16 calendar week 27/95 3-33 program memory 3-14, 4-1 configuration 3-35 program module 4-38 differences between 680I and programmable pulses 4-16...
  • Page 179 Index short circuit D-3 short circuit protection# 3-28 software 4-1 SPBK 4-14 status and error messages via LEDs 3-15 StoreDB 4-18 SUB 4-11 SUBD 4-11 system messages 3-15 target group 2-1 TEXT 4-17 time interrupts 4-40 timer module 4-40 timers 4-3, 4-16, 4-31 description of operands 4-3 trade marks C-1 transfer addresses...
  • Page 180: Index

    Index Index - 6...

Table of Contents