Hi everyone, new Crimson 3 user here.
Im trying to adjust an output 4-20 Ma signal automatically using the software and wondered what the best way to do this was?
Within the programme the user will select a target pressure, this pressure could fluctuate depending on a number of factors. Here is what I have so far (this programme is called on tick):
if (HotPressure > HotTargetPressure + 0.5)
{
PressureControlHot --;
if (HotPressure < HotTargetPressure - 0.5)
{
PressureControlHot ++;}
}
HotPressure is the input data to the HMI
HotTargetPressure is the user entered required pressure
PressureControlHot is the output signal controlling the pressure valve.
0.5 is the acceptable tolerance
Thanks
Im trying to adjust an output 4-20 Ma signal automatically using the software and wondered what the best way to do this was?
Within the programme the user will select a target pressure, this pressure could fluctuate depending on a number of factors. Here is what I have so far (this programme is called on tick):
if (HotPressure > HotTargetPressure + 0.5)
{
PressureControlHot --;
if (HotPressure < HotTargetPressure - 0.5)
{
PressureControlHot ++;}
}
HotPressure is the input data to the HMI
HotTargetPressure is the user entered required pressure
PressureControlHot is the output signal controlling the pressure valve.
0.5 is the acceptable tolerance
Thanks