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

Recent Orders

View and Manage | Request Cancellation
Loading Order History
Loading...Loading...

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Pay 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
  • Wire & Cable Management
  • Wire & Cable Termination
  • 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 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
  • Pyrometers Selector
  • 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

Stopping Motion with XPM_STP and XPM_EMG - LS Electric XGB PLC from AutomationDirect



To learn more: https://www.automationdirect.com/ls-electric-plc?utm_source=oyd1dQEkOVw&utm_medium=VideoTeamDescription

(VID-XG-0110)

LS XGB Help File Video: LP520

XG5000 V4.77 2024-06-28

To view the LS XGB Help File please visit: https://cdn.automationdirect.com/static/helpfiles/ls_plc/Content/Home.htm

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

Related AutomationDirect.com Part Numbers: N/A


Hide Transcript
View Transcript

Often during motion, we may want to quickly stop an axis. During testing this might be to prevent a crash. During troubleshooting, it might be to catch a fleeting sensor or noise signal. Whatever the reason, the XGB PLC can stop any motion move using the XPM_STP or XPM_EMG function blocks. The XPM_STP or “Decelerating Stop” function block allows the user to have a controlled stop based on a preset deceleration time. The XPM_EMG function block is an emergency stop that stops the motion command based on the “Decel time for emergency stop” parameter in the XG-PM software. This parameter defaults to 0ms. Note that in some situations, such as a high inertial load, this type of non-decelerated stop can cause damage to the motion mechanics. Please select which stop you will use and set your decel time for emergency stop” parameter carefully, to ensure no unnecessary mechanical damage results. Neither of these instructions are a replacement for a hardwired emergency stop. Please refer to your risk assessment to determine the safety needs for your application. For this example, we have the “XEM_Motion_Training” project open. This file is available to download from the XGB interactive guide at AutomationDirect.com. It is designed to allow us to simulate a 3-axis motion control system without having to have any physical hardware attached to the CPU. We are online with the PLC, in monitor mode, and the figurative axes in our project have all been made ready and homed. We can see the “Axes_Are_Ready” and “Axes_Are_Homed” bits are both high. We have also already configured our axes in the XG-PM software in a different help topic. Please refer to it and the product documentation for more information on axis configuration prior to attempting any motion. Let’s trigger a long direct start move, verify that motion is occurring using trend monitoring, and then trigger a decelerating stop and an emergency stop to see the difference in the system behavior for each. If we go to the project browser on the left side of the screen, maximize “Axis1_Motion_Program” and double-click on “Program,” it will open the program in the main programming window. Our decelerating stop command is on line 25 of the code. We see that it has a decel time of 100 milliseconds. Let’s change this to 5 seconds so that we will have time to see the deceleration in the trend. Because this value is a constant, not a variable, we must leave monitor mode to change it, write this to the PLC, and then re-enter monitor mode. Our emergency stop command is on line 35 of the code. To view the deceleration for this command we need to open the XG-PM software. We can do this from XG5000 by going to “Tools>Position Control.” Once XG-PM is open we can open “Xem_Motion_Training_XGPM” and go online with the motion controller. If we go to the axis parameters, we can see that the “Decel time for emergency stop” is set to 0 milliseconds. Let’s go back to XG5000 and set up our direct start. We can scroll down to line 90 to see our direct start function block. We cover the direct start function block in another help topic so please refer to it for further details. Let’s set our target position to 50000, and our speed to 1000. This will give us a longer move that we can interrupt with the decelerating stop and emergency stop commands. Let’s set up our monitoring for this move as well. We go to “Monitor>Trend Monitoring,” right-click on the screen and uncheck “View Bit Graph” and “Display” XY Graph, and then right-click and select “Trend Setting” to add our desired variable. In this case we will add the system flag variable “_POS_1_CurSpeed” to the trend graph. This will allow us to see the speed of the axis and how it relates to these two stopping functions. Since we are in monitor mode, the trend is already running. Let’s trigger our direct start, and look back at the trend. We see that the axis accelerates up to 1000 and then remains at constant speed. Let’s go to line 25 of the code and trigger our decelerating stop. If we look back at the trend monitoring we see the speed curve drops back to 0 over a 5 second interval as expected. Perfect. We can do the same thing for our emergency stop command. Let’s go to line 90 of the code, trigger our direct start again, go back to our monitor and verify it is moving. Again, we see the speed is at a constant 1000. We can now go to line 35 of the code and trigger our emergency stop. If we go back to trend monitoring, we see that the axis has stopped. Let’s go out of monitor mode to stop the trend monitoring and then go backwards on the trend. We see a nice hard stop when we triggered the emergency stop. Because the trend tool trends in 200 millisecond intervals, it appears to be a sharp angle downwards. In actuality, with our motion system at 0ms emergency deceleration, we would have seen the axis jerk to a stop immediately. Let’s also take a look at the axis view in the XG-PM software. If we go into monitor mode, we see that the axis is faulted, and the message window tells us that an emergency stop was executed. Perfect! We stopped very quickly and will not be able to restart unless we execute an axis reset. This is the perfect behavior for the emergency stop in our example system. Again, please use this instruction very carefully. Extreme deceleration may cause permanent damage to a mechanical system. You will need to evaluate the motion, loads, and inertia in your system before using this instruction or configuring the “Decel time for emergency stop” parameter. As we see here, it is easy to stop motion with the XGB PLC. We can use the decelerating stop for normal motion profiles or execute a much faster emergency stop that will also fault our axis preventing immediate restart. Regardless of what our application requires, one of these two stop function blocks can do the job.



No data returned!
An error has occurred! Please contact support
Videos Home > Stopping Motion with XPM_STP and XPM_EMG - LS Electric XGB PLC 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