ENGINE Start switches script
Posted: Thu Feb 18, 2021 9:30 am
You need to find these values yourself and then use these values in the script (by using SIOC_Monitor and move the servo arms)
Example:
ENG_Left Switch ? Start of free sone GRD to OFF kickback in
Value in SIOC Monitor 305 876
ENG_Right Switch ? Start of free sone GRD to OFF kickback in
Value in SIOC Monitor 275 819
ENG1:
The position between 305 and 875 is the free zone where you can freely move the switch from OFF to GRD
Position 876 is where the switch auto moves from GRD to OFF
Positions above 876 -1024 will not let you move the switch from OFF to GRD
A correct script for ENG1 with the values above should be
Var 0126, name ENG1_Servo, Link USB_SERVOS, Device 37, Output 6, PosL 20, PosC 512, PosR 1000
Var 1220, name ENG1_ST_SW_POS, static // servo arm is set to free, value 350
{
IF &sENG1_S_GRD = 1
{
IF &ENG1_ST_SW_POS = 1 // if in GRD and receive OFF from ngx
{
&ENG1_Servo = 900 // Auto off phase I to trigger servo arm to go from GRD to OFF ( needs to be above kickback value)
&ENG1_Servo = DELAY 350 ,200 // Auto off phase II should reset to free zones
}
}
}
Hope this clarifies thing
Example:
ENG_Left Switch ? Start of free sone GRD to OFF kickback in
Value in SIOC Monitor 305 876
ENG_Right Switch ? Start of free sone GRD to OFF kickback in
Value in SIOC Monitor 275 819
ENG1:
The position between 305 and 875 is the free zone where you can freely move the switch from OFF to GRD
Position 876 is where the switch auto moves from GRD to OFF
Positions above 876 -1024 will not let you move the switch from OFF to GRD
A correct script for ENG1 with the values above should be
Var 0126, name ENG1_Servo, Link USB_SERVOS, Device 37, Output 6, PosL 20, PosC 512, PosR 1000
Var 1220, name ENG1_ST_SW_POS, static // servo arm is set to free, value 350
{
IF &sENG1_S_GRD = 1
{
IF &ENG1_ST_SW_POS = 1 // if in GRD and receive OFF from ngx
{
&ENG1_Servo = 900 // Auto off phase I to trigger servo arm to go from GRD to OFF ( needs to be above kickback value)
&ENG1_Servo = DELAY 350 ,200 // Auto off phase II should reset to free zones
}
}
}
Hope this clarifies thing