Beruflich Dokumente
Kultur Dokumente
2
Specifications and capabilities of programmable control
PLC
―PLC‖ stands for Programmable Logic Controller A computer used
commonly in the industry to control different electro-mechanical devices and
components by programmed instructions.
The abbreviation "PLC" and the term "Programmable Logic Controller"
are registered trademarks of the Allen Bradley Company(Rockwell
Automation). The company built the first PLC under the leadership of Odo
Struger in 1968.
Also known as ―programmable controller‖ or ―simply controller‖
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 25
The demand for fast production of cars in the late 60’s lead to a
search for a sophisticated system that would allow fast switching of signal
and easy to modify system, lead to the development of controllers.
It is the automotive industry that fully utilizes the usage of PLC in the
production line. Controller played an important role in automation. It
replaced many physical electrical components and devices like relays,
timers and counters in the field.
The evolution of PLC from a single digit input and output (I/O’s) to
hundreds of inputs capabilities expand its application different field
Advantages of PLC
Relay Connection
Application of PLC
2. COMPLEX CONTROL
a.) Arithmetic Operation
b.) Analog Process Control PLC Connection
c.) Servo/Stepper Motor Control
d.) Supervisory Control and Data
Acquisition (SCADA)
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 26
Today’s demand for high quality and productivity can hardly be
fulfilled economically without electronic control equipment. With rapid
technology developments and increasing competition, the cost of
programmable controls has been driven down to the point where a PLC-
versus-relay cost study is no longer necessary or valid. Programmable
controller applications can now be evaluated on their own merits.
CHEMICAL/PETROCHEMICAL MANUFACTURING/MACHINING
Batch process Assembly machines
Finished product handling Boring
Materials handling Cranes
Mixing Energy demand
Off-shore drilling Grinding
Pipeline control Injection/blow molding
Water/waste treatment Material conveyors
Metal casting
GLASS/FILM Milling
Cullet weighing Painting
Finishing Plating
Forming Test stands
Lehr control Tracer lathe
Packaging Welding
Processing
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 27
Because the applications of programmable controllers are
extensive, it is impossible to list them all so, we provide a small sample of
how PLCs are being used in industry.
AUTOMOTIVE
Internal Combustion Engine Monitoring. A PLC acquires data recorded
sensors located at the internal combustion engine. taken
water temperature, oil temperature, RPMs, torque, exhaust temperature,
pressure, manifold pressure, and
Power Steering Valve Assembly and Testing. The PLC system controls
machine to ensure proper balance of the valves and to maximize left and right
CHEMICAL AND
Dyes. PLCs monitor and control the dye processing used in the textile industry.
match and blend colors to predetermined
Chemical Batching. The PLC controls the batching ratio of two or more
in a continuous process. The system determines the rate of discharge of
material and keeps inventory records. Several batch recipes can be logged
retreived automatically or on command from the
Pipeline Pump Station Control. PLCs control mainline and booster pumps
crude oil distribution. They measure flow, suction, discharge, and tank
limits. Possible with SCADA (Supervisory Control and
Acquistion) systems can provide total supervision of the
Oil Fields. PLCs provide on-site gathering and processing of data pertinent
characteristics such as depth and density of drilling rigs. The PLC controls
monitors the total rig operation and alerts the operator of any possible
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 28
GLASS PROCESSING
Annealing Lehr Control. PLCs control the lehr used to remove the internal stress
from glass products. The system controls the operation by following the annealing
temperature curve during the reheating, annealing, straining, and rapid cooling
processes through different heating and cooling zones. Improvements are made in
the ratio of good glass to scrap, reduction in labor cost, and energy utilization.
Glass Batching. PLCs control the batch weighing system according to stored glass
formulas. The system also controls the electromagnetic feeders for infeed to and
outfeed from the weigh hoppers, manual shut-off gates, and other equipment.
Cullet Weighing. PLCs direct the cullet system by controlling the vibratory cullet
feeder, weight-belt scale, and shuttle conveyor. All sequences of operation and
inventory of quantities weighed are kept by the PLC for future use.
Batch Transport. PLCs control the batch transport system, including reversible belt
conveyors, transfer conveyors to the cullet house, holding hoppers, shuttle
conveyors, and magnetic separators. The controller takes action after the discharge
from the mixer and transfers the mixed batch to the furnace shuttle, where it is
discharged to the full length of the furnace feed hopper.
MANUFACTURING/MACHINING
Production Machines. The PLC controls and monitors automatic production
machines at high efficiency rates. It also monitors piece-count production and
machine status. Corrective action can be taken immediately if the PLC detects a
failure.
Transfer Line Machines. PLCs monitor and control all transfer line machining
station operations and the interlocking between each station. The system receives
inputs from the operator to check the operating conditions on the line-mounted
controls and reports any malfunctions. This arrangement provides greater machine
efficiency, higher quality products, and lower scrap levels.
Wire Machine. The controller monitors the time and ON/OFF cycles of a wire-
drawing machine. The system provides ramping control and synchronization of
electric motor drives. All cycles are recorded and reported on demand to obtain the
machine's efficiency as calculated by the PLC.
Tool Changing. The PLC controls a sychronous metal cutting machine with several
tool groups. The system keeps track of when each tool should be replaced, based
on the number of parts it manufactures. It also displays the count and replacements
of all the tool groups.
Paint Spraying. PLCs control the painting sequences in auto manufacturing. The
operator or a host computer enters style and color information and tracks the part
through the conveyor until it reaches the spray booth. The controller decodes the
part information and then controls the spray guns to paint the part. The spray gun
movement is optimized to conserve paint and increase part throughput.
MATERIALS HANDLING
Automatic Plating Line. The PLC controls a set pattern for the automated hoist,
which can traverse left, right, up, and down through the various plating solutions.
The system knows where the hoist is at all times.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 29
Storage and Retrieval Systems. A PLC is used to load parts and carry them in
totes in the storage and retrieval system. The controller tracks information like lane
numbers, the parts assigned to specific lanes, and the quantity of parts in a particular
lane. This PLC arrangement allows rapid changes in the status of parts loaded or
unloaded from the system. The controller also provides inventory printouts and
informs the operator of any malfunctions.
Conveyor Systems. The system controls all of the sequential operations, alarms,
and safety logic necessary to load and circulate parts on a main line conveyor. It
also sorts products to their correct lanes and can schedule lane sorting to optimize
palletizer duty. Records detailing the ratio of good parts to rejects can be obtained
at the end of each shift.
METALS
Steel Making. The PLC controls and operates furnaces to produce metal in
accordance with preset specifications. The controller also calculates oxygen
requirements, alloy additions, and power requirements.
Continuous Casting. PLCs direct the molten steel transport ladle to the continuous-
casting machine, where the steel is poured into a water-cooled mold for solidification.
Cold Rolling. PLCs control the conversion of semifinished products into finished
goods through cold-rolling mills. The system controls motor speed to obtain correct
tension and provide adequate gauging of the rolled material.
Aluminum Making. Controllers monitor the refining process, in which impurities are
removed from bauxite by heat and chemicals. The system grinds and mixes the ore
with chemicals and then pumps them into pressure containers, where they are
heated, filtered, and combined with more chemicals.
POWER
Plant Power System. The programmable controller regulates the proper distribution
of available electricity, gas, or steam. In addition, the PLC monitors powerhouse
facilities, schedules distribution of energy, and generates distribution reports. The
PLC controls the loads during operation of the plant, as well as the automatic load
shedding or restoring during power outages.
Energy Management. Through the reading of inside and outside temperatures, the
PLC controls heating and cooling units in a manufacturing plant. The PLC system
controls the loads, cycling them during predetermined cycles and keeping track of
how long each should be on or off during the cycle time. The system provides
scheduled reports on the amount of energy used by the heating and cooling units.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 30
Coal Fluidization Processing. The controller monitors how much energy is
generated from a given amount of coal and regulates the coal crushing and mixing
with crushed limestone. The PLC monitors and controls burning rates, temperatures
generated, sequencing of valves, and analog control of jet valves.
Paper Mill Digester. PLCs control the process of making paper pulp from wood
chips. The system calculates and controls the amount of chips based on density and
digester volume. Then, the percent of required cooking liquors is calculated and
these amounts are added to the sequence. The PLC ramps and holds the cooking
temperature until the cooking is completed.
Paper Mill Production. The controller regulates the average basis weight and
moisture variable for paper grade. The system manipulates the steam flow valves,
adjusts the stock valves to regulate weight, and monitors and controls total flow.
Tire Manufacturing. Programmable controllers are used for tire press/cure systems
to control the sequencing of events that transforms a raw tire into a tire fit for the
road. This control includes molding the tread pattern and curing the rubber to obtain
road-resistant characteristics. This PLC application substantially reduces the space
required and increases reliability of the system and the quality of the product.
Rubber Production. PLCs provide accurate scale control, mixer logic functions, and
multiple formula operation of carbon black, oil, and pigment used in the production
of rubber. The system maximizes utilization of machine tools during production
schedules, tracks in-process inventories, and reduces time and personnel required
to supervise the production activity and the shift-end reports.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 31
SELECTING PLC SYSTEM
TYPES OF PLC
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 32
2.) Modular Type
This is a type of PLC where power supply, CPU, input and output unit
are distinct and detached physically from each other. Connection ports
connect each unit to build a powerful controller. In this type, expansion to a
much higher I/O’s and other modules is possible. Though in some compact
type PLC, it is possible to expand using additional connector but its still
depends on CPU’s capability, the same goes to modular type.
Power CPU
Supply
Input and Output Modules
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 33
Selecting the right programmable controller for a machine or
process involves evaluating not only current needs, but future
requirements as well. If present and future goals are not properly
evaluated, the control system may quickly become inadequate and
obsolete.
Once the basic control application has been defined, the user should
begin evaluating the controller requirements, including:
• input/output
• type of control
• memory
• software
• peripherals
• physical and environmental
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 34
Input circuits vary from one manufacturer to another.
Nevertheless, characteristics like debouncing circuitry, which protects
against false signals, and surge protection, which guards against large
transients, are desirable in any input circuit. Another good input
circuit quality is optical or transformer isolation between the high-
power input and the interface’s control logic circuitry.
Properties of SM 321; DI 16 x DC 24 V:
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 35
Siemens Digital
Output Module 16x
REL. AC120/230V
(322-1HH01-0AA0)
Properties of SM 322; DO 16 x Rel. AC 120/230 V:
● 16 outputs, electrically isolated in groups of 8
● Load voltage 24 VDC to 120 VDC; 24 VAC to 230 VAC
● Suitable for AC/DC solenoid valves, contactors, motor starters,
FHP motors and signal lamps.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 36
Properties of SM 331; AI 2 x 12 Bit:
(Analog Input)
● Two inputs in one channel group
● Programmable measurement type for each channel group
– Voltage
– Current
– Resistance
– Temperature
● Programmable resolution at each channel group
(9/12/14 bits + sign)
● Any measuring range selection per channel group
● Programmable diagnostics and diagnostic interrupt
● Programmable limit value monitoring for one channel
● Programmable hardware interrupt when limit is exceeded
● Electrically isolated from the CPU and load voltage
(not for 2DMU)
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 37
Special Function Inputs/Outputs. Sometimes an application
requires a special type of I/O conditioning (e.g., positioning, fast
input, frequency, etc.) that may be impossible to implement using
standard I/O modules. Special function I/O modules and smart
modules, a type of special interface, can perform this task. Typically,
these interfaces process all of the field data within the module itself,
thus relieving the CPU from performing this time- consuming duty. For
example, PID, three-axis positioning, and stepper motor modules are
special function I/O modules that make control implementation much
easier. These modules reduce programming and implementation time.
Most controllers that have remote I/O have remote digital I/O.
However, users who require remote analog I/O should check to see if
this feature is available in the products being considered.
I/O Bus Networks. I/O bus networks, which include device bus
and process bus networks, should be considered in applications
requiring decentralized control within the PLC system. I/O bus
networks provide a topology that allows the direct connection of field
devices to a bus network, thereby simplifying wiring. At the same
time, these networks let the PLC directly receive I/O field device
information about the status of the device. However, the system’s I/O
field devices must be compatible with the I/O bus network to take
advantage of these enhanced communications features
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 38
CATEGORY OF CONTROL
Individual Control
PLC
Machine
Individual Control
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 39
Centralized control
is used when a central PLC controls several machines or
processes. This type of control can have many subsystems spread
throughout the factory. Each of these subsystems may interface
with specific I/O devices that may or may not be related to the
same control. A centralized programmable controller
communicates only with its subsystems and/or peripherals; it
does not exchange data with other PLCs.
PLC
Centralized Control
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 40
Distributed Control
Distributed Control
MEMORY CONSIDERATION
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 41
Small PLCs normally have a fixed (non-expandable) memory
capacity of 1/2K to 2K words. Therefore, the amount of memory is
not a major concern when selecting a small controller. In medium
and large controllers, however,
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 42
SOFTWARE CONSIDERATION
PERIPHERALS CONSIDERATION
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 43
Programming Handheld
device
Personal
computers provide a better way to
program a system if the control program is large. Many PLC
manufacturers provide software that allows their PLCs to be
programmed using a standard PC. Laptop PCs equipped with
programming and documentation software provide even more
programming flexibility by joining the ease of PC programming
with the transportability of handheld programming devices.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 44
PHYSICAL AND ENVIRONMENTAL CONSIDERATIONS
Here are the checklists of the features a user should look for
when evaluating PLC requirements. The data also provides typical
specifications for these features. Note that the list covers all
product ranges, from small to very large; therefore, some PLCs
may not have all of these features due to their range
characteristics.
(See next page for the complete list)
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 45
PLC Requirement Checklist
I/O Count
Digital count Maximum of 128 I/O (mixable)
Analog count Maximum of 16 I/O (mixable)
Digital I/O
Inputs
Points/module 4 points/module
Input type AC, DC, nonvoltage, etc.
Input ratings 110 VAC, 220 VAC, 5–24 VDC, etc.
Maximum inputs/channel 64 points/channel
Input status indicators Power, logic
Isolation 1500 volts optical
Outputs
Points/module 16 points/module
Output type AC, DC, contact, etc.
Output ratings 110 VAC, 220 VAC, contact
Output current (amps/point) 1 amp/point with all outputs ON at 115 VAC
Maximum outputs/channel 64 points channel
Output status indicators Power, individual blown fuse, logic
Output protection Fuses, suppression on contact output
Analog I/O
Inputs
Points/module 4 analog inputs/module
Resolution 11 bits
Input type Current, voltage
Input ratings 4–20 mA, 0–5 volts, 0–10 volts
Built-in transducer Thermocoupler input
Maximum inputs/channel 32 points/channel
Power supply Internal to PLC
Outputs
Points/module 2 analog outputs/module
Output type Current, voltage
Output ratings 4–20 mA, 10–50 mA, 0–10 volts
Maximum outputs/channel 16 points/channel
Power supply
+15 VDC and –15 VDC
Remote I/O
Digital
Distance 1500 ft
I/O per remote 32 I/O per remote
Communication link Twisted-pair, 100 ohms impedance
Analog
Distance 5000 ft with receiver/transmitter
I/O per remote 16 I/O per remote
Communication link Coaxial
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 46
I/O System Checklist Typical Specifications
Special I/O
High-speed pulse counter Local and remote, 50 kHz
Fast electronic input 5 microsecond pulse width minimum
Interrupt module Yes
Absolute encoder Direct connection to encoder
Incremental encoder Not available
BCD I/O module Remote, 4 and 8 BCD digits
Stepper motor Yes
ASCII communications module Full ASCII 300–4800 baud
Host computer Yes, protocol decode on module
LAN I/O module Extra board in CPU
PID module Local and remote, 2 loops per module
Language module Basic interpreter module
I/O Bus Network
Device bus
Networks supported DeviceNet, InterBus-S, and SDS
Number of nodes 64 nodes, 2048 devices
Structure Trunkline
Process bus
Networks supported Profibus and Fieldbus foundation
Media Coaxial
Speed 2 Mbaud
Physical
Wire size to I/O 20 AWG with 2 wires per I/O
Separate commons Yes for 4 pts/module, no for 16 pts/module
Removable under power Yes
Disturb wiring to remove I/O No, disconnect screw from I/O module
Processor
Microprocessor 16-bit microprocessor and multiprocessor
board
Scan time 10 msec/K of memory
Communication ports Two RS-232C ports
Memory
Memory type RAM, EEPROM
Total system memory 64K
Application memory size 8K for user
Word size 8 bits
Memory utilization 1 word per element (coil or contact)
Memory protection Yes, key switch
Power Supply
Incoming power 120/240 VAC, 24 VDC
Frequency 50/60 Hz
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 47
CPU Checklist Typical Specifications
Power Supply
Voltage variation +15%, –10%
Overvoltage protection Yes
Current limiting Yes
Maximum current supply 100 mA at 14 VDC, 2.5 amps at 5 VDC
Isolation 1500 volts
Location Built-in CPU
Environmental
Operating temperature 0–60 C
Humidity 5–90% relative humidity, noncondensing
EMI/RFI Satisfies NEMA and IEEE tests
Noise 1000 volts peak-peak, 1 microsecond
Vibration Withstands 16.7 Hz, double amplitude
Shock 10g each direction
Language
Ladder or Boolean Ladder language
High-level Functional blocks
IEC 1131-3 Conforms to IEC 1131-3 with SFCs
Software Coils
Number of internals 128
Number of timers 32 with maximum count of 9999 sec BCD
Number of counters 166
Number of shift registers 32, 16 bits each
Number of drum timers 16
Timer’s time base 0.1, 1.0 seconds
Timer type ON delay and OFF delay
Counter type Up/down counter
Latch coil 32
Transitional coil 16, OFF/ON and ON/OFF
Master control relays 8
Global coil 256 in LAN
Global register 128 in LAN
Fault coil Yes, detection of CPU failure
Interrupt coil Yes
Math
Addition Yes, double precision
Subtraction Yes, double precision
Multiplication Yes
Division Yes
Square root Yes
Floating point Yes, 1E + 38, 1E – 38
Trigonometric functions Yes, sine and cosine in IEC 1131-3 ST
language
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 48
Software Checklist Typical Specifications
Data Handling
Number of registers 128, 16 bits each
Data size in registers +32767, –32767, and 9999 BCD
Compare Yes, <, >, and =
Conversions Binary-BCD, BCD-binary
Move Registers and single files
Matrix AND, OR, XOR, NAND
Tables Move to ASCII or binary tables
PID Software functional block, 20 loops
LIFO Yes
FIFO Yes
Jump Conditional and direct
Subroutines Yes
ASCII instructions Yes, print and read
Sort No
Machine diagnostics Yes
Programming and Storage
Typical Specifications
Device Checklist
Personal Computer
Physical
Computer type Desktop and laptop
Display size 14 to 21" screen
Graphics Yes
DDE driver Yes
Ladder matrix size 10 7 elements, scrolling for IEC 1131-3
Built-in storage Yes
Local area network Yes
Communication RS-232C and 20 mA current loop
Incoming power 115/230 VAC
Operating temperature 0–40 C
Keyboard type Mylar or standard keys
Functional
Intelligent Yes
Single scan No
Power flow Yes, element intensified on screen
Off-line programming Yes
Monitor function Yes
Modify function Yes
Force I/O Yes, indicates forcing on mainframe
Search No
Mnemonics Yes
Documentation Built-in software module
Manual Programmer
Physical
Display type LCD or LED
Ladder matrix size 7 4 elements
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 49
Programming and Storage
Typical Specifications
Device Checklist
Manual Programmer
Physical
Communication RS-232C
Incoming power From unit
Operating temperature 0–40 C
Keyboard type Mylar
Functional
Intelligent No
Single scan No
Power flow Yes
Monitor function Yes
Modify function Yes
Force I/O Yes
Search No
Mnemonics Yes, also messages
Storage Devices
Floppy disk In personal computer
Computer Yes, through computer module
Electronic memory module Yes, for a small PLC
System Diagnostics
Typical Specifications
Checklist
Power Supply
Power loss detection Yes, after 3 cycles
Voltage level detection Yes, DC levels for CPU
Diagnostic monitoring Continuously
Memory
Memory OK Yes, checksum and LED indicator
Battery OK Yes, LED indicator
Diagnostic monitoring At power-up only
Processor
Local Yes, watchdog timer and LED indicator
Remote Yes, indicator in CPU
Diagnostic monitoring Continuously
Communication
Local I/O Yes
Remote I/O Yes, checksum
Programming device CRT port OK and RS-232C OK
Diagnostic monitoring During transmission
Fault Indications
CPU Yes, external relay contacts
Remote Yes, external contacts at remote driver
LAN Yes, internal coil
I/O Yes, detects presence of I/O module
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 50
OTHER CONSIDERATIONS
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 51
SIEMENS S7- 300 CPU
We will be using Siemens S7-300 CPU, the CPU with medium to large
program memory and quantity framework. Specifically we will S7-300
CPU315-2PN/DP which works on -25 to +70 degrees Celsius of working
environment.
Number Description
① Status and error indicators
② Slot for the SIMATIC Micro Memory Card
incl. the ejector
③ Mode selector
④ MAC address and 2D bar code
⑤ 1. interface X1 (MPI/DP)
⑥ Power supply connection
⑦ 2. Interface X2 (PN), with dual-port
switch
⑧ PROFINET Port 2
The Port 2 status is signaled using a dual-
color LED (green/yellow):
* LED lit green: LINK to a partner is active
* LED changes to yellow: active data traffic
(RX/TX)
R: Ring port for setting up a ring topology
with media redundancy
⑨ PROFINET Port 1
The Port 1 status is signaled using a dual-
color LED (green/yellow):
* LED lit green: LINK to a partner is active
* LED changes to yellow: active data traffic
(RX/TX) CPU315- 2PN/DP
6ES7315-2EH14-0AB0
R: Ring port for setting up a ring topology
with media redundancy
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 52
PLC Components
PLC system components are the same on either type of PLC. Each part
is very important in its smooth operation. A missing single part or
components would paralyze PLC and it will be irrelevant. At this discussion
we will focus on modular type PLC components.
1.) Power Supply – gives power to the CPU unit and other
modules. Its input voltage range would be
100V – 240V AC and output voltage typically
240V AC and 5 - 24Vdc. It usually found
besides the CPU unit.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 53
Allen Bradley Omron Siemens CPU
Compaq Logix NJ301-1100 CPU 315-2 PN/DP
L32E CPU CPU
COM Port
Of course, digital I/O process digital signal while analog I/O process
analog signal. In digital input it is important to note that there are two
types input devices connection. They are either sourcing (PNP) or sinking
(NPN).
PLC
PLC signals
Sourcing Sinking
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 54
4.) Communication
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 55
SELF CHECK 1.1.2
Matching type
Direction: Match the descriptor from column I to the terminologies in
the column II. Write the letter of your choice on your answer sheet.
I II
1.) A computer used commonly in A. Sinking Type
the industry to control different
electro-mechanical devices and
components by programmed
instructions.
2.) The company that first B. Sourcing type
built a PLC in 1968
3.) Siemens created and used this C. Large PLC
type of network technology
4.) Allen Bradley and Omron use D. Triac Type
this type of networking
technology on PLC
5.) Also known as shoebox and E. Transistor Type
Brick type controller
6.) A PLC with less than 1028 F. Micro PLC
I/Os
7.) A controller where CPU, power G. Compact Type
supply and modules are not
intact in one module.
8.) A PLC with more than H. Rockwell Automation
100 I/Os
9.) An input module connected to a I. DeviceNet
PNP output type input device
to work properly.
10.) An output module which is J. Modular type
voltage dependent means they
switch AC and DC voltages.
K. Small PLC
L. ProfiBus
M. Medium PLC
N. Power Supply
O. PLC
P. Relay Type
Q. Omron
R. Siemens
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 56
ANSWER KEY 1.1.2
1.) O
2.) H
3.) L
4.) I
5.) G
6.) M
7.) J
8.) K
9.) A
10.) P
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 57
Task Sheet 1.1.2
Steps/ Procedure:
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 58
Performance Criteria Checklist 1.1.2
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 59
Information Sheet 1.1.3
Processing and communication speed of the programmable
control
Selecting PLC is already discussed in the previous section. All you want
to consider in choosing the right and appropriate controller for your needs.
Though, the specification considerations on communication devices are
reviewed, in this section we will further explain how the PLC communicate or
connect to programming device, and how it process signals going in and out
the system.
PLC operation
Controller works like a normal computer. Input device like keyboard
and mouse triggers the action, while the CPU scans and examines the action
and output device reveal the results of CPU. The same goes to PLC, where
input devices like switch and sensor generates signal going to controller. The
signal will know be process and sent to memory.
Controller will start to scan all inputs and process instructions and
operations in the memory. After that, necessary output signals are sent to
port or module where results are exhibit and displayed on devices.
Operation Sequence
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 60
EXECUTE RESULT
READ
PLC
MEMORY
INPUTS OUTPUTS
PLC Scan
PLC Program
For the PLC to be useful, it must first have a Program or Logic for the
CPU to execute. A system engineer or PLC programmer will first create the
program logic in a programming device (these days it is usually software
running on a personal computer). This logic can be written in Ladder Logic,
Instruction List, Sequential Function Charts, or any of the IEC languages.
The programmer will then download the program to the PLC. This is
usually done by temporarily connecting the programmer to the PLC. Once the
program is installed or downloaded to the CPU – it is usually not necessary
for the PC to remain connected.
Basic Scan
Once the program is in the CPU – the PLC is then set to “run”, and the
PLC executes the application program repeatedly. In addition to executing
the program, the CPU regularly reads the status of the input devices, and
sends data to the output devices. The Input system senses the status of the
real world inputs (a switch, a level, etc.), translates them to values that can
be used by the CPU, and writes those values to the Input table. The
application program is executed, and writes values to the Output table. The
Output system then converts the output value to a real world change (motor
turns on, valve opens, etc.)
This process of reading inputs, executing logic, and writing outputs is
called the PLC Scan or Sweep.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 61
The CPU continuously Reads Inputs, Solves Logic, and Writes to the
outputs (there are other tasks the CPU does – which will be discussed later).
It is important to understand the scan because it may dictate how a
programmer structures logic.
Memory
The control program or application program is stored in memory. As
the PLC executes logic, it may also read and store values to memory. The
values may also be used and referenced by the application program.
Programming device
This are elements that are interfaced to the controller (PLC) to give
instructions and operations by using a programming language software,
usually a personal computer (PC), laptop or any handheld device with
display/keypad capable and compatible to controller.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 62
Portable Laptop
Programming software
It is use to create, test , and debug programs applications that are
understandable by PLC. Also, different programming language are
integrated in a single software in accordance to international standards of
such software. Each manufacturer of controller developed their
programming software like Step 7 and Totally Integrated Automation (TIA)
by Siemens, RS Logix by Allen Bradley and SysMac Studio by Omron
ALLEN BRADLEY
SIEMENS
(AB)
RS Logix
Step 7 TIA
5000
OMRON
Sysmac
Studio
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 63
Programming or communication device medium
You can create your own cable, just follow the wiring
connections below for your do it yourself (DIY) cable.
PC Controller
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 64
Multi Point Interface (MPI) adapter
It connects SIEMENS PLC port (like a serial interface port) to
serial interface (USB) of Personal Computer (PC). MPI adapter is not
just an ordinary device; it is composed of circuitry inside for fast
communication speed.
Ethernet connection
is the most common standard interface for most, if not all,
controller built by majority of PLC manufacturer. And some of the
reasons are due to its flexibility and technology, which is also present
to all commercially available computer.
Ethernet cable
(RJ 45)
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 65
CONTROLLER SET UP
PLC
Human Machine
Interface (HMI)
IP Address : 192.168.0.2
Subnet Mask :
255.255.255.0
IP Address : 192.168.0.1
Subnet Mask :
255.255.255.0
Switch
Laptop
IP Address : 192.168.0.10
Subnet Mask :
255.255.255.0
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 66
iDG Siemens PLC Trainer
The trainers output are all equipped with LED indicator display. Just
make sure to configure your module accordingly. The printed address in the
trainer are 4.0 - 4.7, 5.0 – 5.7, 6.0 – 6.7 and 7.0 – 7.7 accordingly.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 67
The following are some information and specifications to know about
Siemens PLC trainer.
Trainer’s modular 16
Trainer’s modular input Trainer’s modular
bits data input and
and output unit potentiometer and
output unit
meter unit
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 68
CONTROLLER START UP AND CHECKING
Prior to applying power to the system, the user should make several
final inspections of the hardware components and interconnections. These
inspections will undoubtedly require extra time. However, this invested time
will almost always reduce total start-up time, especially for large systems
with many input/output devices. The following checklist pertains to
prestart-up procedures:
2. Inspect all CPU components and I/O modules to ensure that they
are installed in the correct slot locations and placed securely in
position.
5. Verify that all I/O wiring connections at the controller end are in
place and securely terminated. Use the I/O address assignment
document to verify that each wire is terminated at the correct point.
6. Check that the output wiring connections are in place and properly
terminated at the field device end.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 69
STEP 7 software
STEP 7 start up
Or
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 70
3.) Select or check OB1
“Cycle Execution” .
Select the programming language (it will
be discuss further on next chapter), for
now, select LAD (ladder).
Then click Next.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 71
SIMATIC Manager
Title bar contains the title of the window and icons for controlling the window.
The title bar and menu bar are always found at the top of a window
Menu bar contains all menus available in the window like File, Edit, Insert,
PLC, View, Options, Window and Help.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 72
Toolbar contains icons (or tool buttons) which provide shortcuts to
frequently used and currently available menu bar commands available with a
single mouse click
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 73
System Menu contains the move, size , minimize, maximize and close
applications when logo is clicked in the title bar .
Title of the active window indicate the title of the window, name of the
project and the location of active project
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 74
SET UP COMMUNICATION
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 75
Depends on the availability of each communication medium, you
can choose either. But of course, they offer different characteristics and
specifications. Like MPI adapter, it uses MPI technology which offers high
speed transmission than Ethernet but MPI adapter is quite expensive
compared to RJ 45 cable. Choose the right interface in accordance to your
needs and intended application.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 76
2.) A window would appear for the selection of PG/PC interface medium. Select
the applicable medium that you have or going to use. You can add and remove
interface medium installed in your system.
3.) After a selection of medium or interface is made. You can configure your
hardware controller components.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 77
Configuring PLC modules
In SIMATIC Manager, it has a hierarchy of objects in the right pane of
window. First is the name of the project, then the CPU type under SIMATIC
station and S7 Program blocks where you can create and test a program.
We already created a sample project using a wizard. Now, we need to
configure our hardware and communicate our hardware to our Step 7
software.
1.) After creating a project, go to SIMATIC 300 Station for S7-300, just a
single left click of mouse. A hardware icon and the CPU type you choose
during project wizard will appear.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 78
4.) Within the catalogue, choose the appropriate modules with the same
model and order information to your actual module configuration. Then drag
the item to the left window pane and automatically it will be register. Start
with your PSU up to the last module within the rack.
5.) Make sure that order number in your HW configuration is same with the
actual unit. In Siemens, it is printed in front of the actual module, so don’t
forget to check each digital input and output module. Also, check your
analog input and output module.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 79
Specific data and information is located just below the catalogue for
further checking and verification.
6.) If all modules were already uploaded and updated, it should look the same
with the photo below. And then, kindly click “download to module” icon to save
the configuration to the controller.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 80
6.) Then just follow the sequence from selecting the CPU type up to starting the
controller from STOP to RUN mode. Save and compile if all is done.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 81
Download and Upload
Download
To transfer some collection of data from a computer memory to
another storage location. To transfer some collection of data from the
memory of one computer to the memory of a second computer that is
relatively smaller than the first; for example, to transfer data from a
mainframe computer to a microcomputer.
Upload
To transfer some collection of data from some storage location to a
computer memory. To transfer some collection of data from the memory of a
small computer to the memory of a relatively larger computer; for example, to
transfer data from a microcomputer to a mainframe computer.
Download
Upload
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 82
SELF CHECK 1.1.3
Identification
Direction: Identify the correct and appropriate answer on each
number within the group of words below. Then write the correct
answer on your answer sheet
3.) This are elements that are interfaced to the controller (PLC)
to give instructions and operations
4.) It is use to create, test , and debug programs applications
that are understandable by PLC
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 83
ANSWER KEY 1.1.3
2.) Memory
6.) Ethernet
7.) MPI
9.) Download
10.) Upload
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 84
Task Sheet 1.1.3
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 85
6.) Using MPI, connect one end to MPI port of
your controller and the other end to USB
port of your programming device like laptop.
As shown below
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 86
Performance Criteria Checklist 1.1.3
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 87
Operation Sheet 1.1.3
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 88
Steps/ Procedure:
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 89
6.) Turn ON the PLC power supply as seen
above.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 90
Job Sheet 1.1.3
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 91
Steps/ Procedure:
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 92
5.) In the SIMATIC Manager window, go to
options then scroll down. You will see “Set
PG/PC Interface”, click it.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 93
9.) A catalogue of PSU, CPU, Rack, Signal
Modules, Profibus, ProfiNet will appear.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 94
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
MECH072213 and Software Programs July 22, 2013 95
Information Sheet 1.1.4
Types of unit input and output devices
Toggle Switch
a switch is an electrical component that can break an electrical circuit,
interrupting the current or diverting it from one conductor to another
Limit Switch
a limit switch is a switch operated by the motion of a machine part o
presence of an object
Push-Button Switch
A push-button (also spelled pushbutton) or simply button is a simpl
switch mechanism for controlling some aspect of a machine or a process
Selector/selective switch
A type of switch that can be turned to different positions to make
connection with the contacts in that particular position
SENSOR
As majority of manufacturing industry are totally engaging or gearing up
on automating most of their processes, sensor devices played a big role in thi
big changes. Majority of input elements, if not all, in production line or lin
relies on sensor technology, a technology that continues to evolve and
innovate.
A wide variety of sensors are now available in the market that suits you
needs. But of course, each manufacturer offers additional and new features t
the device compared to others.
Sensor also called detector, an input device that measures a physica
quantity and converts it into a signal (mostly electrical and electronic
acknowledged by human or by an instrument.
Humans also have set of sensors embedded within our body. It is an input
to our every action. I am talking about our five senses; sight, hearing, taste,
touch and smell. Using these senses we can control our every actions
depends on the level or range of tolerance set by our mind.
Most sensors use solid state circuits to perform switching action. Sensors
usually use two, three or four wires from making connections to the load.
These load, as discussed, would be lamp, bulb and PLC. The colour coded
wirings are based on European standards.
Two wire Sensors
This configuration is connected in series to the load, the same
way a normal switch is connected in a normal circuit.
The two types of three wire sensors are sourcing type and sinking type.
The principles of sourcing and sinking type are discussed thoroughly in the
previous chapter.
Wire Connection:
1.) Diffused
2.) Retro-reflective (Reflex)
3.) Opposed Mode (Through Beam)
In diffused mode sensing, the sensor uses the target to reflect light bac
to it, eliminating the need for a secondary device such as a reflector. In
applications, targets can vary greatly in color, which will directly affect th
range of the sensor. This varying sensing distance is known as black-whit
differential. The black-white differential is simply the difference in distanc
between where a diffused sensor detects a 90% reflective white card vs. a 6%
reflective black test card under the same conditions. Sensor manufacturer
normally provide black-white differential data in the form of a graph so tha
customers have a guideline when applying them to the application.
Background suppression sensors are specifically designed to
ignore the background behind an object regardless if the background is lighter,
darker or the same color of the object. In addition, these sensors can also
detect targets regardless of color, texture, surface, or finish. Background
suppression sensors can often solve applications that cause standard diffuse
sensors to false trip or not trip at all.
These types of sensors are applicable on the following applications:
Conveyors, Material Planning, Error proofing, and Packaging Assembly
Lamps
have a thin wire filament which becomes very hot and glows brightl
when a current passes through it. Today, they a using semiconductor LED’s t
lamps and lights for lower power consumptions.
Buzzer
is an electronic signalling device commonly used to produce soun
which works from oscillator, the electromagnetic coil and magnet.
Motors
are machine that produces mechanical movement (rotation) when
supplied by electricity. Controlling the motor by PLC, we should connect it t
magnetic contactor and relay.
Relay
Solenoid valve
is electromechanical valve that controls the flow of liquid or gas b
running or stopping an electric current through a solenoid, which is a coil o
wire, thus changing the state of the valve.
JIC and IEC standard symbols
SELF CHECK 1.1.4
Multiple Choice:
Choose the best answer. Write the letter of your choice on your
answer sheet.
1.) An electrical component that can break an electrical circuit
interrupting the current or diverting it from one conductor to another
a.) Switch
b.) Sensor
c.) Buzzer
d.) Push Button
2.) It is also called detector
a.) Lamp
b.) Sensor
c.) Buzzer
d.) Switch
3.) In sensor technology, the standard wire color for supply voltage is?
a.) Blue
b.) Red
c.) Black
d.) Brown
4.) A type of sensor which detects the presence or absence of an objec
without physical contact.
a.) Reflective (Reflex)
b.) Inductive
c.) Proximity
d.) Through Beam
Enumeration:
ANSWER KEY 1.1.4
Multiple Choice:
1.) A
2.) B
3.) D
4.) C
5.) A
Enumeration:
Equipment: Laptop
Input devices( Sensor, Switch, Push Button)
Output devices ( Buzzer, Lamp,
Solenoid Valve)
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Job Sheet 1.1.4
Equipment: Laptop
Input devices( Sensor, Switch, Push Button)
Output devices ( Buzzer, Lamp,
Solenoid Valve)
24VdcPower supply
Banana plugs/Connecting wires
Vernier Caliper
Multester
Steps/ Procedure:
Sensor Materials
Metal Copper Plastic Wood Paper Black White
Inductive
Capacitive
Diffused
Reflex
Opposed
mode
Every PLC maker has their own safety procedures and precautions in
handling the controller. These include wiring and maintenance cautions of
the controller. We will tackle these safety precautions in this section.
Although programmable controllers are tough machines, a little
foresight during their installation will ensure proper system operation.
1.) The enclosure should be located so that the doors can fully open for
easy access when testing or troubleshooting wiring and components.
2.) The enclosure depth should provide adequate clearance between the
closed enclosure door (including any print pockets mounted on the
door) and the enclosed components and related cables.
3.) The enclosure’s back panel should be removable to facilitate
mounting of the components and other assemblies.
4.) The cabinet should contain an emergency disconnect device installed
in an easily accessible location.
5.) The enclosure should include accessories, such as AC power outlets,
interior lighting, and a gasketed, clear acrylic viewing window, for
installation and maintenance convenience.
Environmental cautions
1.) The temperature inside the enclosure must not exceed the maximum
operating temperature of the controller (typically 60°C).
2.) If the environment contains “hot spots,” such as those generated by
power supplies or other electrical equipment, a fan or blower should
be installed to help dissipate the heat.
3.) If condensation is likely, the enclosure should contain a thermostat
controlled heater.
4.) The enclosure should be placed well away from equipment that
generates excessive electromagnetic interference (EMI) or radio
frequency interference (RFI). Examples of such equipment include
welding machines, induction heating equipment, and large motor
starters.
5.) In cases where the PLC enclosure must be mounted on the controlled
equipment, the vibrations caused by that equipment should not exceed
the PLC’s vibration specifications.
Courtesy of http://www.emon.com
Grounding
1.) Ground wires should be separated from the power wiring at the point
of entry to the enclosure. To minimize the ground wire length within
the enclosure, the ground reference point should be located as close
as possible to the point of entry of the plant power supply.
3.) The enclosure should be properly grounded to the ground bus, which
should have a good electrical connection at the point of contact with
the enclosure.
4.) The machine ground should be connected to the enclosure and to the
earth ground
POWER REQUIREMENTS
The source for a PLC power supply is generally single-phase and 120 or
240VAC. If the controller is installed in an enclosure, the two power leads
(L1hot and L2 common) normally enter the enclosure through the top part of
the cabinet to minimize interference with other control lines.
POWER REQUIREMENTS
The system power supply and I/O devices should have a common AC
source. This minimizes line interference and prevents faulty input signals
stemming from a stable AC source to the power supply and CPU, but an
unstable AC source to the I/O devices.
Common AC source
Isolation Transformers
Another good practice is to use an isolation transformer on the AC power
line going to the controller. An isolation transformer is especially desirable
when heavy equipment is likely to introduce noise into the AC line.
Noise usually enters a system through input, output, and power supply
lines. Noise may also be coupled into these lines electrostatically through the
capacitance between them and the noise signal carrier lines. The presence of
high-voltage or long, closely spaced conductors generally produces this
effect.
Excessive Heat.
Situations in which most of I/O’s are ON at the same time and the air
temperature is higher than 40°C are not typical. In these situations, spacing
between components must be larger to provide better convection cooling.
Courtesy of www.dandasystems.com
I/O INSTALLATION, WIRING, AND PRECAUTIONS
Input/output installation is perhaps the biggest and most critical job
when installing a programmable controller system. To minimize errors and
simplify installation, the user should follow predefined guidelines.
All of the people involved in installing the controller should receive these
I/O system installation guidelines, which should have been prepared during the
design phase. A complete set of documents with precise information regarding
I/O placement and connections will ensure that the system is organized
properly. Furthermore, these documents should be constantly updated during
every stage of the installation
WIRING CONSIDERATIONS
Wire Size
Each I/O terminal can accept one or more conductors of a
particular wire size. The user should check that the wire is the correct gauge
and that it is the proper size to handle the maximum possible current.
Courtesy of http://www.erhard-automation.com
Wire and Terminal Labeling
Each field wire and its termination point should be labeled using a
reliable labeling method. Wires should be labelled with shrink-tubing or tape,
while tape or stick-on labels should identify each terminal block. Color coding
of similar signal characteristics (e.g., AC: red,DC: blue, common: white, etc.)
can be used in addition to wire labeling.
Typical labeling nomenclature includes wire numbers, device names or
numbers, and the input or output address assignment. Good wire and terminal
identification simplifies maintenance and troubleshooting.
Wire Bundling
Wire bundling is a technique commonly used to simplify
the connections to each I/O module. In this method, the wires that will be
connected to a single module are bundled, generally using a tie wrap, and then
routed through the duct with other bundles of wire with the same signal
characteristics. Input, power, and output bundles carrying the same type of
signals should be kept in separate ducts, when possible, to avoid interference.
WIRING PROCEDURES
Once the I/O modules are in place and their wires have been bundled, th
wiring to the modules can begin. The following are recommended procedures fo
I/O wiring:
1.) Remove and lock out input power from the controller and I/O before
any installation and wiring begins.
2.) Verify that all modules are in the correct slots. Check module type
and model number by inspection and on the I/O wiring diagram.
3.) Check the slot location according to the I/O address assignment
document.
4.) Loosen all terminal screws on each I/O module.
5.) Locate the wire bundle corresponding to each module and route it
through the duct to the module location. Identify each of the wires in
the bundle and check that they correspond to that particular module.
6.) Starting with the first module, locate the wire in the bundle that
connects to the lowest terminal. At the point where the wire is at a
vertical height equal to the termination point, bend the wire at a right
angle towards the terminal.
7.) Cut the wire to a length that extends 1/4 inch past the edge of the
terminal screw. Strip approximately 3/8 inch of insulation from the
end of the wire. Insert the insulated end of the wire under the
pressure plate of the terminal and tighten the screw.
8.) If two or more modules share the same power source, jumper the
power wiring from one module to the next.
9.) If shielded cable is being used, connect only one end to ground,
preferably at the rack chassis. This connection will avoid possible
ground loops. A ground loop condition exists when two or more
electrical paths are created in a ground line or when one or more paths
are created in a shield). Leave the other end cut back and unconnected,
unless otherwise specified.
10.) Repeat the wiring procedure for each wire in the bundle until the
module wiring is complete.
11.) After all of the wires are terminated, check for good terminations by
gently pulling on each wire.
Courtesy of www.tradekorea.com
SELF CHECK 1.1.5
Enumeration:
1.) Give at least three general recommendations for PLC enclosures
2.) Give at least five wiring recommended procedures
3.) Give the three wiring considerations
ANSWER KEY 1.1.5
Enumeration:
1.) a. The enclosure should be located so that the doors can fully
open for easy access when testing or troubleshooting wiring
and components.
b. The enclosure’s back panel should be removable to facilitate
mounting of the components and other assemblies.
c. The cabinet should contain an emergency disconnect device
installed in an easily accessible location
2.) a. Remove and lock out input power from the controller and I/O
before any installation and wiring begins.
b. Verify that all modules are in the correct slots. Check module
type and model number by inspection and on the I/O wiring
diagram.
c. Check the slot location according to the I/O address assignment
document.
d. Loosen all terminal screws on each I/O module.
e. Locate the wire bundle corresponding to each module and route
it through the duct to the module location.
CONTENTS:
CONDITIONS:
1. EQUIPMENT
a. Set of programmable control with the following hardware
components
b. CPU
c. Power supply
d. Input and output
e. Handheld programmer
2. INSTRUMENT:
Multi-tester
3. TOOLS/ACCESSORIES
Input devices such as; pushbutton, selector and limit
switches; photoelectric sensors and proximity sensor
METHODOLOGIES:
1. Lecture/discussion
2. Demonstration
3. Self-paced Instructions
4. Multimedia
ASSESSMENT METHODS:
1. Written test
2. Practical test
3. Direct observation
4. Interview (oral)
Learning Experiences
Learning Outcome 2
INTERNATIONAL STANDARDS
Courtesy of http://www.bildesproje.com
Courtesy of http://delphi.com
Objectives
The standard aims to:
1. release the potential of E/E/PE technology to improve
both safety and economic performance;
2. enable technological developments to take place within an
overall safety framework;
3. provide a technically sound, system-based approach, with
sufficient flexibility for the future;
4. provide a risk-based process for determining the required performanc
of safety-related systems;
Courtesy of http://www.magnumengineering.com
by industry but can also help with developing sector standards
(e.g. machinery, process chemical plants, medical or rail) or produc
standards (e.g. power drive systems); provide a means for users and
regulators to gain confidence when using computer-based technology;
6. provide requirements based on common underlying principles
to facilitate:
improved efficiencies in the supply chain for suppliers of
subsystems and components to various sectors,
improvements in communication and requirements (i.e.
to increase clarity of what needs to be specified),
the development of techniques and measures that could
be used across all sectors, increasing available resources,
the development of conformity assessment services if
required.
We will further elaborate each part but you can go to IEC websit
www.iec.ch for additional information.
IEC 61508 is the basis for a published nuclear sector standard. It is als
currently being used as a basis for developing other sector standards (e.g
machinery, process) and product standards (e.g. power drive systems). It i
therefore influencing the development of E/E/PE safety-related systems an
products across all sectors.
Many requirements of IEC 61508, particularly in parts 2 and 3, are no
repeated in the application sector or product standards but are referenced
instead. The result is that most users will need IEC 61508 also.
The market for any product, component or subsystem that complies with
IEC 61508 is potentially very large since in principle they are capable o
meeting the requirements of any sector standard based on IEC 61508.
IEC 61131
is an IEC standard for programmable controllers. It was known as IEC
1131 before the change in numbering system by IEC.
Industrial automation systems have been based for many years on the IEC
61131 standard, which was first published in 1992. The standard, which i
considered as one of the most important ones in industrial automation, defines
model and a set of programming languages (part 3) for the development o
industrial automation software.
Courtesy of http://www.automation.siemens.com
SIEMENS TIA Portal
IEC 61131-3
IEC 61131-3 is the third part (of 8) of the open international standard IEC
61131 for programmable logic controllers, and was first published in
December 1993 by the IEC. The current (third) edition was published in
February 2013. It is the only standard valid worldwide for the programmin
languages of programmable logic controllers
Part 3 of IEC 61131 deals with programming languages an
defines two graphical and two textual PLC programming language standards:
a. Ladder diagram (LD), graphical
b. Function block diagram (FBD), graphical
c. Structured text (ST), textual
d. Instruction list (IL), textual
e. Sequential function chart (SFC), has elements to organiz
programs for sequential and parallel control processing.
All four languages are interlinked: they provide a common suite, with a lin
to existing experience. In this way they also provide a communication tool
combining people of different backgrounds.
Ladder Diagram has its roots in the USA. It is based on the graphica
presentation of Relay Ladder Logic.
Structured Text is a very powerful language with its roots in Ada, Pasca
and “C”. It is well suited for, and can be used to define the nature of comple
Function Blocks, which can then be used within any of the other languages.
2009
PHILIPPINE
ELECTRICAL
CODE
Historical Background
The 2009 PEC used the 2005 Edition of the National Electrical Cod
as referenced Code
National Fire Protection Association (NFPA) of U.S. has been the develope
and publisher of the NEC since 1911. The NEC sets the standard for saf
electrical installation and inspection to protect people and property from
electrical hazards. It is one of the most widely used codes for the buil
environment in the world.
PURPOSE
The primary objective of the code is to establish basic material
quality and electrical works standards for the safe use of electricity fo
light, heat, power, communications, signalling and for other purposes. It i
also for practical safeguarding of persons and property from hazards arisin
from the use of electricity. Compliance to the PEC will ensure safety an
prevention of electrical fires.
The PEC is a safety standard not a design guide. Electrical design
must comply with the requirements of PEC to ensure safety.
SCOPE
PEC 2009 covers the installation of electrical conductors, equipment
and raceways, monitoring, signalling, and communications conductors
equipment, and raceways; and optical fibers and raceways installed within
or on, to from:
Public and private buildings.
Electric Gen. Plants
Industrial plants
Transformer stations
Permanent & Temporary S/s
Airfields
Railways switchyard
Yards, carnival, parks, parking and other lots
Quarries and mines
Watercraft
Dockyards
Trailers
Mobile Homes and recreational vehicles
Offshore facilities
NOT COVERED
The following are not covered by PEC 2009;
Wiring Install
Design ation
Rules Rules
Manuf
acturi
ng
Wiring Design Rules
It is to determine sizes and rating of circuit conductors and devices.
Example:
1. Branch circuit conductors supplying a single motor shall have an
ampacitynot less than 125% of the full-load current. Section 4.30.2.22.
2. The disconnecting means for motor circuits shall have an amper
rating of at least 115% of the full-load current rating of the motor. Section
4.30.10.10(a)
Installation Rules
It deals with installation rules and safety
Example:
1. Adisconnectingmeansshallbelocatedwithinsightfromthemotorcontrolle
.Section4.30.1022.
2. In class II Division I Locations, motors, generators, and other rotatin
electric machinery shall be dust ignition proof or totally enclosed pipe ventilated
and shall be approved for class II locations.Sections5.02.8
Manufacturing Rules
It deals with different manufacturing rules
Example:
1. A motor shall be marked with the following information:
a. Manufacturer’s Name
b. Rated Volts and Full-load Amperes
c. Rated Frequency and Number of Phases, if an alternating curren
motor, etc.
d. Rated full-load speed
SELF CHECK 1.2.1
Matching type
Direction: Match the descriptor from column I to the terminologies in th
column II. Write the letter of your choice on your answer sheet.
I II
1.) A non-profit, non-governmental A. National
international standards Electrical Code
organization that prepares and
publishes International Standards
for all electrical, electronic and
related technologies – collectively
known as "electrotechnology”
2.) The Functional safety of B. Philippine
electrical/electronic/programmable Electrical Code
electronic safety-related systems
3.) It was known as IEC 1131 before C. IEC 61131
the change in numbering system by
IEC
4.) IEC 61131 standard was D. IEC 61131-3
first published
5.) It is the only standard valid E. Ladder Diagram
worldwide for the programming
languages of programmable logic
controllers
6.) A PLC programming language which F. Instruction List
has its roots in the USA
7.) A PLC programming language which G. 1992
has its roots in the Europe
8.) A very powerful language with its H. 1994
roots in Ada, Pascal and “C”
9.) The code is more of a catalogue of I. Structured Text
rules for an electrical installation in
the Philippines
10.) A Philippine Regulations J. IEC
Commission’s body who render the
final decision in the interpretation
of any portion of the PEC, in case
of controversy.
K. JIC
L. Board of
Electrical Engineering
M. Board of
Electronics Engineerin
N. IEC 61511
ANSWER KEY 1.2.1
1.) J
2.) O
3.) C
4.) G
5.) D
6.) E
7.) F
8.) I
9.) B
10.) L
Task Sheet 1.2.1
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Information Sheet 1.2.2
Techniques and procedures in wiring programmable controls
INTRODUCTION
A very important subject often overlooked in the study of programmable
controllers how to connect the PLC to the system being controlled. This
involves connections of such devices as limit switches, proximity detectors,
photoelectric detectors, external high current contactors and motor starters,
lights and a vast array of other devices which can be utilized with the PLC to
control or monitor systems.
Wiring a device to the PLC involves the provision of proper power to the
devices, sizing of wiring to insure current carrying capacity, routing of wiring
for safety and to minimize interference, insuring that all connections are made
properly and to the correct terminals, and providing adequate fusing
to protect the system.
PLC
INPUTS OUTPUTS
Electrical Circuit Diagram and Ladder diagram
Electrical circuit and ladder diagram are just the same thing. Both
represents the flow of current and use schematic symbols. Electrical circui
diagram is mostly common in showing electrical parts which makes up th
circuit in top to bottom manner or horizontally oriented. Ladder diagram has
same function as the electrical circuit diagram but as the name implies, i
resembles a ladder. And it is vertically oriented, using vertical rails .The “hot
conductor or positive supply is on the left rail while the common/neutral o
negative supply is on the right rail. It is consist commonly of “rails” and
“rungs”.
S1 K1
K1 1Y1
NO contact Solenoid
photoelectric and proximity devices are in the range of milliamps while motor
currents run much higher depending upon the size of the motor – 30 amps or
more.
Power Supply: Connection to single PLC: Supply voltage 24 V DC PLC Digital I/O: Supply
phase AC mains (rated input voltage 20.4 V(DC) - 28.8 V(DC) voltage 24 V DC
120/230 VAC, 50/60 Hz) 2 A min. 8 A max.
The power requirement for the PLC being used will vary depending upon
the model selected. PLC's are available that operate on a wide range of powe
typically 24 VDC, 120 VAC and 240 VAC. Some manufacturers produce unit
that will operate on any voltage from 120 VAC to 240 VAC without an
modifications to the unit
DISCONNECT
120 - 240 VAC POWE
Fuse HOT
Fuse NEUTRAL
GND
R
Typical AC Wiring
This wiring also includes fusing and disconnecting for both powe
conductors. If the (-)power line is grounded at the source, the (-) disconnec
and fuse would not be required. However, as with the AC power wiring, it i
always safer to provide for fusing and disconnection of both power conductors
Care must be taken to insure that the wiring is properly connected to avoi
damage to the equipment and to the personnel coming into contact with it.
DISCONNECT
24 VDC POWER
Fuse +
Fuse _
GND
+ _ GND
24 VDC PLC
Typical DC wiring
To connect power to the PLC, the PLC may be thought of as a light bulb
that needs to be lit; the two power wires are connected to the two wires of th
light bulb and must be insulated from each other. In the case of a PLC
operating on DC power, it may be thought of as an LED. For a light bulb, i
doesn't matter which power wire connects to which light bulb wire; the ligh
will still light up. This is also true for an AC powered PLC. It generally doesn'
matter which power wire is connected to the power terminals as long as both
are connected and insulated from each other.
Courtesy of http://www.switched-on-electrical.com
In the case of the LED, though, the (+) and (-) connections must be mad
to the proper LED wires and insulated from each other if the LED is to light
The same is true for the DC powered PLC. The difference with the PLC is tha
if it is connected wrong, the damage can be very expensive.
Some might have encountered the term NPN and PNP, it just the same, a
NPN is sinking and PNP is sourcing. We will tackle and discuss more about th
two types.
Sourcing
means that the unit or module is a current source or giving current t
the load. In external devices, it is sometimes called PNP type because of th
output of the devices, especially sensors, are switched by a PNP typ
transistor.
Load can be another device or your PLC. This type of output is th
commonly used for sensor applications especially in Europe and North
America.
In sinking, input devices receive or accept current from the load. You can
compare the operation of this type to a normal “heat sink”, where it absorb
heat from a load.
The transistor symbol shown inside the three wire sensor indicates th
switching output of the device using NPN type transistor. So, it is a NPN typ
sensor, the most common type being used in the East Asia like Japan and
Korea. The broken line within the transistor shows that it is connected t
other components inside the sensor like resistor, LED’s etc.
In two wire sensor, the device serves as a current acceptor from the load
same with the three wire sensor and directly connected to the ground o
negative supply.
ANALOGY
PLC input and output module connects the controller to the “real world
by interfacing the external devices to the input and output module. We wi
focus on digital modules in our discussion.
In brick type PLC, input and output port are pack in single containe
together with the CPU. Modular type PLC, use modules and connect them
behind the rack to the CPU and power supply of the controller.
PLC I/O modules especially input modules are also classified to eithe
sourcing (PNP) or sinking (NPN) type. But more manufacturers today, offer
both type in a single module. Meaning the module can be interfaced o
connected to a sourcing and sinking type of input devices
Digital Analog
AC DC
(discrete)
Sourcin
Sourcing Sinking g and
Sinking
PLC Output Module
Digital Analog
Sourcing Sinking
AC INPUT MODULE
AC input modules detect the presence or absence of AC voltage, and
convert that voltage to a low level for input to the CPU. The AC voltag
indicates the field device status. The voltage level is commonly 24, 115 or 220
VAC. Modules are available for up to 1,000 VAC. When the field devic
completes the input circuit, a path for AC exists. An LED on the front of th
module, indicates the input is present.
HOT NEUTRAL
AC INPUT MODULE
1-1IC1
SW1
IN0
PB 1
IN1
IN2
IN3
PROX 1
IN4
IN5
IN6
IN7
COM
24 Vdc
Switch
Sensor 1
Sensor 2
Push Button
COM
Sourcing (PNP) type of PLC input module
Sensor 1 = NPN Inductive Proximity Sensor
Sensor 2 = NPN Capacitive Proximity Sensor
Remember the concept of magnet, same pole repel and opposite pol
attracts. This model or thought goes to PLC input module or port and inpu
devices as well. It simply means that, for a sourcing (PNP) type of sensor t
work, it should be connected to a sinking (NPN) type of PLC input module. And
vice versa, for a sinking (NPN) type of sensor to work, it should be connected
to a sourcing (PNP) type of PLC input module.
That’s why knowing your controller first is still the best policy. Then star
to look for appropriate inputs applicable to your needs and expectations.
Sensor 1
Sensor 2
Push Button
COM
Sinking (NPN) type of PLC input module
Sensor 1 = PNP Inductive Proximity Sensor
Sensor 2 = PNP Capacitive Proximity Sensor
PLC manufacturer produce their own input and output module because o
the same reason of “compatibility” to their CPU. In the photo, we have Siemen
sinking type input module with model specification, Allen Bradley sinking and
sourcing type of input module and, Omron’s sinking and sourcing type o
input module
Allen Bradley and Omron’s input module can accept or operate both
sourcing (PNP) and sinking (NPN) type of input devices. But with Siemens, onl
PNP type device is applicable. In the sample shown above
Other way of knowing the type of module you have, is by distinguishing th
common connection of your PLC module.
OUTPUT MODULE
PLC output module configuration depends on the electrical signal
especially voltage capability of output elements you’re going to control. As
shown in the diagram for type of PLC output module, there are three types of
output module; Triac, transistor and relay type.
Triacs are solid state device good for output devices with AC
signal. Heavy inductive motor load may additional snubber circuits which ar
sold separately.Sample of Triac output is Click’s output module model CO
08TA with AC voltage capacity ranges from 17 to 240 Vac.
NEUTRAL HOT
OUTPUT MODULE
1-1OC1
COIL
OUT0
OUT1
LAMP
OUT2
OUT3
SOLENOID
OUT4
OUT5
OUT6
OUT7
TRIAC Configuration
COM
Transistors are semiconductor device use in switching large DC current with
small input current. This type of module is good for DC signal applications. I
offers higher I/O numbers compared to relay type because of transistor’s size
It also offers faster switching and long life than relay type. Sample o
transistor type is model AY81C by Mitsubishi
Transistor type
Photo courtesy of
www.saleplc.com
Transistor
Sourcing Sinking
This type of output module is voltage dependent means they switch AC
and DC voltages. And they are can be interfaced easily to end user’s system
Using relays, they have a much higher rating compared to transistor. But on
of its disadvantage is it’s lifespan compared to transistor type module.
Also, output is not sensitive to polarity. Usual load voltage is 24 Vdc up t
120 Vdc and 24 Vac up to 250 Vac. Suitable for AC/DC solenoid valves
contactors, motor starters, FHP motors and signal lamps.
Omron
SIEMENS RELAY TYPE Output AB RELAY TYPE Output Digital Output Relay Mo
24 Vdc/ 250 Vac OD211
Courtesy of http://www.aboutplcs.com
Identification
Direction: Identify the correct and appropriate answer on each
number within the group of words below. Then write the correct answe
on your answer sheet
3.) If your input device is NPN type, your input module should
be what.
4.) If your input device is PNP type, your input module should
be what.
5.) Type of PLC output module which is good for output devices
with AC signal.
9.) In sinking type input device sequence, after the load (PLC)
what is the next connection.
1.) Sinking
2.) Digital
3.) PNP
4.) NPN
5.) Triac
6.) Transistor
7.) Relay
8.) 24 VDC
10.) PNP
Task Sheet 1.2.2
Equipment: Laptop
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Job Sheet 1.2.2
Equipment: Laptop
PLC with eight input and output port
24 VDC power supply
Multi-tester
Push button, Limit Switch or Switch
Buzzer, Lamp
Steps/ Procedure:
Bit Positions 7 0 7 0 7 0 7 0
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 173
Output Memory (Q)
Output addresses are accessed in the program via the address area for
outputs, using the identifier letter ‘Q‘.
An output bit is addressed Q byte.bit, a byte is addressed QB n, a word
is addressed QW n, and a double word as QD n (e.g., Q 5.7, QB5, QW 4, or
QD 4).
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Positions
Analog input addresses are prefixed with PIW and analog outputs ore
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 174
prefixed with PQW. In LAD/FBD, the Move operation is used to read and write
analog I/O. In Statement List (STL), the load operation reads on analog input
(e.g., L PIW256) and the transfer operation writes to on analog output (e.g., T
PQW 256).
Accessing peripheral input word – 256. The next analog input channel is PIW 258
Accessing peripheral output word – 256. The next analog output channel is PQW 258.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 175
SUMMARY OF SIEMENS S7 MEMORY ADDRESSING
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 176
ABSOLUTE ADDRESS
In a STEP 7 program you work with addresses such as I/O signals, bit
memory, counters, timers, data blocks, and function blocks. You can access
these addresses in your program absolutely.
SAMPLE
Input= I 0.4
I is specified as Input, 0 the byte address and 4 the bit address. The byte
address and bit address are always separated with a point.
Note: For the bit address here, the 4 stands for the fifth input because the
count begins at 0.
Output = Q 5.7
Q is specified as Output, 5 the byte address and 7 the bit address. The
byte address and bit address are always separated with a point.
Note: For the bit addresses here, the 7 stands for the eighth output, because the
count begins at 0.
Edit I/O addressing
Input and output addressing is one of the things that you should forget.
You Code
canNo.
use theDevelop
default address Control
Mechatronics or youCircuits
can change
Date the addressing,
Developed: Date: the way you
Revised Page #
want it to be.
ELC724310 and Software Programs July 22, 2013 177
Add comments and edit symbols
You can assign symbols and add comments to input/output addresses when
you configure modules. Adding symbols and comments would help the
programmer to identify easily each component representation and equivalent.
3.) In actual program creation, all comments and symbols you made on
symbol table are present in the network flow.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 178
Other way of editing symbols and comments
You can edit the symbol name and comment at your main program block
using the steps and procedures below.
1.) Right on the symbol that you want to edit. Then, Click edit symbols.
2.) Edit the symbol name and comments. The symbols will be updated if you
click the OK or Apply button.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 179
S7 Data Types and Formats
An understanding of the data types and formats used in STEP7 is
essential as you start to organize and define your data. As each variable
required in a code block or data block is declared, you will explicitly define its
data type. A variable's data type stipulate its width in bits (e.g ., l-bit, 8-bits,
16-bits, 32-bits, etc.), and how the binary data is represented and interpreted
by STEP7.
How data is represented and interpreted is referred to as the formal
(e.g., signed integer, or character string). The range of values that a variable
may use is also determined by data type. For example, data type INT, allows a
range of -32768 to + 32767.There are three kinds of data types Elementary,
Complex, and Parameter data types. We will focus our discussion on
Elementary data types.
Elementary Data Types refer to the group of data types that represent
variables that involve single data elements, all of which are 32-bits or less.
Variables of elementary data type may be declared in all blocks, including data
blocks, organization blocks, functions, and function blocks. Elementary data
types include BOOL, BYTE, WORD, DWORD, INT, DINT, REAL, DATE, TIME,
S5TIME,TIME-OF-DAY, and CHAR. Variables of elementary data type, may be
used as direct input or output parameters of LAD both and FBD box
instructions.
BOOL
Data type BOOL reserves a single bit for a variable that can take on the
permissible values at either TRUE or FALSE .
BYTE
A variable of data type BYTE, reserves 8-bits. These bits are not evaluated
individually, but as an 8-bit hex number. Each hex digit is represented in
four-bits, allowing a two-digit Hex value.
8 4 2 1 8 4 2 1 Weight
07 06 05 04 03 02 01 00 Bit No.
1 0 1 0 1 1 1 1
A F B# 16#AF
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 180
WORD
Variables of data type WORD reserve l6-bits. Data type WORD represents
a l6-bit string, where the individual bits are not evaluated as a unit, therefore a
WORD variable supports several bit-oriented uses.
A WORD variable can simply be a 16 bit binary string of 1s and 0s; a 4-
digit Hexadecimal number; a 3-digit count value in BCD; or two unsigned
decimal values, each stored in one byte (e.g., 255, 255).
DWORD
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 181
INT
Variables of data type INT represent signed decimal integers in a 16-bit
word. The permissible range for data type INT variables is -32,768 to +32,767. A
constant of type INT is entered in the declaration area of a code block, data
block, or as an input value to an instruction, simply with the appropriate sign
(e.g., +2575). No identifier is required.
DINT
Variables of data type DINT represent signed decimal integers in an
S7double word (32-bits). The permissible range of DINT variables is -
2,147,483,648 to +2,147,483,647. DINT variables should be used whenever the
intended operations are expected to exceed the range of
data type INT. An initial DINT constant is entered in a code block, data
block, or as an input value to an instruction. using the long integer identifier 'L'
(e.g., L#500000).
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 182
REAL
Variables of data type REAL represent floating-point numbers (e.g.,
25.375). REAL variables are used to work with fractional numbers or to handle
calculations or measured quantities that require floating-point accuracy.
Internally, REAL variables are represented in the IEEE32- bit floating-point
format. In this format, bits 0-22 represent the mantissa, or the significant digits
of the number; and bits 23-30 represent the exponent, a signed power 10. Bit-
31 represents the sign, where 0' indicates a positive value and '1' indicates a
negative value.
DATE
A variable of data type DATE reserves on S7word, to represent a dale
value as an unsigned fixed-point number. Internally the time value is
interpreted as a fixed-point number that represents the total days since
January 01, 1990. This IEC format for specifying a date uses the identifier
'DATE#' or 'D', and the year, month and day separated by hyphens
(e.g.,DATE#2002-08-22). Data type DATE supports dates from January I. 1990
through December 2168. This range of values is expressed DATE#1990-01-01
through DATE#2168-12-31.
TIME
Variables of data type TIME reserve an s7 double word. Constants of data
type TIME are defined in units of days (D), hours (H), minutes (M), seconds
(S),and milliseconds (MS), preceded by the identifier 'TIME' or 'T'. Unit
identifiers may be entered as upper or lowercase, and unneeded units may be
omitted(e.g., TlME#I0H30M). This IEC format for specifying a time value is
intended for specifying a delay (e.g., a 'wait time' in your STL code).
Both positive and negative Time values are supported, with a range of
TIME#24d20h31m23$647ms to TIME#+24D20H31M23S647MS. The internal
representation of the time value is as a signed 32-bit fixed-point number,
interpreted by STEP7 as total milliseconds.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 183
TIME_ OF_DA Y
A variable of data type TIME_OF_DAY reserve an S7double word. A
TIME_OF_DAY constant is specified using the identifier 'TIME_OF_DAY#' or
'TOD#' preceding the hours, minutes, and seconds which are separated by
colons (e.g., TOD#01:15:00).
Milliseconds may be added to the time using a period as the separator, or
omitting it altogether. The internal representation of the TIME_OF_DAY time
value is as a signed 32-blt fixed-point number, interpreted by STEP7 as total
milliseconds.
CHAR
A variable of data type CHAR reserves one byte (8-bits) and represents a
single ASCII character. All printable characters including upper and lower case
alphabets, numbers 0-9, and some special characters are valid.
S5TIME
A variable of data type S5TIME is specified to represent a preset value for
a timer. This16-bit format is the same as what was formerly used to store the
STEP5 timer preset. An initial S5TIME value is entered in units of hours (H),
minutes (M), seconds (5), and milliseconds (MS), preceded by the data type
identifier '55TIME#' or ‘S5T#‘ (e.g.,S5T#2H30M30S).The unit identifiers may be
in upper or lowercase, and un- needed units may be omitted.
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 184
Summary of S7 Elementary Data Types
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 185
SELF CHECK 1.2.3
Multiple Choice:
Choose the best answer. Write the letter of your choice on your
answer sheet.
1.) The input memory address is designated by letter
a.) O
b.) I
c.) Q
d.) M
2.) The output memory address is designated by letter
a.) O
b.) I
c.) Q
d.) M
3.) It is the equivalent of internal storage bits in other PLCs.
a.) Memory
b.) Storage
c.) Timer
d.) Counter
4.) It comprises an address identifier and a memory location
5.) A data type that can take on the permissible values at either TRUE or
FALSE.
a.) BYTE
b.) BIT
c.) BOOL
d.) WORD
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 186
ANSWER KEY 1.2.3
1.) B
2.) C
3.) A
4.) C
5.) C
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 187
Task Sheet 1.2.3
Equipment: Laptop
PLC software
Mouse
Steps/ Procedure:
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 188
Performance Criteria Checklist 1.2.3
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Code No. Develop Mechatronics Control Circuits Date Developed: Date: Revised Page #
ELC724310 and Software Programs July 22, 2013 189
Information Sheet 1.2.4
Shop and system layout
Courtesy of Electroblog.issm.it
PLCs are designed to work on a factory floor; thus, they can withstand
harsh environments. Nevertheless, careful installation planning can increase
system productivity and decrease maintenance problems.
The best location for a programmable controller is near the machine or
process that it will control, as long as temperature, humidity, and electrical
noise are not problems. Placing the controller near the equipment and using
remote I/O where possible will minimize wire runs and simplify start-up and
maintenance.
Courtesy of http://kr.caeonline.com
NEMA 12 Panel
NEMA Panel Enclosures
Type 3
For outdoor use to protect against windblown dust, rain, sleet, and external ice
formation
Type 3R
For outdoor use to protect against falling rain, sleet, and external ice
formation
Type 4
For indoor or outdoor use to protect against windblown dust and rain,
splashing water, and hose-directed water
Type 6P
For indoor and outdoor use to protect against the entry of water during
prolonged submersion at a limited depth
Type 12
For indoor use to protect against dust, falling dirt, and dripping noncorrosive
liquids
Type 13
For indoor use to protect against dust, spraying of water, oil, and
noncorrosive coolants
2.) The power supply (main or auxiliary) has a higher heat dissipation
than any other system component; therefore, it should not be mounted
directly underneath any other equipment
.
Courtesy of http://www.kasaanlagen.com
4.) Local I/O racks (in the same panel enclosure as the CPU) can be
arranged as desired within the distance allowed by the I/O rack
interconnection cable.
5.) Remote I/O racks and their auxiliary power supplies are generally
placed inside an enclosure at the remote location, following the same
placement practices as described for local racks.
Courtesy of http://processtechautomation.com
2.) If possible, a separate I/O rack should be reserved for common input
or output modules. If this is not possible, then the modules should be
separated as much as possible within the rack.
The duct and wiring layout defines the physical location of wire ways and
the routing of field I/O signals, power, and controller interconnections within
the enclosure. The enclosure’s duct and wiring layout depends on the
placement of I/O modules within each I/O rack.
The placement of these modules occurs during the design stage, when the
I/O assignment takes place.
1.) All incoming AC power lines should be kept separate from low-level
DC lines, I/O power supply cables, and I/O rack interconnection
cables.
2.) Low-level DC I/O lines, such as TTL and analog, should not be
routed in parallel with AC I/O lines in the same duct. Whenever
possible, keep AC signals separate from DC signals.
3.) I/O rack interconnection cables and I/O power cables can be
Sometimes, this arrangement is impractical or these cables
cannot be separated from all other wiring.
Enumeration:
1.) Give at least seven types of NEMA Panel enclosures
2.) Give at least three considerations when placing any PLC an
components inside an enclosure
3.) Give at least three guidelines to minimize electrical noise caused b
crosstalk between I/O lines on a duct and wiring layout.
ANSWER KEY 1.2.4
3.) A. All incoming AC power lines should be kept separate from low -
level DC lines, I/O power supply cables, and I/O rack
interconnection cables.
B. Low-level DC I/O lines, such as TTL and analog, should not be
routed in parallel with AC I/O lines in the same duct.
C. I/O rack interconnection cables and I/O power cables can be
routed together in a common duct not shared by other wiring
Task Sheets 1.2.4
Title: PLC System Layout
Performance Objectives: Given the lessons about system layout,
recommendations and safety precautions, you
can create your own PLC system layout.
Equipment: Laptop
Siemens PLC
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
PROGRAMMING LANGUAGES
In Ladder Diagram writing the program for your control problem is like
drawing in contactor circuits. The logical connections between the binary
signals are represented by serial parallel arrangement of contacts. Each run
in the ladder ends in a coil. Complex functions are represented by boxes.
Structured Text
is one of the five languages supported by the IEC 61131-3 standard,
designed for programmable logic controllers (PLCs). It is a high level
language that is block structured and syntactically resembles Pascal, on
which it is based.
is a graphical programming
language used for programmable logic
controllers (PLCs). It is one of the five
languages defined by IEC 61131-3
standard.
The SFC standard is defined in IEC
60848, Preparation of function charts for
control systems, and was based on
GRAFCET (itself based on binary petri
nets)
Program Scan
When a PLC executes a program, it must know—in real time—when external
devices controlling a process are changing. During each operating cycle, the
processor reads all the inputs, takes these values, and energizes or de-energizes
the outputs according to the user program. This process is known as a program
scan cycle. Figure below illustrates a single PLC operating cycle consisting of the
input scan, program scan, output scan, and housekeeping duties. Because the
inputs can change at any time, it constantly repeats this cycle as long as the PLC
is in the RUN mode.
The time it takes to complete a scan cycle is called the scan cycle time and
indicates how fast the controller can react to changes in inputs. The time required
to make a single scan can vary from about 1 millisecond to 20 milliseconds. If a
controller has to react to an input signal that changes states twice during the
scan time, it is possible that the PLC will never be able to detect this change.
The CPU will detect a change if it occurs during the update of the input
image table fi le, but the CPU will not respond to every change. The scan time is a
function of the following:
The actual scan time is calculated and stored in the PLC’s memory. The PLC
computes the scan time each time the END instruction is executed. Scan time
data can be monitored via the PLC programming. Typical scan time data include
the maximum scan time and the last scan time.
The scan is normally a continuous and sequential process of reading the
status of inputs, evaluating the control logic, and updating the outputs.
Step 1 Update the input image table by sensing the voltage of the input
terminals. Based on the absence or presence of a voltage, a 0 or a 1
is stored into the memory bit location designated for a particular
input terminal.
Step 2 Solve the ladder logic in order to determine logical continuity. The
processor scans the ladder program and evaluates the logical
continuity of each rung by referring to the input image table to see
if the input conditions are met. If the conditions controlling an
output are met, the processor immediately writes a 1 in its memory
location, indicating that the output will be turned ON; conversely, i
the conditions are not met a 0 indicating that the device will be
turned OFF is written into its memory location.
Step 3 The final step of the scan process is to update the actual states of
the output devices by transferring the output table results to the
output module, thereby switching the connected output devices
ON (1) or OFF (0). If the status of any input devices changes when
the processor is in step 2 or 3, the output condition will not react to
them until the next processor scan.
There are two basic scan patterns that different PLC manufacturers use to
accomplish the scan function. SIEMENS and Allen Bradley PLCs use the horizontal
scan by rung method. In this system, the processor examines input and output
instructions from the first command, top left in the program, horizontally, rung by
rung.
Modicon PLCs use the vertical scan by column method. In this system, the
processor examines input and output instructions from the top left command entered
in the ladder diagram, vertically, column by column and page by page. Pages are
executed in sequence. Both methods are appropriate; however, misunderstanding the
way the PLC scans a program can cause programming bugs.
NUMBER SYSTEMS
The Basic Number System that a machine can understand is the Binary
Number System. Binary System is represented by ON and OFF or “0 and 1”.
But for the convenience of the machine users Octal and Hex Systems are
utilized.
Binary: 2 Codes; 0 and 1
Octal: 8 Codes; 0 - 7
Hex: 16 Codes; 0 - 15
PROCESS CONTROL
Sequential problems have long been solved using conventional logic gate
as building blocks, but using certain techniques to express and identify th
sequence logic equations that control the system outputs. Advanced PLC
instructions such as shift registers, sequencers, master control relays, drum
timers etc., are provided to simplify the design and implementation o
sequence systems.
To operate valve Y1 limit switches A and B and valve X are activated and
both switch C and valve Z are not activated. Valve Y1 will also operate
switch D and valve X are activated and both level switch C and valve Z are no
activated
Logic Concept
The PLC, like all digital equipment, operates on the binary
principle. The term binary principle refers to the idea that many things
can be thought of as existing in only one of two states. These states
are 1 and 0. The 1 and 0 can represent ON or OFF, open or closed,
true or false, high or low, or any other two conditions. The key to the
speed and accuracy with which binary information can be processed is
that there are only two states, each of which is distinctly different. There
is no in-between state so when information is processed the outcome is
either yes or no.
Different law of logic operation
LADDER LANGUAGE
Switch 1 Switch 2
Electrical Ladder
1) Power rail
2) Rung
3) Branch
4) Contact
5) Coil
6) Box
Power rail
Each LAD network consists of a power rail that contains at least on
rung. A network can be extended by adding additional rungs. You can us
branches to program parallel connections in the specific rungs.
Contacts
You can use contacts to create or interrupt a current-carrying connectio
between two elements. The current is relayed from left to right. You can us
contacts to query the signal state or the value of an operand and control i
depending on the result of the current flow.
The following types of contact are available to you in a LAD program:
Normally-open-contact:
Normally open contacts forward the current if the signal state of
specified binary operand is "1".
Normally-closed-contacts:
Normally open contacts forward the current if the signal state of
specified binary operand is "0".
Contact-with-additional-function:
Contacts with additional function forward the current if a specifi
condition is met. With these contacts you can also execute an additiona
function, such as an RLO edge detection and a comparison.
Coils
You can use coils to control binary operands. Coils can set or reset
binary operand depending on the signal state of the result of logic operation.
The following types of coils are available to you in a LAD program:
Standard-coils:
Standard coils set a binary operand if current flows in the coil. Th
"Assignment" instruction is an example of a standard coil.
Coils-with-additional-function:
These coils have additional functions besides the evaluation of the resul
of logic operation. Coils for RLO edge detection and program control ar
examples of coils with additional function.
Boxes
Boxes are LAD elements with complex functions. The empty box is an
exception. You can use the empty box as a placeholder in which you can selec
the required instruction.
The following types of boxes are available to you in a LAD program:
Boxes-without-EN/ENO-mechanism:
A box is executed depending on the signal state at the box inputs. Th
error status of the processing cannot be queried.
Boxes-with-EN/ENO-mechanism:
A box is only executed if the enabling input "EN" carries the signal stat
"1". If the box is processed correctly, the "ENO" enable output has signa
state "1". If an error occurs during the processing, the "ENO" output i
reset. Calls of code block are also shown in the network as boxes with
EN/ENO mechanism.
LADDER PROGRAMMING Instructions
The following discussion will introduce each of the PLC programmin
instruction categories for LAD (Ladder). The purpose of each instruction
category is briefly described, and then followed by a table that lists th
operations it includes. The operation of each instruction is explained in th
table.
The counter instructions include the Up counter, the Down counter, and
the Up/Down counter, which counts both up and down. The UP and Down
counters are implemented both as box functions and as output instructions
Box counter functions support the full functionality of the counter in a singl
instruction, allowing the counter to be triggered, a preset value loaded
monitored. and reset.
Each counter you specify, numbered C0, C1, C2, and so on, wi
reference a single word in the counter memory area. The exact number o
counters available is CPU-dependent.
CONVERSION Instructions
INTEGER and REAL ARITHMETHIC Instructions
COMPARE Instructions
PROGRAM FLOW CONTROL Instructions
Program flow control instructions, provide one of the ways in which you
can control how your program is processed. In short, you will be able to alte
the way in which the CPU processes your program so that processing needs ar
serviced on an as-needed basis.
Shift and rotate operations move the bit data of a specified word or doubl
word location to the left or right. These instructions are often used in material
conveying applications where information on discrete ports must be tracke d fo
some distance, while the product is in motion, and usually prior to performin
a secondary operation.
The move operation copies data from one memory location to another
leaving the source unchanged. Often, data is moved to a new location eithe
prior to performing on operation or just after on operation has been performed
in order to preserve the data. Changing a timer preset, a process set point. o
saving and stacking data for transfer to another device,all are cases where mov
operations might be used.
SHIFT Instructions
ROTATE and MOVE Instructions
Physical Components vs. Program Components
1-1IC1 1-1OC1
Push Button IN0 OUT0
IN1 OUT1
IN2 OUT2 LAMP
IN3 OUT3
IN4 OUT4
IN5 OUT5
IN6 OUT6
IN7 OUT7
COM COM
Once we know how the external components are wired to the PLC, we can
then write our program. In this case we need to connect the two switches in
series. However, once the signals are inside the PLC, they are assigned new
reference designators which are determined by the respective terminal on th
PLC. Since Push Button 1 is connected to IN0, it will be called I0.0 “Push
Button 1” in our program. Likewise, Push Button 2 will become I0.1 “Pus
Button 2” in our program. Also, since LAMP is connected to OUT0 on the PLC
it will be called relay Q0.0 “LAMP” in our program. Our ladder program t
control LAMP is shown below
OR LADDER
The circuit for an OR ladder is shown below. Compare the difference
between the AND ladder circuit.
OR Ladder diagram
PLC Input Card PLC Output Card
As you observed, the PLC wiring diagram for AND and OR ladder circuit is
the same. In PLC wiring, it doesn’t look to the position or location of certain
device, it’s the PLC program who executes the different devices to a desired
output.
Now that we have the inputs and outputs connected, we can write th
program. We do this by simply adding to the program the additional rung tha
we need to perform the OR operation. This is shown above. Keep in mind tha
other than the additional lamp and the time it takes to add the additiona
program, this additional OR feature costs nothing.
Holding (also called Sealed, or Latched) Contacts
There are instances when a coil must remain energized after contact logi
has been found to be true even if on successive scans the logic solution
becomes false. A typical application of this would be an ON/OFF control usin
two separate switches, one to turn the equipment on and one to turn th
equipment off.
In this case, the coil being controlled by the switches must energize when
the ON switch is pressed and remain energized until the OFF switch is pressed
This function is accomplished by developing a rung which contains a holdin
contact or sealing contact that will maintain the coil in the energized state unt
released. Such a configuration is shown below.
Latched Contact
Above figure shows that output Q0.0 (LAMP) will never energized because of th
contradicting input of I0.0 (Push Button 1). Placing this rung at the top of th
program will allow the programmer to use a normally closed contact throughout th
ladder anytime a contact is required that is always on.
Figure below illustrates a rung which creates a LAMP coil (Q0.0) that is alway
energized. Notice that the logic solution for this rung is always true since eithe
normally closed Push Button 1 (I0.0) contact OR normally open Push Button 1 (I0.0
contact will always be true. This will cause coil LAMP coil to energize at th
conclusion of the solution of this rung.
This rung must be placed at the very beginning of the ladder to provide for an
energized coil on the first scan. Anytime a contact is required that is always closed,
normally open contact may be used since coil will always be energized.
Matching type
Direction: Match the descriptor from column I to the terminologies in th
column II. Write the letter of your choice on your answer sheet.
I II
1.) A standard that was established to A. TIMER
standardize the multiple languages associated
with PLC programming
2.) In this PLC programming language, writing B. COUNTER
the program for your control problem is like
drawing in contactor circuits
3.) A textual representation of the PLC C. LADDER
programming language, similar to machine
code
4.) It is a high level language that is block D. IEC 61131
structured and syntactically resembles
Pascal, on which it is based.
5.) During each operating cycle, the processor E. IEC 60858
reads all the inputs, takes these values,
and energizes or de-energizes the outputs
according to the user program
6.) It is required for processes that demand F. Structured text
that certain operations be performed in a
specific order
7.) It requires that certain operations be G. Statement/ o
performed without regard to the order in Instructions List
which they are performed
8.) An instructions that changes the format or H. Sequencial Control
data type of a variable to a new formal or
data type - generally before the data is
further used
9.) It activate or deactivate a device after a I. Combination
time interval has expired . Control
10.) It activate or deactivate a device after a J. Program scan
count has reached a preset value
K. Input scan
L. Conversion
M. Compare
N. IEC 61511
O. SFC
ANSWER KEY 1.2.5
1.) D
2.) C
3.) G
4.) F
5.) J
6.) H
7.) I
8.) L
9.) A
10.) B
Task Sheet 1.2.5
Equipment: N/A
Steps/ Procedure:
Equipment: Laptop
PLC Software
Input Devices; switch and push button
Output Devices; lamp and buzzer
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
LEARNING OUTCOME # 3: TEST AND DEBUG
DEVELOPED SOFTWARE
PROGRAM
CONTENTS:
ASSESSMENT CRITERIA:
CONDITIONS:
1. EQUIPMENT
a. Set of programmable control with the following hardware
components
b. CPU
c. Power supply
d. Input and output
e. Handheld programmer
2. INSTRUMENT:
Multi-tester
3. TOOLS/ACCESSORIES
Input devices such as; pushbutton, selector and limit
switches; photoelectric sensors and proximity sensor
METHODOLOGIES:
1. Lecture/discussion
2. Demonstration
3. Self-paced Instructions
4. Multimedia
ASSESSMENT METHODS:
1. Written test
2. Practical test
3. Direct observation
4. Interview (oral)
Learning Experiences
Learning Outcome 3
PLC SIMULATION
Likewise the students of collegiate programs will also be well able to use
the software in studies and for assistance in bug checking or bug tracking.
Many different kinds of businesses depend upon the Programmable logic
controller. Just a few examples of these will be theme parks and various kinds
of machine shops, including some plastic and rubber extrusion companies. In
order to know the foibles of a given software or hardware, it's imperative to
study those.
Those Programmable logic controller developers who write ladder
diagrams for PLC projects should also use a simulator and will find that it
helps them a great deal in bug tracking as well as in the entire process. Each
type of Programmable logic controller simulator software will permit you to
run those programs without having attached hardware to the PLC software.
Many PLCs are fitted with a simulation unit that reads and writes
information directly into the input/output memory and so simulates the
actions of the inputs and outputs. The installed program can thus be run and
inputs and outputs simulated so that they, and all preset values, can be
checked. To carry out this type of operation, the terminal has to be placed in
the correct mode
DEBUGGING
Courtesy of http://www.unitytelecom.com
For PLCs this is not acceptable! If you are running the program and it is
operating irrationally it will often damage hardware. Also, if the error is not
obvious, you should go back and re-examine the program design. When a
program is debugged by trial and error, there are probably errors remaining in
the logic, and the program is very hard to trust. Remember, a bug in a PLC
program might kill somebody
WATCH TABLE
FORCE TABLE
EDITING and MODIFYING
When you program a PLC, several instruction entry modes are available,
depending on the manufacturer and the model of the unit. A personal
computer, with appropriate software, is generally used to program and
monitor the program in the PLC. Additionally, it makes possible offline
programming, which involves writing and storing the program in the personal
computer without its being connected to the PLC and later downloading it to
the PLC.
ourtesy of http://www.thelearningpit.com
Program
Single Scan Continuous Scan/ Test
Multiple Choice:
Choose the best answer. Write the letter of your choice on your
answer sheet.
1.) It is the imitation of the operation of a real-world process or system ove
time.
A. Debugging
B. Emulation
C. Simulation
D. Testing
2.) A software from SIEMENS that used to imitate the actual function o
it’s controller
A. SIM PLC
B. PLC SIM
C. Simulator PLC
D. SIEMENS Simulator
3.) A software from Allen Bradley that used to imitate the actual
function of it’s controller
A. RS Logix Simulate 5000
B. RS Logix Emulate 5000
C. RS Logix Imitate 5000
D. None of the above
4.) A software from OMRON that used to imitate the actual function of
it’s controller especially NJ series and integrated to its software
A. OMRON SYSWAY
B. SYSWAY Studio
C. SYSMAC Studio
D. OMRON SYSMAC
5.) In this mode, the program can be modified, the modifications can b
tested, and finally they can be accepted or rejected while the PLC i
running
A. ONLINE Programming
B. OFFLINE Programming
C. STRAIGHT Programming
D. All of the above
ANSWER KEY 1.3.1
1.) C
2.) B
3.) B
4.) C
5.) A
Job Sheet 1.3.1
Equipment: Laptop
PLC Software
Input Devices; push button and two sensors
Output Devices; two solenoid valve and
double acting cylinder
Steps/ Procedure:
Legends:
Proximity
Sensors
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Information Sheet 1.3.2
Safety precautions in programming and debugging the
programmable control
SAFE PROGRAM
A careful, structured approach to designing software will cut the total
development time, and result in a more reliable system.
The fundamental rule for defining the program strategy is think first,
program later. Consider alternative approaches to solving the problem and
allow time to polish the solution algorithm before trying to program the
control function. Adopting this philosophy will shorten programming time,
reduce debugging time, accelerate start-up, and focus attention where it is
needed—on design when designing and on programming when programming.
Forcing an Input ON
Forcing inputs manipulates the input image table file bits and thus
affects all areas of the program that use those bits. The forcing of inputs is
done just after the input scan. When we force an input address, we are forcing
the status bit of the instruction at the I/O address to an ON or OFF state.
Figure above illustrates how an input is forced ON.
Forcing outputs affects only the addressed output terminal. Therefore,
since the output image table file bits are unaffected, your program will be
unaffected. The forcing of outputs is done just before the output image table
file is updated. When we force an output address, we are forcing only the
output terminal to an on or off state. The status bit of the output instruction at
the address is usually not affected. Figure below illustrates how an output is
forced ON.
Forcing an Output ON
FORCING SAFETY MEASURES
• Before you start the "Force" function, you should ensure that no
one else is currently executing this function on the same CPU.
• If a CPU does not support the "Force" function, the relevant icons
cannot be selected.
FORCING SAFETY
ERGONOMICS HAZARDS
Ergonomics is the science of fitting the job to the worker. When there is a
mismatch between the physical requirements of the job and the physical
capacity of the worker, work-related musculoskeletal disorders (MSDs) can
result. Ergonomics encompasses the practice of designing equipment and work
tasks to conform to the capability of the worker. It provides a means for
adjusting the work environment and work practices to prevent injuries before
they occur.
Courtesy of http://www.experientia.com
HAND INJURY
CHAIR RELATED
KEYBOARD AND MOUSE OR OTHER INPUT DEVICE RELATED
MONITOR AND WORKSTATION RELATED
ENVIRONMENT RELATED
SELF CHECK 1.3.2
Multiple Choice:
Choose the best answer. Write the letter of your choice on your
answer sheet.
1.) A science of fitting the job to the worker.
A. Economics
B. Ergonomics
C. Engineering
D. Physics
2.) It only affects the addressed output terminal
A. Forcing outputs
B. Forcing inputs
C. Forcing I/O
D. Forcing device
3.) MSD means
A. Musculoskeletal dysfunction
B. Musculoskeletal disorders
C. Musculoskeletal disturbance
D. None of the above
4.) Feet cannot rest on the floor; this type of ergonomics hazards is
related to what?
A. Keyboard and mouse
B. Monitor
C. Environment
D. Chair
5.) Too mouch/ too little light; this type of ergonomics hazards is
related to what?
A. Chair
B. Keyboard and Mouse
C. Environment
D. Monitor and workstation
ANSWER KEY 1.3.2
1.) B
2.) A
3.) B
4.) D
5.) C
LEARNING OUTCOME # 4: MAINTAIN AND DOCUMENT
DEVELOPED SOFTWARE
PROGRAM
CONTENTS:
ASSESSMENT CRITERIA:
CONDITIONS:
1. EQUIPMENT
a. Set of programmable control with the following hardware
components
b. CPU
c. Power supply
d. Input and output
e. Handheld programmer
2. INSTRUMENT:
Multi-tester
3. TOOLS/ACCESSORIES
Input devices such as; pushbutton, selector and limit
switches; photoelectric sensors and proximity sensor
METHODOLOGIES:
1. Lecture/discussion
2. Demonstration
3. Self-paced Instructions
4. Multimedia
ASSESSMENT METHODS:
1. Written test
2. Practical test
3. Direct observation
4. Interview (oral)
Learning Experiences
Learning Outcome 4
PREVENTIVE MAINTENANCE
Courtesy of http://www.wolfautomation.com
Do not allow dirt and dust to accumulate on the PLC’s components;
the central processing unit and I/O system are not designed to be
dust proof. If dust builds up on heat sinks and electronic circuitry, it
can obstruct heat dissipation, causing circuit malfunction.
Furthermore, if conductive dust reaches the electronic boards, it can
cause a short circuit, resulting in possible permanent damage to the
circuit board.
Courtesy of http://cdn1.mos.techradar.futurecdn.net
Courtesy of mmu.ic.polyu.edu.hk
I/O checking
Ensure that heavy, noise-generating equipment is not located too
close to the PLC.
Courtesy of http://www.scantime.co.uk
Make sure that unnecessary items are kept away from the equipment
inside the enclosure. Leaving items, such as drawings, installation
manuals, or other materials, on top of the CPU rack or other rack
enclosures can obstruct the airflow and create hot spots, which can
cause system malfunction.
Courtesy of http://wolocklott.com
Courtesy of http://www.ingenierosdelcobre.cl
Vibration Detector
STORAGE MEDIA
SPARE PARTS
Courtesy of http://pwp.etb.net.co
SPARE PARTS
In the event of a PLC fault, you should employ a careful and systematic
approach to troubleshoot the system to resolve the problem. PLCs are relatively
easy to troubleshoot because the control program can be displayed on a
monitor and watched in real time as it executes. If a control system has been
operating, you can be fairly confident of the accuracy of the program logic. For
a system that has never worked or is just being commissioned, programming
errors should be considered.
When a problem occurs, the first step in the troubleshooting procedure is
to identify the problem and its source. The source of a problem can generally be
narrowed down to the processor module, I/O hardware, wiring, machine inputs
or outputs, or ladder logic program. Once a problem is recognized, it is usually
quite simple to deal with. The following sections will deal with troubleshooting
these potential problem areas.
PROCESSOR Module
The processor is responsible for the self-detection of potential problems. I
performs error checks during its operation and sends status information to
indicators that are normally located on the front of the processor module. You
can diagnose processor faults or obtain more detailed information about the
processor by accessing the processor status through programming software.
Figure below shows sample diagnostics LEDs found on a processor module.
We have three modes of operation for S7-300 CPU; these are RUN, STO
and Memory Reset. Further explanations on each modes are given below.
GROUND LOOP
A ground loop condition occurs when two or more electrical paths exist in
a ground line. For example, in the figure below, the transducers and
transmitter are connected to ground at the chassis (or device enclosure) and
connected to an analog input card through a shielded cable. The shield
connects to both chassis grounds, thereby creating a path for current to flow
from one ground to another since both grounds have different potentials.
The current flowing through the shield could be as high as several
amperes, which would induce significant magnetic fields in the signal
transmission. This could create interference that would result in a possible
misreading of the analog signal. To avoid this problem, the shield should be
connected to ground on only one side of the chassis, preferably the PLC side.
In the example, the shield should only be connected to ground at the
analog input interface.
To check for a ground loop, disconnect the ground wire at the groun
termination and measure the resistance from the wire to the termination poin
where it is connected. The meter should read a large ohm value. If a low ohm
value occurs across this gap, circuit continuity exists, meaning that the system
has at least one ground loop.
Procedure for identifying ground loops
PLC INPUTS
If the programming device monitor does not show the correct statu
indication for a condition instruction, the input module may not be convertin
the input signal properly to the logic level voltage required by the processo
module. In this case, the input module should be replaced. If a replacemen
module does not eliminate the problem and wiring is assumed to be correct
then the I/O rack, communication cable, or processor should be suspected.
A proper voltage level at the output terminal while the output device is OFF als
indicates an error in the field wiring. If an output rung is activated but the LED
indicator is OFF, then the module is faulty. If a malfunction cannot be traced to th
I/O module, then the module connectors should be inspected for poor contact o
misalignment. Finally, check for broken wires under connector terminals and cold
solder joints on module terminals.
SELF CHECK 1.4.1
TRUE or FALSE
Direction: In the problem stated below, read carefully and if the statement is
correct write TRUE as your answer otherwise FALSE.
1. FALSE
2. FALSE
3. FALSE
4. FALSE
5. TRUE
6. FALSE
7. TRUE
8. FALSE
9. FALSE
10. TRUE
Job Sheet 1.4.1
Equipment: Laptop
PLC Trainer
Multi-Tester
Selector switch
Steps/ Procedure:
Trainees Name:__________________________________Date:_________________
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________
Information Sheet 1.4.2
Safety precautions in performing maintenance of
programmable controls
SAFE SYSTEMS
Modern safety legislation charges employers with duties that include
making the workplace safe and free of risks to health, ensuring that plant and
machinery are safe and that safe systems of work are established and followed.
There is thus a need to assess the risks in the workplace.
Courtesy of http://machinedesign.com
EMERGENCY STOPS
The system should have emergency stop circuits for every machine
directly controlled by the PLC. To provide maximum safety, these circuits
should not be wired to the controller, but instead should be left hardwired.
Master or Safety Control Relays
Master control relay (MCR) and safety control relay (SCR) circuits provide
an easy way to remove power from the I/O system during an emergency
situation. These control relay circuits can be de-energized by pushing any
emergency stop switch connected to the circuit.
Master start control for a PLC with MCRs enabling input and output power
Emergency Power Disconnect
The power circuit feeding the power supply should use a properly rated
emergency power disconnect, thus provides a way to remove power from the
entire programmable controller system. Sometimes, a capacitor (0.47 µF for 120
VAC,0.22 µF for 220 VAC) is placed across the disconnect to protect against an
outrush condition.
Devices
• Use properly rated isolation transformers and power supplies for contro
systems. Beware autotransformers.
• Use Positive or Force-Guided Relays and contacts can fail safely and
prevent operation in the event of a failure.
• Some ’relay replacement’ devices do not adequately isolate the inputs
and output and should not be used in safety critical applications.
Starts
• Use NO buttons and wiring for inputs that start processes.
• Select palm-buttons, and other startup hardware carefully to ensure
That they are safety rated and will ensure that an operator is clear of
the machine.
• When two-hand start buttons are used, use both the NO and NC
outputs for each button. The ladder logic can then watch both for a
completed actuation.
Stops
• E-stop buttons should completely halt all parts of a machine that are
not needed for safety.
• E-stops should be hard-wired to kill power to electrically actuated sys-
tems.
• Use many red mushroom head E-stop buttons that are easy to reach.
• Use red non-mushroom head buttons for regular stops.
• A restart sequence should be required after a stop button is released.
• E-stop buttons should release pressure in machines to allow easy
’escape’.
• An ’extraction procedure’ should be developed so that trapped workers
can be freed.
• If there are any power storage devices (such as a capacitor bank) make
sure they are disabled by the E-stops.
• Use NC buttons and wiring for inputs that stop processes.
• Use guards that prevent operation when unsafe, such as door open
detection.
• If the failure of a stop input could cause a catastrophic failure, add a
backup.
Construction
• Wire so that the power enters at the top of a device.
• Take special care to review regulations when working with machines
that are like presses or brakes.
• Check breaker ratings for overload cases and supplemental protection.
• A power disconnect should be located on or in a control cabinet.
conduits or raceways for different voltages.
• Wire insulation should be rated for the highest voltage in the cabinet.
• Use colored lights to indicate operational states. Green indicates in
operation safely, red indicates problems.
• Construct cabinets to avoid contamination from materials such as oils.
• Conduits should be sealed with removable compounds if they lead to
spaces at different temperatures and humidity levels.
• Position terminal strips and other components above 18" for ergonomic
reasons.
• Cabinets should be protected with suitably rated fuses.
• Finger sized objects should not be able to reach any live voltages in a
finished cabinet, however DMM probes should be able to measure
voltages.
Courtesy of http://www.healthandsafetyontario.ca
Sequence of Lockout or Tag-out System Procedures
Courtesy of https://www.acklandsgrainger.com
Courtesy of http://www.labelzone.co.uk
Courtesy of http://www.geneseo.edu
Tryout: verify zero energy status
- Act of testing the energy state and administrative controls to ensure
zero energy state.
Courtesy of http://roymayall.files.wordpress.com
TRUE or FALSE
Direction: In the problem stated below, read carefully and if the statement is
correct write TRUE as your answer otherwise FALSE.
2. Master control relay (MCR) and safety control relay (SCR) circuits provide
an easy way to remove power from the I/O system during an emergency
situation
5. When wiring switches or sensors that start actions, use normally open
switches so that if there is a problem the process will not start.
6. When wiring switches that stop processes use normally closed so that if
they fail the process will stop.
8. The authorized employee shall know the type and magnitude of energy that
the machine or equipment uses and shall understand its hazards
9. Shutdown buttons must be easily accessible from all points around the
machine.
10. Some ’relay replacement’ devices do not adequately isolate the inputs
and output and should not be used in safety critical applications
ANSWER KEY 1.4.2
1. FALSE
2. TRUE
3. FALSE
4. FALSE
5. TRUE
6. TRUE
7. TRUE
8. TRUE
9. TRUE
10. TRUE
Information Sheet 1.4.3
Documentation of system and developed
software program
DOCUMENTATION
Documentation is an orderly collection of recorded information about
both the operation of a machine or process and the hardware and software
components of its control system. These records are a valuable reference
during system design, installation, start-up, debugging, and maintenance.
DOCUMENTATION COMPONENTS
System Abstract
System Configuration
Variable Declaration
Courtesy of http://infosys.beckhoff.com
STEPS FOR DOCUMENTATION
SYSTEM ABSTRACT
A good system design starts with a thorough understanding of the
problem and a good description of the process to be controlled. This
assessment is followed by a systematic approach that will lead to the
implementation of the control system. Once the system is finished, the
personnel involved in the design should provide a global description, or
abstract, of the scheme and procedure used to control the process.
Variable Declaration
CONTROL PROGRAM PRINTOUT
For the most part, PLC programming occurs at a location other than
where the controller will finally be installed. For this reason, the user
should save the control program on a storage medium, such as a cassette
tape, a floppy disk, or an electronic memory module. This practice allows
the user to send or carry the stored program to the installation site and
reload it into the controller’s memory quickly. This approach is usually
employed when the system uses a volatile-type memory, but it is also used
with non-volatile memory for backup purposes.
The reproducible, stored control program, like any other form of
documentation, should be kept accurate and current. A good practice is to
always have two copies, in case one is damaged or misplaced. Also, make
sure that the stored program agrees with the latest hard copy of the control
logic.
Storage Device
TRUE or FALSE
Direction: In the problem stated below, read carefully and if the statement is
correct write TRUE as your answer otherwise FALSE.
6. If the field devices are not wired directly to the I/O module, then the
diagram should show terminal block numbers.
10. The control program printout is a hard copy of the control logic
program stored in the controller’s memory and may not be a replica of
the controller’s memory.
ANSWER KEY 1.4.3
1. TRUE
2. FALSE
3. TRUE
4. FALSE
5. TRUE
6. TRUE
7. TRUE
8. TRUE
9. FALSE
10. FALSE
Job Sheet 1.4.3
Equipment: Laptop
PLC Trainer
PLC Software
Steps/ Procedure:
CRITERIA Yes No
Comments/Suggestions:
Trainer:__________________________________________Date:______________