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
  • AC Motors
  • 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 Desinger PLC Interrupts Part 3 Register Matching from AutomationDirect


Related Products

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
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


To learn more: https://www.automationdirect.com/brx?utm_source=8fn8EtBLbl4&utm_medium=VideoTeamDescription

(VID-BRX-0005)

The BRX PLC can generate interrupts on high speed timer and counter values and motion output registers. Watch this tutorial t learn how.
**Software Version used in this video: Do-more Designer 2.0.0

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

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


Hide Transcript
View Transcript

PART III Register Match Interrupts The Do-more BRX PLC has a register match option for generating interrupts. What does that mean? Suppose you setup input X0 to be a high speed counter of some kind and you want to know when the count reaches some specific number. And you don’t want to wait for the next scan to come around to find out about it when all the regular inputs get updated because it might be too late. Instead, you want to know about it right away so you can react accordingly. Well, that smells like an interrupt thing – right? And that’s what this register matching interrupt option is. You can trigger an interrupt on one of three dedicated counter/timer accumulators or one of three output pulse counters. Let’s do a couple examples and see how this works.. Assume the counter has already been setup correctly – that’s a subject for another video. And we want to react when that counter reaches 1234. Create a new ISR and we want it to execute that ISR when High Speed counter timer 1 is equal to 1234. Hit ok and we see an equation that says, execute the ISR when this timer counter is equal to this number. Perfect. In the ISR we’ll set output Y3 with an immediate set command. So we should see output Y3 turn on when the input accumulator equals 1234. Let’s do the exact same thing with function 2 but when the accumulator equals 1500 we’ll turn Y3 off. So we’re gonna need another ISR which we’ll use to turn Y3 Off. And when that same accumulator is equal to 1500 we want to execute that ISR routine. And in that ISR we’ll use an immediate Reset instruction to turn Y3 off so it will turn off immediately and not wait for the bottom of the scan like all the other outputs. Accept all of that. Write it out. And make sure the PLC is back in run mode. I've connected one output from an encoder to input X3 on the PLC. Here’s a Dataview that shows the input counter’s accumulator and its reset control. The output we are controlling and the run counter for both ISRs so we can see how many times they have been triggered. I’ll hit the reset to make sure the accumulator is cleared before we start. If I rotate the encoder up to the 1234 we specified, sure enough output Y3 turns on and we can see that the ISR ran one time. If I keep rotating to 1500, Y3 turns off and it’s ISR ran one time. Perfect. And again, Y3 turned on and off immediately when the input changed – it didn’t wait for bottom of scan. Which means you now have an accurate way to react to high speed input counters and timers without having to wait until the top of the scan. This is really great for monitoring and reacting to high speed inputs. You can do the same thing with high speed outputs. Suppose you’ve setup a motion axis to control some piece of machinery and you want to know exactly when that axis reaches a certain position. Well, it’s the exact same thing we just did, except you tell the interrupt service routine to monitor the output register instead of the input accumulator. A word of caution about this: If you think you need to react to a high speed output using interrupts, hold that thought for a second and go take a look at the table driven output commands. They do the same thing BUT they run in the background in their own dedicated hardware so they don’t have any impact on the scan time and you can specify a whole sequence or table of events to watch for and to react to. This says when the output counter get to this value set the output and when it gets to this value clear the output. Etc. You can even see a plot of the out here. Very cool. There are separate videos that show you how to do all of that. The key thing to understand is the interrupt register matching method we did in this video interrupts the scan which could affect your performance and it only responds to a single event. We had to create three different ISRs tjust to turn Y3 onand back off again, didn’t we? The good news with the ISR is you can do whatever you want– set an internal bit, modify a register, record the date, etc. The Preset Table and Table Driven output instructions only set the one output – you can’t do things like record the date and time, manipulate other registers, and stuff like that. So just know that you have a choice when you need to respond quickly to high speed outputs. And when you DO need interrupts, as you can see, Do-more’s interrupt system is extremely capable and will usually be more than you could ever need. One side note: It’s tempting to use the immediate instructions everywhere – I mean, why wait for bottom of scan for anything – right? Well, you could do that, but it’s really not a good idea. PLCs are designed to read inputs at the start of scan, do the ladder logic, and then update all the outputs at the end of scan. Using immediate output instructions outside of an interrupt service routine is a good way to get things confused and to make your code really hard to debug. So avoid that temptation. If you need any help with the Do-more PLC, please contact AutomationDirect’s free award winning support team during regular business hours. They will be happy to help. And don’t forget the forums. There are lots of automation professionals there that love to share their years of experience. Just don’t post any questions directed at automation directs support team there, they don’t monitor the forums on a regular basis. Spend Less, Do More with AutomationDirect



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more Desinger PLC Interrupts Part 3 Register Matching 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
„