APC 6000 user manual Function 6 writing a word, Function 8 reading error diagnosis counters

Page 11

JBUS protocol (continued)

Function 6: writing a word

request

 

slave address

6

 

word address

word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

1 byte

 

2 bytes

2 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRC 16

2 bytes

slave address

6

word address

word

CRC 16

The response is echoed acknowledging that the word sent has been received.

example

Writing the value 1000 into the word location 810H of slave at address 50H

50

06

08 10

10 00

8A 2E

Function 8: reading error diagnosis counters

Each slave manages a set of nine 16 bit counters for error diagnosis (see opposite):

- request / response:

slave address

8

 

sub-function

data

 

CRC 16

 

code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

1 byte

2 bytes

-the slave must echo the request

-reset error diagnosis counter

-read the total number of:

received frames with CRC error (CNT 1)

received frames with CRC error (CNT 2)

number of exception responses (CNT 3)

frames addressed to the station (CNT 4) (not including broadcast)

broadcast requests received (CNT 5)

number of NACK responses (CNT 6) unit not ready responses (CNT 7)

illegal characters (CNT 8)

 

 

2 bytes

2 bytes

 

 

 

 

 

 

 

 

 

 

00

XYZT

X, Y, Z, T are user

 

 

 

 

defined (transmission

 

 

 

 

parameters)

0A

0000

 

0B

XXXX

 

0C

XXXX

 

0D

XXXX

requests:

 

 

 

 

0E

XXXX

XXXX equals 0000

response:

 

 

 

 

0F

XXXX

XXXX is the counter

value

 

 

 

 

10XXXX

11XXXX

12XXXX

6739389EN/FB - Page 11

Image 11
Contents GTC link communication interface Mgetm GalaxyTM2 6739389EN/FB Contents COM module PresentationIntroduction ACQ moduleInterface Communication settingsJbus protocol Description of request and response frames PrincipleSynchronizing data exchanges Checking received messages on the slave side Function 1 and 2 read N bits FunctionsFunction 5 writing a bit Function 3 and 4 read N wordsFunction 6 writing a word Function 8 reading error diagnosis countersFunction 15 writing n consecutive bits Function 11 reading event countersMSB LSB MSB LSB MSB Function 16 writing n consecutive wordsCRC 16 algorithm Example of CRC computation Table of Most Significant Bytes for CRC16 Computation Example of CRC 16 computation in C using table lookupJbus protocol Unitary UPS UPS theory of operationUPS without Mains Parallel connected UPS with Static Switch cubicleOperation without battery Operation with battery Measured quantities Block diagramUnitary UPS Operating modes Normal operation Load on batteryMain status bits UPS operating information Load on Mains Load on bypass Parallel connected UPS Main status bits of system operations Normal operation Load on battery DisconnectedStatic Switch cubicle Normal operation Load on Mains Load on bypass Static SwitchMain indicators of system operations Message format Example of read data array commands sent by the terminalSample commands List of variable fields System informationCurrent fields General definitions Signaling fieldTables of measured data Voltage fields Power fields Frequency fieldsRectifier-charger Battery and adjustments fieldsTables of binary data Connectivity InverterGlobal information Table of control devicesWord address Glossary of information descriptorsInverter stack overload 0=no/1=overload Word address 4C Word address 4AWord address 4E summary Word address 4DWord address C1 C10 call reset 0= not activated / 1=activated
Related manuals
Manual 46 pages 29.39 Kb