![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
Diff: PLC_reg.c
- Revision:
- 129:406995a91322
- Parent:
- 112:4a96133a1311
--- a/PLC_reg.c Mon Apr 11 11:04:34 2016 +0000 +++ b/PLC_reg.c Tue Apr 12 11:10:49 2016 +0000 @@ -54,7 +54,7 @@ ******************************************************************************/ void init_PLC(void) { - int i; + /* int i; //( 1,2 вольта) if (Device_blk.Str.WP_reset < PLC_RESET_THRESHOLD) //e. напряжение после сброса на нагревателе не должно превышать 1,2 вольта. //(исходное значение регулятора СРП (после сброса)) < (-3276). @@ -87,7 +87,7 @@ Device_blk.Str.WP_scl <<= 1; //e. during fist 10 seconds after start we state Device_blk.Str.WP_scl = 2*Device_blk.Str.WP_scl // первые 10 секунд работать с коэфициентом передачи * 2 - MaxDelayPLC = Device_blk.Str.PI_b3>>1; //e. max expected delay for phase detector output + MaxDelayPLC = Device_blk.Str.PI_b3>>1; //e. max expected delay for phase detector output*/ } // init_PLC /****************************************************************************** @@ -101,7 +101,7 @@ ******************************************************************************/ int PLC_MeanderDelay(int flag) { - static int poz_counter = 0, neg_counter = 0, flg_delay; + /* static int poz_counter = 0, neg_counter = 0, flg_delay; if (Device_blk.Str.WP_ref == 0) { return (flag); @@ -125,7 +125,7 @@ if (neg_counter == Device_blk.Str.WP_ref) { flg_delay = 1; } - return (flg_delay); + return (flg_delay);*/ } /****************************************************************************** ** Function name: clc_PLC