SlideShare a Scribd company logo
1 of 6
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
3 A p r 2 0 1 4
PLC-LADDER LOGIC-ATMEGA8
Atmel AVR ATmega8 28-PDIP'
16.000000 MHz crystal
1)Digital input and output
Pin D1 will be high when a digital high is given at pin D0
LADDER DIAGRAM:
|| ||
|| Xd0 Yd1 ||
1 ||-------] [--------------( )-------||
|| ||
|| ||
|| ||
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
Xd0 | digital in | 2
Yd1 | digital out | 3
2) Input negated digital switch
Pin B0 in Microcontroller will be high when a digital low is given at pin
B6
LADDER DIAGRAM:
|| ||
|| Xb0 Yb6 ||
1 ||-------]/[--------------( )-------||
|| ||
|| ||
|| ||
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
Xb0 | digital in | 27
Yb6 | digital out | 28
3)TON TIMER
The pin RB5 will on after one second delay after program starts
LADDER DIAGRAM:
|| ||
|| Tnew YRB5 ||
1 ||--[TON 1.000 s]---------( )-------||
|| ||
|| ||
|| ||
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
YRB5 | digital out | 19
Tnew | turn-on delay |
4)XOR Gate
LADDER DIAGRAM:
|| ||
|| XD0 XD1 YB5 ||
1 ||-------] [--------------]/[------+-------( )-------||
|| | ||
|| XD0 XD1 | ||
||-------]/[--------------] [------+ ||
|| ||
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
|| ||
|| ||
||------[END]----------------------------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
XD0 | digital in | 2
XD1 | digital in | 3
YB5 | digital out | 19
5)OR Gate
LADDER DIAGRAM:
|| ||
|| XDO YB5 ||
1 ||-------] [------+-------( )-------||
|| | ||
|| XD1 | ||
||-------] [------+ ||
|| ||
|| ||
|| ||
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
XD1 | digital in | 3
XDO | digital in | 2
YB5 | digital out | 19
6) AND Gate
LADDER DIAGRAM:
|| ||
|| XD0 XD1 YPB5 ||
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
1 ||-------] [--------------] [--------------( )-------||
|| ||
|| ||
|| ||
||------[END]----------------------------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
XD0 | digital in | 2
XD1 | digital in | 3
YPB5 | digital out | 19
7)ADC with digital output
LADDER DIAGRAM:
|| ||
|| A5 ||
1 ||--------------------{READ ADC}----||
|| ||
|| ||
|| ||
|| ||
|| [A5 <] YD3 ||
2 ||-----[ 500]-------------( )-------||
|| ||
|| ||
|| ||
|| ||
|| [A5 >] YD4 ||
3 ||-----[ 499]-------------( )-------||
|| ||
|| ||
|| ||
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
----------------------------+--------------------+------
YD3 | digital out | 5
YD4 | digital out | 6
A5 | adc input | 28
8) UART
Send the letter “J” over uart
LADDER DIAGRAM:
|| ||
|| {A := } ||
1 ||-{ 'J' MOV}--||
|| ||
|| ||
|| ||
|| ||
|| A ||
2 ||---{UART SEND}---||
|| ||
|| ||
|| ||
||------[END]------||
|| ||
|| ||
9) Sending ADC result over UART
Here i have converted 10-bit ADC result into 8- bit data(ASCII code) by
dividing by 4 for proper UART reading
LADDER DIAGRAM:
|| ||
|| A5 ||
1 ||--------------------{READ ADC}----||
|| ||
|| ||
|| ||
|| ||
|| {DIV B :=} ||
2 ||-----------{ A5 / 4 }-----------||
|| ||
|| ||
|| ||
|| ||
|| B ||
EMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES
Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121
Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in
3 ||---{UART SEND}--- ||
|| ||
|| ||
|| ||
|| ||
|| {D := } ||
4 ||------------------{ 13 MOV}--||
|| ||
|| ||
|| ||
|| ||
|| D ||
5 ||---{UART SEND}--- ||
|| ||
|| ||
|| ||
||------[END]-----------------------||
|| ||
|| ||
I/O ASSIGNMENT:
Name | Type | Pin
----------------------------+--------------------+------
A5 | adc input | 28
B | UART tx | 3
D | UART tx | 3

More Related Content

Recently uploaded

Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentConfiguration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentBharaniDharan195623
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxNiranjanYadav41
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 

Recently uploaded (20)

Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managamentConfiguration of IoT devices - Systems managament
Configuration of IoT devices - Systems managament
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptxBSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

PLC Ladder examples

  • 1. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in 3 A p r 2 0 1 4 PLC-LADDER LOGIC-ATMEGA8 Atmel AVR ATmega8 28-PDIP' 16.000000 MHz crystal 1)Digital input and output Pin D1 will be high when a digital high is given at pin D0 LADDER DIAGRAM: || || || Xd0 Yd1 || 1 ||-------] [--------------( )-------|| || || || || || || ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ Xd0 | digital in | 2 Yd1 | digital out | 3 2) Input negated digital switch Pin B0 in Microcontroller will be high when a digital low is given at pin B6 LADDER DIAGRAM: || || || Xb0 Yb6 || 1 ||-------]/[--------------( )-------|| || || || || || ||
  • 2. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ Xb0 | digital in | 27 Yb6 | digital out | 28 3)TON TIMER The pin RB5 will on after one second delay after program starts LADDER DIAGRAM: || || || Tnew YRB5 || 1 ||--[TON 1.000 s]---------( )-------|| || || || || || || ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ YRB5 | digital out | 19 Tnew | turn-on delay | 4)XOR Gate LADDER DIAGRAM: || || || XD0 XD1 YB5 || 1 ||-------] [--------------]/[------+-------( )-------|| || | || || XD0 XD1 | || ||-------]/[--------------] [------+ || || ||
  • 3. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in || || || || ||------[END]----------------------------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ XD0 | digital in | 2 XD1 | digital in | 3 YB5 | digital out | 19 5)OR Gate LADDER DIAGRAM: || || || XDO YB5 || 1 ||-------] [------+-------( )-------|| || | || || XD1 | || ||-------] [------+ || || || || || || || ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ XD1 | digital in | 3 XDO | digital in | 2 YB5 | digital out | 19 6) AND Gate LADDER DIAGRAM: || || || XD0 XD1 YPB5 ||
  • 4. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in 1 ||-------] [--------------] [--------------( )-------|| || || || || || || ||------[END]----------------------------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ XD0 | digital in | 2 XD1 | digital in | 3 YPB5 | digital out | 19 7)ADC with digital output LADDER DIAGRAM: || || || A5 || 1 ||--------------------{READ ADC}----|| || || || || || || || || || [A5 <] YD3 || 2 ||-----[ 500]-------------( )-------|| || || || || || || || || || [A5 >] YD4 || 3 ||-----[ 499]-------------( )-------|| || || || || || || ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin
  • 5. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in ----------------------------+--------------------+------ YD3 | digital out | 5 YD4 | digital out | 6 A5 | adc input | 28 8) UART Send the letter “J” over uart LADDER DIAGRAM: || || || {A := } || 1 ||-{ 'J' MOV}--|| || || || || || || || || || A || 2 ||---{UART SEND}---|| || || || || || || ||------[END]------|| || || || || 9) Sending ADC result over UART Here i have converted 10-bit ADC result into 8- bit data(ASCII code) by dividing by 4 for proper UART reading LADDER DIAGRAM: || || || A5 || 1 ||--------------------{READ ADC}----|| || || || || || || || || || {DIV B :=} || 2 ||-----------{ A5 / 4 }-----------|| || || || || || || || || || B ||
  • 6. EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES Juma Masjid Buildng , Thrissur Road, Tana - Irinjalakuda, Thrissur, Kerala, Pin-680121 Tel: 9895241319, 9744516101 email: e4emerging@gmail.com Web: emergingtechnolgies1.blogspot.in 3 ||---{UART SEND}--- || || || || || || || || || || {D := } || 4 ||------------------{ 13 MOV}--|| || || || || || || || || || D || 5 ||---{UART SEND}--- || || || || || || || ||------[END]-----------------------|| || || || || I/O ASSIGNMENT: Name | Type | Pin ----------------------------+--------------------+------ A5 | adc input | 28 B | UART tx | 3 D | UART tx | 3