COM Radio with Dual-Centric Encoders [SOLVED]

This is a new forum for the OC4BAv4.
Post Reply
AZWildk4t
Posts: 15
Joined: Mon Mar 09, 2015 10:25 pm

COM Radio with Dual-Centric Encoders [SOLVED]

Post by AZWildk4t »

I have assembled my COM1 panel using a dual-centric encoder (ELMA E37). Each rotation of the encoder increases or decreases the value by 3 instead of 1. The issue occurs for both WHOLE and DECIMAL numbers on the Standby Display. According to Leo Bodnar site, the encoder has 16 detents with 2 pulses per detent.

How can I adjust the script to increase/decrease the COM1 values by 1 instead of 3?
Last edited by AZWildk4t on Sat Apr 08, 2017 1:14 am, edited 1 time in total.
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: COM Radio with Dual-Centric Encoders

Post by mvr1918 »

Have you tried to play with the L0 ( adding -2 / +2)

Var 36 name ROT_COM1_SW Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SW = 1
&ROTACTC1_SW = DELAY 0 500
L0 = &ROT_COM1_SW * -1
&ST_COM1High = ROTATE 18 36 L0
&tCOM1_1 = &ST_COM1High
}
}
AZWildk4t
Posts: 15
Joined: Mon Mar 09, 2015 10:25 pm

Re: COM Radio with Dual-Centric Encoders

Post by AZWildk4t »

mvr1918 wrote:Have you tried to play with the L0 ( adding -2 / +2)

Var 36 name ROT_COM1_SW Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SW = 1
&ROTACTC1_SW = DELAY 0 500
L0 = &ROT_COM1_SW * -1
&ST_COM1High = ROTATE 18 36 L0
&tCOM1_1 = &ST_COM1High
}
}
I finally got this working based on a post in another forum. The guy told me he was selling his Input-Encoder card and had the PIC setup to increase the digits by 1. Works great now.
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: COM Radio with Dual-Centric Encoders [SOLVED]

Post by mvr1918 »

SOLVED
Post Reply