Ventura smart solution power heat controller, ethercat (56 pages)
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 –...
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 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.
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.
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:...
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.
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.
(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.
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.
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.
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 ...
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.
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...
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²...
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).
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.
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. ²...
(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.
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.
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.
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...
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.
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.
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-...
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.
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.
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.
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.
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.
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.
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...
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.
- 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.
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.
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 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...
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...
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...
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)
- 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.
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.
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...
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.
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;...
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.
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.
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.
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.
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...
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.
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...
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.
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").
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.
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.
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.
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...
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...
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.
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).
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);...
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.
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.
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...
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...
= 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.
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...
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...
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...
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.
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...
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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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.
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.
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...
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...
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.
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.
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 ....
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 ..
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).
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.
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 =>...
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...
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.
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.
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)
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 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...
Need help?
Do you have a question about the KUAX 680C and is the answer not in the manual?
Questions and answers