![background image](http://html.mh-extra.com/html/amx/netlinx-nxb-knx/netlinx-nxb-knx_operation-reference-manual_2938117039.webp)
NetLinx Programming
33
NXB-KNX Operation/Reference Guide
{
SWITCH(Counter) //Send config command in groups.
//Caution avoid sending large quantities of config commands without
intermittent wait intervals.
{
CASE 1:
{
KNXAdd(dvNxbKnx, 1, knxSWITCH, '1/1/0', "") // Light 1 switch
KNXAdd(dvNxbKnx, 2, knxSWITCH, '1/1/1', "") // Light 2 switch
KNXAdd(dvNxbKnx, 3, knxSWITCH, '1/1/2', "") // Light 3 switch
KNXAdd(dvNxbKnx, 4, knxSWITCH, '1/1/3', "") // Light 4 switch
KNXAdd(dvNxbKnx, 5, knxSWITCH, '1/1/4', "") // Light 5 switch
KNXAdd(dvNxbKnx, 6, knxSWITCH, '1/1/5', "") // Light 6 switch
}
CASE 2:
{
KNXAdd(dvNxbKnx, 7, knxSWITCH, '1/1/30', "knxPollstart") // Light 1 status
KNXAdd(dvNxbKnx, 8, knxSWITCH, '1/1/31', "knxPollstart") // Light 2 status
KNXAdd(dvNxbKnx, 9, knxSWITCH, '1/1/32', "knxPollstart") // Light 3 status
KNXAdd(dvNxbKnx, 10, eibSwitch, '1/1/33', "eibPollstart") // Light 4 status
KNXAdd(dvNxbKnx, 11, knxSWITCH, '1/1/34', "knxPollstart") // Light 5 status
KNXAdd(dvNxbKnx, 12, knxSWITCH, '1/1/35', "knxPollstart") // Light 6 status
}
CASE 3:
{
KNXAdd(dvNxbKnx, 20, knxDim4, '1/1/14', "") // Dimmer relative light 5
KNXAdd(dvNxbKnx, 21, knx1Byte, '1/1/24', "") // Dimmer absolute light 5
KNXAdd(dvNxbKnx, 22, knx1Byte, '1/1/44', "knxPollstart") // Dimmer feedback light 5
KNXAdd(dvNxbKnx, 24, knxDim4, '1/1/15', "") // Dimmer relative light 6
KNXAdd(dvNxbKnx, 25, knx1Byte, '1/1/25', "") // Dimmer absolute light 6
KNXAdd(dvNxbKnx, 26, knx1Byte, '1/1/45', "knxPollstart") // Dimmer feedback light 6
}
CASE 4:
{
KNXAdd(dvNxbKnx, 27, knx2Byte, '1/3/4', "knxEIS5, ',',knxPollstart") // Temp Actual
KNXAdd(dvNxbKnx, 28, knx2Byte, '1/3/5', "knxEIS5, ',',knxPollstart") // Temp Setpoint
readable
KNXAdd(dvNxbKnx, 29, knx2Byte, '1/3/6', "knxEIS5") // Temp Setpoint
writeable
KNXAdd(dvNxbKnx, 31, knx3Byte, '1/4/0', "knxTIME, ',',knxPollstart") // Time
KNXAdd(dvNxbKnx, 32, knx3Byte, '1/4/1', "knxDATE, ',',knxPollstart") // Date
KNXAdd(dvNxbKnx, 33, knxSWITCH, '1/1/200', "") // All lights ON/OFF
KNXAdd(dvNxbKnx, 38, knxSWITCH, '1/1/120', "") // Scene ABC
KNXAdd(dvNxbKnx, 39, knxSWITCH, '1/1/121', "") // Scene XYZ
}
CASE 5:
{
KNXAdd(dvNxbKnx, 34, knxDim4, '1/2/0', "") // Blind A Up / Down
KNXAdd(dvNxbKnx, 25, knx1Byte, '1/2/6', "") // Blind B Position
KNXAdd(dvNxbKnx, 36, knxDim4, '1/2/1', "") // Blind B Up / Down
KNXAdd(dvNxbKnx, 37, knx1Byte, '1/2/7', "") // Blinds B Position
}
CASE 6:
{
KNXWhenPoll(dvNxbKnx, 5, 22) // Polltrigger
KNXWhenPoll(dvNxbKnx, 20, 22) // Polltrigger
KNXWhenPoll(dvNxbKnx, 21, 22) // Polltrigger
KNXWhenPoll(dvNxbKnx, 22, 5) // Polltrigger
KNXWhenPoll(dvNxbKnx, 6, 26) // Polltrigger
KNXWhenPoll(dvNxbKnx, 24, 26) // Polltrigger
KNXWhenPoll(dvNxbKnx, 25, 26) // Polltrigger
KNXWhenPoll(dvNxbKnx, 26, 6) // Polltrigger
SEND_COMMAND dvNxbKnx,"'pollstart'" //Indicates to NXB-KNX that configuration
is complete
SEND_COMMAND dvNxbKnx,"'status'" //report log from NXB-KNX with current
status of actors
}
DEFAULT: Counter = 0
}// Switch
IF (Counter)
{
C+
}// IF (Counter)
}// WAIT