
Indexer-Programmer-Manual.pdf REV 1.3
Example:
V0=0
V1=0
EVENT InEvent INPUT 1 RISE
V0 = V0+1 ;count
ENDEVENT
;
EVENT period TIME 1000 ;1000 ms = 1Sec
V3=V0-V1 ;new count - old count = number of pulses per
;second
V0=V1 ;save as old count
;-------------------------------------------------------------------------------------------------------------------------
EVENT InEvent ON
EVENT period ON
{program statements}
END
ENDEVENT End of Event handler Statement
Purpose Indicates end of the event handler
Syntax ENDEVENT
Remarks
See Also EVENT, EVENT ON, EVENT OFF
Example:
EVENT InputRise INPUT RISE
V0=V+1
ENDEVENT
55
Comentarios a estos manuales