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

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

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