KMD-5205 and KMD-5270 Installation and Operation
Revision J
Configuration and programming
Control Basic programming for BACnet
31
Control Basic
programming for
BACnet
These topics apply only to the following models:
Control Basic programming for BACnet
For Control Basic programming, the KMD–5270 models support the BACnet
object types that are listed in Table 4-4.
Program the controllers as you would other KMD series controllers. Observe the
following details when programing an interface to a BACnet internetwork:
◆
Only input, output and variable points within a BACnet licensed 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, configure the KMD point with
both a description and a label.
◆
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. The following Control Basic
code segment demonstrates reading the state of binary input BI8 in a BACnet
device with instance number 1.
Caution
The WAIT statement in the following example is required. Do not delete it or
the program will not run correctly.
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
◆
KMD-5205-001
◆
KMD-5270-001
◆
KMD-5205-006
◆
KMD-5270-006
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