News:

Precision Simulator update 10.174 (26 April 2024) is now available.
Navburo update 13 (23 November 2022) is now available.
NG FMC and More is released.

Main Menu

SIOC for Fuel Pump with PSXseecon

Started by Daehee, Wed, 15 Nov 2017 08:49

Daehee

Dear,

I bought 4 card what is USB Expanstion, Master, Input and Output card from opencockpit.
I am studying SIOC for 'FuelMain1Fwd '  with opencopit's korry switch.

finally, push button is working. when I push-on,  FuelMain1Fwd go to ON, also, when I push-off, it go to OFF positon in PSX.

But I really..don't know, how to make to work LED light. Hundred times, I read manual what I have. and try everything my self, but I didn't success. 

Anybody please help me..

my code as below. (both LED/PUSH working on SIOC MONITOR.
(ON light No11 on output card and Press light No12 on output card / Push button No18 on input card)

// * FileName : FuelTest.txt
// * Date : 2017-11-15



Var 9030, name FuelOff, Link IOCARD_OUT, Output 12

Var 3245, static
{
  &FuelOff = TESTBIT V3245 ,21
}

Var 1245, name FuelMF, static, Link IOCARD_SW, Input 18, Type I


Best Regards.

kiek

Are you sure bit 21 is the right bit?.
Should not you use 16 or 19?

Regards,
Nico

Daehee

Quote from: kiek on Wed, 15 Nov 2017 16:40
Are you sure bit 21 is the right bit?.
Should not you use 16 or 19?

Regards,
Nico

Hello, Nico.

I succeeded it.! I did study by referring to your script, finally.. I succeed!
https://youtu.be/6shhwBKrDHg

Thank you very much for your amazing PSXseecon.!

Best Regards.
Daehee Kim.