Lecture: PLC Hardware: Programmable Controllers
Lecture: PLC Hardware: Programmable Controllers
Lecture: PLC Hardware: Programmable Controllers
Jerzy Kasprzyk
1. Introduction
In the respect of the PLC architecture, one can distinguish: Compact controllers, Modular controllers. Table 1. The most popular PLC families
Manufacturer Intelligent relays Small Medium Large
Siemens
Logo
SIMATIC S7-300
SIMATIC S7-400
Schneider Electric
Zelio
Quantum
GE Fanuc
VersaMaxNano
Mitsubishi Electric
ALPHA
Omron
PLC-5
Others: PCD family of SAIA-Burgess, Bernecker & Rainer (multitasking operating system), Beckhoff, WAGO, Moeller, etc.
Elements of PLC hardware: Baseplate (rack) with slots, expansion baseplates, remote baseplates, Remote Input/Output Station (RIOS); Power Supply (PS), Central Processing Unit (CPU); basic I/O modules: Digital Input (DI), Digital Output (DO), (called also discrete), Analog Input (AI), Analog Output (AO), other modules (also intelligent): High-Speed Counter (HSC), Axis Positioning Module (APM), Communication modules, Input modules for temperature sensors, PID modules or fuzzy logic controllers, Module for code bar readers, etc.
Hardware configuration: number and type of baseplates, types of modules, parameters of the modules that can be configured by the user, e.g. signal ranges, voltage or current mode for AI or AO, code (e.g. binary, BCD), references (direct addresses).
In the older systems, some of the parameters have been set in hardware (e.g. jumpers), nowadays it is rather done in a software way.
For communication modules, the user should declare: parameters of the communication link (e.g. speed rate, address of the node, data protection), references for transmitted data, etc.
Program sweep and CPU modes PLC must work in Real Time. Classical solution: Program Sweep (fraction of ms up to few dozen of ms).
INITIALIZATION INITIALIZATION
NO
NO
NO
COMMUNICATION
DIAGNOSTICS
DIAGNOSTICS
RUN typical mode, all phases are executed including application program; STOP application program is not executed.
Other modes: Constant Sweep, test modes: Single Sweep, Step by Step, RUN without digital output activation. Scan Time (sweep time) can not be arbitrary long there is a watchdog in CPU that prevents PLC against program hang-up (typically 100 ms to 500 ms).
In modern PLCs one can define three types of tasks: cyclic (continuous); periodic (timer event); event controlled. Table 2. Times of data exchange between CPU and modules of GE Fanuc series 90-30
Time [ms] Modules 16 DI 16 DO 4 AI 2 AO 16 AI 8 AO HSC APM (1 axis) Ethernet GCM without any connections 32 nodes with 64 I/O points each GBC without any connections 32 nodes with 64 I/O points each Baseplate 0,030 0,030 0,075 0,058 0,978 1,274 1,381 1,527 0,038 0,567 1,714 0,798 18,38 Extension 0,055 0,053 0,105 0,114 1,446 1,988 2,106 2,581 0,041 0,866 2,514 1,202 25,377 Remote 0,206 0,197 0,396 0,402 3,999 4,472 5,221 6,388 0,053 1,830 5,783 2,540 70,777
To other circuits
Optical coupling
Fig. 5. Simplified schematic and field wiring diagram for MDL 646 (24Volt DC Positive/Negative Input Module)
Optical coupling
Fig. 6. Simplified schematic and field wiring diagram for MDL 231 (240 Volt AC Isolated Input Module)
Digital Input Module Specifications: Rated Voltage typically 24VDC or 120/240 VAC; Number of Inputs, optionally Number of Groups; Isolation (e.g. RMS of breakdown voltage); Electrical Characteristics of state levels: ON (e.g. > 15V) and OFF (e.g. < 5 V); ON Response, OFF Response Times; Power Consumption, Internal Power Dissipation; Operating Conditions Temperature, Humidity, Vibration.
To other curcuits
Fig. 7. Simplified schematic and field wiring diagram for MDL 742 (24Volt DC Positive Output Module)
Digital Output Module Specifications: Rated Voltage typically 24VDC or 120/240 VAC; Number of Outputs, optionally Number of Groups; Isolation (e.g. RMS of breakdown voltage); Electrical Characteristics of ON and OFF levels; ON Response Time, OFF Response Time; Load Current/Output; Max Load Current/Module; Inrush Current; Power Consumption, Internal Power Dissipation; Operating Conditions Temperature, Humidity, Vibration.
a)
b)
1A, 100V
630V
DO
DO
c)
d)
DO
DO
Typical nominal ranges for analog signals: 10 V, +10 V; 0 V, +10 V; +1 V, +5 V; 4 mA, 20 mA; 0 mA, 20 mA.
differential (A/D converts the difference voltage between the inputs IN+ and IN ); single-ended (A/D converts the difference voltage between the input and COM).
250
A D
%IW1
250
A D
GND
24V
Fig. 9. Wiring diagram for a single-ended AI current module and 2-wire sensors
4-wire sensor
250
A D
%IW1
250
A D
%IW2
24V
ANALOG INPUT
Fig. 10. Wiring diagram for a differential AI current module and 4-wire sensors
+ A D %IW1
A D %IW2
GND ANALOG INPUT
optional
Accuracy;
It is defined as the maximum difference between expected and measured values e.g.
Common Mode Rejection Ratio (CMRR), e.g. 80 dB; Cross-Channel Rejection Ratio (CCRR), e.g. 80 dB; Update Rate, e.g. 4ms. Other specifications: Number Of Channels; Input Current Ranges or Input Voltage Ranges; User Supply Voltage; Absolute Maximum Input Voltage; Calibration; Absolute Accuracy; Update Rate; Isolation; Input Impedance, Inductance, Capacitance; External Supply Voltage Range and External Supply Voltage Ripple; Power Consumption, Internal Power Dissipation; Operating Conditions Temperature, Humidity, Vibration, etc.
Usually, a user can also define the signal state on the output while PLC is in the STOP mode (Timeout State). It can be done in hardware way (using jumpers) or software way (during configuration). Then the user can declare the state as e.g. User Defined or Last Value.
D A
%QW2
D A
ANALOG OUTPUT
24V
Basic features of AO modules: Number of Channels; Output Current Ranges or Output Voltage Ranges; User Supply Voltage; Absolute Maximum Input Voltage; Resolution; Absolute Accuracy; Update Rate; Isolation; Load Impedance, Inductance, Capacitance; External Supply Voltage Range and External Supply Voltage Ripple; Power Consumption, Internal Power Dissipation; Operating Conditions Temperature, Humidity, Vibration, etc.
A hot standby system consists of two identically configured PLC units that are communicating with each other via hot standby processors. If there is a failure of the primary PLC, the secondary (or backup) PLC will assume the control check. Under normal conditions, the secondary PLC assumes no control functions, it only checks status information to detect errors.
Primary PLC
Secondary PLC
Connector to RIOS
The following three items are important. 1. 2. 3. The two systems must be identical. The order of the modules in each rack must be the same. The software revisions must be the same.
The Hot Standby solution provides bumpless transfer of I/O using remote I/O. In case of a failure, the controllers switchover and the system recovers quickly. After Hot Standby system has been started and is running normally, it will continue to function automatically. It constantly tests itself for faults and is always ready to transfer control from the Primary to the Standby, if it detects a fault.
While the system is running, the primary CHS module will automatically transfer a predetermined amount of state RAM to the Standby unit each scan. This ensures that the Standby is ready to take control if needed. If one or both of the links between the Hot Standby modules are broken, the Primary controller will function as though no backup is available. If the Primary controller fails, the Standby automatically assumes control of the remote I/O network. If the Primary controller recovers from failure, it assumes Standby responsibilities. If it cannot recover, it remains offline. If the Standby controller fails, it goes offline. The Primary controller functions as a standalone and continues to manage the I/O networks.
TMR is a fault tolerant solution, in which three systems perform a process and that result is processed by a voting system (two of three) to produce a single output. This means, if one of the three systems fails, the other two systems can correct and mask the fault. Example: the GE Fanuc Genius Modular Redundancy (GMR) system.