beautypg.com

Sensaphone WSG30 System Users manual User Manual

Page 53

background image

Appendix C: Modbus® specifications

53

quICk aCCEss taBlE

THE FOLLOWING IS A QUICK ACCESS TABLE TO RETRIEVE THE WORD-

ACCESS, READ-ONLY CURRENT INPUT VALUES AS HUMAN-READABLE ASCII

STRINGS . USE THE MODBUS® COMMAND “4” TO ACCESS THE DATA .

Address

Description

Address

Description

Address

Description

3x01552 Zone 1

3x01888 Zone 9

3x02224 Zone 17

3x01594 Zone 2

3x01930 Zone 10

3x02266 Zone 18

3x01636 Zone 3

3x01972 Zone 11

3x02308 Zone 19

3x01678 Zone 4

3x02014 Zone 12

3x02350 Zone 20

3x01720 Zone 5

3x02056 Zone 13

3x02392 Zone 21

3x01762 Zone 6

3x02098 Zone 14

3x02434 Zone 22

3x01804 Zone 7

3x02140 Zone 15

3x02476 Zone 23

3x01846 Zone 8

3x02182 Zone 16

3x02518 Zone 24

Address

Description

3x02560 Zone 25

3x02602 Zone 26

3x02644 Zone 27

3x02686 Zone 28

3x02728 Zone 29

3x02770 Zone 30

3x02812 Power

3x02854 Battery

modBus® data FoRmats

BIt-REpREsEntatIon

THE MODBUS® INTERFACE SUPPORTS A PROGRAMMABLE BIT ORDERING . BOTH THE BYTE- AND

WORD-ORDERS MAY BE INDIVIDUALLY PROGRAMMED TO EITHER LITTLE- OR BIG-ENDIAN FORMATS .

THE DEFAULT IS BIG-ENDIAN BYTE-ORDER AND LITTLE-ENDIAN WORD-ORDER . THIS ONLY APPLIES

TO NUMERIC VALUES . ARRAY, STRING AND BIT TYPES ARE ALWAYS GIVEN IN THE SAME FORMAT .

BIt

BIT VALUES ARE BOOLEAN VALUES WHERE 1 IS “TRUE” AND 0 IS “FALSE” .

uInt8, sInt16, uInt32, sInt32

THESE ARE INTEGER DATA FORMATS . THE “U” STANDS FOR “UNSIGNED”, THE “S” STANDS FOR

“SIGNED” . THE NUMBER INDICATES THE NUMBER OF BITS USED TO REPRESENT THE DATA:

8, 16, OR 32 CORRESPONDING TO 1, 2, OR 4 BYTES RESPECTIVELY . 1 AND 2 BYTE INTEGERS

ARE STORED IN ONE MODBUS® REGISTER WHILE 4-BYTE INTEGERS ARE STORED IN TWO

CONSECUTIVE MODBUS® REGISTERS . THE BYTE- AND WORD-ORDERS ARE PROGRAMMABLE .
THE INTEGER TYPES MAY BE EITHER FIXED-POINT FORMAT OR THE STANDARD STRAIGHT

INTEGER FORMAT . FIXED-POINT INTEGER FORMATS ARE OFFSET BY “100”, SO DIVIDE

THE STRAIGHT BINARY VALUE BY “100” TO GET THE REAL VALUE . THIS PROVIDES

2 DECIMAL PLACES OF PRECISION FOR A MAXIMUM RANGE OF ±80000 .00 .

Float

THIS IS A STANDARD IEEE 754 32-BIT FLOATING-POINT NUMBER . ALL FLOATING-

POINT NUMBERS WILL BE IN THIS FORMAT AND SPAN 2 CONSECUTIVE MODBUS®

REGISTERS ACCORDING TO THE PROGRAMMED BYTE- AND WORD-ORDERS .

stRIng and aRRay

STRINGS AND ARRAYS ARE STRINGS OF 0 OR MORE CHARACTERS/BYTES . THEY ARE ALWAYS

RETURNED FIRST-BYTE FIRST AND LAST-BYTE LAST . STRINGS ARE NULL-TERMINATED WITH

A BINARY 0 ONLY IF THEY ARE SMALLER THAN THEIR MAXIMUM SIZE . FOR EXAMPLE, A

“NAME” STRING MAY BE UP TO 32-CHARACTERS LONG . A VALUE OF “JOHN DOE” WOULD