How a timer delay will be given from pg2 graphics for timing applications
Voted best answer
Import the PG2 examples (PPA\examples\loaddemo.bat) and learn how the _now variable can be used.
Answers
The "Time Delay" parameter for a timer - or any other time related function - is datatype "time".
To write a value of type "time" from a PG2 graphic to a Variable of type "Time" in the PLC, use a display element or graphic primitive that supports a datatype setting of time. The graphic sub elements in PG2 are capable of this.
Time duration is typically expressed in milliseconds. ie. if you use a graphic primitive incorrectly set to type "integer" then you will see the number of milliseconds.
** Do not perform control functions inside a Graphic Display ** - Graphics are for displaying data. Timer logic lives in the PLC.
To write a value of type "time" from a PG2 graphic to a Variable of type "Time" in the PLC, use a display element or graphic primitive that supports a datatype setting of time. The graphic sub elements in PG2 are capable of this.
Time duration is typically expressed in milliseconds. ie. if you use a graphic primitive incorrectly set to type "integer" then you will see the number of milliseconds.
** Do not perform control functions inside a Graphic Display ** - Graphics are for displaying data. Timer logic lives in the PLC.
Add new comment