SlideShare a Scribd company logo
1 of 9
Download to read offline
13-1
Dr. D. J. Jackson Lecture 13-1Electrical & Computer Engineering
Programmable Logic
Controllers
Interrupts
Dr. D. J. Jackson Lecture 13-2Electrical & Computer Engineering
Interrupt Basics
 In terms of a PLC
 What is an interrupt?
 When can the controller operation be interrupted?
 Priority of User Interrupts
 Interrupt Latency
 Interrupt Instructions
13-2
Dr. D. J. Jackson Lecture 13-3Electrical & Computer Engineering
What is an Interrupt?
• An interrupt is an event that causes the
controller to suspend the task it is currently
performing, perform a different task, and
then return to the suspended task at the
point where it suspended.
• The Micrologix PLCs support the following
User Interrupts:
– User Fault Routine
– Event Interrupts (4)
– High-Speed Counter Interrupts(1)
– Selectable Timed Interrupt
Dr. D. J. Jackson Lecture 13-4Electrical & Computer Engineering
Interrupt Operation
• An interrupt must be configured and enabled to execute. When
any one of the interrupts is configured (and enabled) and
subsequently occurs, the user program:
1. suspends its execution
2. performs a defined task based upon which interrupt occurred
3. returns to the suspended operation.
13-3
Dr. D. J. Jackson Lecture 13-5Electrical & Computer Engineering
Interrupt Operation (continued)
• Specifically, if the controller program is executing
normally and an interrupt event occurs:
1. the controller stops its normal execution
2. determines which interrupt occurred
3. goes immediately to rung 0 of the subroutine
specified for that User Interrupt
4. begins executing the User Interrupt subroutine (or
set of subroutines if the specified subroutine calls a
subsequent subroutine)
5. completes the subroutine(s)
6. resumes normal execution from the point where the
controller program was interrupted
Dr. D. J. Jackson Lecture 13-6Electrical & Computer Engineering
When Can the Controller
Operation be Interrupted?
• The Micrologix controllers only allow
interrupts to be serviced during certain
periods of a program scan. They are:
– At the start of a ladder rung
– Anytime during End of Scan
– Between data words in an expansion I/O scan
• The interrupt is only serviced by the
controller at these opportunities.
• If the interrupt is disabled, the pending bit is
set at the next occurrence of one of the three
occasions listed above.
13-4
Dr. D. J. Jackson Lecture 13-7Electrical & Computer Engineering
Priority of User Interrupts
• When multiple interrupts occur, the
interrupts are serviced based upon their
individual priority.
• When an interrupt occurs and another
interrupt(s) has already occurred but has not
been serviced, the new interrupt is scheduled
for execution based on its priority relative to
the other pending interrupts.
– At the next point in time when an interrupt can be
serviced, all the interrupts are executed in the
sequence of highest priority to lowest priority.
Dr. D. J. Jackson Lecture 13-8Electrical & Computer Engineering
Priority of User Interrupts
• If an interrupt occurs while a lower priority interrupt
is being serviced (executed), the currently executing
interrupt routine is suspended, and the higher
priority interrupt is serviced.
– Then the lower priority interrupt is allowed to complete
before returning to normal processing.
• If an interrupt occurs while a higher priority interrupt
is being serviced (executed), and the pending bit has
been set for the lower priority interrupt, the
currently executing interrupt routine continues to
completion.
– Then the lower priority interrupt runs before returning to
normal processing.
13-5
Dr. D. J. Jackson Lecture 13-9Electrical & Computer Engineering
Interrupt Priorities
Dr. D. J. Jackson Lecture 13-10Electrical & Computer Engineering
Interrupt Latency
• Interrupt Latency is defined as the worst case
amount of time elapsed from when an interrupt
occurs to when the interrupt subroutine starts to
execute.
13-6
Dr. D. J. Jackson Lecture 13-11Electrical & Computer Engineering
Determining Interrupt Latency
1. First determine the execution time for the longest executing
rung in your control program (maximum rung time).
– See MicroLogix 1200 Memory Usage and Instruction Execution
Time handout for more information.
2. Multiply the maximum rung time by the Communications
Multiplier corresponding to your configuration in the MicroLogix
1200 Scan Time Worksheet handout
Dr. D. J. Jackson Lecture 13-12Electrical & Computer Engineering
INT – Interrupt Subroutine
• The INT instruction is used as a label to identify a
user interrupt service routine (ISR).
• This instruction is placed as the first instruction on a
rung and is always evaluated as true.
• Use of the INT instruction is optional.
13-7
Dr. D. J. Jackson Lecture 13-13Electrical & Computer Engineering
UID - User Interrupt Disable
• The UID instruction is used to disable selected user
interrupts.
Dr. D. J. Jackson Lecture 13-14Electrical & Computer Engineering
Types of Interrupts Disabled by
the UID Instruction
13-8
Dr. D. J. Jackson Lecture 13-15Electrical & Computer Engineering
Types of Interrupts Disabled by
the UID Instruction
• To disable interrupt(s):
1. Select which interrupts you want to disable.
2. Find the Decimal Value for the interrupt(s) you
selected.
3. Add the Decimal Values if you selected more
than one type of interrupt.
4. Enter the sum into the UID instruction.
• For example, to disable EII Event 1 and EII
Event 3:
– EII Event 1 = 32, EII Event 3 = 4
– 32 + 4 = 36 (enter this value)
Dr. D. J. Jackson Lecture 13-16Electrical & Computer Engineering
UIE - User Interrupt Enable
• The UIE instruction is used to enable selected user
interrupts.
• The parameter for the UIE instruction is computed
exactly as the UID instruction.
13-9
Dr. D. J. Jackson Lecture 13-17Electrical & Computer Engineering
UIF - User Interrupt Flush
• The UIF instruction is used to flush (remove pending
interrupts from the system) selected user interrupts.
• The parameter for the UIF instruction is computed
exactly as the UIE and UID instructions.

More Related Content

What's hot

Fault avoidance and fault tolerance
Fault avoidance and fault toleranceFault avoidance and fault tolerance
Fault avoidance and fault toleranceJabez Winston
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05Rajesh Gupta
 
Cost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesCost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesVincenzo De Florio
 
Dependable Systems - Summary (16/16)
Dependable Systems - Summary (16/16)Dependable Systems - Summary (16/16)
Dependable Systems - Summary (16/16)Peter Tröger
 
Section01 overview (1)
Section01 overview (1)Section01 overview (1)
Section01 overview (1)Vimarsh Padha
 
Fault tolerant real-time scheduling
Fault tolerant real-time schedulingFault tolerant real-time scheduling
Fault tolerant real-time schedulingReza Ramezani
 
automation,vfd,plc,scada overview
automation,vfd,plc,scada overviewautomation,vfd,plc,scada overview
automation,vfd,plc,scada overviewPratik Gupta
 
Embedded basics For beginners
Embedded basics For beginnersEmbedded basics For beginners
Embedded basics For beginnersMyEducationHub
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systemsmahalakshmimalini
 
Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance Systemprakashjjaya
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)Arti Parab Academics
 
IJSRED-V2I3P91
IJSRED-V2I3P91IJSRED-V2I3P91
IJSRED-V2I3P91IJSRED
 
Fault detection consequence
Fault detection consequenceFault detection consequence
Fault detection consequenceMahbub Rashid
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
Artificial Intelligence techniques
Artificial Intelligence techniquesArtificial Intelligence techniques
Artificial Intelligence techniquesPavan Kumar Talla
 
Embedded Systems : introduction
Embedded Systems : introductionEmbedded Systems : introduction
Embedded Systems : introductionAnant Shrivastava
 

What's hot (20)

Fault avoidance and fault tolerance
Fault avoidance and fault toleranceFault avoidance and fault tolerance
Fault avoidance and fault tolerance
 
Embedded Intro India05
Embedded Intro India05Embedded Intro India05
Embedded Intro India05
 
Cost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resourcesCost-effective software reliability through autonomic tuning of system resources
Cost-effective software reliability through autonomic tuning of system resources
 
Dependable Systems - Summary (16/16)
Dependable Systems - Summary (16/16)Dependable Systems - Summary (16/16)
Dependable Systems - Summary (16/16)
 
Section01 overview (1)
Section01 overview (1)Section01 overview (1)
Section01 overview (1)
 
Section01 overview
Section01 overviewSection01 overview
Section01 overview
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Fault tolerant real-time scheduling
Fault tolerant real-time schedulingFault tolerant real-time scheduling
Fault tolerant real-time scheduling
 
automation,vfd,plc,scada overview
automation,vfd,plc,scada overviewautomation,vfd,plc,scada overview
automation,vfd,plc,scada overview
 
Embedded basics For beginners
Embedded basics For beginnersEmbedded basics For beginners
Embedded basics For beginners
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systems
 
Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance System
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V  Real Time Operating System (RTOS)
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
 
IJSRED-V2I3P91
IJSRED-V2I3P91IJSRED-V2I3P91
IJSRED-V2I3P91
 
Fault detection consequence
Fault detection consequenceFault detection consequence
Fault detection consequence
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
Artificial Intelligence techniques
Artificial Intelligence techniquesArtificial Intelligence techniques
Artificial Intelligence techniques
 
Sh3511m
Sh3511mSh3511m
Sh3511m
 
Operating systems galvin-ch1
Operating systems galvin-ch1Operating systems galvin-ch1
Operating systems galvin-ch1
 
Embedded Systems : introduction
Embedded Systems : introductionEmbedded Systems : introduction
Embedded Systems : introduction
 

Viewers also liked

The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...Buabuanana
 
The effects of reading method on the comprehension performance of Saudi EFL s...
The effects of reading method on the comprehension performance of Saudi EFL s...The effects of reading method on the comprehension performance of Saudi EFL s...
The effects of reading method on the comprehension performance of Saudi EFL s...Buabuanana
 
Runwal codename walk
Runwal codename walkRunwal codename walk
Runwal codename walkthelaunch
 
The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...Buabuanana
 

Viewers also liked (12)

The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...
 
Lect09
Lect09Lect09
Lect09
 
Lect03
Lect03Lect03
Lect03
 
The effects of reading method on the comprehension performance of Saudi EFL s...
The effects of reading method on the comprehension performance of Saudi EFL s...The effects of reading method on the comprehension performance of Saudi EFL s...
The effects of reading method on the comprehension performance of Saudi EFL s...
 
Runwal codename walk
Runwal codename walkRunwal codename walk
Runwal codename walk
 
Lect04
Lect04Lect04
Lect04
 
Lect08
Lect08Lect08
Lect08
 
Lect12
Lect12Lect12
Lect12
 
Lect06
Lect06Lect06
Lect06
 
Lect07
Lect07Lect07
Lect07
 
Lect14
Lect14Lect14
Lect14
 
The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...The effects of reading method on the comprehension performance of saudi efl s...
The effects of reading method on the comprehension performance of saudi efl s...
 

Similar to Lect13

Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating Systemandyr91
 
interruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptxinterruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptxAmulyagt1
 
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxCS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxAsst.prof M.Gokilavani
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.Zohaib Arshid
 
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdfWeek 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdfdevinezekiel2003
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic doorIndira Kundu
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system ali jawad
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2Gaurav Meena
 
Developing Infrared Controlled Automated Door System
Developing Infrared Controlled Automated Door SystemDeveloping Infrared Controlled Automated Door System
Developing Infrared Controlled Automated Door SystemIJMER
 
Power system protection_lecture_notes
Power system protection_lecture_notesPower system protection_lecture_notes
Power system protection_lecture_noteslcm3766l
 

Similar to Lect13 (20)

Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating System
 
Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
 
Interrupt presentaion
Interrupt presentaionInterrupt presentaion
Interrupt presentaion
 
interruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptxinterruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptx
 
Lect05
Lect05Lect05
Lect05
 
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptxCS304PC:Computer Organization and Architecture Session 15 program control.pptx
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
Interrupts in CPU
Interrupts in CPUInterrupts in CPU
Interrupts in CPU
 
pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.pipelining and hazards occure in assembly language.
pipelining and hazards occure in assembly language.
 
Interrupts
InterruptsInterrupts
Interrupts
 
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdfWeek 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
 
Inerrupt
InerruptInerrupt
Inerrupt
 
Report on automatic door
Report on automatic doorReport on automatic door
Report on automatic door
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system
 
Interrupts
InterruptsInterrupts
Interrupts
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
 
Chapter 2 pc
Chapter 2 pcChapter 2 pc
Chapter 2 pc
 
Developing Infrared Controlled Automated Door System
Developing Infrared Controlled Automated Door SystemDeveloping Infrared Controlled Automated Door System
Developing Infrared Controlled Automated Door System
 
Lect01
Lect01Lect01
Lect01
 
Power system protection_lecture_notes
Power system protection_lecture_notesPower system protection_lecture_notes
Power system protection_lecture_notes
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

Lect13

  • 1. 13-1 Dr. D. J. Jackson Lecture 13-1Electrical & Computer Engineering Programmable Logic Controllers Interrupts Dr. D. J. Jackson Lecture 13-2Electrical & Computer Engineering Interrupt Basics  In terms of a PLC  What is an interrupt?  When can the controller operation be interrupted?  Priority of User Interrupts  Interrupt Latency  Interrupt Instructions
  • 2. 13-2 Dr. D. J. Jackson Lecture 13-3Electrical & Computer Engineering What is an Interrupt? • An interrupt is an event that causes the controller to suspend the task it is currently performing, perform a different task, and then return to the suspended task at the point where it suspended. • The Micrologix PLCs support the following User Interrupts: – User Fault Routine – Event Interrupts (4) – High-Speed Counter Interrupts(1) – Selectable Timed Interrupt Dr. D. J. Jackson Lecture 13-4Electrical & Computer Engineering Interrupt Operation • An interrupt must be configured and enabled to execute. When any one of the interrupts is configured (and enabled) and subsequently occurs, the user program: 1. suspends its execution 2. performs a defined task based upon which interrupt occurred 3. returns to the suspended operation.
  • 3. 13-3 Dr. D. J. Jackson Lecture 13-5Electrical & Computer Engineering Interrupt Operation (continued) • Specifically, if the controller program is executing normally and an interrupt event occurs: 1. the controller stops its normal execution 2. determines which interrupt occurred 3. goes immediately to rung 0 of the subroutine specified for that User Interrupt 4. begins executing the User Interrupt subroutine (or set of subroutines if the specified subroutine calls a subsequent subroutine) 5. completes the subroutine(s) 6. resumes normal execution from the point where the controller program was interrupted Dr. D. J. Jackson Lecture 13-6Electrical & Computer Engineering When Can the Controller Operation be Interrupted? • The Micrologix controllers only allow interrupts to be serviced during certain periods of a program scan. They are: – At the start of a ladder rung – Anytime during End of Scan – Between data words in an expansion I/O scan • The interrupt is only serviced by the controller at these opportunities. • If the interrupt is disabled, the pending bit is set at the next occurrence of one of the three occasions listed above.
  • 4. 13-4 Dr. D. J. Jackson Lecture 13-7Electrical & Computer Engineering Priority of User Interrupts • When multiple interrupts occur, the interrupts are serviced based upon their individual priority. • When an interrupt occurs and another interrupt(s) has already occurred but has not been serviced, the new interrupt is scheduled for execution based on its priority relative to the other pending interrupts. – At the next point in time when an interrupt can be serviced, all the interrupts are executed in the sequence of highest priority to lowest priority. Dr. D. J. Jackson Lecture 13-8Electrical & Computer Engineering Priority of User Interrupts • If an interrupt occurs while a lower priority interrupt is being serviced (executed), the currently executing interrupt routine is suspended, and the higher priority interrupt is serviced. – Then the lower priority interrupt is allowed to complete before returning to normal processing. • If an interrupt occurs while a higher priority interrupt is being serviced (executed), and the pending bit has been set for the lower priority interrupt, the currently executing interrupt routine continues to completion. – Then the lower priority interrupt runs before returning to normal processing.
  • 5. 13-5 Dr. D. J. Jackson Lecture 13-9Electrical & Computer Engineering Interrupt Priorities Dr. D. J. Jackson Lecture 13-10Electrical & Computer Engineering Interrupt Latency • Interrupt Latency is defined as the worst case amount of time elapsed from when an interrupt occurs to when the interrupt subroutine starts to execute.
  • 6. 13-6 Dr. D. J. Jackson Lecture 13-11Electrical & Computer Engineering Determining Interrupt Latency 1. First determine the execution time for the longest executing rung in your control program (maximum rung time). – See MicroLogix 1200 Memory Usage and Instruction Execution Time handout for more information. 2. Multiply the maximum rung time by the Communications Multiplier corresponding to your configuration in the MicroLogix 1200 Scan Time Worksheet handout Dr. D. J. Jackson Lecture 13-12Electrical & Computer Engineering INT – Interrupt Subroutine • The INT instruction is used as a label to identify a user interrupt service routine (ISR). • This instruction is placed as the first instruction on a rung and is always evaluated as true. • Use of the INT instruction is optional.
  • 7. 13-7 Dr. D. J. Jackson Lecture 13-13Electrical & Computer Engineering UID - User Interrupt Disable • The UID instruction is used to disable selected user interrupts. Dr. D. J. Jackson Lecture 13-14Electrical & Computer Engineering Types of Interrupts Disabled by the UID Instruction
  • 8. 13-8 Dr. D. J. Jackson Lecture 13-15Electrical & Computer Engineering Types of Interrupts Disabled by the UID Instruction • To disable interrupt(s): 1. Select which interrupts you want to disable. 2. Find the Decimal Value for the interrupt(s) you selected. 3. Add the Decimal Values if you selected more than one type of interrupt. 4. Enter the sum into the UID instruction. • For example, to disable EII Event 1 and EII Event 3: – EII Event 1 = 32, EII Event 3 = 4 – 32 + 4 = 36 (enter this value) Dr. D. J. Jackson Lecture 13-16Electrical & Computer Engineering UIE - User Interrupt Enable • The UIE instruction is used to enable selected user interrupts. • The parameter for the UIE instruction is computed exactly as the UID instruction.
  • 9. 13-9 Dr. D. J. Jackson Lecture 13-17Electrical & Computer Engineering UIF - User Interrupt Flush • The UIF instruction is used to flush (remove pending interrupts from the system) selected user interrupts. • The parameter for the UIF instruction is computed exactly as the UIE and UID instructions.