EVT_CONTROL_STAND_ENG*_START_LEVER

Forum for the OC4BA v2/v3 and OC4BAConfig including the OCP4NGX driver
Post Reply
UweN
Posts: 10
Joined: Wed Dec 10, 2014 5:45 pm

EVT_CONTROL_STAND_ENG*_START_LEVER

Post by UweN »

Hi,

i try to connect my switches to the 737 EventVars
2323 EVT_CONTROL_STAND_ENG1_START_LEVER
2324 EVT_CONTROL_STAND_ENG2_START_LEVER

with the follow script

Var 2323, name StartV_L_FS, static
Var 0811, name StartValve_L, Link IOCARD_SW, Device 31, Input 63, Type I
{
IF &StartValve_L = 1
{
&StartV_L_FS = 1
}
ELSE
{
&StartV_L_FS = 0
}
}

but nothing happens. What gets wrong? Is the value 0,1 (i try also other values) not right or what else?
Is somebody who takes the Event Var 2323 or 2324 for the EngineStartLever?

Greetings Uwe
mvr1918
Site Admin
Posts: 1630
Joined: Thu Aug 30, 2012 3:35 pm

Re: EVT_CONTROL_STAND_ENG*_START_LEVER

Post by mvr1918 »

If you start up OCP4NGX with your special script and go to SIOC.exe/IOCPConsole
scroll down to Var 2323

write 1 and 0 to this Var and you should see that the lever is moving

test also your script by writing 1 and 0 to var StartValve_L to check your script


try without the TYPE 1 parameter
UweN
Posts: 10
Joined: Wed Dec 10, 2014 5:45 pm

Re: EVT_CONTROL_STAND_ENG*_START_LEVER

Post by UweN »

Thanks,

that's what i have done, but without success.
Ok, if you confirm that the Variable works correct and the value is 0 and 1 it is
my own Problem and i will try it again.

Best regards Uwe.
mvr1918
Site Admin
Posts: 1630
Joined: Thu Aug 30, 2012 3:35 pm

Re: EVT_CONTROL_STAND_ENG*_START_LEVER

Post by mvr1918 »

The OCP4NGX driver will send the correct info to PMDG when you send 1 and 0 to Var 2323 and thereby moving the lever.
UweN
Posts: 10
Joined: Wed Dec 10, 2014 5:45 pm

Re: EVT_CONTROL_STAND_ENG*_START_LEVER

Post by UweN »

Hi,
thanks for your hints.
It works. Maybe i had not restart the Driver correctly.
But onother question:
now i have change to OCP4NGX V3.3.0.0 with my old script 2.0 (with changes in the assignment of harware, other numbering of In- and Outputs).
All works fine MIP, OVH, MCP, EFIS but i can't change the frequency of NAV1 and NAV2 (COM not testet due a hardwaredefect) . Changebutton works and the actuel Frequency will Switch over and also send to FS,
but no changes of frequency with the rotarybutton is possible.
Does the V3.3 Driver works with the modify V2.0 script or should i switch also to a newer Version of script (many changes in numbering of In- and Outputs)?

Best regards Uwe
mvr1918
Site Admin
Posts: 1630
Joined: Thu Aug 30, 2012 3:35 pm

Re: EVT_CONTROL_STAND_ENG*_START_LEVER

Post by mvr1918 »

I have sent you the latest updates pr. Desember 2015

Use OCP4NGX_PP_MIP_v1.2.ssi as a base for your own modification (changed input/outputs for non P&P modules)
Post Reply