Welcome, Guest. Please login or register.
Did you miss your activation email?

News: Precision Simulator update 10.85 (23 July 2019) is now available

Author Topic: psxseecon with radio com opencockpits  (Read 378 times)

noo

  • Join date: Mar 2015
  • Posts: 44
psxseecon with radio com opencockpits
« on: Wed, 5 Jun 2019 08:34 »
Problem with digit display radio COM module opencockpits

psxseecon v1.7.3 display ok
but with v3.16 display (digit) no fonctinal.
 why this does not work anymore with v 64 bit?


asboyd

  • Join date: Jan 2012
  • Location: YSSY
  • Posts: 393
Re: psxseecon with radio com opencockpits
« Reply #1 on: Wed, 5 Jun 2019 12:01 »
Are you using plug and play modules?
I use the PSXseecon to control the radios using inputs and outputs and display card without problems.

Regards,
Alex B

noo

  • Join date: Mar 2015
  • Posts: 44
Re: psxseecon with radio com opencockpits
« Reply #2 on: Wed, 5 Jun 2019 13:17 »
Yes i use plug and play (usb)
Where is the problem with this module?
Because with xpdr module, digit it's ok

asboyd

  • Join date: Jan 2012
  • Location: YSSY
  • Posts: 393
Re: psxseecon with radio com opencockpits
« Reply #3 on: Wed, 5 Jun 2019 21:08 »
I do not have the plug and play modules. I am making my own modules from scratch so am using only scripting to get them to work.
Have you used the OCM program? Based on the OCM manual info the unit should work with VHF_L or VHF_R and the first unit detected is setup as RCP_L initially.
Maybe Nico can advise further....

Regards,
Alex B

noo

  • Join date: Mar 2015
  • Posts: 44
Re: psxseecon with radio com opencockpits
« Reply #4 on: Thu, 6 Jun 2019 13:14 »
problem resolved

Var 9010 name DecBCD2 link SUBRUTINE

i change with DecBCDb2 and it's ok

Greg Hateley

  • Join date: Aug 2011
  • Location: Perth
  • Posts: 76
Re: psxseecon with radio com opencockpits
« Reply #5 on: Thu, 27 Jun 2019 13:52 »
Hey Noo,
I have have same problem trying to run OC modules with 64bit PSXseecon, IE, blank displays.
Can you advise me of exactly what to change, in what file?
"Var 9010 name DecBCD2 link SUBRUTINE"

Regards
Greg

noo

  • Join date: Mar 2015
  • Posts: 44
Re: psxseecon with radio com opencockpits
« Reply #6 on: Fri, 28 Jun 2019 14:37 »
Hello Greg, copy this with the note pad. Put this in the folder SIOC.
After run SIOC , open Multiple Scripts (below) and found your script and select in the list on the left side , after Load Script and Save & Exit.

///////////////////////////////////////////////////////////////////////////

Var 0001 name Digit

Var 0002 name CalcDigit link SUBRUTINE

L0 = &CalcDigit
 IF L0 = 6
  {
 L0 = -999997 // 6 with horizontal dash please also read above
  }
  ELSE
  {
 IF L0 >= 10
    {
 IF L0 = 10 // A
      {
 L0 = -999999 // blank
      }
      ELSE
      {
 IF L0 = 11 // minus
        {
 L0 = -999998 // -
        }
        ELSE
        {
          // should not happen ...
 L0 = 9
        }
      }
    }
  }
 &Digit = L0
}

Var 0003 name Digit0
Var 0004 name Digit1
Var 0005 name Digit2
Var 0006 name Digit3
Var 0007 name Digit4
Var 0008 name Digit5

// Decode Digits routines:

Var 0009 name DecBCDb2 link SUBRUTINE
{
 L0 = &DecBCDb2
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit0 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit1 = &Digit
}
Var 0010 name DecBCDb3 link SUBRUTINE
{
 L0 = &DecBCDb3
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit0 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit1 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit2 = &Digit
}
Var 0011 name DecBCDb4 link SUBRUTINE
{
 L0 = &DecBCDb4
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit0 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit1 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit2 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit3 = &Digit
}
Var 0012 name DecBCDb5 link SUBRUTINE
{
 L0 = &DecBCDb5
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit0 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit1 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit2 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit3 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit4 = &Digit
}
Var 0013 name DecBCD6 link SUBRUTINE
{
 L0 = &DecBCD6
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit0 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit1 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit2 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit3 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit4 = &Digit

 L0 = DIV L0 16
 L1 = MOD L0 16
 CALL &CalcDigit L1
 &Digit5 = &Digit
}
Var 3022 Static name RcpLa
{
  CALL &DecBCD6 &RcpLa
  &D_COM1L0 = &Digit0   
  &D_COM1L1 = &Digit1
  &D_COM1L2 = &Digit2
  &D_COM1L3 = &Digit3
  &D_COM1L4 = &Digit4
  L0 = TESTBIT &RcpLa 24   // VHF DP
  IF L0 = 1
  {
    &D_COM1L5 = &Digit5
    &O_DPCOM1L = 1
  }
  ELSE
  {
    L0 = TESTBIT &RcpLa 25  // HF DP
    IF L0 = 1
    {
      &D_COM1L5 = -999999  // blank
      &O_DPCOM1L = 1      // same DP as for VHF
    }
    ELSE
    {
      &D_COM1L5 = &Digit5
      &O_DPCOM1L = 0       
    }
  }
}
Var 3023 Static name RcpLs
{
  CALL &DecBCD6 &RcpLs
  &D_COM1R0 = &Digit0 
  &D_COM1R1 = &Digit1
  &D_COM1R2 = &Digit2
  &D_COM1R3 = &Digit3
  &D_COM1R4 = &Digit4
  L0 = TESTBIT &RcpLs 24   // VHF DP
  IF L0 = 1
  {
    &D_COM1R5 = &Digit5
    &O_DPCOM1R = 1
  }
  ELSE
  {
    L0 = TESTBIT &RcpLs 25  // HF DP
    IF L0 = 1
    {
      &D_COM1R5 = -999999   // blank
      &O_DPCOM1R = 1       // same DP as for VHF
    }
    ELSE
    {
      &D_COM1R5 = &Digit5
      &O_DPCOM1R = 0
    }
  }
}
// active standby toggle

Var 3607 Static Link IOCARD_SW Device 8 Input 6 Type P   

// rotary encoders

Var 3691 Static name BigFreqL Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2     
Var 3692 Static name SmaFreqL Link IOCARD_ENCODER Device 8 Input 4 Aceleration 1 Type 2     

// ACTIVE display in COM747
Var 9008 name D_COM1L0 Link IOCARD_DISPLAY Device 8 Digit 0 Numbers 1 
Var 9009 name D_COM1L1 Link IOCARD_DISPLAY Device 8 Digit 1 Numbers 1
Var 9010 name D_COM1L2 Link IOCARD_DISPLAY Device 8 Digit 2 Numbers 1
Var 9011 name D_COM1L3 Link IOCARD_DISPLAY Device 8 Digit 3 Numbers 1
Var 9012 name D_COM1L4 Link IOCARD_DISPLAY Device 8 Digit 4 Numbers 1
Var 9013 name D_COM1L5 Link IOCARD_DISPLAY Device 8 Digit 5 Numbers 1
 
// STANDBY display in COM747
Var 9014 name D_COM1R0 Link IOCARD_DISPLAY Device 8 Digit 6 Numbers 1
Var 9015 name D_COM1R1 Link IOCARD_DISPLAY Device 8 Digit 7 Numbers 1
Var 9016 name D_COM1R2 Link IOCARD_DISPLAY Device 8 Digit 8 Numbers 1
Var 9017 name D_COM1R3 Link IOCARD_DISPLAY Device 8 Digit 9 Numbers 1
Var 9018 name D_COM1R4 Link IOCARD_DISPLAY Device 8 Digit 10 Numbers 1
Var 9019 name D_COM1R5 Link IOCARD_DISPLAY Device 8 Digit 11 Numbers 1
   
Var 9020 name O_DPCOM1L Link IOCARD_OUT Device 8 Output 20     
Var 9021 name O_DPCOM1R Link IOCARD_OUT Device 8 Output 21     


///////////////////////////////////////////////////////////////////////////



It's OK for you?
« Last edit: Wed, 10 Jul 2019 11:31 by noo »

Greg Hateley

  • Join date: Aug 2011
  • Location: Perth
  • Posts: 76
Re: psxseecon with radio com opencockpits
« Reply #7 on: Fri, 28 Jun 2019 14:56 »
Thank you noo, I will do that.
I am very grateful for the info. Cheers.