APC 6000 user manual Function 3 and 4 read N words, Function 5 writing a bit

Page 10

JBUS protocol (continued)

Function 3 and 4: read N words

The number of words must be less than or equal to the word field size (see memory board).

function 3: read output or internal words;

function 4: read input words.

 

request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

slave address

 

 

3 or 4

 

adress of

 

 

 

 

number of

 

 

 

CRC 16

 

 

 

 

first bit

 

 

 

 

words

 

 

 

 

 

 

 

 

 

 

 

 

MSB

LSB

 

MSB

 

LSB

 

 

 

 

 

 

1 byte

 

 

1 byte

 

2 bytes

 

 

 

2 bytes

 

 

2 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

slave address

 

 

3 or 4

 

number of

 

 

first word

 

last word

 

 

CRC 16

 

 

 

 

bytes read

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PF

 

pf

 

PF

 

pf

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

 

1 byte

 

1 byte

 

 

2 bytes

 

2 bytes

 

 

2 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

example

Reading words at location 146 to 14B of slave at address 28H (voltage fields)

request:

 

 

 

 

 

 

 

 

28

03

 

0146

 

06

 

A7 E0

 

 

 

 

 

 

 

 

 

 

 

 

 

response:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

28

03

 

0C

 

XXXX

 

YYYY

CRC 16

 

 

 

 

 

 

 

 

 

 

 

word 0146

word 014B

Function 5: writing a bit

request

slave address

5

 

bit address

bit value

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

1 byte

 

2 bytes

 

1 byte

 

1 byte

 

 

 

 

 

 

 

 

 

 

 

 

write 0

 

 

 

 

bit set to 0

 

 

 

 

 

 

 

 

 

 

 

bit set to 1

 

 

write FF

 

 

 

 

 

CRC 16

2 bytes

response

slave address

5

bit address

bit value

0

CRC 16

In function 5 the response and request frames are identical.

example

Setting bit location C05 to 1 of slave at address 40H (inverter on)

request:

40 05 0C05 FF 00 90 7A

Page 10 - 6739389EN/FB

Image 10
Contents Mgetm GalaxyTM GTC link communication interface2 6739389EN/FB Contents ACQ module PresentationIntroduction COM moduleCommunication settings InterfaceJbus protocol Synchronizing data exchanges Principle Description of request and response frames Checking received messages on the slave side Functions Function 1 and 2 read N bitsFunction 3 and 4 read N words Function 5 writing a bitFunction 8 reading error diagnosis counters Function 6 writing a wordFunction 11 reading event counters Function 15 writing n consecutive bitsFunction 16 writing n consecutive words MSB LSB MSB LSB MSBCRC 16 algorithm Example of CRC computation Example of CRC 16 computation in C using table lookup Table of Most Significant Bytes for CRC16 ComputationJbus protocol UPS theory of operation Unitary UPSOperation 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 Normal operation Load on battery Disconnected Main status bits of system operationsStatic Switch cubicle Main indicators of system operations Static SwitchNormal operation Load on Mains Load on bypass System information Example of read data array commands sent by the terminalSample commands List of variable fields Message formatTables of measured data General definitions Signaling fieldCurrent fields Power fields Frequency fields Voltage fieldsTables of binary data Battery and adjustments fieldsRectifier-charger Inverter ConnectivityTable of control devices Global informationGlossary of information descriptors Word addressInverter stack overload 0=no/1=overload Word address 4A Word address 4CWord address 4D Word address 4E summaryC10 call reset 0= not activated / 1=activated Word address C1
Related manuals
Manual 46 pages 29.39 Kb