Manual
Table Of Contents
- Important Notes
- Notice
- Limited Warranty
- Preface
- Chapter 1 Module Overview
- Chapter 2 Installation and Wiring
- Chapter 3 Configuring the Module using Software
- Section 3.1 Configuring the System
- Section 3.2 Setting Up Tags
- Section 3.3 Editing XML Tag Information
- Section 3.4 Generating Structured Text
- Section 3.5 Using the CCW Structured Text Example
- Section 3.6 Viewing Version Information
- Section 3.7 Viewing Log Information
- Section 3.8 Upgrading the Software
- Section 3.9 Saving Changes
- Section 3.10 Reloading System Configuration
- Chapter 4 Implementing the BACnet Protocol

3-14 Chapter 3: Configuring the Module
User’s Manual Pub. 0300274-01 Rev. A.0
The first step is to create Local Variables for the Main program.
The second step is to paste in the structured text generated by the Module
configuration user interface to the Main program of the CCW. Below is an
example of this Main program.
A variable called tag1 is converted to ULINT variable bacnet_convert_var
and then placed at offset 0 of the byte array table because you are writing
AnalogInput 0. If it is AnalogInput 1, the offset will be 8 as each BACNET
object instance takes 8 bytes. Variable bacnet_convert_mode is 1. This means
this is a write operation. 0 identifies a read operation:
(* 0, AnalogInput, aiaaa *)
bacnet_convert_var := ANY_TO_ULINT(tag1);
bacnet_convert_offset := 0;
bacnet_convert_mode := 1;
bacnet_convert_fn(bacnet_convert_offset,
bacnet_convert_var, bacnet_convert_mode);
(* Write Input Table to Module *)
bacnet_module_address := 112;
bacnet_module_datalen := 8;
bacnet_module_write_fn(TRUE, BACNET_MODULE_SLOT,
bacnet_module_address, bacnet_module_datalen,
bacnet_convert_fn.bac_raw_tbl);