6-4
Chapter 6: Creating Automated Scripts
The only means for branching execution is with the Vxx parameter in the commands
that pass control off to another portion of the script. The variable is usually generated
with a MATH: function. The MATH: function is a simple assignment function with the
following format:
MATH:Vxx=VxyOpVxz
The Op value can be any one of the symbols shown in Table 6-1.
Table 6-1. Op Values
Symbol
Meaning
+
plus
-
minus
*
multiply
=
equals
/
divide
!
not
|
or
<
less than
>
greater than
SIN
sine
COS
cosine
SQRT
squareroot
&
and
The conditional operators (!, |,&,<,>,= the value assigned to Vxx) is the result of the
conditional (0 or 1), corresponding to whether the VxyOpVxz is true or false. Once this
is true, the Vxx can be used as a parameter to one of the control statements above to
make decisions. As an example, if V01 = 6, V02 = 12, then:
MATH:V10=V02/V01
V10 = 2 ( 12/6 = 2)
MATH:V10=V01=V02
V10 = 0 (12 is NOT equal to 6)
MATH: V10=V01<V02
V10 = 1 (6 is LESS THAN 12)
The MATH: command, when paired with a JUMP: statement, allows for liberal
branching within scripts.
Содержание KMS-310
Страница 10: ...Contents viii...
Страница 11: ...About This Manual Intended Audience Manual Organization Conventions Contacting Technical Support 1...
Страница 33: ...System Overview Product Overview Subsystem Overview Functional Overview 3...
Страница 51: ...User Interface Overview Software Controls Software Organization 4...
Страница 53: ...KMS 310 400 Supervisor s Manual 4 3 Figure 4 1 Key Software Elements 1 2 3 4 5 6 7 1 2 3 4 5 6 7...
Страница 119: ...Creating Automated Scripts Overview Script Creation Script Locator Script Commands 6...
Страница 219: ...Operation Overview Access and Exit the Supervisor s Menu Set up a Program Measure Manage Measurement Data 7...
Страница 266: ...7 48 Chapter 7 Operation...
Страница 267: ...Maintenance Overview Lamp Replacement and Alignment Stage Maintenance Electronics Cabinet Maintenance System Cleaning 8...
Страница 292: ...8 26 Chapter 8 Maintenance...
Страница 293: ...Error Messages System Error Messages Script Error Messages 9...
Страница 297: ...Glossary...
Страница 304: ...I 4 Index...