beautypg.com

Sensaphone WSG30 System Users manual User Manual

Page 54

background image

WSG30 Users Manual

54

BE TERMINATED BY A “0” BECAUSE IT IS LESS THAN 32-CHARACTERS LONG, BUT NOT

A NAME THAT IS 32-CHARACTERS LONG . ARRAYS ARE NEVER TERMINATED .

non-gEnERIC data

tImEstamps

TIMESTAMPS CAN BE DECODED USING THE FOLLOWING EQUATIONS . “DIV” MEANS INTEGER

DIVISION WHERE THE REMAINDER IS DROPPED . “MOD” MEANS THE “MODULUS” OR “REMAINDER” .

ALL VALUES START AT “0” . FOR EXAMPLE, DAY 0 IS THE FIRST DAY OF THE MONTH AND MONTH

0 IS JANUARY . THE YEAR IS OFFSET BY -2000, SO THAT A VALUE OF 9 INDICATES 2009 .

seconds

= (Value div 1) mod 60

Minutes = (Value div 60) mod 60

hours

= (Value div 3600) mod 24

day

= (Value div 86400) mod 31

Month

= (Value div 2678400) mod 12

year

= (Value div 32140800)

TIMESTAMPS ARE ENCODED IN THE REVERSE:

timestamp = (seconds

* 1) +

(Minutes

* 60) +

(hours

* 3600 +

(day

* 86400) +

(Month

* 2678400) +

(year

* 32140800)

42-BytE aRRays (sChEdulEs)

THE 42-BYTE ARRAYS ARE BITMAPPED BOOLEAN SCHEDULE DATA, WHERE THE FIRST

BIT OF THE FIRST BYTE INDICATES THE FIRST 30-MINUTE BLOCK ON SUNDAY MORNING

(12:00:00AM TO 12:29:59AM) AND THE LAST BIT OF THE LAST BYTE INDICATES THE

LAST 30-MINUTE BLOCK ON SATURDAY EVENING (11:30:00PM TO 11:59:59PM) .

Input typEs:

Input Type

Description

0

normally open

1

normally Closed

2

2.8k thermistor ºF

3

2.8k thermistor ºC

4

10k thermistor ºF

5

10k thermistor ºC

6

4-20ma

12

Battery (Internal)

13

Power (Internal)

alaRm CondItIon and REaltImE statE:

State

Description

0

ok (no alarm)

1

low limit alarm or Closed dry Contact alarm

2

high limit alarm or open dry Contact alarm