Logic question

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by mikegriff, Feb 28, 2006.

  1. mikegriff

    mikegriff

    Joined:
    Aug 3, 2004
    Messages:
    153
    Likes Received:
    3
    Location:
    Wales
    Hi Darren

    if GetUnitParamStatus("node0", 151, ptTemperature) then
    begin
    Kitchentemp:= GetUnitParameter("node0", 151, ptTemperature);
    KitchenSetpoint:= GetRealSystemIO("KSP") ;
    TempHys:= GetRealSystemIO("Temperature Hys");
    if KitchenTemp < KitchenSetpoint + TempHys then
    begin
    SetLightingLevel("CH Boiler", "CH Boiler On", "0s");;
    end;

    What is the easiest way to change
    Kitchentemp and KitchenSetpoint which are both "real" into "integers" so I can place the values in
    SetLightingLevel("KitchenTempCBUS", New Interger value, "0s");

    Although I can do the Math for the heating in the colour touch I would like to pass the value across to another Homegate unit
    I can do stringtointeger but havent found Realtointeger

    thanks in advance
    Mike
     
    mikegriff, Feb 28, 2006
    #1
  2. mikegriff

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The "round" function will round a real number to the nearest integer.
     
    Darren, Feb 28, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.