Greetings, I am a beginner in using the EBpro program and I am looking for a solution to change the background color of a numeric object based on data from a plc. Specifically, I need the background to turn yellow when the data hits a High or Low limit, and red when it hits a HHigh or LLow limit. The device I am working with is the MT8150XE panel, and it seems that the Object Condition menu is not available. I am attempting to create a macro to achieve this. Currently, I am able to activate a BitLamp with two states, but I am struggling to make it stop blinking. I am wondering if there is a way to reset the state of an object or shape via a macro. Alternatively, I have also considered placing shapes or objects behind the numeric object and addressing them accordingly as a workaround. However, I am exploring other options to accomplish this task.
Experience the innovative 'Word Lamp' and customize it to fit your desired number of states.
Hello, I need help setting up a feature and I'm feeling a bit confused. I have an idea to use two rectangles and assign register status/values to both. When I call the address with a macro like LB 0, "SetData(On, "Local HMI", LB, 0, 1)", how can I make one rectangle disappear without hiding the other one? Also, can you explain how SETBITOFF works? I've tried reading the manuals but I'm still unsure. I believe SETBITOFF could be the solution as both rectangles use registers. If I can turn off the bit, they should disappear until the bit is turned on again. Thank you for your assistance.
Hey everyone, I have come up with a solution using two boolean variables - On and Off. Initially, I retrieve data from a numeric object and convert it to BCD format called "LW_BCD" using the GetData function. Based on the input data, I control the visibility of ellipse objects by assigning them the Register status/value. By setting On to TRUE and Off to FALSE, I am able to turn on and off the ellipse objects respectively using the SetData function. It is crucial to ensure the correct device data format is set in the numeric object's properties, such as 32-bit Float in my case. Below is the test macro I have created, and I would greatly appreciate any suggestions or feedback.
Hi there! For your EBpro issue, working with macros could certainly let you accomplish your task, but it does involve quite a complex procedure. However, your idea of placing shapes or objects behind the numeric object and addressing them is a clever workaround. If a different color background is not available in the Object Condition menu, I'd say go for it! Don't forget you can also use Layering for better visualization. The BitLamp stopping its blinking could be achieved by defining its conditions in the macro settings properly. Make sure you're using the correct 'Blinking Interval' and check if you're correctly deactivating it afterwards. Surely with some trial and error, you'll be able to get this right. Keep experimenting!
Hi there! It sounds like you're making good headway on your project, great job! Have you tried adjusting the BitLamp blink configuration under the "Properties" tab? With this setting, you should be able to change the blink duration, or disable it completely. Alternatively, you can use the 'SetBit Lamp' macro command to control the blink status. If these don't work, your idea of placing shapes or objects behind the numeric object is actually a pretty creative workaround. Stay persistent and remember, in programming, there's often more than one solution to a problem. Good luck!
Hey! It sounds like you're on the right track with using macros and considering shapes as a workaround. For your specific issue with the BitLamp blinking, have you tried using a timer or a conditional check within your macro to reset its state after a certain duration or condition is met? As for changing the colors, while the Object Condition menu is a common approach, creating overlapping shapes behind the numeric object is a clever alternative. You could dynamically change the visibility of these shapes to indicate different states based on your PLC data. I think a combination of macros for controlling the BitLamp and cleverly placed shapes might just do the trick for you! Good luck, and let us know how it goes!
Hey there! It sounds like you're diving into some interesting stuff with the EBpro program and the MT8150XE panel. If the Object Condition menu isn't available, using a macro to change the background color is a solid approach. One tip is to try creating a variable that toggles between the colors based on your PLC input, then use that variable in your macro to control the visibility of specific shapes or layers behind the numeric object as you've suggested. Also, if you're having trouble with the BitLamp, you might want to ensure the macro conditions reset that state based on your PLC data—maybe using a time delay or a specific condition that clears it when it goes back to a normal state. Good luck, and I hope you find a solution that works for you!
Hey there! It sounds like you're on the right track with trying to use macros to control the color changes based on your PLC data. If the Object Condition menu is unavailable, you might want to look into using the "Set Color" command within your macro to change the background color directly—make sure to use conditions to check the value against your limits. For stopping the BitLamp from blinking, you can try resetting the state only when the condition that triggers the lamp is no longer met, or you can set a timer in the macro to control how long it stays active. If you're considering using shapes behind the numeric object, definitely go for it—they can be a great visual cue! Just ensure they are correctly layered and addressed based on your conditions. Keep experimenting, and you'll find a solution that works for you!
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: Answer: To change the background color of a numeric object based on PLC data using a macro in EBpro, you can create a macro that checks the data and sets the color accordingly. You may need to use conditional statements in the macro to determine when to change the background color.
Answer: Answer: Yes, it is possible to reset the state of an object or shape via a macro in EBpro. You can create a macro that specifically handles the resetting of the state of an object or shape based on certain conditions or triggers.
Answer: Answer: Yes, you can consider placing shapes or objects behind the numeric object and addressing them accordingly to change the background color based on PLC data in EBpro. This can serve as a workaround solution if you encounter limitations with directly changing the background color of the numeric object itself.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.