AZWildk4t
02-24-2017, 01:12 PM
For my O/C COM panel, I have a dual-centric encoder (ELMA E37) that connects to the standard O/C Input Card. When I rotate either encoder, the COM frequency and decimal change by a value of 3 instead of 1. Does anyone know how to correct this?
This is the script I am currently using:
Var 0168, name ROT_COM1_SW, Link IOCARD_ENCODER, Device 8, Input 50, 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
}
}
Var 0169, name ROT_COM1_SF, Link IOCARD_ENCODER, Device 8, Input 52, Aceleration 1, Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SF = 1
&ROTACTC1_SF = DELAY 0 ,500
L0 = &ROT_COM1_SF
&ST_COM1Low = ROTATE 0 ,99 ,L0
&tCOM1_3 = &ST_COM1Low
}
}
This is the script I am currently using:
Var 0168, name ROT_COM1_SW, Link IOCARD_ENCODER, Device 8, Input 50, 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
}
}
Var 0169, name ROT_COM1_SF, Link IOCARD_ENCODER, Device 8, Input 52, Aceleration 1, Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SF = 1
&ROTACTC1_SF = DELAY 0 ,500
L0 = &ROT_COM1_SF
&ST_COM1Low = ROTATE 0 ,99 ,L0
&tCOM1_3 = &ST_COM1Low
}
}