APC 6000 Principle, Synchronizing data exchanges, Description of request and response frames

Page 7

JBUS protocol (continued)

Principle

A full understanding of the protocol is only required if the master is a computer that must be programmed.

All communications include 2 messages: a request from the master and a response from the slave.

Each message or frame containes

4 types of information:

slave address (1 byte)

The slave address specifies the destination station (see address list):

unitary rectifier-inverter cubicle,

parallel rectifier-inverter cubicle,

Static Switch cubicle.

If zero, the request addresses all slaves and there is no response message (in which case it is a broadcast message, a function not used in this application);

function code (1 byte) Selects a command (e.g. read or write a bit or a word) and checks that the response is correct.

The JBUS protocol comprises 10 functions of which 3 may be used in this application: function 3 (read n output or internal words), or function 4 (read n input words), or function 16 (write n words);

information field (n bytes)

The information field contains the parameters related to the functions: bit address, word address, bit value, word value, number of bits, number of words;

check word (2 bytes)

A word used to detect transmission errors.

Synchronizing data exchanges

Any character received after 3 or more character lengths of silence is interpreted as the start of a frame. Therefore, a minimum silence of 3 character lengths between frames must be respected.

Description of request and response frames

request

information requested: bit/word address, bit/word value, bit/word number.

1 byte

1 byte

 

 

 

 

 

 

 

 

 

 

 

 

slave adress

function

information

(1 à FF)

code

 

 

 

 

 

 

n bytes

This function code selects one of

10 possible commands:

-Function 1 : read n output or internal bits

-Function 2 : read n input bits

-Function 3 : read n output or internal words

-Function 4 : read n input words

-Function 5 : write one bit

-Function 6 : write one word

-Function 8 : data exchange diagnostics

-Function 11 : read event counter

-Function 15 : write n bits

-Function 16 : write n words

2bytes

check word

When the message is received, the slave reads the check word and accepts or refuses the message

response

values of bits or words read values of bits or words written number of bits or words

slave adress (1 à FF)

function code

data

CRC check word

1 byte

1 byte

bytes

2 bytes

6739389EN/FB - Page 7

Image 7
Contents GTC link communication interface Mgetm GalaxyTM2 6739389EN/FB Contents COM module Presentation Introduction ACQ moduleInterface Communication settingsJbus protocol Synchronizing data exchanges PrincipleDescription of request and response frames 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 operationOperation without battery Parallel connected UPS with Static Switch cubicleUPS without Mains Operation with battery Unitary UPS Block diagramMeasured quantities Main status bits UPS operating information Normal operation Load on batteryOperating modes Load on Mains Load on bypass Parallel connected UPS Main status bits of system operations Normal operation Load on battery DisconnectedStatic Switch cubicle Main indicators of system operations Static SwitchNormal operation Load on Mains Load on bypass Message format Example of read data array commands sent by the terminalSample commands List of variable fields System informationTables of measured data General definitions Signaling fieldCurrent fields Voltage fields Power fields Frequency fieldsTables of binary data Battery and adjustments fieldsRectifier-charger 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