Implementing Aprilaire Viewstats on one TP3 page
davegrov
Posts: 114
I am working a Landmark to Netlinx Conversion where my client has a TPI/3 and Monitor (G3) with 5 zone of HVAC. At to simplify his transition I am using his existing TP3 file which displays all of the 5 zones on one page. I am working with the AprilAire Duet Module. In order to fill the page (strucutre) I am putting a For step routine in the CHANNEL EVENT, DATA EVENT and LEVEL EVENT code to provide feedback to the panel. My questions is where do I put the For Line of Code? Is this correct or does it go before the ON event or belong here?
CHANNEL_EVENT[vdvViewStats,HVAC_OFF_FB] //HVAC_OFF_FB
{
ON:
{
FOR(nCurrentZone=1;nCurrentZone<=KEYPADS_SUPPORTED;nCurrentZone++)
{
ViewStat[CHANNEL.DEVICE.PORT].nHVACState = 4 // off
IF(CHANNEL.DEVICE.PORT==nCurrentZone && ViewStat[nCurrentZone].nControllerType==1)
{
SEND_COMMAND dvTP1, "'@BTON',ITOA(nCurrentZone+30)"
//fnSetButtonTextColor(10,COLOR[ViewStat[nCurrentZone].nHVACState+1])
}
}
}
}
CHANNEL_EVENT[vdvViewStats,HVAC_OFF_FB] //HVAC_OFF_FB
{
ON:
{
FOR(nCurrentZone=1;nCurrentZone<=KEYPADS_SUPPORTED;nCurrentZone++)
{
ViewStat[CHANNEL.DEVICE.PORT].nHVACState = 4 // off
IF(CHANNEL.DEVICE.PORT==nCurrentZone && ViewStat[nCurrentZone].nControllerType==1)
{
SEND_COMMAND dvTP1, "'@BTON',ITOA(nCurrentZone+30)"
//fnSetButtonTextColor(10,COLOR[ViewStat[nCurrentZone].nHVACState+1])
}
}
}
}
0
Comments
Jeff