Sei sulla pagina 1di 14

BACnet Overview

IPAddress: 192.168.8.3
IPAddress: 192.168.8.150
Network: 43723
MSTP Id: 0

Device Instance: 3000027


MSTP Id: 7

Device Instance: 3000028


MSTP Id: 8

Device Instance: 3000029


MSTP Id: 9

BACnet Overview IP Address Configuration

BACnet Overview Network Configuration

BACnet Overview MSTP ID Configuration

BACnet Object Identifiers


BACnet Objects

Identifier

Symbol in SPL

Analog Input

AI

Analog Output

AO

Analog Value

AV

Binary Input

BI

Binary Output

BO

Binary Value

BV

Device

DE

Program

16

PG

Schedule

17

SC

Input Select

300

GPCBTLINPUTSELECT

Min Max Average

301

GPCBTLMINMAXAVG

Math

302

GPCBTLMATH

LOGIC

303

GPCBTLLOGIC

Netmap

307

GPCBTLNETMAP

PID Control

500

GPCBTLPID

BACnet Property Identifiers of Analog Input Object


Property

Identifier

Symbol in SPL

Present Value

85

present_value

Min Present Value

69

min_pres_value

Max Present Value

65

Max_pres_value

Object name

77

object_name

Run Hours

53832

RH

Sensor Type

54100

ST

GID of I/O Device

51017

GI

Input Index of I/O

51491

I#

Examples:

AHU1SPR
AHU1ST
AHU1TMR

EQU
EQU
EQU

[3000028.AI1.present_value]
[BI1.present_value]
[.10001]

SPL Programming Programs and Registers

8 Program blocks of capacity 8k each (PG1 to PG8).

For each program, there are 16 arithmetic registers for


Storage of temporary values. The registers are named
For the first 16 letters of the alphabet (A-P).
Each program register has a 32-bit value and a data type
That is determined automatically

SPL Programming Compiler Control Statements


Statement

Meaning

#GPC

Identifies the target platform

#ONESEC
#ENDONESEC

Defines the extent of once-a-second


routine

SPL Programming Comments and Labels

Define a new Property

SPL Programming Named Constants


Name

Meaning

Value

Type

FALSE

Logical false state

Integer

TRUE

Logical true state

Integer

DAY

Current day of month

1 to 31

Integer

MONTH

Current month of year

1 to 12

Integer

YEAR

Current year

Ex 2012

Integer

DATE

Current date

26-12-2012

Date

DAYOFWEEK

Current day of week

0 to 6

Integer

DAYOFYEAR

Current Julian day

1 to 366

Integer

TIME

Current time

14:41:52

Time

MON

Monday

Integer

TUE

Tuesday

Integer

WED

Wednesday

Integer

THU

Thursday

Integer

FRI

Friday

Integer

SAT

Saturday

Integer

SUN

Sunday

Integer

SPL Programming Built in functions


Function

Description

Data Type

FLOAT(ix)

Convert integer to float

Float

INT(x)

Convert float to integer

Integer

ROUND(x)

Round off

Float

ABS(x)

Absolute value

Float

BETWEEN(tx, tx)

Between two time variables (1=between,


0=not between)

integer

MEAN(x1,x2,..x8)

Average value from list

Integer or float

MAX(x1,x2,..x8)

Maximum value from list

Integer or float

MIN(x1,x2,..x8)

Minimum value from list

Integer or float

SPL Programming Expression Operators


Operator

Description

NOT

1s complement

Multiplication

Division

MOD

Remainder after division

Addition

Subtraction

==

Equality

<>

Inequality

>

Greater than

>=

Greater than or equal

<

Less than

<=

Less than or equal

AND

Bitwise And

OR

Bitwise Or

XOR

Bitwise Exclusive Or

SHL

Bitwise shift left

SHR

Bitwise shift right

SPL Programming IF THEN ELSE Statement

SPL Programming GOSUB Statement

Potrebbero piacerti anche