Hello everyone, as a new member, I have a question regarding displaying two sets of control buttons. I am attempting to show group 1 (C11) when the "Link" button is pressed, and then switch to displaying group 2 (C21) when the "Link" button is unselected. I have found that using ST0 does not reset the group1 button after unselecting "Link". Should I use ST0 or ST1 at the beginning of my program for this functionality to work properly? Thank you for your help.
If you're unsure about the task, it seems like you require two buttons: one for linking and one for unlinking. The first button should be displayed when the link is false, while the second button should be displayed when the link is true. To achieve this, ensure that Button 1 is visible when the link bit is false, and Button 2 is visible when the link bit is true. Utilize the toggle function on the HMI to switch the link bit. You may also consider using the first scan bit to reset the link bit upon PLC start or power up.
ST1 is a constant presence in programming scenarios involving DirectSoft or Do-More, where specific conditions are required in the ladder editor before certain instructions can be executed. On the other hand, ST0 only functions during the initial scan following a power-up. Unlike the first scan bit in an Allen Bradley PLC, which is true only for a single scan upon returning to RUN mode, ST0's behavior resembles that of a BRX or Do-More code snippet. The Do-More software handles program tasks in a unique manner that may require further exploration. If placed in the Main, the program should run during every scan cycle. In relation to controlling HMI functions, bits can be latched and unlatched (SET, RST), necessitating adjustments to the conditional statements preceding these instructions and the addition of a new rung with bits set to the opposite state to accommodate the opposite condition.
ST1 is continuously active, requiring frequent resetting of C11 and C21. Whether or not this is desired is uncertain, as it does not seem to align with your intentions. When C40 is enabled, C11 is activated for one cycle. Conversely, when C40 is disabled, C21 is activated for one cycle. Given the context of HMI buttons, it is unlikely that C11 or C21 will be visible on the HMI display.
To clarify, press the select button to toggle, then utilize the N/O & N/C to control button visibility by activating or deactivating bits. I have demonstrated this concept by displaying buttons in both disabled and enabled states to illustrate functionality.
Parky suggested implementing a toggle function for the select button, utilizing the N/O & N/C to control button visibility. I have demonstrated how the buttons can be shown as either disabled or enabled to showcase this functionality. When the link or select button is pressed, the first set of start buttons should appear. Then, when the link or select button is released (NC), the second set with other start buttons should be displayed. I have conducted a similar test to yours, but encountered an issue where the first set of buttons did not disappear when I unlinked. I attempted to use the set/reset function for the link bit, only to discover that ST0 did not turn the link bit off. I then tried ST1 as an alternative, observing that other samples utilized ST0 and questioning if there was an error in my test. Thank you for your assistance in testing this.
Hello and welcome to the forum! It sounds like you're on the right track. Remember, ST0 and ST1 tend to function differently depending on your program setting. In your case, you should start with ST1 to initialize, as it will reset Group 1 (C11) buttons when the 'Link' button is unselected. Subsequently, use the ST0 to control the display of Group 2 (C21) buttons. Try this and see if it helps your functionality issue! Let us know how it goes.
Welcome to the forum! It sounds like you're dealing with a sequential functionality here. I would suggest using ST1 when the "Link" button is selected, to display the first group (C11). Then, instead of using ST0 to reset, consider using an alternative strategy such as applying ST1 again with the second group (C21) when the "Link" button is deselected. This way, it switches between the two groups instead of attempting to reset. Happy coding!
✅ 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: 1. How can I display different sets of control buttons in my program based on user input? - To display different sets of control buttons based on user input, you can use ST0 and ST1 instructions in your program. ST0 is used to show group 1 buttons, while ST1 is used to show group 2 buttons.
Answer: - If ST0 is not resetting the group 1 buttons after unselecting the "Link" button, you may need to ensure that the logic in your program correctly switches between showing group 1 and group 2 buttons based on the state of the "Link" button.
Answer: - To ensure proper functionality of displaying different control buttons, you can use ST0 or ST1 at the beginning of your program depending on which set of buttons you want to initially display. Make sure to implement the logic to switch between the sets based on user actions.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.