aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Properties/Settings.Designer.cs
blob: 30784c8b09f235ae513b2377e700eec184dd979f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef MODULES_HEATERS_HEATERS_H_
#define MODULES_HEATERS_HEATERS_H_
#include "PMR/Hardware/HardwarePidControl.pb-c.h"
#include "PMR/Hardware/HardwarePidControlType.pb-c.h"
#include "heaters_ex.h"
/******************** DEFINITIONS  ********************************************/
#define MAX_AC_HEATERS HARDWARE_PID_CONTROL_TYPE__DryerHeaterSecondary+1
#define MAX_TIMESLICES 200
#define MAX_HEATERS_TEMPERATURE 300

extern uint32_t OutputProportionalSingleStep;  //A/C Heaters step size from one decision point to another - in cpu clocks. 120000 = 1 millisecod
extern uint32_t OutputProportionalCycleTime; //A/C Heaters Cycle time in milliseconds - one for all heaters
//extern uint32_t Heater_timerBase;        //Timer handle
extern char     TimeSliceAllocation[MAX_TIMESLICES];
extern int     DCTimeSliceAllocation[MAX_HEATERS_NUM];
extern int      NumberOFSlicesInUse;
extern uint32_t MillisecondsPerChange;


typedef struct  HeaterPIDControlConfigstruc
{
  bool configured;
  int id;  //HardwarePidControlType
  int32_t outputproportionalpowerlimit;
  float outputproportionalband
tramp; //int32_t setpointcontroloutputrate; //int32_t outputonoffhysteresisvalues; //int32_t processvariablesamplingrate; //int32_t pvinputfilterfactormode; int32_t sensormaxvalue; int32_t sensorminvalue; double kp; double ki; double kd; double epsilon; double dt; bool pidactive; }HeaterPIDControlConfig; typedef struct HeaterCommandstruc { int heaterid; //HardwarePidControlType bool command; uint32_t targettemperatue; }HeaterCommand; extern HeaterPIDControlConfig HeaterControl[MAX_HEATERS_NUM]; extern HeaterCommand HeaterCmd[MAX_HEATERS_NUM]; extern uint32_t Heater_timerBase; uint32_t HeaterRecalculateSharedHeatersParams(uint32_t deviceId, uint32_t new_outputproportionalpowerlimit); void HeatingTestSendResonse(uint32_t status, bool last,bool heater1Active,bool heater2Active, int temperature1, int temperature2,int Heater1Percentage,int Heater2Percentage, char* Message); uint32_t HeaterRecalculateHeaterParams(uint32_t deviceId, uint32_t new_outputproportionalpowerlimit); uint32_t HeatersSingleHeaterEnd(HardwarePidControlType HeaterId); #endif