Page 1 of 94
Page 1 of 94
Page 1 of 94
CONTENTS
1. PLC GENERAL 3
6. MODICON PLC 65
7. AC DRIVES 77
https://automationforum.co/ Page 1 of 94
PLC GENERAL
https://automationforum.co/ Page 2 of 94
Automation
Industrial automation is the use of control systems such as computers to
control industrial machinery and processes, replacing human operators. In the scope
of industrialization, it is a step beyond mechanization. Automation greatly reduces the
need for human sensory and mental requirements.
A PLC is a device that was invented to replace the necessary sequential relay
circuits for machine control. The PLC works by looking at its input and depending
upon their state, turning ON / OFF its inputs. The user enters a program, usually
through software, that gives the desired result. A PLC can be defined as a solid state
device. It is capable of storing instructions to implement control functions such as
sequencing, timing, counting, arithmetic, data manipulation and communication to
control industrial machines and processes.
https://automationforum.co/ Page 3 of 94
Architecture of PLC
Memory
Processor
Power supply
CPU
https://automationforum.co/ Page 4 of 94
The I/O system forms the interface by which field devices are connected to the
controller. The main purpose of interface is to condition the various signals received
from or sent to external field devices. Incoming signals from sensors such as push
buttons, limit switches analog sensors etc are wired to the terminals on the input
interfaces. Devices that will be controlled like motors, starters, solenoid valves etc are
connected to the terminals on the output devices. The system power supply provides
all necessary voltages required for the proper operation of the various CPU sections.
Advantages of PLC
1. Reduced Space
PLC’s are fully solid state devices and hence extremely compact compared to
hard-wired controller which uses electromechanical devices.
2. Energy Saving
The power consumption is very less compared to other controllers. The
average power consumption is just 1/10th of power consumed by an equivalent Relay
Logic Control.
3. Ease of Maintenance
We can easily replace the different modules of PLC’s. Trouble
shooting and error diagnostics with programmer are also very easy in PLC’s.
https://automationforum.co/ Page 5 of 94
4. Economical
Considering one time investment PLC is most economical system.
Cost of PLC’s recovers with in a short period.
6. Tremendous Flexibility
To implement changes in control logic no wiring is required so
considerable time is saved.
https://automationforum.co/ Page 6 of 94
The hard-wired control system can be constructed only after the task is
fully defined. In the PLC, however, the construction of controller and wiring are
independent of control program definition. This means that the total hardwire is
standard and desired control is achieved through program.
Basic
Electrical
Symbols Normally open Normally Closed Output
(NO) (NC)
https://automationforum.co/ Page 7 of 94
PLC Normally open Normally Closed Output
Symbols (NO) (NC)
Rung 0
S1 O1
Positive Negative
Rail S2 O2 Rail
Rung 1
Scan Time
A PLC works by continually scanning a program. The scan cycle
consists of three important steps.
https://automationforum.co/ Page 9 of 94
1. Sourcing Type
2. Sinking Type
To PLC Input
Sensor
Output
Circuit
Ground (0 V)
On the NPN sensor we connect one output to the PLC’s input and the other
output to the power supply ground.
To Positive (V+)
Sensor
Output
Circuit
To PLC Input
On the PNP sensor we connect one output to the Positive voltage and the other
output to the PLC’s input.
Basic Gates
https://automationforum.co/ Page 10 of 94
1. AND Gate
Symbol Truth Table
Input Input Output
A B Y
A 0 0 0
Y 0 1 0
B 1 0 0
1 1 1
Ladder Diagram
A B Y
2. OR Gate
Symbol Truth Table
Input Input Output
A B Y
A 0 0 0
Y 0 1 1
B 1 0 1
1 1 1
https://automationforum.co/ Page 11 of 94
Ladder Diagram
A Y
3. NAND Gate
Ladder Diagram
A Y
https://automationforum.co/ Page 12 of 94
4. NOR Gate
Ladder Diagram
A B Y
5. NOT Gate
https://automationforum.co/ Page 13 of 94
Input Output
A Y
A Y
0 1
1 0
Ladder Diagram
A Y
5. Ex-OR Gate
Ladder Diagram
https://automationforum.co/ Page 14 of 94
A B Y
A B
Example
Draw a PLC program to latch an output when START switch is pressed. The output
should remain in latch condition until STOP switch is being pressed?
Ladder Diagram
OUTPUT
https://automationforum.co/ Page 15 of 94
1. Modular Type PLC
0 1 2 3 4
Power Digital Digital Analog Analog
Supply CPU Input Output Input Output
In modular type PLC each modules means Digital Input module, Digital
Output module, Analog Input Module and Analog Output Module are placed in each
separate racks or modules. The addressing of these PLC’s comes with the slot
number. We can place the different modules according to our needs. We can also
increase the number of inputs according to our needs in these types of PLC’s. So it is
called as Modular Type PLC.
Field Inputs
PLC
Field Outputs
https://automationforum.co/ Page 16 of 94
In Integrated Type PLC the inputs and outputs are fixed. All the inputs are
comes in single module. We cannot increase the number of inputs and outputs in these
types of PLC’s.
https://automationforum.co/ Page 17 of 94
https://automationforum.co/ Page 18 of 94
ALLEN BRADLEY
PLC
https://automationforum.co/ Page 19 of 94
ALLEN BRADLEY PLC
https://automationforum.co/ Page 20 of 94
Allen-Bradley is the brand-name of a line of Factory Automation
Equipment manufactured by Rockwell Automation. The company manufactures
programmable logic controllers (PLC), human-machine interfaces, sensors, safety
components and systems, software, drives and drive systems, contactors, motor
control centers, and systems made of these and similar products. Rockwell
Automation also provides asset management services including repair and consulting.
Allen Bradley PLC’s are mainly classified into three types according to
the number of inputs and outputs. They are
PLC 10000 16 16 K
https://automationforum.co/ Page 21 of 94
Micrologix PLC
SLC-500 PLC
5/01
5/02
5/04
5/05
https://automationforum.co/ Page 22 of 94
Memory
SYS-1 1 Input I
LAD-3 3 Binary B
4 Timer T
1. Program Files
2. Data Files
https://automationforum.co/ Page 23 of 94
Data Files consists of inputs, outputs, status, timer, counter etc. Inputs and
outputs are used for input and output addressing. Status register is used for monitor
any error status, also setting of real time clock etc. Timers are used for setting time
delay functions. Counters are used for counting number of pulses given to it. Control
register is used for controlling and taking some outputs which are used in some
instructions. Integer register is used for storing integer values used in arithmetic or
logical operations. Floating register is used for storing floating point values.
Addressing syntax
0 1 2 3
Power Digital Digital Analog
Supply CPU Input Output Input &
Output
I:1.0/0 O:2.0/0
I:1.0/1 O:2.0/1
I:1.0/2 O:2.0/2
https://automationforum.co/ Page 24 of 94
I:1.0/15 O:2.0/15
I:1.1/0 O:2.1/0
I:1.1/1 O:2.1/1
I:0.0/0 O:0.0/0
I:0.0/1 O:0.0/1
I:0.0/2 O:0.0/2
I:0.0/15 O:0.0/15
I:0.1/0 O:0.1/0
I:0.1/1 O:0.1/1
Analog Addressing
If we are using digital signal we can store it in a single bit. But if we are using
analog signals we cannot store the values in a bit so it should be stored in a word. The
analog signals used in industries are normally 0-10 V and 4-20 mA.
https://automationforum.co/ Page 25 of 94
0 4 0000 0000 0000 0000 0
Parity bit can be zero or one. Parity bit becomes zero when the analog value is
positive and it becomes one when the analog value is negative. If we give one analog
signal the PLC converts it into 0 to 32767 combinations. We get the corresponding
digital signal and it should be stored in memory locations. We can use this value for
controlling analog signals.
I:3.0 O:3.0
I:3.1 O:3.1
I:3.2 O:3.2
https://automationforum.co/ Page 26 of 94
Addressing Syntax For Others Except Binary
B3:0/0
B3:0/1
B3:0/2
B3:0/15
B3:1/0
B3:1/1
https://automationforum.co/ Page 27 of 94
Binary bits are used in programs for certain applications. In some programs
we have to take some intermediate outputs which are not used as field outputs. In such
outputs if we use normal output address then these outputs are wasted. So in those
cases we use Binary outputs and thus we can save the outputs.
Driver Software
Driver Software is used for interfacing personal computer with PLC. The
driver software used for Allen Bradley PLC is RS Linx.
Personal computer supports only RS-232 Protocol. Allen Bradley PLC also
supports RS-232 Protocol. So we can directly connect Allen Bradley PLC to personal
computer. If the PLC didn’t support RS-232 protocol then a converter is also used.
The Baud rate for Allen Bradley PLC is 19200 Bits/second.
Programming Software
https://automationforum.co/ Page 28 of 94
https://automationforum.co/ Page 29 of 94
WONDERWARE
INTOUCH
SCADA
https://automationforum.co/ Page 30 of 94
WONDERWARE
Wonderware has been an industrial software leader since 1987, when the
company introduced InTouch® software, the first human-machine interface (HMI)
based on the Microsoft Windows® operating system.
SCADA
SCADA Software
https://automationforum.co/ Page 32 of 94
I/P O/P I/P O/P I/P O/P
The above figure shows the block diagram of SCADA. In industries normally
number of PLC’s are there for controlling various plants. Each plant is controlled by
one or more than one PLC’s. The input and outputs of each PLC’s are connected to
SCADA through RTU’s. RTU means Remote Terminal Unit. The RTU act as an
interlink between PLC’s and SCADA. The RTU’s can be a Junction Box or a Master
PLC for controlling auxiliary PLC’s. SCADA software is being used in the control
room. Through SCADA software we can control the entire plants.
Types Of Communications
The different types of communications are
1. Landline Communication
2. Optical Communication
3. Satellite Communication
https://automationforum.co/ Page 33 of 94
Landline Communication
In landline communication the communication is achieved through
normal wires or cables. Different protocols are used in these types of
communication. The different communication protocols are RS-232, RS-485,
DH-485, DH+.
RS-232
Maximum communication length = 15 Meters
Baud rate = 19200 bits/second
Maximum number of nodes supported = 1
RS-485
Maximum communication length = 1.3 KMs
Baud rate = 9600 – 18700 bits/second
Maximum number of nodes supported = 32
DH-485
Maximum communication length = 1.2 KMs
Baud rate = 9600, 19200 bits/second
Maximum number of nodes supported = 31
DH+
Maximum communication length = 18 - 25 KMs
Baud rate = 19200 bits/second
Maximum number of nodes supported = 255
Optical Communication
In optical communication optical fibers are used. In optical
communication we can communicate to a longer distance than normal cables. The
main advantages are low noise, greater life, high data transfer speed, etc.
Satellite Communication
https://automationforum.co/ Page 34 of 94
Normally satellite communication is used in remote places. In satellite
communication transmitter, receiver, encoders, decoders etc are used.
1. Wonderware Intouch
3. Siemens Win CC
4. Intellution iFix
5. GE Fanuc Cimplicity
6. Merz Aspic
7. Kpit Astra
With DRN package you can develop as well as run the application but in case
of RN you cannot develop or modify the application. The application can be
developed by using DRN package and can be installed on RN package.
Features of SCADA
2. Historical Trend
By using historical trend we can store the previous values. By giving correct
date, time etc we can easily get the parameter variations at that time. They plot the
changes of up to eight local Tag Names or expressions.
https://automationforum.co/ Page 36 of 94
3. Alarms
Any hazardous conditions are monitored in industries by using these alarms.
Human safety is the most important factor in all industries. Usually the alarms give
the variations in any parameters as sound information or any light indication. The
alarms becomes off when the change in variation goes into normal conditions. In
SCADA, 1-999 alarms are there and they are mainly classified into four groups. They
are
4. Security
Security on an application is an optional feature. If implemented, it provides
the ability to control specific operators to perform specific functions or changing
specific parameters. Normally passwords are used for locking SCADA. By giving
passwords only the user can enter into the SCADA programs. 1 – 9999 access levels
are there in SCADA. One access level is given to each person. The access level of
administrator is always greater than 9000. The person who has access level greater
than 9000 can change any thing in SCADA. The administrators also have their own
user name and password. He can also enter into the programs by giving their user
name and passwords.
5. Report Generation
By using Report generation we can generate the parameter variations
as report in excel sheet automatically. We can create the parameter variations for each
scan cycle.
https://automationforum.co/ Page 37 of 94
6. Recipe Management
Recipe management is an important feature in SCADA. By using
recipe management we can set the values for different ingredients. For example in
medicine manufacturing industries the ingredients are same for different medicines
but their ratio will vary. So in those cases we can set the ratio of different ingredients
by using SCADA. When we select the medicine the values are automatically loaded
and we get the correct medicine. The recipe functions are done by using Recipe
Manager in SCADA.
7. Scripts for Program Development
Normally the Programs are called as scripts.
Tag Name
Tag name is the user defined address for a particular variable. For
example if we are using some objects in SCADA we have to give some names for
indicating that objects and also for using it in programs. These names are known as
Tag Names. Tag Names are mainly classified into four types. They are
1. Discrete
2. Integer
3. Real
4. Message
https://automationforum.co/ Page 38 of 94
Each Tag Name is again classified into two types. They are
1. Memory
2. I/O
If we are using only SCADA programming then the Tag Names are
saved in Memory. If PLC to SCADA or PLC to excel communication is there, then
the Tag Names are saved in I/O.
Script
Types of Scripts
Scripts are mainly classified into six. They are
1. Application scripts
2. Window scripts
3. Key scripts
4. Conditional scripts
5. Data change scripts
6. Quick function scripts
1. Application scripts
The script which is applicable for the entire project is known as
Application scripts. We can use application scripts to start other applications, create
process simulations, calculate variables etc. Three options are there in Application
Scripts.
https://automationforum.co/ Page 39 of 94
On Startup Executes one time when the application is initially started up
While running Executes continuously at the specified frequency while the
application is running.
On shutdown Executes one time when the application is exited
2. Window scripts
The script which is applicable for a particular project is known as
Window scripts. Three options are there in Window Scripts.
The initial conditions of Tag names are given in On Show. The On show
conditions are applicable during starting of run time. For example if we want one
switch becomes OFF during starting run time then we have to give it as zero in On
Show. The main program is known as While show. On hide means the conditions of
objects that we have to give when return back from run time. Normally in SCADA we
avoid On Hide because we don’t need the conditions during return back from run
time.
3. Key scripts
The programs which are assigned to a particular key is known as Key
Script. They are executed when the operator presses the correct key. Three options are
there in Key Scripts.
On Key Down Executes one time when the key is initially pushed
https://automationforum.co/ Page 40 of 94
While Down Executes continuously at the specified frequency while the key
is held down
On Key Up Executes one time when the key is released.
4. Conditional scripts
The program which is executed when satisfying a particular condition
given to it is called as Conditional scripts. Four options are there in Conditional
Scripts.
Window Properties
Replace
Automatically closes any window(s) it intersects when it appears on the screen
including popup other replace type windows. You can change a window's type
whenever it is open in Window Maker by using the Window Properties command.
Overlay
https://automationforum.co/ Page 41 of 94
Appears on top of currently displayed window(s) and can be larger than the
window(s) it is overlaying. When an overlay window is closed, any window(s) that
were hidden behind it will reappear. Clicking on any visible portion of a window
behind an overlay window will bring that window to the foreground as the active
window.
Popup
Similar to an overlay window except, it always stays on top of all other open
windows (even if another window is clicked). Popup windows usually require a
response from the user in order to be removed.
Programming Syntax
Sample program
https://automationforum.co/ Page 42 of 94
For doing the program first select one switch and lamp from SCADA. After
selecting the objects first give the tag names for each object. After that the tag names
must be defined according to their properties.
Window Scripts
On Show
S1=0; L1=0;
While Show
https://automationforum.co/ Page 43 of 94
https://automationforum.co/ Page 44 of 94
SIEMENS S7 200
PLC
https://automationforum.co/ Page 45 of 94
https://automationforum.co/ Page 46 of 94
SIEMENS PLC
Siemens PLC
S5 Series S7 Series
https://automationforum.co/ Page 47 of 94
S5 series is DOS based version and S7 series is windows based
version. The different S5 series versions PLC’s are 100u, 110u, 115u etc. S5 series is
the old version PLC. Almost all of the S5 series PLC’s are replaced in all industries.
Handheld programming can also do in this type of PLC’s. S7 Series PLC’s are again
classified into three types according to the number of inputs and outputs.
High End C7
> 20000 256
M7
Here we use S7 200 low end PLC. The different CPU versions of S7
200 PLC’s are
S7 200 Plc
21 X Series 22 X Series
https://automationforum.co/ Page 48 of 94
210 221
211 222
212 223
213 224
214 225
215 226
216
Here we use S7 200 PLC with CPU version 216. It has 24 digital inputs and
16 digital outputs.
Programming Software
Addressing syntax
Siemens PLC addressing is basically Byte oriented. One byte means
eight bits.
I0.7 Q0.7
I1.0 Q1.0
I1.1 Q1.1
I2.7 Q1.7
AIW0 AQW0
AIW2 AQW2
AIW4 AQW4
Memory
https://automationforum.co/ Page 50 of 94
1. Special Memory (SM)
2. Memory (M)
3. Variable Memory (V)
4. Local Memory (L)
SM0.0- Always ON
SM0.1- ON for the first scan cycle only.
SM0.2- ON for one scan cycle if retentive data is lost.
SM0.3- ON for 1 scan cycle when RUN mode is entered from a power-up condition.
SM0.4- Clock pulse that is ON for 30 s, OFF for 30 s, for a duty cycle time of 1 min.
SM0.5- Clock pulse that is ON for 0.5 s, OFF for 0.5 s, for a duty cycle time of 1 s.
Pot0 Value SMB28- This byte stores the value entered with analog adjustment 0.
Pot1 Value SMB29- This byte stores the value entered with analog adjustment 1.
2. Memory (M)
https://automationforum.co/ Page 51 of 94
Local Memory is used as addressing memory.
Memory Addressing
2. Memory Addressing
https://automationforum.co/ Page 52 of 94
3. Variable Memory Addressing
https://automationforum.co/ Page 53 of 94
L0.2 LB2 LW4 LD8
L0.3 LB3 LW6 LD12
Timers
Timer Type Resolution Maximum Value Timer Number
TONR 1 ms 32.767 s T0, T64
10 ms 327.67 s T1-T4, T65-T68
https://automationforum.co/ Page 54 of 94
100 ms 3276.7 s T5-T31, T69-T95
TON, TOF 1 ms 32.767 s T32, T96
10 ms 327.67 s T33-T36, T97-T100
100 ms 3276.7 s T37-T63, T101-T255
In Siemens PLC normally 255 numbers of timers are there. The types
of timers are TON, TOF and TONR. In siemens PLC we cannot use any timer number
for different types of timers. The timer number is predefined. We have to give the
correct timer number for different types that means TON, TOF and TONR. Also in
Siemens PLC the highest time base is 100ms. So we have to calculate correct preset
value for giving a time. For calculating time delay one formula is there.
Time delay = Preset value * Time Base
For example if we are using T37 timer and we need 10s time delay. So
T37 is a 100ms timer. Formula is
So for giving 10s time delay by using T37 timer we have to give preset
value as 100. Like that we can calculate the time delay according to our need.
The On-Delay Timer (TON) instruction counts time when the enabling
input is ON. When the current value (Txxx) is greater than or equal to the preset time
(PT), the timer bit is ON. The On-Delay timer current value is cleared when the
enabling input is OFF. This timer continues counting after the Preset is reached, and it
stops counting at the maximum value of 32767.
https://automationforum.co/ Page 55 of 94
SIEMENS S7 300
PLC
https://automationforum.co/ Page 56 of 94
https://automationforum.co/ Page 57 of 94
SIEMENS PLC
Siemens PLC
S5 Series S7 Series
https://automationforum.co/ Page 58 of 94
S5 series is DOS based version and S7 series is Windows based
version. The different S5 series versions PLC’s are 100u, 110u, 115u etc. S5 series is
the old version PLC. Almost all of the S5 series PLC’s are replaced in all industries.
Handheld programming can also do in this type of PLC’s. S7 Series PLC’s are again
classified into three types according to the number of inputs and outputs.
High End C7
> 20000 256
M7
https://automationforum.co/ Page 59 of 94
Architecture of S7 300 PLC
Rails/ Slots
Rack 0
1 2 3 4 11
Power CPU IM DI /
Supply DO
Rack 1
1 2 3 4 11
IM
https://automationforum.co/ Page 60 of 94
Rack 2
1 2 3 4 11
IM
The above figure shows the architecture of Siemens S7 300 PLC. Siemens S 7
300 PLC is Modular type PLC. The architecture is based on Rack and Rail
configuration. The above figure each full block is known as Rack. Eleven slotted
Rails are there in each Rack. In Rack 0 the first Rail (Rail 1) is allotted for Power
Supply, Rail 2 is allotted for CPU, Rail 3 for Interfacing Module (IM) and in other
Rails we can add Digital Input Module, Digital Output Module, Analog Input
Module, Analog Output Module etc according to our needs.
In Siemens S7 300 PLC one CPU can supports four Racks. So for
communicating with other Racks, each Rack contains one Interfacing Module (IM).
So in Rack 1, Rack 2 and Rack 3 the first Rail is allotted for Interfacing Module (IM).
The connection from CPU of Rack 0 is given to the Interfacing Modules of others.
The CPU and Power Supply are common for all four Racks.
Here we use S7 300 Medium end PLC. The different CPU versions of S7 300
PLC’s are CPU 312 ---------318. Here we use S7 300 CPU 312 C. In CPU 312 C, ‘C’
indicates Compact. SIMATIC S7-300 is optimized for high performance machines
and factory automation. The SIMATIC S7-300 saves space, and it is compact and
modular.
https://automationforum.co/ Page 61 of 94
Features of S7 300
Built-in functions (eg: high-speed counting, closed-loop control, motion
control, etc.).
Extensive selection of CPUs and modules for almost every application.
Compact design reduces control cabinet size.
Integrated system diagnostics assure high degrees of controller availability.
Innovative Micro Memory Card provides maintenance- free (no battery
required) program backup plus the ability to store production and project
information.
Fail-safe version provides machine safety and standard automation in a single
controller.
Programming Software
https://automationforum.co/ Page 62 of 94
CPU Memory Concept
CPU Memory
1. Load Memory
The Load memory is located on the SIMATIC Micro Memory Card (MMC).
The size of the load memory corresponds exactly to the size of the SIMATIC Micro
Memory Card. It is used to store code blocks, data blocks and system data
(configuration, connections, module parameters, etc). Blocks that are identified as non
runtime related are stored exclusively in load memory. You can also store all the
configuration data for your project on the SIMATIC Micro Memory Card.
2. System memory
The System memory is integrated in the CPU and cannot be expanded. It
contains the address areas for address area memory bits, timers and counters, the
process image of the I/Os, local data.
3. Work Memory
The Work Memory is integrated in the CPU and cannot be extended. It is used
to run the code and process user program data. Programs only run in RAM and system
memory.
https://automationforum.co/ Page 64 of 94
Figure: Compact PLC S7-300 (CPU xxx C)
https://automationforum.co/ Page 65 of 94
Status and Error Indicators: CPU 31xC
Work Memory: 32 Kb
Number of timers/counters: 128/128
Digital Channels: 256
Analog Channels: 64
Networking: MPI (Multi Point Interface)
https://automationforum.co/ Page 66 of 94
Addressing syntax
Siemens PLC addressing is basically Byte oriented. One byte means
eight bits. In Siemens PLC for Digital I/O they allocate 4 Bytes for each slot and for
Analog they allocate 16 Bytes for each slot.
I0.7 Q0.7
I1.0 Q1.0
I1.1 Q1.1
I3.7 Q3.7
https://automationforum.co/ Page 67 of 94
AIW2 or PIW2 AQW2 or PQW2
AIW4 or PIW4 AQW4 or PQW4
Memory Addressing
https://automationforum.co/ Page 68 of 94
So in MW0 and MW1, the MB1 location is common. So if we use
MW0 and MW1 then memory clash will occurs. So to avoid this MW2 is used after
MW0. Like that in Double word also next three locations are not used.
MODICON PLC
https://automationforum.co/ Page 69 of 94
https://automationforum.co/ Page 70 of 94
MODICON PLC
Modicon PLC’s are mainly classified into three types they are
https://automationforum.co/ Page 71 of 94
Plc Types No: of No: of Analog Software
Digital I/O I/O
Zelio 24 0 Zelio Soft
Low End
Nano 48 2 PL7 Junior
Twido 144 2 Twido Soft
Medium End
Micro 248 8 PL7 Pro ver:3.1-3.4
Premium 5000 16 PL7 Pro ver:4.1-4.4
High End
Quantum 20000 256 Modsoft
Analog 1 3 5
Display
Port
16 4
CPU TER Digital Analog
UP Input Input
+Ve AUX 2 4 6
H P
-Ve C
S
Down M 12 2
C 230 C Digital Analog
V I Output Output
A
https://automationforum.co/ Page 72 of 94
HSC – High speed counter. It is used for counting high speed pulses from
Tachometers.
PCMCIA – Personal Computer Memory Card International Association. It is used as
extra memory cards for Modicon PLC’s.
Driver Software
Programming Software
Processor Types
For Micro PLC’s TSX 3722 V 3.3 and TSX 3721 V1.0
For Premium PLC’s TSX 57203 V 5.1
Addressing syntax
Addressing syntax for Digital Signals
https://automationforum.co/ Page 73 of 94
Digital Input Digital Output
%I1.0 %Q2.0
%I1.1 %Q2.1
%I1.2 %Q2.2
%I1.15 %Q2.11
Memory
Memory is used for storing integer and floating point values. It is also
used in arithmetic and logical operations.
Memory Addressing
In word wise classification the values are stored in two bytes. But the
memory locations are different. So in Modicon PLC we can take all the Word
Memory locations. That means we can take %MW0, %MW1, %MW2 etc. The
storing byte location can be calculated using the formula
For example if we want to calculate the storing locations for the word
%MW10. Then first calculate the value of j.
ie j = 2i
j = 2 * 10
j = 20
Then %MWi = %MBj + %MB(j+1)
%MW10 = %MB(20) + %MB(20 + 1)
%MW10 = %MB20 + %MB21
https://automationforum.co/ Page 75 of 94
Thus we can calculate the memory locations in word wise
classification. But in double word wise classification the values are stored in two
Words. So if we use one double word location then the next location is not used. In
%MD0 and %MD1, the %MW1 location is common. So if we use %MD0 and %MD1
then memory clash will occurs. So to avoid this %MD2 is used after %MD0.
%MD0 = %MW0 + %MW1
%MD1 = %MW1 + %MW2
%MD2 = %MW2 + %MW3
Timers
Timers are mainly classified into three categories. They are
Input
Output
5 Sec 5 Sec
2. Series 7 Timer
https://automationforum.co/ Page 76 of 94
Series 7 Timers are Retentive timer’s, means the accumulator values
are retained in these timers even if the input is OFF. In Modicon PLC’s initially the
number of timers is zero. So if we want Series 7 Timer we have to decrease the
number of normal timers and increase the Series 7 Timer as required numbers. After
that we have to save it and thus we can use Series 7 Timer. Addressing of Series 7
Timer is
%T0, %T1 ……….
3. Monostable Timer
Input
2 Sec
Output
https://automationforum.co/ Page 77 of 94
4. Counters
In Modicon PLC Up and Down Counter block is used. The addressing
of Counters is
%C0, %C1, %C2 ----------- %C31
5. Registers
Registers are used in FIFO and LIFO operations. The addressing of
Registers is
%R0 ----------- %R3
6. Drums
Drums are used as sequencer output function. Addressing is
%DR0, %DR1 ----------- %DR7
Operator Block
Operator Block is used for performing Move, Shift and Mathematical
operations.
Move Function
Example:
%MW0 := 100
%MW0 := %MW1
In first example the value 100 is moved to the location %MW0. The
destination is %MW0. In second example the value stored in memory location
%MW1 is moved to %MW0.
Math function
Example:
%MW0 := %MW1 + %MW2
%MW0 := %MW1 - %MW2
%MW0 := %MW1 * %MW2
%MW0 := %MW1 / %MW2
https://automationforum.co/ Page 78 of 94
%MW0 := SQRT(%MW1)
Shift function
%MW0 := SHL(%MW1,4)
%MW0 := SHR(%MW1,4)
%MW0 := ROL(%MW1,4)
%MW0 := ROR(%MW1,4)
Comparison Block
Two types of comparison blocks are there in Modicon PLC. They are
%TM0.V > 10
Compare
EN C
%TM0.V
https://automationforum.co/ Page 80 of 94
https://automationforum.co/ Page 81 of 94
AC DRIVES
https://automationforum.co/ Page 82 of 94
https://automationforum.co/ Page 83 of 94
AC Drives
AC motor
STATOR
AC 1Ø SHAFT
https://automationforum.co/ Page 84 of 94
ROTOR
There are two types of AC motors, depending on the type of rotor used. The
first is the synchronous motor, which rotates exactly at the supply frequency or a
submultiple of the supply frequency. The magnetic field on the rotor is either
generated by current delivered through slip rings or by a permanent magnet.
The second type is the induction motor, which turns slightly slower than the
supply frequency. The magnetic field on the rotor of this motor is created by an
induced current.
Specifications of Motor
Pulse
Generator PWM
https://automationforum.co/ Page 86 of 94
In industries the main power supply is given through MCB (Miniature Circuit
Breaker). Then one Choke coil is used to avoid voltage fluctuations. Then AC Drives
is connected and last section is the Load or Motor.
Classification of Drives
Drives
AC Drives DC Drives
VVD VFD
Drives are mainly classified into two types, AC Drives and DC Drives. AC
Drives are again classified into two types VVD and VFD. VFD’s are commonly used
in industries because we can easily change the frequency. But in VVD some voltage
drop occurs and we don’t get the desired output.
https://automationforum.co/ Page 87 of 94
both. One Analog output is also there named as AO. One Common (GND) terminal is
also there for both analog and digital inputs.
Modes of Operation
https://automationforum.co/ Page 88 of 94
Altivar 28 AC Drive can be mainly operated in two modes
Modes of Operation
2C 4 Speed 2C 8 Speed
In 2C configuration the main control inputs are Forward and Reverse and
hence it is known as 2C configuration. In 3C configuration the main control inputs are
Forward, Reverse and Stop.
2C Configuration
2C 4 Speed Configuration
LI3 and LI4 inputs are used for adjusting different speeds.
https://automationforum.co/ Page 89 of 94
LI4 LI3 Speed
0 0 LSP
0 1 SP2
1 0 SP3
1 1 HSP
Press Enter
SET DRC IO SUP
IO Tcc = 2C
LI2 = Rrs
LI3 = PS2 (2 Preset Speeds)
LI4 = PS4 (4 Preset Speeds)
Set Mode setting
https://automationforum.co/ Page 90 of 94
After setting IO mode then go to SET Mode and set different frequency for
LSP, HSP, SP2 and SP3.
2C 8 Speed Configuration
In 2C 8 Speed configuration LI2, LI3 and LI4 inputs are used for
controlling different speeds. Remaining is one input; LI1 is used for forward
direction. So only forward direction option is there in 2C 8 Speed Configuration. For
setting 2C 8 Speed configuration change LI2 as PS8.
0 0 0 LSP
0 0 1 SP2
0 1 0 SP3
0 1 1 SP4
1 0 0 SP5
1 0 1 SP6
1 1 0 SP7
1 1 1 HSP
IO Mode setting
https://automationforum.co/ Page 91 of 94
Press Enter
Select IO by using Up and Down Switch.
IO Tcc = 2C
LI2 = PS8
LI3 = PS2
LI4 = PS4
For controlling the motor using analog voltage, connect the voltage inputs
(AI1 or AI2) to 0-10 V. Also for controlling with Analog current connect the Current
input (AIC) to 4-20 mA. By varying the current or voltage we can vary the motor
speed. Using Analog Output AO we get Analog Output Voltage corresponding to
motor speed. This Analog Output can be used for controlling other devices.
3C Configuration
In 3C configuration the main control inputs are Forward, Reverse and Stop. In
3C Configuration one normal speed and jog speed occurs. The normal speed can be
set only in LSP.
LI1 Stop
LI2 Forward Direction
LI3 Reverse Direction
https://automationforum.co/ Page 92 of 94
LI4 Jog Speed
IO Mode setting
Press Enter
Select IO by using Up and Down Switch.
IO Tcc = 3C
LI2 = For
LI3 = Rrs
LI4 = Jog
DC Injection Breaking
1. Energy Saving.
2. We can run the motor at Constant Speed.
3. We can run the motor at Variable Speed.
4. We can run the motor in both directions (Forward and Reverse).
5. We can run the motor at Jog Speed.
6. We can suddenly stop the motor by using DC Injection Breaking.
https://automationforum.co/ Page 94 of 94