AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

BRX Do-more Designer PLC Interrupts Part 1: Quick Start from AutomationDirect


Related Products

BX-DM1E-18AR3
BX-DM1E-18AR3 Thumbnail
BX-DM1E-18ED13-D
BX-DM1E-18ED13-D Thumbnail
BX-DM1E-18ED23-D
BX-DM1E-18ED23-D Thumbnail
BX-DM1E-18ER3-D
BX-DM1E-18ER3-D Thumbnail
BX-DM1-18ED1
BX-DM1-18ED1 Thumbnail
BX-DM1-18ED2
BX-DM1-18ED2 Thumbnail
BX-DM1-18ER
BX-DM1-18ER Thumbnail
BX-DM1-18AR
BX-DM1-18AR Thumbnail
BX-DM1-18ED1-D
BX-DM1-18ED1-D Thumbnail
BX-DM1-18ED2-D
BX-DM1-18ED2-D Thumbnail
BX-DM1-18ER-D
BX-DM1-18ER-D Thumbnail
BX-DM1E-36ED13
BX-DM1E-36ED13 Thumbnail
BX-DM1E-36ED23
BX-DM1E-36ED23 Thumbnail
BX-DM1E-36ER3
BX-DM1E-36ER3 Thumbnail
BX-DM1E-36AR3
BX-DM1E-36AR3 Thumbnail
BX-DM1E-36ED13-D
BX-DM1E-36ED13-D Thumbnail
BX-DM1E-36ED23-D
BX-DM1E-36ED23-D Thumbnail
BX-DM1E-36ER3-D
BX-DM1E-36ER3-D Thumbnail
BX-DM1-36ED1
BX-DM1-36ED1 Thumbnail
BX-DM1-36ED2
BX-DM1-36ED2 Thumbnail
BX-DM1-36ER
BX-DM1-36ER Thumbnail
BX-DM1-36AR
BX-DM1-36AR Thumbnail
BX-DM1-36ED1-D
BX-DM1-36ED1-D Thumbnail
BX-DM1-36ED2-D
BX-DM1-36ED2-D Thumbnail
BX-DM1-36ER-D
BX-DM1-36ER-D Thumbnail
BX-DMIO-M
BX-DMIO-M Thumbnail
BX-DMIO-M-D
BX-DMIO-M-D Thumbnail
BX-MBIO-M
BX-MBIO-M Thumbnail
BX-MBIO-M-D
BX-MBIO-M-D Thumbnail
BX-EBC100-M
BX-EBC100-M Thumbnail
BX-EBC100-M-D
BX-EBC100-M-D Thumbnail
BX-08ND3
BX-08ND3 Thumbnail
BX-12ND3
BX-12ND3 Thumbnail
BX-16ND3
BX-16ND3 Thumbnail
BX-32ND3
BX-32ND3 Thumbnail
BX-08NF3
BX-08NF3 Thumbnail
BX-08TD1
BX-08TD1 Thumbnail
BX-08TD2
BX-08TD2 Thumbnail
BX-12TD1
BX-12TD1 Thumbnail
BX-12TD2
BX-12TD2 Thumbnail
BX-16TD1
BX-16TD1 Thumbnail
BX-16TD2
BX-16TD2 Thumbnail
BX-32TD1
BX-32TD1 Thumbnail
BX-32TD2
BX-32TD2 Thumbnail
BX-08CD3R
BX-08CD3R Thumbnail
BX-12CD3D1
BX-12CD3D1 Thumbnail
BX-12CD3D2
BX-12CD3D2 Thumbnail
BX-16CD3D1
BX-16CD3D1 Thumbnail
BX-16CD3D2
BX-16CD3D2 Thumbnail
BX-08SIM
BX-08SIM Thumbnail
BX-08NB
BX-08NB Thumbnail
BX-12NB
BX-12NB Thumbnail
BX-16NB
BX-16NB Thumbnail
BX-08NA
BX-08NA Thumbnail
BX-12NA
BX-12NA Thumbnail
BX-16NA
BX-16NA Thumbnail
BX-08TA
BX-08TA Thumbnail
BX-12TA
BX-12TA Thumbnail
BX-08TR
BX-08TR Thumbnail
BX-12TR
BX-12TR Thumbnail
BX-16TR
BX-16TR Thumbnail
BX-05TRS
BX-05TRS Thumbnail
BX-04ADM-1
BX-04ADM-1 Thumbnail
BX-04AD-1
BX-04AD-1 Thumbnail
BX-08AD-1
BX-08AD-1 Thumbnail
BX-16AD-1
BX-16AD-1 Thumbnail
BX-04AD-2B
BX-04AD-2B Thumbnail
BX-08AD-2B
BX-08AD-2B Thumbnail
BX-16AD-2B
BX-16AD-2B Thumbnail
BX-04DA-1
BX-04DA-1 Thumbnail
BX-08DA-1
BX-08DA-1 Thumbnail
BX-04DA-2B
BX-04DA-2B Thumbnail
BX-2AD2DA-1
BX-2AD2DA-1 Thumbnail
BX-4AD2DA-1
BX-4AD2DA-1 Thumbnail
BX-2AD2DA-2B
BX-2AD2DA-2B Thumbnail
BX-4AD2DA-2B
BX-4AD2DA-2B Thumbnail
BX-08DA-2B
BX-08DA-2B Thumbnail
BX-04THM
BX-04THM Thumbnail
BX-08THM
BX-08THM Thumbnail
BX-4THM4DA-1
BX-4THM4DA-1 Thumbnail
BX-06RTD
BX-06RTD Thumbnail
BX-4RTD4DA-1
BX-4RTD4DA-1 Thumbnail
BX-08NTC
BX-08NTC Thumbnail
BX-SERIO
BX-SERIO Thumbnail
BX-HSIO1
BX-HSIO1 Thumbnail
BX-HSIO2
BX-HSIO2 Thumbnail
BX-P-SER2-RJ12
BX-P-SER2-RJ12 Thumbnail
BX-P-SER2-TERM
BX-P-SER2-TERM Thumbnail
BX-P-SER4-TERM
BX-P-SER4-TERM Thumbnail
BX-P-USB-B
BX-P-USB-B Thumbnail
BX-P-ECOMLT
BX-P-ECOMLT Thumbnail
BX-RTB03S
BX-RTB03S Thumbnail
BX-RTB10
BX-RTB10 Thumbnail
BX-RTB10-1
BX-RTB10-1 Thumbnail
BX-RTB10-2
BX-RTB10-2 Thumbnail
BX-RTB18
BX-RTB18 Thumbnail
BX-RTB18-1
BX-RTB18-1 Thumbnail
BX-RTB36
BX-RTB36 Thumbnail
BX-RTB36-1
BX-RTB36-1 Thumbnail
BX-RTB08
BX-RTB08 Thumbnail
BX-RTB08-1
BX-RTB08-1 Thumbnail
BX-RTB08-2
BX-RTB08-2 Thumbnail
BX-DM1E-M
BX-DM1E-M Thumbnail
BX-DM1E-M-D
BX-DM1E-M-D Thumbnail
BX-DM1E-10ED13-D
BX-DM1E-10ED13-D Thumbnail
BX-DM1E-10ED23-D
BX-DM1E-10ED23-D Thumbnail
BX-DM1E-10ER3-D
BX-DM1E-10ER3-D Thumbnail
BX-DM1E-10AR3-D
BX-DM1E-10AR3-D Thumbnail
BX-DM1-10ED1-D
BX-DM1-10ED1-D Thumbnail
BX-DM1-10ED2-D
BX-DM1-10ED2-D Thumbnail
BX-DM1-10ER-D
BX-DM1-10ER-D Thumbnail
BX-DM1-10AR-D
BX-DM1-10AR-D Thumbnail
BX-DM1E-18ED13
BX-DM1E-18ED13 Thumbnail
BX-DM1E-18ED23
BX-DM1E-18ED23 Thumbnail
BX-DM1E-18ER3
BX-DM1E-18ER3 Thumbnail


To learn more: https://www.automationdirect.com/do-more?utm_source=wYWpQ4np70U&utm_medium=VideoTeamDescription

(VID-BRX-0003)

Interrupts are a powerful feature of the BRX & Do-more PLCs and are super easy to use. This tutorial will get you up and running quickly with basic interrupts.
**Software Version used in this video: Do-more Designer 2.0.0

Online Support Page: https://community.automationdirect.com/s/?utm_source=wYWpQ4np70U&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

Interrupts are great for reacting to things when they actually happen. Remember, normally a PLC reads the inputs, executes all of its logic and then updates its outputs. We call that a Scan. So, what do you do if an input comes and goes during the scan, well, you’ll miss it because the PLC only reads at the signals the top of the scan. Or maybe you need to respond to that signal right now and can’t wait until the bottom of the scan. If you need to catch a fast signal or respond immediately to a signal, interrupts are the answer. Why? Because once you setup the interrupt, it responds whenever the event occurs. It literally tells the PLC to stop whatever it is doing and go do this right now. It doesn’t wait until the top of scan or the bottom of the scan to do something. And the interrupt can occurat anytime during the scan. And Do-more makes using interrupts really easy. I’ve connected a simple pushbutton switch to input 0 on this Do-more BRX PLC so we’ll use that to trigger an interrupt. In the dashboard I click on interrupts and let’s assign event one to do respond to this push button press. Enable this interrupt and we want input 0 to be our trigger and let’s look for the rising edge. We haven’t defined the routine that is going to service this interrupt – we could have done that over here if we had thought of it ahead of time – but this button right here takes us to the exact same dialog. Let’s give it a name. We call this an interrupt service routine, or ISR for short. Do-more-Designer knows we want an ISR so we just hit CREATE. The name gets automatically dropped in here and we’re good to go. This little equation says an ISR named ISR_EVENT1 will be executed when it sees the positive going edge of X0. It won’t wait for top or bottom of scan, it will do it immediately. Let’s do a little experiment. At the top of the scan let’s clear D0, and then add a loop that increments D0 a thousand times. In the interrupt service routine or ISR, let’s copy D0 into D1. That will record where in the loop we were when the interrupt occurred. Accept all of that. Let’s see – we haven’t actually connected to the PLC yet, so I’ll go ahead and take care of that .. Make sure the PLC is not in run mode, and write it out to the PLC. I’ll reach over and flip the switch on the PLC to RUN and we see the PLC is running. So, how long does it take the PLC to increment D0 a thousand times? Well, click on INFO and we see on average it takes about 15 milliseconds to increment D0 a thousand times. Let’s bring up a data view and monitor D0 and D1. Remember that the data view updates at the end of each scan so all we see is D0 AFTER it has been incremented a thousand times. When I hit the pushbutton switch, that triggers the interrupt, D0 gets copied to D1, and we can see where the loop counter was when the interrupt occurred. . How fast does the interrupt respond? The time it takes for the Do-more to react to an interrupt is what we call interrupt latency. And look at this - there is an ISR structure member that tells you what the latency is! In this example it’s taking the Do-more about 3 micro-seconds to react to the event. How cool is that. You can also see how long it takes for the ISR to run, whether it has been triggered or not, if it is currently inhibited, how many times it has been run. Everything you could want to know about an ISR right there. Now remember – the ISR is literally stopping the regular scan, doing its thing then letting the scan continue. It’s really important to keep an eye on that execution time and make sure it doesn’t take too much time away from your regular scan. Looks like out ISR is taking this much time out of our 7.6ms loop. That’s has almost no impact on our scan time which is what we want. Normally you just want to record something in the ISR- like we recorded the loop counter in D1 – then do something with that in another task or program later as part of the regular scan. Don’t let that interrupt service routine get too long. A few other things to keep in mind about interrupts: An interrupt that triggers an event, can’t re-trigger the same event while its interrupt service routine is still running. That event will be lost. If an interrupt for a different event occurs while an ISR is running, then that event WILL be processed after the current interrupt is done. Another good reason to keep your ISR as short as possible. Can you do anything you want in an ISR? No. You can’t do looping, for example. Why? Because ISR’s don’t yield so the loop has to run to completion which takes a long time so they simply aren’t allowed in an ISR. Asynchronous instructions aren’t allowed in an SIR. Why – because Asynchronous instructions require multiple scans to run and you never know when or if an ISR is going to run. So asynchronous instructions don’t make any sense in an ISR. You don’t need to remember all of this. Do-more designer will tell you if you try to use an instruction that doesn’t work in an ISR. Well, that’s enough for a quick intro to Interrupts in the Do-more BRX PLC. In the remaining videos in this series will take a close look at exactly how to use the OTHER kinds of interrupts and then cover loose ends like configuring interrupts while the PLC is running. And if you need any help with the BRX PLC, please contact AutomationDirect’s free award winning tech support during regular business hours. The will be happy to help. And don’t forget the forums. There are lots of experienced automation professionals there that love to share their years of experience. Just don’t post any questions directed at AutomationDirect’s support team there, they don’t monitor the forums on a regular basis.



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more Designer PLC Interrupts Part 1: Quick Start from AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info