BillRobinson
Member
What I want to do is this, have a momentary push button whose output value depends on another tag. For example if you press this button when pump A is on it will output '4' to the PLC and if you press this button when pump B is running it will output a '2' to the PLC. Once you release the button it writes a '0' to the PLC (the momentary part).
FactoryTalk View has it's own momentary buttons, however, the problem I have with them is that the "Value" is set to a "hard" number; you can't say be one value in this instance and another number for that instance.
I went down the macro route but I found out that all of expressions in a macro are done at the same time; so you can't write to the same value twice in the same macro. Because I can't write to the same value twice I can't reset the output value to zero (the momentary thing).
Any help? I want to keep all of the logic in the panelview if possible.
FactoryTalk View has it's own momentary buttons, however, the problem I have with them is that the "Value" is set to a "hard" number; you can't say be one value in this instance and another number for that instance.
I went down the macro route but I found out that all of expressions in a macro are done at the same time; so you can't write to the same value twice in the same macro. Because I can't write to the same value twice I can't reset the output value to zero (the momentary thing).
Any help? I want to keep all of the logic in the panelview if possible.