How to Set Up Laptop Power Loss Alert on PLC with Rexroth Weld Controller

Question:

Hello everyone, I have a work-related task that requires finding a solution. The scenario is as follows: I need to ensure that data from a laptop connected to a weld controller (Rexroth) is consistently collected and stored on an external hard drive. However, if the laptop unexpectedly shuts down, the data is not saved. My goal is to set up an alert on the PLC (S7-300) to notify if the laptop loses power. While I am aware of using a heartbeat for this purpose, I am unsure how to create one from the laptop and transmit it to the PLC. One possible solution is configuring an OPC server on the laptop (kepware being the preferred option), but this could be seen as excessive for a seemingly straightforward issue. Is there a simpler method to achieve this task? Has anyone encountered a similar situation? Any insights or suggestions would be greatly appreciated. Thank you!

Top Replies

What types of protocols can be used to establish a connection between a laptop and a PLC system? One common example is the method by which the laptop is able to retrieve welding data from the PLC.

Have you considered utilizing a USB watchdog card with an integrated relay for monitoring processes on your PC? I have previously used PCI watchdog cards for similar tasks, where the relay would be disengaged if a process failed. By connecting the relay to a standard digital input in your Programmable Logic Controller (PLC), you can ensure seamless monitoring and control.

When it comes to data transfer between a PLC and a laptop, the question arises: does the PLC automatically send fresh data to the laptop or does the laptop request it? If it's the latter, what prompts the laptop to make the request? In the event that the PLC starts the data transfer, it's important to include an acknowledgment from the laptop. Failure to acknowledge the data sent by the PLC will result in a fault. On the other hand, if the laptop controls the communication, it should periodically update a tag in the PLC. If the PLC doesn't detect any changes within a reasonable timeframe, it will trigger a fault.

Consider utilizing a USB watchdog card equipped with a relay for monitoring processes on your PC. By connecting the relay to a digital input on your PLC, you can automatically shut down equipment in case of a process failure. This setup is especially useful for critical applications like medical devices, where safety measures need to be in place.

drbitboy inquired about the various protocols for connecting a laptop to a PLC and accessing data such as weld graphs. Could AdvancedHMI be a potential solution for this task?

While setting up an OPC server could provide a solution, it might indeed be excessive for this issue. For simplicity, you could consider using a watchdog timer in your PLC. You could write a small application on your laptop to periodically reset this timer. Say, every 60 seconds. When the laptop shuts off, the resetting stops and once the timer runs out, a shutdown alert is activated on the PLC. As for data collection, ensure your program writes data directly to the external hard drive not just in cache, so even if the laptop crashes, you'll minimize data loss. This method carries the advantage of being straightforward and not requiring third party software.

You're right in considering that an OPC server might be overkill for this issue. I would suggest an alternative simple solution: A script running on the laptop that pings a dedicated area of memory within the PLC at a regular interval. This serves as your 'heartbeat'. If the laptop shuts down, the pings stop. Set up the PLC to raise an alert if there hasn't been a ping within a certain timeframe. Python would be my language of choice for this type of task, given its efficiency and reliability in handling such scripts. You could use the python-snap7 library to interact with the S7-300. Of course, your solution will depend on your coding and network infrastructure comfort. This simple method would rely on the network connection between the PLC and laptop being reliable. Worth considering.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. How can I set up a laptop power loss alert on a PLC with a Rexroth weld controller?

Answer: - One possible solution is to create a heartbeat signal from the laptop and transmit it to the PLC to notify if the laptop loses power. Another option is configuring an OPC server on the laptop (such as Kepware) to achieve this alert.

FAQ: 2. Is using an OPC server like Kepware the only way to set up a power loss alert on the PLC?

Answer: - While using an OPC server is a common method, there may be simpler alternatives depending on the specific requirements of your setup. Exploring other communication methods or tools could provide a more straightforward solution.

FAQ: 3. How can I ensure that data from a laptop connected to a Rexroth weld controller is consistently saved on an external hard drive?

Answer: - Implementing a system that triggers an alert or backup mechanism in case of unexpected laptop shutdowns can help ensure data is always saved. Setting up automated backup processes or redundant storage options can also be beneficial.

FAQ: 4. Has anyone encountered a similar situation with setting up a laptop power loss alert on a PLC before?

Answer: - Sharing experiences and insights from others who have faced similar challenges can provide valuable guidance and potential solutions for your specific scenario. Engaging with a community or forum focused on industrial automation and control systems may offer helpful advice.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’