Jump to content
The simFlight Network Forums

Help needed with TRIM-wheel motor control


Recommended Posts

Hello Pete,

 

I need some help with the following issue.

 

In the FSUIPC Programmers Reference manual I found the following description about the elevator trim motor.

<<  Offset $3370 length 4  >>

Four single byte PFC driver ?alive counters:

3370 = COM port read thread alive and running
3371 = Elevator trim motor action (0=off, 1=up, 2=dn)                      <<== I need this value to start and stop my trimmotor
3372 = COM port write thread alive
3373 = Main FS chain alive

 

so i wrote a small sioc script as follows:
==========================================================================================
Var 20 name Motor_1 Link USB_DCMOTOR  Output 1   // DC motor variable control
Var 21 name TRIMWHEEl Link FSUIPC_IN Offset $3371 Length 4  // get TRIMWHEEL value from $3371 = Elevator trim motor action (0=off, 1=up, 2=dn)
{
  &Motor_1 = &TRIMWHEEL      // the motor change stops ans starts depending on &TRIMWHEEL
}
===========================================================================================
saved this file in the SIOC-config and started FSX, SIOC and Prosim completely,
but in flight I did not get any input in &TRIMWHEEL, checked in IOCPConsole from SIOC. I know I have to mask out bits, but the

contents of the &TRIMWHEEL is not filled, it stays zero.

 

Can you expalin to me what I do wrong ??

 

Do I need to load some extra .dll's ? I'm running SIOC version 4.01, have a full FSUIPC license and for the flight sim I run Prosim737, (licensed)

 

Regards,

Koos Remigius, The Netherlands

 

Link to comment
Share on other sites

In the FSUIPC Programmers Reference manual I found the following description about the elevator trim motor.

<<  Offset $3370 length 4  >>

Four single byte PFC driver ?alive counters:

3370 = COM port read thread alive and running

3371 = Elevator trim motor action (0=off, 1=up, 2=dn)                      <<== I need this value to start and stop my trimmotor

3372 = COM port write thread alive

3373 = Main FS chain alive <<

 
Okay. And presumably you are using a PFC 737 cockpit fitted with the motorised trim? And you are using the current version of the PFCFSX.DLL driver?

 

so i wrote a small sioc script as follows:==========================================================================================

 

Sorry, how does SIOC relate to PFC hardware? I'm lost!

 

Pete

 

Link to comment
Share on other sites

Hello Pete,

Thanks for your help.. First let me describe the hardware i will be using for the trimotor.

I use FSX + Prosim737 and a Opencockpits DC- motor card controlled via Sioc. It is just a basic test to eventualy building a motorized trimwheel.

I found in the FSUIPC Reference manual an offset that I think that it is just what I need to control the DC-motorcard, namely:

the offset $3370, so I would like to use the value of byte $337, 0, 1 or 2 , in a Sioc script to use those values to control my motor.

The main question is , can I use the following declaration to get the value of offset $3370 in Var21 so I can convert Var21 into values I need to control my DC-motor card?

If I use the following script:

Var 21 name Trimwheel link Fsuipc_in offset $3370 length 4

Will the Var21 be filled wth contents from $3370 ?

If so, than I can use it, but when I tested it, nothing is filled in Var21.

Regards,

Koos

Link to comment
Share on other sites

Thanks for your help.. First let me describe the hardware i will be using for the trimotor.

I use FSX + Prosim737 and a Opencockpits DC- motor card controlled via Sioc. It is just a basic test to eventualy building a motorized trimwheel.

 

But those offsets, 3370-3373 are just diagnostic values provided by my PFCFSX.DLL driver, which is only useful with the appropriate PFC manufactured hardware -- the 737 cockpit, in fact, the only serial port device they made with a motorised trim.

 

As for your SIOC declarations and so forth, I'm afraid they are lost on me. I do not use and never have used SIOC and i don't know anything about it.

 

Sorry,

 

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.