background image

KMC Controls

Revision E

Configuration and programming

Programming for BACnet in WinControl XL

36

Programming for 
BACnet in 
WinControl XL

The LAN Controller supports the BACnet object types listed in Table 4-4. 

 

Program the LAN Controller as would other KMD series controllers. Observe 
the following details when programing an interface to a BACnet internetwork:

Only inputs, outputs and variables within the LAN Controller appear as 
objects in a device on the BACnet internetwork. 

A point configured as a KMD digital point will appear as a BACnet 
binary object. Analog points appear as analog objects.

To be visible as an object to BACnet devices or operator workstation, 
configure the KMD point with both a description and a label in 
WinControlXL Plus. In TotalControl configure the point with both a 
description and name.

Use BAC-SET, BAC-GET and BAC-RLQ in Control Basic to read and 
write other objects on other BACnet devices.

KMC Controls recommends that all BACnet services have adequate error 
handling protocols within your control program. A sample Control Basic code 
segment is provided below to demonstrate reading the state of Binary Input 8 
in a BACnet device with instance number 1.

Example:

250 G = BAC-GET( 1 , BI8 ) : REM BACnet read
260 ON-ERROR 280 : REM If error, bad read, don’t use it
270 1-VAR16 = G : REM Read was good, use the value.
280 WAIT 0:00:15 : REM Release so other CB programs can 
run
290 END

Table  4-4  Supported BACnet object types

Mnemonic

Object type

AI

Analog Input

AO

Analog Output

BI

Binary Input

BO

Binary Output

AV

Analog Value

BV

Binary Value

Summary of Contents for KMD-5210

Page 1: ...Revision E Installation and Operation Guide KMD 5210 LAN Controller KMD 5210 001 LAN Controller with BACnet 802 3 KMD 5210 002 LAN Controller with BACnet MS TP 883 019 07E ...

Page 2: ...out the written permission of KMC Controls Inc Printed in U S A Disclaimer The material in this manual is for information purposes only The contents and the product it describes are subject to change without notice KMC Controls Inc makes no representations or warranties with respect to this manual In no event shall KMC Controls Inc be liable for any damages direct or incidental arising out of or r...

Page 3: ... BACnet networks 18 Planning for input and output modules 20 Module installation 21 Connecting Power 22 Connecting to a Computer 23 Section 3 Operation Applying power 27 Lights and indicators 27 Resetting the controller 29 Section 4 Configuration and programming Related materials 31 Programming Considerations 31 Configuring a controller with HCM 32 Programming for BACnet in WinControl XL 36 Access...

Page 4: ...KMC Controls Revision E 4 ...

Page 5: ... Tier 2 networks with two dedicated EIA 485 ports Up to 32 KMD 5210 controllers can be integrated into a single peer to peer network each supporting up to 124 nodes on a Tier 2 network The controller also supports remote access through a modem port and provides two ports for direct connection with up to two PCs The firmware in the controller uses a high level easy to learn programming language to ...

Page 6: ...t digital to analog D A Communications Tier 1 EIA 485 protocol at rates up to 38 kilobaud Connector type is a three screw terminal block 12 22 AWG wire Note Use the Tier 1 connection only when replacing KMD 5110 MultiNet controllers and Ethernet is not available Contact KMC Controls techncial support for networking details Tier 2 A and B EIA 485 protocol at rates up to 38 kilobaud Connectors are t...

Page 7: ... 5 user defined Logging Trend Logs 96 trend logs each supporting up to 6 analog digital or virtual elements or points Runtime Logs 28 runtime logs with time date stamp and cumulative runtime Schedules Weekly Schedule 32 schedules with 2 override days Annual Schedule 16 for holiday schedules Alarms Alarm buffering for up to 128 alarms 50 alarm messages for distribution On board 68 character alarm o...

Page 8: ... Humidity 0 95 RH non condensing Weight 1 8 pounds 816 grams Compatibility Software WinControl XL Plus 1 06 or later TotalControl 1 8 1 or later Controllers Compatible with Tier 1 controllers firmware build 2 01 or later Dimensions Illustration 1 1 KMD 5210 Components Table 1 1 KMD 5210 Dimensions A B C D E F Height not shown 10 50 in 6 50 in 0 25 in 10 00 4 00 in 1 25 in 0 98 in 267 mm 165 mm 6 m...

Page 9: ...ble KMD 5661 14 inch 36 cm ribbon cable KMD 5662 19 inch 48 cm ribbon cable KMD 5663 24 inch 61 cm ribbon cable Power KMD 5563 International ready power supply 120 240 volts AC 1 35 amperes XEE 6112 100 100 VA Transformer 24 volts AC required only for KMD 5221 output module Upgrades HTO 1102 Flash Kit Module KMD BAC 5XXX BAC 7XXX Replaces KMD 5696 Enclosures HCO 1035 Panel Enclosure 20 x 24 x 6 in...

Page 10: ...Before installing the KMD 5210 LAN Controller take some time to become familiar with the controller layout and components Illustration 1 2 Controls and indicators Reset button Beneath cover Power Tier 1 EIA 485 Tier 2 EIA 485 Modem BACnet MS TP EIA 232 for PC Ethernet and BACnet 802 3 LED Status Display ...

Page 11: ...ment itself To promote safety we use hazard alert labeling in this manual Follow the associated guidelines to avoid hazards Danger Danger represents the most severe hazard alert Bodily harm or death will occur if danger guidelines are no t followed Warning Warning represents hazards which could result in severe injury or death Caution Caution indicates potential personal injury or equipment or pro...

Page 12: ...KMC Controls Revision E About the LAN controller Safety Considerations 12 ...

Page 13: ...s on each side of the controller to securely fasten it to a flat surface See Illustration 1 2 on page 10 for mounting hole locations and dimensions To maintain RF emission specifications use either shielded connecting cables or enclose all cables in conduit Note Provide sufficient clearance around the controller for cables and wiring Allow a minimum of 3 inches 7 6 cm of clearance at the top edge ...

Page 14: ... 5 6 7 8 STATUS H O A STATUS H O A O R O R O R STATUS H O A O R STATUS H O A O R STATUS H O A O R STATUS H O A O R STATUS H O A O R STATUS H O A 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 STATUS KMD 5210 CONNECTOR INPUT JUMPERS 4 20 MA 1K PULL UP 10K PULL UP NO PULL UP TRANSDUCER POWER OUT 1 OUT 2 OUT 3 OUT 4 OUT 5 OUT 6 15 VDC INPUT INPUTS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 STATUS...

Page 15: ...the controller to the network by connecting a standard 10BaseT Ethernet cable CAT 5 to the Ethernet BACnet port on the controller and to a port on the network hub or router See Ethernet Settings later in this guide for recommended Ethernet Software Settings Note For reliable operation use CAT 5 or equivalent Ethernet cables for all connections If cables are custom made they must meet the CAT 5 spe...

Page 16: ...lent 18 gauge twisted shielded 50 picofarads or less for all EIA 485 network wiring Wiring notes All EIA 485 network segments KMC protocol or BACnet use the same wiring principles Use approved shielded cable and the following principles when connecting a controller to a Tier 2 sub LAN network Connect no more than 31 KMC addressable controllers or devices to the Tier 1 RS 485 connector Connect no m...

Page 17: ... system wiring Termination jumpers are located on both sides of each EIA 485 connector one each for the A and B terminals see Illustration 2 5 To activate the end of line termination leave the jumpers in place If termination is not required position the jumpers so they only cover one pin on the header Illustration 2 4 Typical EIA 484 Wiring Configuration Illustration 2 5 End of line Termination Ju...

Page 18: ...atures Note The BACnet options are licensed for each controller To upgrade a KMD 5210 controller to BACnet contact KMC Controls for license information BACnet 802 3 The KMD 5210 001 the BACnet 802 3 version of the LAN controller connects to the LAN in the same manner as the standard LAN controller See Network connections on page 14 The BACnet internetwork most likely will use one or more BACnet ro...

Page 19: ...MS TP Connect a KMD 5210 002 controller to a BACnet MS TP network at the connector EIA 485 See EIA 485 networks on page 16 for network wiring techniques To configure a KMD 5210 002 for network connections see BACnet configuration on page 35 Illustration 2 7 BACnet MS TP connections Shield ...

Page 20: ...ination of up to eight modules Each module connects to the controller using a flat ribbon cable When connecting input and output modules use the following guidelines Connect the first KMD 5220 input module to connector I O Card 1 add continue adding input modules from left to right Connect the first KMD 5221 output module to connector I O Card 8 and continue adding output modules from right to lef...

Page 21: ... orientation of the cable header If the pin 1 edge is reversed the controller will not communicate with the module 3 Connect the other end of the ribbon cable to the input or output module You may find it necessary to fold the cable to properly route it to the module To accommodate turns fold the cable gently to change direction To make a fold overlay the cable at a right angle and press gently un...

Page 22: ...ule for details Connecting Power Each KMD 5210 LAN Controller requires a KMD 5563 power supply for operating power Mount the power supply in a convenient location near the KMD 5210 and route the supply cable to the controller The controller will automatically power on when the power connection is complete The controller does not use an power switch See Applying power on page 27 for additional info...

Page 23: ...ol Basic functions TPAGE and NPAGE If the modem port is enabled Computer B port is disabled and is not available for direct connection with a computer Note KMC Controls recommends using U S Robotics modems for off site communications KMC does not offer support for other modem installations To install a modem 1 Connect a a standard DB 9 to DB 25 computer to modem cable between the KMD 5569 modem an...

Page 24: ...hernet Refer to the section Configuring a controller with HCM on page 32 for additional information Direct Serial Port Connection Two RS 232 ports are provided on the controller for connecting a PC directly to the controller Connect the PC to the controller using a KMD 5672 PC to Controller cable Refer to Illustration 2 12 Table 2 1 Configuration switches Firmware 4 0 and later 1 2 3 4 5 6 7 8 Up ...

Page 25: ...nd Operation Revision E Installation Connecting to a Computer 25 Note EIA 232 port B is assigned the same address as the modem port When the modem port is in use a PC cannot be connected to the controller through serial port B ...

Page 26: ...KMC Controls Revision E Installation Connecting to a Computer 26 ...

Page 27: ...following section Lights and indicators The controller provides a number of different status and diagnostic indicators These are described in this section Isolation bulbs Located near each EIA 485 connector you will find two small glass bulbs These serve as protective isolation devices for the Tier 2 and BACnet MS TP EIA 485 networks The bulbs serve three functions When illuminated they indicate i...

Page 28: ...x This green LED blinks when the controller is transmitting data to the Ethernet network Ethernet Rx This green LED blinks when the controller is receiving data from the Ethernet network Ethernet Collision This red LED blinks when there is a collision of data packets on the Ethernet While collisions are normal excessive collisions indicate a problem somewhere in the network Power The green power L...

Page 29: ...bbon cables 4 Depress and hold the Reset Button while reestablishing power to the LAN Controller 5 Continue to hold the reset button until MAIN Tier 2 A and Tier 2 B LEDs light Caution Do not remove power during the reset process Damage may result to the board if this happens 6 Release the Reset Button and allow the controller to continue to power up steady blink Power LED 7 Remove power from cont...

Page 30: ...KMC Controls Revision E Operation Resetting the controller 30 ...

Page 31: ...e the following reference materials WinControl XL Plus User s Manual and installed help HCM reference guide TotalControl Design Studio Reference Guide System plans with controller addresses Programming Considerations The design of the KMD 5210 LAN Controller provides areas where specific user programs may be stored This allows a great deal of versatility and function in the way the controller is u...

Page 32: ...prevent disruption to other controllers on the network disconnect the network cables or remove the isolation bulbs on the controller prior to starting HCM 1 Start HCM connect the controller to the computer and establish communications with the controller 2 Make the entries as described in the section KMC digital network configuration on page 33 3 Setup the Ethernet routing table See Ethernet routi...

Page 33: ... in Flash memory and cannot be changed Entries in Modem String are sent to the modem after the default string is sent This provides a method to override settings in the default string For example entering ATS0 5 sets the modem to answer on the fifth ring Firmware earlier than 4 0 The controller automatically transmits the default initialization string AT A B1 C1 D2 H1 K0 R1 to the modem The defaul...

Page 34: ...and Ping the controller s IP address If the controller is operating correctly you should receive a response to the ping command If you are unfamiliar with the above steps contact KMC Controls for assistance Table 4 2 Tier 1 LAN controller Ethernet settings Setting Description IP address Supplied by network administrator Enter the address next to the panel address of the LAN Controller MTU 1400 or ...

Page 35: ...net system designer Instance numbers are required must be unique among all devices on the internetwork and range from 0 to 4 194 303 Name A required 16 character label of the device Name must be unique among all devices on the internetwork The set of characters used in Name is restricted to printable characters Location Optional information used to further identify a piece of equipment Description...

Page 36: ...the KMD point with both a description and a label in WinControlXL Plus In TotalControl configure the point with both a description and name Use BAC SET BAC GET and BAC RLQ in Control Basic to read and write other objects on other BACnet devices KMC Controls recommends that all BACnet services have adequate error handling protocols within your control program A sample Control Basic code segment is ...

Page 37: ...the network If the LAN Controller must communicate with a network where a firewall is in place the following actions must be taken LAN controllers communicate through one of three Ethernet Ports WinControl to LAN Controller UDP 21068 LAN Controller to LAN Controller UDP 21069 LAN Controller to LAN Controller UDP 21070 These ports must be open for communications to pass through a firewall If the LA...

Page 38: ...KMC Controls Revision E Configuration and programming System time keeping 38 ...

Reviews: