Instrumentation Sensors Book
.pdf236 |
Programmable Logic Controllers |
input modules. The unit is selected by the enable code, and the address bus directs the data placed on the data bus from the memory by the processor to its output.
The operation cycle in the PLC is made up of two separate modes; these are the I/O scan mode, followed by the execution mode [5].
I/O scan mode is the period when the processor updates the output control signals, based on the information received from the previous I/O scan cycle after its evaluation of the signals. The processor then scans the inputs in a serial mode and updates its internal memory as to the status of the inputs.
Execution mode follows the I/O scan mode. In this mode, the processor evaluates the input data stored in memory against the data programmed into the CPU. The programs usually are set up using ladder networks, where each rung of the ladder is an instruction for the action to be taken for each given input data level. The rung instructions are sequentially scanned, and the input data evaluated. The processor then can determine the actions to be taken by the output modules, and puts the data into memory for transfer to the output modules during the next I/O scan mode.
Scan time is the time required for the PLC to complete one I/O scan plus the execution cycle. This time depends on the number of input and output channels, the length of the ladder instruction sets, and the speed of the processor. A typical scan time is between 5 and 20 ms. As well as evaluating data, the PLC also can generate accurate time delays, store and record data for future use, and produce data in chart or graph form.
14.4Input/Output Modules
Input/output modules act as the signal interface between the monitoring sensors and actuators, and the controller. I/O modules also provide electrical isolation, if necessary, to convert the input signals into an electronic format suitable for evaluation by the controller; provide memory storage; and format the output signals for displays and control functions. Modules fall into three categories: (1) those for use with discrete I/O levels, (2) those with analog signal levels, and (3) those that have intelligence to evaluate and modify the input signals before they can be used by the controller. Some modules are configured for local signals up to 500 ft, and some are for remote signals from 500 to 10,000 ft. Input/output modules will typically have 16 inputs or outputs, but can be as high as 32, or as low as 4. Modules that have both input and output ports are also available.
14.4.1Discrete Input Modules
Discrete input modules serve as On/Off signal receivers for the processor. The basic function of the input module is to determine the presence or absence of a signal. The inputs from peripheral devices to the input modules can be ac or dc signals. The voltage ratings for input modules can vary from 24V to 240 V, ac or dc, as well as 5V and 12V TTL levels. The various types of applications that can be used with the discrete input modules are given in Table 14.1.
Figure 14.5 shows examples of the input module tag strips that are normally on the front of the modules. A discrete module typically will have 16 inputs, which can
14.4 Input/Output Modules |
237 |
|
Table 14.1 Discrete Input Applications |
|
|
Type of Input |
Application |
|
Discrete input |
Push buttons, switch, relay contacts, starter contacts, proximity switch, photo- |
|
|
electric device, float switch |
|
TTL Input |
CMOS logic or TTL level |
|
dc or ac Inputs |
General purpose high-, medium-, or low-level inputs |
|
Discrete parallel inputs |
Thumbwheel switches, bar code readers, weigh scales, position encoders, ADC, |
|
|
BCD/parallel data devices |
|
|
|
DC + |
+ V |
|
|
|
|
||
|
0 |
|
|
|
ac |
1 |
|
0 |
|
/dc |
2 |
|
1 |
|
|
3 |
|
2 |
|
|
C |
|
3 |
|
|
4 |
Input |
4 |
|
ac |
5 |
|
5 |
|
/dc |
6 |
|
6 |
|
|
7 |
|
7 |
|
|
C |
Input |
8 |
|
|
8 |
|
9 |
|
ac |
9 |
|
10 |
|
10 |
|
11 |
||
/dc |
|
|||
|
11 |
Input |
12 |
|
|
C |
13 |
||
|
|
|||
|
12 |
|
14 |
|
ac |
13 |
|
15 |
|
14 |
Input |
16 |
||
/dc |
||||
|
15 |
DC − |
17 |
|
|
C |
C |
||
|
|
|||
|
(a) |
|
(b) |
Figure 14.5 Examples of input module switch connections.
be segmented into groups of 4, 8, or 16. Some examples of how the wiring can be implemented in various modules are shown. In Figure 14.5(a), switches are connected in blocks of 4 with ac or dc power supplies. An open switch gives a “0” level input, and a closed switch gives a “1” level input. In Figure 14.5(b), the inputs are transistor logic levels, and the logic output transistor with load is shown. If the transistor is On, the input is a “0” level, and if Off, the input is a “1” level.
The input stage of a dc or ac module is used to detect presence or absence of a voltage, and to convert the input voltage to a logic 5V level. Figure 14.6 shows the block diagram of a discrete input module. The front ends of both the dc and ac modules are shown. With a high dc input voltage, the voltage is stepped down to a low voltage, which then goes through a de-bounce circuit with a noise filter, and threshold detector for “1” or “0” detection, followed by optical isolation, so that the signal can be referenced to the signal ground of the processor. The ac module input
14.4 Input/Output Modules |
239 |
||
|
Table 14.2 Special Function Input/Output Modules |
|
|
|
Module Type |
Application |
|
|
Interrupt input |
Immediate response to signal changes |
|
|
Voltage comparator input |
Analog set-point comparison |
|
|
Latching input |
Detection of short duration signals |
|
|
Fast input |
Fast response to dc level changes |
|
|
Rapid response I/O |
Provides fast input/output response |
|
|
Relay contact output |
High current switching and signal multiplexing |
|
|
Wire fault input |
Wire break and short circuit detection |
The interrupt function module is used to interrupt the processor’s scan sequence, in order to perform a task that requires immediate attention.
The voltage comparator module is used to compare the amplitude of the input to an internally generated voltage or an externally derived voltage.
To detect fast transients of a few microseconds that would normally be missed by standard input modules, the latching input module is used to detect transients and set a latch.
The fast input performs a similar function to the latching module, but does not latch the transient. It only holds the information for a scan cycle, so that it can be detected and recorded.
The rapid response module is similar to the latching input module, but can immediately enable an output without having to wait for a scan cycle.
The relay output module has isolated relay contacts to handle high currents and to multiplex signals.
The fault input is used to interface wire fault detection circuits to the processor.
14.4.4Discrete Output Modules
Discrete output modules are used to interface output information from the controller to peripheral units, to provide electrical isolation, and to provide the data in a suitable format for use by the external units. The output from the modules can be either discrete ac or dc outputs, or relay contacts. The output voltage can be from 12V to 230V, ac and dc, and TTL levels with multiple or isolated contacts. Table 14.3 shows a list of discrete output applications.
Figure 14.8 shows the block diagram of solid state discrete output drivers using TRIACs. Only two drivers are shown, but normally the drivers would be in groups of four or eight drivers in a module. The outputs have filtering and surge suppression to protect the drivers against transients and inductive spikes, and are fused for protection against overloads. The LED is located above the tag strip, and is used to indicate the logic state of the output.
Table 14.3 Discrete Output Applications
Type of Output |
Application |
Discrete outputs |
Motor starters, solenoids, alarms, horns, buzzers, pilot lights, fans |
TTL output levels |
TTL and CMOS logic devices |
ac, dc outputs |
General purpose high-, medium-, or low-load, ac or dc |
Parallel outputs |
Seven segment displays, BCD controlled message displays, DAC, BCD/parallel data |
|
input devices |
242 |
Programmable Logic Controllers |
control voltage to adjust the valve controlling the fuel flow to the furnace. The PID module could also use digital techniques, in which case, the analog input signal would be converted into a digital signal, and compared to the set point in a digital comparator to generate the error signal. The controller will use the error signal to generate a PWM signal to control the furnace fuel actuator [8].
The temperature control module normally controls from 8 to 16 temperature zones. The module is configured for two-position control (heat on/heat off), or three-position control (heat on/heat off/cool). The set points are stored in the processor. A typical application is large building HVAC, or controlling the zone temperatures required in plastic injection molding machines.
Position and motion modules enable PLCs to control stepper and servo motors in feedback loops, to measure and control rotation speeds and acceleration, and to control precision tools. This category of devices uses high-speed counting, rotational and linear position decoders, and open and closed loop control techniques, in order to measure axis rotation and linear speed and position. Typical applications of position and motion modules are given in Table 14.5.
Process specific modules are intelligent modules designed to perform a specific control function or a specific series of operations. Many machines built by different vendors perform similar functions and are similar in operation, using similar inputs and outputs. These modules were developed to interface with such machines. The operations they perform are normally repetitive, requiring precise measurements and complex numerical algorithms. Typical applications are profiling and controlling plastic molding and injection systems [9].
Artificial intelligence modules have a number of industrial applications in voice recognition, synthesized speech, and visual inspection. The sound module can give alarm announcements, voice recognition, and echo evaluation, when using sound waves for flaw detection. The video module can provide dimension gauging, visual inspection, flaw and defect detection, position analysis, and product sorting.
Table 14.5 Applications of Position and Motion Modules
Module |
Application |
High-speed counter module |
Up/down counting |
|
Generate interrupt for set count |
|
Generate gating |
|
Generate delays |
Encoder input module |
Absolute position tracker |
|
Incremental position tracker |
Stepper-positioning module |
Open loop position |
|
Setting dwell times |
|
Define motion speed |
|
Motion acceleration |
Servo-positioning module |
Transfer and assembly lines |
|
Material handling |
|
Machine tool setting |
|
Table positioning |
|
Precision parts placement |
|
Automatic component insertion |