LatchState Function
Returns the latch state of robot position using the R-I/O.
Syntax
LatchState
Return Values
Returns True when the robot position has been latched, False when the latch is not finished.
When confirmed the latch completion, acquires the latched position information by LatchPos Function.
When specified continuous latch times with SetLatch, returns “True” if specified latch times all complete.
See Also
LatchEnable, LatchPos Function, SetLatch, Wait
LatchState Function Example
Function main
SetLatch 24, SETLATCH_TRIGGERMODE_LEADINGEDGE
LatchEnable On 'Enable the latch function
Go P1
Wait LatchState = True 'Wait a trigger
Print LatchPos Display the latched position
LatchEnable Off ' Disable the latch function
Fend