How to Set up Siemens HMI 6AV2 123-2DB03-0AX0 Function Buttons as Toggle Buttons

Question:

I am currently working on a demo project, utilizing a Siemens HMI model 6AV2 123-2DB03-0AX0 to gain a better understanding of its capabilities. My progress so far includes successfully configuring the function buttons (F1, F2, F3, F4) for screen navigation. Now, I am looking to utilize these keys as toggle buttons to control various actions, such as turning a lamp on and off. The objective is to have a key, for instance F1, toggle the lamp on and off with each press. Any insights or practical examples on how to set up the function keys as toggle buttons for this purpose would be highly appreciated. Thank you in advance for your assistance!

Top Replies

I haven't worked with Siemens HMI's in a while, but on most recent models, you can easily select various actions from a dropdown list, such as changing screens or setting analog values. By assigning a specific address like M10.0, you can toggle functions like set/reset or momentary bits. If needed, you may need to create a toggle function in the PLC code. The operation may vary depending on the model, but the functionality remains similar.

Hey there! You're making good progress so far. To use your function keys as toggle buttons, you can create a binary tag (BOOL) for each action you want to control. When F1 is pushed, for instance, you can use a bit logic operation to invert the state of the binary tag associated with it. To do this, head over to the "Events" tab of your F1 button and create a new action under "Press." Set the action type to "Bit Logic Operation" and choose "Invert" as the operation. This should allow you to toggle a lamp on and off with each press. I hope this helps, keep going with your demo project!

That sounds like a great project! To set up the F1 key as a toggle button for your lamp, you can use the "Boolean" data type in your HMI configuration. First, create a memory tag for the lamp state (e.g., LampState) that starts as '0' (off). Then, in the button properties for F1, set the action to "Toggle" and link it to your LampState tag. Each time you press F1, it will switch the state between '0' and '1', and you can use that tag to control the output for your lamp. Make sure to integrate that tag with your PLC program so it reflects the changes accordingly. Good luck, and I'm excited to see how it turns out!

That sounds like a great project! To set up the function keys as toggle buttons, you can use a boolean variable in your HMI’s program. Create a variable linked to the lamp's state (e.g., 'lampState'), and initialize it to 'false'. Then, program the F1 button to toggle this variable—each time it's pressed, change its state from true to false or vice versa, and use that variable to control the lamp’s output. I’d recommend checking the HMI's manual for how to wire this logic in your specific application context. Happy coding!

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 Siemens HMI model 6AV2 123-2DB03-0AX0 function buttons as toggle buttons for controlling actions like turning a lamp on and off?

Answer: To set up the function buttons as toggle buttons on the Siemens HMI, you can utilize the button's state change functionality. By configuring the function button to toggle a specific tag (e.g., to turn the lamp on and off), you can achieve the desired behavior. You can map the function button press event to toggle the state of the lamp tag in the PLC program, ensuring it switches on and off with each button press.

FAQ: 2. Can you provide a step-by-step guide or practical examples on how to configure the function keys as toggle buttons on the Siemens HMI 6AV2 123-2DB03-0AX0?

Answer: Here is a general guide on configuring function buttons as toggle buttons on Siemens HMI: - In the HMI project, create a tag for the lamp status (e.g., Lamp_On). - Assign this tag to the lamp object on the screen. - Configure the function button to toggle the Lamp_On tag. When the function button is pressed, toggle the value of the Lamp_On tag in the PLC program. - Update the screen elements to reflect the status of the Lamp_On tag (e.g., change color or text). - Test the functionality by pressing the function button

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