User`s manual

iNspect Express User’s Manual405-00026-00
119Rev 1600; 12 July 2010
If () Global.GPO(1) = (MS1.Result != 1)
Set GPO(1) to logic 1 if MS1 match does not pass; set GPO(1) to logic 0 if MS1 match passes.
“If ()” is the first of 3 fields in the statement. It gets dropped off in the Manage Equation Execu-
tion Order panel. , and the statement becomes:
Global.GPO(1) = (MS1.Result !=1)
MS1.Result is the Pass/Recycle/Fail result of the Match tool. MS1 is the measured value of the
match. You can use the measured value in statements, in place of the result of a measurement.
If (MS1 < 90) Global.GPO(1) = pulse(1,5,50)
Output a 50 ms active high pulse on GPO(1) (5 ms delay) if the MS1 match score is less than 90.
If (L1 < 400) Global.GPO(1) = pulse(1,5,50)
If distance measurement L1 is less than 400, output a 50 ms pulse on GPO1 (5 ms delay).
You can substitute a PLC register or a TCP/IP stream (destination) for Global.GPO(1).
Delayed Event Function
In one of the examples the output was set to a logic high. You can use the Delayed Event Func-
tion, to clear the outputs you set high in the Post Process Function.
Use the “New” button (Create Equations panel) to create a Delayed Event function, with 60 ms
delay after Image Process.