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
Filter Results Clear All
You've selected:
> Programmable Controllers > BRX PLCs (Stackable Micro Brick)
  •   Shop  
  •   Overview  
  •   In Depth  
BRX Home BRX - Your Automation Foundation Configure a BRX
 
Features
10 ways it's better with BRX PLCs! Communication Options IIoT Edge Device - Your low cost link to Industry 4.0Integrated Motion on Multiple Levels Not Your Everyday Analog Security Simple Data Logging/Advanced Data Control Fortified with American Pride Easy Migration Motion Control/Positioning made easy! BRX IIoT in Motion
Free Software
What's New with Do-more Designer Dashboard - Easy Navigation Simulator IIoT WebServer Connectivity Motion on Multiple Levels Simple Data Logging Data Delivered Easy PID Video Help Auto-Discover I/O Powerful Math Trouble free Troubleshooting DirectLOGIC Migration Free Online Training Download the Free Software
Hardware
Hardware Overview M Series CPUs (no I/O) 10-point Series CPUs 18-point Series CPUs 36-point Series CPUs Ethernet Remote I/O Expansion Modules Pluggable Option Modules Connection Options Spare Parts Go to ZIPLink Selector Tool
Instruction Set
Videos


BRX Series PLCs (Stackable Micro Brick) Videos

View Do-more Designer Video


Detailed Product
Overview



To learn more: https://www.automationdirect.com/do-more?utm_source=3grLY22AqRw&utm_medium=VideoTeamDescription - (VID-DM-0045)

The Do-more Designer Programs and Tasks Part III provides a software demo showing how to use programs and tasks with yielding.
**Software Version used in this video: Do-more Designer 2.0.0

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

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


Hide Transcript
View Transcript
Here’s a Main program with just a single

rung of ladder code. Let’s create a task, Call it Shift Report,

and let’s tell it to NEVER yield. In that Task, we’ll create a For Loop that

increments D0 from 1 to whatever is in D100. Normally we would log data or something like

that inside this loop, but that’s a subject for a different video. So for our example we’ll just use a math

instruction with some trig functions just to kill time. Back in Main, we’ll enable the task and

make it edge triggered so it only runs once, which is usually what you would do, because

normally you would trigger an end of shift report on some event or during a certain time

each day. But for this demo, we’ll add a control bit

so we can force it whenever we want to. Great, so we have a main scan loop that has

one rung of ladder code and one rung that enables our task when C0 is set. Accept that. Write it out to the PLC. Put the PLC in run mode. Let’s create a dataview with our control

bit, the loop counter and the value the loop counts to. Let’s make that 250 loop iterations. Let’s also monitor the actual scan time…

the average scan time… and the max scan time. These numbers are all in microseconds. Looks like it takes on average this many microseconds

to execute the program without the task enabled. If we enable the task - holy cow – during

the one scan that ran the task it maxed our scan time out at 40 times the average scan

time! Why is that? Well, because we told it to NEVER yield. On every scan we’re executing this entire

loop. I we increase the number of loops, the scan

time goes up. Again, we are running through the entire loop

on each scan – that is, we are never yielding. Let’s re-configure the task to Always Yield,

and write that back out to the PLC … Let’s clear that max scan time number. With the Task disabled we get this scan time,

and when we enable the task it only bumps up the scan time just a little bit. Why? Because since we setup the Task to Always

Yield, so the PLC does one pass through the loop and exits the task. On the next scan it does another pass through

the loop. Next Scan, another pass. Etc. So we are only executing one iteration of

the loop per scan. What if we change the loop count to 1000? Look, no change in the max scan time! Why? Well, since we told the task to only do one

pass of the loop on each scan it doesn’t matter how many passes through the loop we

need! Let’s take a look at the last Yielding option. Let’s tell the task it can take up to 1000

microseconds but then it has to yield. Write it out to the PLC. With the task enabled; our scan time maxes

out at a little over 1000 microseconds. Exactly what we expect. We call this time we allotted to the task

a time slice. And look at this. You can change the time slice while the task

or program is running. It’s just one of the structure members of

the program or the task. If I change the time slice, and re-execute

the task, then sure enough, the scan time changes accordingly. Can you use Yielding with a Program? Sure – look it’s the exact same thing. Just like a Task, whenever a Program hits

a Yielding instruction, it reacts however you setup Yielding for that Program. So, once again Do-more gives YOU total control

over how your PLC operates. That’s so cool. One Caution when using NEVER Yield: There

is a Watchdog in the PLC. If your code takes too long to execute, then

it’s going to assume something is wrong and it’s going to reset your PLC. Or, it may shutdown depending on how you have

your watchdog setup. We’ll cover the Watchdog in another video. Just be careful your code doesn’t exceed

that watchdog time limit when using never yield or when setting up time slices. That ought to give you a pretty good feel

for how all of this fits together. The main things to remember are: Tasks are great for executing things that

only require a one pass through the code – even it takes multiple scans. Programs can do everything tasks can do but

they can also do anything that might require multiple passes through the code where you

have to keep coming back to check on something like Stage or Asynchronous Communications. And finally, Yielding is an awesome way to

reduce your scan time. If you need any help with Do-more Tasks and

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

AutomationDirect’s support team there, they don’t monitor the forums on a regular basis.


Playlist Not Found Could not find playlist PLPdypWXY_ROqT5KTqjfyhR7t0fD16Nya8

Playlist Not Found Could not find playlist PLPdypWXY_ROqvbaYVBWc3kH-pP01fI4-E

Playlist Not Found Could not find playlist PLPdypWXY_ROqJO86ikigKmjnSkbguBKBw

Playlist Not Found Could not find playlist PLPdypWXY_ROoqTZihvX8c8UUj5GzVCuKH

Playlist Not Found Could not find playlist PLPdypWXY_ROr0ZfCV-fAgau5yDemA19CV

Playlist Not Found Could not find playlist PLPdypWXY_ROqWWy8OnWGt3YD4Dald6uf-

BRX Do-more PLCs - Hardware
  • Video
    How To Sense Temperature with a Do-more PLC from AutomationDirect
  • Video
    How To Detect Objects with an AutomationDirect Do-more PLC
  • Video
    AC Motor On/Off with Do-more PLC Part 1 from AutomationDirect
  • Video
    AC Motor On/Off with Do-more PLC Part 2 from AutomationDirect
  • Video
    How to Sense Distance with an AutomationDirect Do-more PLC

Playlist Not Found Could not find playlist PLPdypWXY_ROrRJ5YuFYxs3mSXr9250AN7

Playlist Not Found Could not find playlist PLPdypWXY_ROrtSkGYNq8Xc52QWTCWf2Ci

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
„