![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: Command.c
- Revision:
- 213:9953db9543d6
- Parent:
- 211:ac8251b067d2
- Child:
- 214:4c70e452c491
--- a/Command.c Mon Jul 03 08:32:27 2017 +0000 +++ b/Command.c Wed Jul 26 13:24:39 2017 +0000 @@ -536,7 +536,7 @@ - if(Gyro.LG_Type) Temp =(int)(DeltaRegul<<2); + if(Gyro.LG_Type) Temp =(int)(tempDeltaRegul); else Temp =(unsigned int)(0x7fff-Spi.ADC5)*0.79; BuffTemp[12]=(Temp >> 8) & 0xff;//// HFO 13 --сигнал ошибки регулятора ГВЧ BuffTemp[13]=(Temp >> 0) & 0xff;//// 14 --сигнал ошибки регулятора ГВЧ @@ -1083,12 +1083,12 @@ PlcOFF //Gyro.RgConA&0x8=0; Gyro.LogMod=1; // MODFlag=1; - Spi.DAC_B = 65535; + Spi.DAC_B = 32767; } if (Time[0] == 'o') { // выдача технологическая - PlcON - // Gyro.LogMod=0; - MODFlag=2; + if(Gyro.LogMod==2)Gyro.LogMod=0; + else Gyro.LogMod=2; + // Spi.DAC_B = 32000; } if (Time[0] == 'm')