Home AMX User Forum NetLinx Studio
Options

SEND_LEVEL and LEVEL_EVENT

I am writing a Duet Module for the new Aprilaire 8800 and having a goofy issue involving levels. Could be in the SNAPI sub-system somewhere, (or a brain-fart on my part) but I thought I would run it by the forum.

Use Cool Setpoint for example...
LEVEL_EVENT [vdv, HVAC_COOL_LVL]
{
     coolsp = LEVEL.VALUE
}

BUTTON_EVENT [ui, 1]
{
   push:
   {
        send_level vdv, HVAC_COOL_LVL, 75
   }
}

If I get a setpoint adjustment from the thermostat, the level updates fine. If I fire the button event, the new value gets written to the thermostat. The return packet from the stat triggers the update function, and the level event shows up in notifications with the new value. However the Netlinx LEVEL_EVENT isn't called.

Seems like these bi-directional issues with Duet have been an issue in the past. As a matter of best practice, I always want the internal value to update from the returned packet from the device.

here is a shot of the notifications log...Line 8 is Level triggered after a Send Level, Line 15 from a direct thermostat adjustment.
Line      5 (17:55:49.127):: Level Value To [41002:1:1] - Level 31  Value= 75
Line      6 (17:55:49.159):: String To [5001:2:1]-[SN1 SC=75$0D]
Line      7 (17:55:49.221):: String From [5001:2:1]-[SN1 SC=75F$0D]
Line      8 (17:55:49.221):: Level Value From [41002:1:1] - Level 31  Value= 75.000000
Line      9 (17:55:55.081):: String From [5001:2:1]-[SN1 HVAC=G+Y1-W1-Y2-W2-B-O+$0D]
Line     10 (17:55:55.127):: Feedback:Off [41002:1:1] - Channel 224 
Line     11 (17:55:55.127):: Output Channel:Off - From [41002:1:1] - Channel 224 
Line     12 (17:57:15.049):: String To [5001:2:1]-[SN?$0D]
Line     13 (17:57:15.065):: String From [5001:2:1]-[SN1 $0D]
Line     14 (17:57:16.190):: String From [5001:2:1]-[SN1 SC=74F$0D]
Line     15 (17:57:16.190):: Level Value From [41002:1:1] - Level 31  Value= 74.000000

Comments

  • Options
    mighemighe Posts: 39
    Have you set the right level count on your virtual device?
Sign In or Register to comment.