Descargar Imprimir esta página

MSG Equipment MS005 Manual De Usuario página 48

Publicidad

Idiomas disponibles
  • ES

Idiomas disponibles

  • ESPAÑOL, página 153
English
Test bench MS005/MS005A
This operator can be useful when you need to check a condition over a certain period of time. It
has the following structure:
Wait(condition, time_in_milliseconds)
It checks the condition every 100 milliseconds. If the condition is true, it continues down the
script. If not, after the specified time, it continues regardless of whether the condition was met or
not. After that, it is advisable to perform an additional check of this condition. If the check fails,
the test should be terminated. Here is an example of usage:
Wait(GetBPlusU>#fLampMinimalVoltage,16000)
If(GetBPlusIAC>#fLampMaxACCurrent)
End
End If
In this case, we check if the value obtained by the function
of the variable #fLampMinimalVoltage. The wait time is 16 seconds. After that, we check if the
value obtained by the
obtained by the #fLampMaxACCurrent, , and if it is, we stop the test.
Functions are essential for setting or retrieving specific values from the test stand or performing
certain actions. There are a total of 26 functions available. Depending on the function, they may
take 0 or 1 argument. Let's go through them:
– used to display specific text in the console. For example, if you write
Print()
Print("Alternator Test Started")
the console.
– introduces a delay in execution for the specified time in milliseconds. It accepts one
Delay()
argument, which should be a number between 0 and 65535. For instance, the function
will pause the script execution for 10 seconds.
Delay(10000)
– returns the motor speed from the test stand as a floating-point number
GetMotorSpeed()
ranging from 0 to 3000.
GetMotorVoltage()
number ranging from 0 to 1000.
GetMotorCurrent()
point number ranging from 0 to 20.
- sets the motor's acceleration in seconds.
SetMotorAccel()
- configures the type of the output signal as a floating-point number between
SetType(number)
1 and 11.
48
1.4. Wait operator
The wait time is 16 seconds. After that, we check if the value
GetBPlusIAC
1.5. Functions
the text
– returns the motor voltage in volts from the test stand as a floating-point
– returns the motor current in amperes from the test stand as a floating-
GetBPlusU
Alternator Test Started
is greater than the value
will be displayed in

Publicidad

loading

Productos relacionados para MSG Equipment MS005

Este manual también es adecuado para:

Ms005a