End If
Here, we check if the value of the variable
variable is assigned a new value "False".
Another example:
If(#sTesterName="MS005")
#iMaxLoad=300
Else
#iMaxLoad=150
End If
In this case, we check if the value of the variable
the variable
#iMaxLoad
This operator must always be followed by the closing command
Loops are control structures that allow a certain action to be performed multiple times depending
on specific conditions. In the scripting language, there is one loop with the following structure:
While(Condition)
Exit
End While
This loop immediately checks a certain condition, and if the condition is true, the loop's code is
executed. Here is an example of using the loop:
While(#iSetRPM<3000)
SetMotorSpeed(#iSetRPM)
If(GetBPlusU>#fLampMinimalVoltage)
Exit
End If
#iSetRPM=#iSetRPM+100
End While
In this case, the loop runs as long as the value of the variable
functions,
SetMotorSpeed
of the variable
#iSetRPM
compare the value obtained by the function
И если
#fLampMinimalVoltage
It is essential to always include the
is assigned a new value of 300. If not, it is assigned a new value of 150.
1.3. Loop
(which is discussed in the relevant section), are used to set the value
obtained from the stand. Then, a conditional statement is used to
GetBPlusU
is less, the loop is exited using the Exit.
End While
equals the text "True". If it does, the
#sIsSense
equals the text "MS005". If it does,
#sTesterName
End
#iSetRPM
with the variable #fLampMinimalVoltage.
command at the end of the loop.
English
User manual
If.
is less than 3000. Two
47