04 Programmable Logic Controllers (PLC) and Motion Control (MC) Flashcards
Karnaugh-Veitch-Map
- Graphical procedure to determine the disjunctive normal form. -> It is always possible to identify the minimal disjunctive normal form, when applied correctly.
-> Disjunctive normal form means that the equation cannot be simplified any more. - Number of fields in a KV-Map must be the same as the number of rows of the truth table
- Each variable is denoted along the side of the KV-Map
- Index in the right bottom corner of each field resemble the appropriate row number of the truth table
Flip-Flop Memory
- The flip-flop (bistable multi-vibrator) is a basic block which is used to store a binary signal.
- Two inputs and two outputs
- If a signal is present at S, then according to the truth table there will be a direct output at Q (first line) and this will be held until the flip-flop is re-set by the re-setting input R (second line). If no signal is present at S, then the current value of output Q will be held (third line)
- The output always has the complementary condition (i.e. opposite signal to that of output Q.) -> This circuit is also called R-S flip-flop
1:2 Scaler
- A 1:2 scaler is realized by repatriating (zurückführen) the inverted output Q to the D-Input. -> Output is changed from true to false with each positive edge of the clock signal. The clock frequency is therefore divided by 2.
- When separate 1:2 scalers are connected to a series, e.g. a counter can be realized.
o Each scaler divides the input frequency by two, the number of input pulses can be read as a binary number.
Programmable Logic controllers (PLCs):
Definition technical process
A technical process is a process, whose physical values can be captured and affected by using technical resources.
Programmable Logic controllers (PLCs):
Tasks of a Control
o Capture all required analogue and digital process signals
o Process those signals and calculate (usually according to a program) all appropriate control signals
o Control the actuators accordingly to the calculated control signals
Programmable Logic controllers (PLCs):
Input Level
o All process signals are read in
o Signal sources can vary from inputs of the user, sensor signals or data/values from data storages
o Sensors can be used to capture machine or process states
o Control elements are direct human-machine-interfaces
Programmable Logic controllers (PLCs):
Signal Processing
o Output signals are calculated according to logic connections from the input signals
o Logic connections can be realized as a program (software), electromagnetic (relais) or by using semiconductor elements.
Programmable Logic controllers (PLCs):
Process Computers
Digital, Programmable Devices^
Set-Up of Process Computer Systems
Digital processor with hard- and software extensions
Process interfacing
Operating System including real-time behavior
Response time of a processor must be smaller than the process-related machining time
Use of a real-time clock to synchronize processor task and technical process
Signal sources (Sensors etc.) and actuators are directly connected to input- and output devices of the PLC
* Task of input devices: Electrically decouple of all input signals and adapt their voltage level
Output devices inherit signal amplifiers which modulate the internal 5V DC to the appropriate level to control actuators. Power contractors can be used if the max. amplitude of the currents is not sufficient to control field devices (e.g. large motors)
Data Storage of a PLC can be subdivided in system, program and data storage.
Operating System: Responsible for controlling the cycle time as well as the correct processing of signal and the application program Stored in a EPROM and cannot be manipulated by the programmer
Hard-Wired Control –> Coding, Technology, Application, Mode of operation
- Coding: Hardware (wiring)
- Technology: Electro mechanic (relay), cordless (semiconductor)
- Suitable for simple applications
- Mode or operation: faster than PLC because of parallel program processing
- HWC in safety critical applications
Programmable Logic Controllers (PLC) –> Coding, Technology, Mode of operation, advantages
- Coding: Software (single instruction)
- Technology: Contac less (semiconductor, microcontroller)
- Mode of operation: serial program processing
- More flexible and higher performance
- Cheaper and clearer than HWC for highly significant applications
PLC configurations and types
- Hardware-PLC
- Slot-PLC
- Soft-PLC
Hardware PLC
Most common type
Power supply, CPU, digital/analogue in- and outputs
Fieldbus or proprietary bus system –> Communication, programming interface
Slot-PLC
Independent of the operating system
Hard real time conditions possible
Low failure ratio
Direct access to the host-PC
High arithmetical capacity
Soft-PLC
PLC based on Windows-NT
Soft real time conditions
Higher error risk
Short life span
Rarely integrated to control real production processes. The application focus is more on the simulation of PLC functionality in field tests.
PLC - Different forms of Program processing
- Cyclic processing of the program
- Event-controlled processing (interrupt)
- Time-controlled processing
PLC - Cyclic processing
Normal operation mode: Cyclic processing of instruction sequence which are stored in the program memory
Whole program is processed continuously
Length of a cycle depends on the clock speed of the CPU and the length of the number of operations
IPO Principle (Input -> Processing -> Output)
Output values are calculated and stored in the process output image (POI) -> After completion of cycle the values are transferred to the (hardware) output
PII: Process Input Image -> All inputs are loaded into this picture at the beginning
PLC: Event-controlled processing (interrupt)
Program cycle is interrupted by a processing signal (e.g. emergency stop) to run a special routine
After processing this routine, the regular program cycle is continued (unless main program has been generally interrupted)
PLC: Time-controlled processing
Program cycle is interrupted by an internal time signal to run a special routine
After processing this routine, the regular program cycle is continued
Conventional PLC Programming methods
- Ladder
- Functional Block Diagram (FDB)
- Sequential Function Chart (SFC)
- Instruction List
- Structured Text
PLC Programming: Ladder
Based on the representation of electrical schematics, the signal flow is always from left to right.
Other elements: Closer (>E1), Opener (>E2) or Assignments (>A1)
PLC Programming: Function Block Diagram (FBD)
Signal flow is usually from top to bottom or from left to right. Signals and inputs are connected to logic gates (AND gates, NOR gates etc.) which calculate values from the input signals Values can either be used in other gate circuits or can be loaded as results in the PIO
PLC Programming: Sequential Function Chart (SFC)
In SFC the program is not calculated completely once per cycle. -> Execution of states happens sequentially
Process always starts in the “INIT”-State
Transition connects the state to one (or more) subsequent state(s) If transition is linked with a condition, the change to the next state only takes place when the transition condition is valid/true. If condition is false, the program may persist for several cycles in one state. While a state is active, all listed state instructions to the right are being executed
PLC Programming: Instruction List
A set of instructions is available, which can be used to process variables and signals logically and arithmetically
PLC Programming: Structured Text
Language very similar to the C programming language. There are several functions, loops and other control structures.
PLC Solutions for machine tools (5)
o Control of functional units
o Monitoring and diagnose
o Graphical user interface shared with NC
o Specialized tasks
o Data exchange with other controls
Errors and costs during PLC software programming
o Most software failures occur in early stages of development phase and when creating the program
o Most important requirement: Avoid expensive troubleshooting processes through systematic specification/planning of the control task
o Close cooperation between the mechanical and electrical design as well as the early coordination of solution concepts are therefore fundamental prerequisites for creating error-free PLC programs
Easy Test procedure for PLC Programs
Connect the programmed control hardware to the hardware (machine or test dashboard) and test by manually setting inputs
By observing the outputs the test engineer can verify the correctness of the system
For each observed error, the code can be corrected -> a re-test can be carried out
Disadvantage:
User must recreate the process behavior of the machine manually Requires a high degree of abstraction (Replaces the time behavior of machine only approximate, dynamic processes are hardly verifiable)
Complex Test Procedure for PLC Programs
Hardware-In-The-Loop (HIL) Simulation
Controller is integrated into a simulation environment
No remote inputs and outputs needed -> They are simulated by the Profibus installation card in the PC
Mechatronic behavior can be configured and verified on the control computer
Characteristics of HIL simulation
* To simulate original NC and PLC hardware is used
* Simulation is run on the computer to simulate the response of the connected components
* Real-time communication between the components involved
Fieldbus
o Connects sensors and actuators to the controller -> Controller itself is directly integrated into the machine tool
o Commonly used at the lowest level of the automation pyramid
Direct Connection (conventional, no fieldbus)
- Single control unit
- Low space requirements
- Intensive wiring effort
Decentral Connection (Fieldbus)
- Reduced wiring effort for actors and sesors
- Small, single units
- Signal processing “slower” compared to bus architecture
- Less planning complexity
- Easier troubleshooting
Industrial Ethernet
o Commonly used in higher levels of the automation pyramid
o Real Time capability through fast ethernet and full-duplex
o Reduced wiring effort of actors and sensor
o Consistent usage of ethernet within the company (ERP -> MES -> Shopfloor)
o Transfer of higher data volume possible -> Enables image processing applications
o Easy wiring of field devices
o Usage of various transfer media (Wifi, flass fibre, copper cable)
o Real-time capable star architecture demands specialized switches
o High availability of cost-effective components (due to standardized connectors)