Monitoring Ethernet IP device disconnections using EasyBuilder counter macro

Question:

Hey everyone, I've been working on creating a counter macro in EasyBuilder for monitoring Ethernet IP device disconnections with a PLC. I'm looking to track each disconnection event throughout the day and calculate the total number of disconnects. Despite having a tag for disconnections in the PLC, I'm struggling to implement the macro due to issues with periodic execution. Any suggestions or ideas on how to tackle this issue? The HMI model is MT8051iP and the PLC model is CJ2M CPU33.

Top Replies

Consider utilizing PLC Control for more efficient automation instead of periodic execution. By monitoring the status of a bit in the PLC, you can trigger a macro to execute tasks in either direction, from OFF to ON, ON to OFF, or both. This method allows for more precise control and flexibility in your automation processes.

According to Yoast, consider utilizing PLC control instead of regularly scheduled execution. By utilizing a PLC bit's state, you can activate a macro for execution. The macro can be triggered in various directions - from OFF to ON, ON to OFF, or both ways. Thank you for the insight!

It sounds like you're on the right track and it's great that you're using the Ethernet IP disconnection tag from your PLC in your macro. For the issues with periodic execution, you might want to double-check your task scheduling in EasyBuilder. Make sure that your cycle time is consistent and that your macro is executed regularly, regardless of changes in other processes. Additionally, ensuring that your PLC and HMI are communicating properly can be crucial, so check your tags and addresses. If your problem still persists, you might want to look into using an Event Count instead of an Accumulator in your PLC logic to track each disconnection event. Good luck!

Sounds like a complex task you're undertaking! The first thing that comes to mind is you might want to consider maintaining the connection status in the PLC, making it the primary source for tracking disconnections rather than just the HMI. Implement an up-counter in your PLC ladder program that increments every time the connection is lost. This counter's value can then be mirrored to an HMI data display. This would allow you to track the total number of disconnects easily. In addition, it may ease some of the burden on the macro you're trying to implement, as you could simply access the counter value instead of performing your own calculations on the HMI. A periodic task in the PLC can also reset this counter every 24 hours if you only need daily counts. Hope this helps!

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 use EasyBuilder to create a counter macro for monitoring Ethernet IP device disconnections with a PLC?

Answer: To monitor Ethernet IP device disconnections with a PLC using EasyBuilder, you can create a counter macro to track each disconnection event and calculate the total number of disconnects. Ensure you have a tag in the PLC to store the disconnection count and set up the macro to increment the count whenever a disconnection event occurs.

FAQ: 2. What are some common issues encountered when implementing a counter macro for monitoring Ethernet IP device disconnections with a PLC in EasyBuilder?

Answer: One common issue when implementing a counter macro for monitoring Ethernet IP device disconnections in EasyBuilder is ensuring the macro executes periodically and accurately captures each disconnection event. If you are facing issues with periodic execution, consider checking the timing settings of the macro and adjusting them accordingly.

FAQ: 3. Any suggestions for tackling issues with periodic execution of a counter macro in EasyBuilder for monitoring Ethernet IP device disconnections?

Answer: If you are facing challenges with periodic execution of the counter macro in EasyBuilder for monitoring Ethernet IP device disconnections, consider reviewing the timing settings of the macro to ensure it runs at the desired intervals. Additionally, check for any conflicting tasks or interrupts that may affect the macro's execution.

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  â†’