Generate a pulse to digital output with push button
Please with instructions.
Voted best answer
Beside the options allready described by Rob and Harsha you could use the pushbutten and add a "Property Writer" to this Push Button.
In attached screenshot you can see, that the Property Writer writes "true" to the Variable in the controller and after WriteDelay (in ms) false to the same Variable
If you prefer to do it in the controller, just don't use the Property Writer but the standard Push button together with the timer, as Rob has described
With a push button directly ... It isnt. You need to use the timer functions in a PLC.
- Write Start Command to the PLC using a push button
- Start Timer in the PLC - Usually a TOff function is what you use.
- Clear Pushbutton Command
- Write timer output to Digital output.
The push buttons in your HMI have no timer functionality. They are simply "write once" operations.
It's possible by creating pulse timer(Tp) so what you have do is:
1.Make your custom block type as push button & right click & make "instantiate as aspect object"
2.Create a pulse timer inside your custom block with input,output & period time parameters.
3.Goto obect type str-control system-ac800m connect-libraries-custom block.
4.Right click on the custom block(push button) add new aspect as faceplate PG2 then
goto config view & put the no of indicators per row(3) & indicators rows(1), button per rows (3) which includes apply button,button rows(1) adjust width & height of the faceplate & make it common in all modes of faceplate(reduced,faceplate,extended) & select your defualt faceplate mode.
5.goto indicators tab define indicators as you required & define the expression like iif condition,true,false.
6.create your buttons as you required by defining the property value,expression
Now you refer this faceplate in your logic by adding this library to your application
You can more detail in Help for how to create a indicators & buttons
this creates your push button