Unable to read var (SOLVED)
Posted: Fri Mar 27, 2015 7:19 pm
I Roar,
I've just installed new OC4BA v3 150117.
I do not succed to read var value. It is not a bug in the sofware or in the installation, I always have that problem.
Can you look at my simple script file and explain what I made wrong.
Thank you
Rejean CYQB
Test file:
// *****************************************************************************
// * Config_SIOC ver 5.0B5 - Rejean Tremblay
// * OC4BANGX_253
// *****************************************************************************
// TEST 1304 = MAIN_annunAP[0]); 1305 = MAIN_annunAP[1]);
// TEST 1526 = MAIN_annunAP_Amber[0]); 1527 = MAIN_annunAP_Amber[1])
VAR 1304, name ap_0, static // AP state
{
CALL &apsub0
}
Var 0342, name apsub0, Link SUBRUTINE
{
IF &ap_0 = 0
{
&ap_0_led = 0
}
ELSE
{
&ap_0_led = 1
}
}
Var 1526, name ap_3, static // AP state
{
CALL &apsub3
}
Var 0348, name apsub3, Link SUBRUTINE
{
IF &ap_3 = 0
{
&ap_3_led = 0
}
ELSE
{
&ap_3_led = 1
}
}
Var 0351, name ap_0_led, Link IOCARD_OUT, Device 2, Output 12 // RED LED - A/P
Var 0353, name at_0_led, Link IOCARD_OUT, Device 2, Output 13 // CPT's AT LED red
Var 0355, name fmc_0_led, Link IOCARD_OUT, Device 2, Output 15 // CPT's FMC LED
Var 0356, name ap_3_led, Link IOCARD_OUT, Device 2, Output 11 // CPT's AP LED amber
Var 0357, name at_3_led, Link IOCARD_OUT, Device 2, Output 14 // CPT's AT LED amber
I've just installed new OC4BA v3 150117.
I do not succed to read var value. It is not a bug in the sofware or in the installation, I always have that problem.
Can you look at my simple script file and explain what I made wrong.
Thank you
Rejean CYQB
Test file:
// *****************************************************************************
// * Config_SIOC ver 5.0B5 - Rejean Tremblay
// * OC4BANGX_253
// *****************************************************************************
// TEST 1304 = MAIN_annunAP[0]); 1305 = MAIN_annunAP[1]);
// TEST 1526 = MAIN_annunAP_Amber[0]); 1527 = MAIN_annunAP_Amber[1])
VAR 1304, name ap_0, static // AP state
{
CALL &apsub0
}
Var 0342, name apsub0, Link SUBRUTINE
{
IF &ap_0 = 0
{
&ap_0_led = 0
}
ELSE
{
&ap_0_led = 1
}
}
Var 1526, name ap_3, static // AP state
{
CALL &apsub3
}
Var 0348, name apsub3, Link SUBRUTINE
{
IF &ap_3 = 0
{
&ap_3_led = 0
}
ELSE
{
&ap_3_led = 1
}
}
Var 0351, name ap_0_led, Link IOCARD_OUT, Device 2, Output 12 // RED LED - A/P
Var 0353, name at_0_led, Link IOCARD_OUT, Device 2, Output 13 // CPT's AT LED red
Var 0355, name fmc_0_led, Link IOCARD_OUT, Device 2, Output 15 // CPT's FMC LED
Var 0356, name ap_3_led, Link IOCARD_OUT, Device 2, Output 11 // CPT's AP LED amber
Var 0357, name at_3_led, Link IOCARD_OUT, Device 2, Output 14 // CPT's AT LED amber