User`s manual

405-00026-00iNspect Express User’s Manual
86 Rev 1600; 12 July 2010
Scripting
a. Click on the “Add/Del” button under “Scripting” on the Setup Communications panel.
Both the Control and Navigation panel and the Status and Configuration panel change.
b. Select a Function and begin defining your assignment equations.
The iNspect script language provides a flexible scripting editor, for extending the functionality of
iNspect. You can define variables, expressions or equations. These can be calculations based
upon measured results, or these can be variables read from or written to a PLC or other external
devices.
Click on a variable name, then drag to a field
in the Assignment Equation. Or, click in a
field then double-click on a variable name.
Your IF condition appears in the first field
Click to clear the IF condition.
Click Evaluate to display the current value of the
equation or assignment. 1 = TRUE, 0=FALSE.
Click to create a new variable name in the
A deleted variable takes a zero value
Click to add the equation to the Configuration panel.
Your THEN equation appears in the next 2 fields.
Click to clear the right side of the equation.
Select a predefined Function to contain your
if referenced in an equation.
equation. Functions determine when equations
are executed. Click New to create one of the
left field of the assignment statement.
other pre-defined Functions.
Create/Edit Equations
You can also right-click in the assignment equation fields to get a pop-up menu for inserting vari-
ables, etc.