SlideShare a Scribd company logo
PLC Programming
GRESHA S. SAMARAKKODY
Step 7 – MICRO/WIN
This software makes programming of S7-200 easier.
• Basic instructions:
INPUTS will be defined as IX.X
OUTPUTS will be defines as QX.X
FLAGS will be defined as MX.X
Example :
I0.1 first module’s 1st input
Q0.1 first module’s 1st output
Step 1: How to open Step 7 – Micro/WIN
To open the software :
Step 7 Micro/WIN Start Window
Steps of Running Code on PLC
Open Step
Micro/WIN
Write a Simple
Code in Ladder
Network
Compile Your
Code
Download
Your Code to
PLC
Run PLC to
Perform Code
Timers
Table 1 : Timer Numbers and Resolutions
Timers
Table 2 : Operations of the Timer Instructions
Step 2: Writing a simple program
 Click on “Bit Logic” icon to open bit logic
commands
 Choose “Normally close contact”
Drag and drop the contact to network 1
 Write the M0.0 instead of the question marks (???)
over the contact. M0.0 is a flag contact
 Press the enter button to finish contact definition.
Setting up a timer
 Click on “timer” icon to see all timer commands
 Choose TON (on delay timer)
 Drag and drop the TON to network 1 next to M0.0
 Write the T33 instead of the question marks (???) over
the timer box
 Press enter the cursor will go to PT section
 Enter timer setting as : 100
 Press enter to finish setting up the timer
Step 3:
Turning the Output On (Network 2)
When the timer value for T33 is greater than or equal
to 40 (40 times 10 milliseconds or 0.4 seconds), the
contact provides power flow to turn on output Q0.0
of the S7-200.
Double click the compare icon to display the compare instructions.
Select the >=I instruction
 Hold down the left mouse button and drag the compare
instruction onto the second network
Click on the “???” above the contact and enter the address for the
timer value : T33
 Press the Return key to enter the timer number and to move the
focus to the other value to be compared with the timer value
 Enter the following value to be compared with the timer value : 40
 Press the return key to enter the value.
To enter the instruction for turning on
output Q0.0
 Double click the Bit Logic icon to display the bit logic
instructions and select the output coil
 Hold down the left mouse button and drag the coil
onto the second network
Click on the “???” above the coil and enter the
following address: Q0.0
Press the return key to enter the address for the coil
Step 4: Resetting the Timer
When the timer reaches the preset value (100) and
turns the timer bit on, the contact for T33 turns on.
Power flow from this contact turns on the M0.0
memory location. Because the timer is enabled by a
Normally Closed contact for M0.0, changing the
state of M0.0 from off (0) to on (1) resets the timer.
To enter the contact for the timer bit of T33
 Select the Normally Open contact from the bit logic
instructions
 Hold down the left mouse button and drag the contact
onto the third network
 Click on the “???” above the contact and enter the
address of the timer bit: 33
 Press the Return key to enter the address for the contact
To enter the coil for turning on M0.0:
 Select the output coil from the bit logic instructions
 Hold down the left mouse button and drag the
output coil onto the third network
 Double-click the “???” above the coil and enter the
following address: M0.0
 Press the Return key to enter the address for the coil
Save the project File Save As
Step 7 Micro/WIN Resetting the Timer
Network 3
Whole Example and Output Timing
Diagram
Step 5 : Downloading the Sample Program
to PLC
 Click the Download icon on the toolbar or select the
File > Download menu command to download the
program
 Click OK on opened window to download the
elements of the program to the S7-200
Upload and Download Button
Step 6 : Running the PLC
For STEP 7- Micro/WIN to place the S7-200 CPU in
RUN mode, the mode switch of the S7-200 must be
set to TERM or RUN. When you place the S7-200
executes the program:
Click the RUN icon on the toolbar select the PLC > RUN
menu command
 Click OK to change the operating mode of the S7-200
Run and Stop Buttons
Counters
Operations of the Counter Instructions
END

More Related Content

Similar to PLC Programming.pdf

05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
confidencial
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
Marcio Miranda
 
Air max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revisedAir max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revised
Slamet Achwandy
 
Control Relays via RS-232 / USB
Control Relays via RS-232 / USBControl Relays via RS-232 / USB
Control Relays via RS-232 / USB
topomax
 
Tutorial ic design
Tutorial ic designTutorial ic design
Tutorial ic design
Vijay Kannamalla
 
Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232
topomax
 
63610-80-20 CalibrationTC
63610-80-20 CalibrationTC63610-80-20 CalibrationTC
63610-80-20 CalibrationTC
Traian Cojocneanu
 
Electronic Workbench - R.D.Sivakumar
Electronic Workbench - R.D.SivakumarElectronic Workbench - R.D.Sivakumar
Electronic Workbench - R.D.Sivakumar
Sivakumar R D .
 
Internet of Things exercise on IBM Bluemix
Internet of Things exercise on IBM BluemixInternet of Things exercise on IBM Bluemix
Internet of Things exercise on IBM Bluemix
LennartF
 
Xgt training
Xgt trainingXgt training
Xgt training
Nguyễn Yên Giang
 
Lab7 s2
Lab7 s2Lab7 s2
Lab7 s1
Lab7 s1Lab7 s1
Lab7 s1
Lab7 s1Lab7 s1
File 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit designFile 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit design
Sanjeev Singh
 
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLERGSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
Md. Moktarul Islam
 
Lab7 s1
Lab7 s1Lab7 s1
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
Ming-Hung Hseih
 
Remote ashok
Remote ashokRemote ashok
Remote ashok
Ashokkumar sekar
 
SDM 630MCT
SDM 630MCTSDM 630MCT
Avr generator
Avr generatorAvr generator
Avr generator
Harie Tr
 

Similar to PLC Programming.pdf (20)

05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
Air max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revisedAir max5 and_mikrotik_router_board_connection_guide_revised
Air max5 and_mikrotik_router_board_connection_guide_revised
 
Control Relays via RS-232 / USB
Control Relays via RS-232 / USBControl Relays via RS-232 / USB
Control Relays via RS-232 / USB
 
Tutorial ic design
Tutorial ic designTutorial ic design
Tutorial ic design
 
Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232
 
63610-80-20 CalibrationTC
63610-80-20 CalibrationTC63610-80-20 CalibrationTC
63610-80-20 CalibrationTC
 
Electronic Workbench - R.D.Sivakumar
Electronic Workbench - R.D.SivakumarElectronic Workbench - R.D.Sivakumar
Electronic Workbench - R.D.Sivakumar
 
Internet of Things exercise on IBM Bluemix
Internet of Things exercise on IBM BluemixInternet of Things exercise on IBM Bluemix
Internet of Things exercise on IBM Bluemix
 
Xgt training
Xgt trainingXgt training
Xgt training
 
Lab7 s2
Lab7 s2Lab7 s2
Lab7 s2
 
Lab7 s1
Lab7 s1Lab7 s1
Lab7 s1
 
Lab7 s1
Lab7 s1Lab7 s1
Lab7 s1
 
File 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit designFile 1 proteus tutorial for digital circuit design
File 1 proteus tutorial for digital circuit design
 
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLERGSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
GSM 1308 MODEM CONTROL USING PIC-16F877A MICROCONTROLLER
 
Lab7 s1
Lab7 s1Lab7 s1
Lab7 s1
 
[Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step [Advantech] WebOP designer Tutorial step by step
[Advantech] WebOP designer Tutorial step by step
 
Remote ashok
Remote ashokRemote ashok
Remote ashok
 
SDM 630MCT
SDM 630MCTSDM 630MCT
SDM 630MCT
 
Avr generator
Avr generatorAvr generator
Avr generator
 

Recently uploaded

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 

Recently uploaded (20)

Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 

PLC Programming.pdf

  • 2. Step 7 – MICRO/WIN This software makes programming of S7-200 easier. • Basic instructions: INPUTS will be defined as IX.X OUTPUTS will be defines as QX.X FLAGS will be defined as MX.X Example : I0.1 first module’s 1st input Q0.1 first module’s 1st output
  • 3. Step 1: How to open Step 7 – Micro/WIN To open the software :
  • 4. Step 7 Micro/WIN Start Window
  • 5. Steps of Running Code on PLC Open Step Micro/WIN Write a Simple Code in Ladder Network Compile Your Code Download Your Code to PLC Run PLC to Perform Code
  • 6. Timers Table 1 : Timer Numbers and Resolutions
  • 7. Timers Table 2 : Operations of the Timer Instructions
  • 8. Step 2: Writing a simple program  Click on “Bit Logic” icon to open bit logic commands  Choose “Normally close contact” Drag and drop the contact to network 1  Write the M0.0 instead of the question marks (???) over the contact. M0.0 is a flag contact  Press the enter button to finish contact definition.
  • 9. Setting up a timer  Click on “timer” icon to see all timer commands  Choose TON (on delay timer)  Drag and drop the TON to network 1 next to M0.0  Write the T33 instead of the question marks (???) over the timer box  Press enter the cursor will go to PT section  Enter timer setting as : 100  Press enter to finish setting up the timer
  • 10.
  • 11. Step 3: Turning the Output On (Network 2) When the timer value for T33 is greater than or equal to 40 (40 times 10 milliseconds or 0.4 seconds), the contact provides power flow to turn on output Q0.0 of the S7-200.
  • 12. Double click the compare icon to display the compare instructions. Select the >=I instruction  Hold down the left mouse button and drag the compare instruction onto the second network Click on the “???” above the contact and enter the address for the timer value : T33  Press the Return key to enter the timer number and to move the focus to the other value to be compared with the timer value  Enter the following value to be compared with the timer value : 40  Press the return key to enter the value.
  • 13. To enter the instruction for turning on output Q0.0  Double click the Bit Logic icon to display the bit logic instructions and select the output coil  Hold down the left mouse button and drag the coil onto the second network Click on the “???” above the coil and enter the following address: Q0.0 Press the return key to enter the address for the coil
  • 14.
  • 15. Step 4: Resetting the Timer When the timer reaches the preset value (100) and turns the timer bit on, the contact for T33 turns on. Power flow from this contact turns on the M0.0 memory location. Because the timer is enabled by a Normally Closed contact for M0.0, changing the state of M0.0 from off (0) to on (1) resets the timer.
  • 16. To enter the contact for the timer bit of T33  Select the Normally Open contact from the bit logic instructions  Hold down the left mouse button and drag the contact onto the third network  Click on the “???” above the contact and enter the address of the timer bit: 33  Press the Return key to enter the address for the contact
  • 17. To enter the coil for turning on M0.0:  Select the output coil from the bit logic instructions  Hold down the left mouse button and drag the output coil onto the third network  Double-click the “???” above the coil and enter the following address: M0.0  Press the Return key to enter the address for the coil Save the project File Save As
  • 18. Step 7 Micro/WIN Resetting the Timer Network 3
  • 19. Whole Example and Output Timing Diagram
  • 20. Step 5 : Downloading the Sample Program to PLC  Click the Download icon on the toolbar or select the File > Download menu command to download the program  Click OK on opened window to download the elements of the program to the S7-200
  • 22. Step 6 : Running the PLC For STEP 7- Micro/WIN to place the S7-200 CPU in RUN mode, the mode switch of the S7-200 must be set to TERM or RUN. When you place the S7-200 executes the program: Click the RUN icon on the toolbar select the PLC > RUN menu command  Click OK to change the operating mode of the S7-200
  • 23. Run and Stop Buttons
  • 25.
  • 26. Operations of the Counter Instructions
  • 27. END