APC 6000 user manual Function 11 reading event counters, Function 15 writing n consecutive bits

Page 12

JBUS protocol (continued)

Function 11: reading event counters

The master and each slave have one event counter.

This counter is incremented each time a frame is received and interpreted correctly by the slave (except for function 11 itself).

A correctly transmitted message increments the counter. If the slave sends an exception response, the counter is not incremented.

The master can read the counter to determine whether or not the slave correctly interpreted the command (incremented the counter or not).

These functions can be used to diagnose the data exchange taking place between master and slaves.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

request

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

slave address

 

 

0B

 

 

CRC 16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

slave address

 

 

0B

 

 

0

 

slave

 

 

CRC 16

 

 

 

 

 

 

counter word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 byte

 

 

1 byte

2 bytes

 

2 bytes

2 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If the master counter equals the

 

 

If the master counter is one higher

slave counter, the slave executed

 

than the slave counter, the slave

the command sent by the master.

 

did not execute the command sent

 

 

 

 

 

 

 

 

 

by the master.

 

 

Function 15: writing n consecutive bits

request

slave adress

0F

address of the first bit

number of bits

number of bytes

bit data

CRC 16

1 byte

1 byte 2 bytes

 

2 bytes

 

 

1 byte

 

n bytes

 

 

2 bytes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

réponse

 

2 X 1968

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 N 246

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

last bit of

 

first bit of

last bit of

first bit of

first byte

 

first byte

byte N

byte N

 

first byte

 

N bytes

 

 

 

 

 

response

 

 

 

 

 

 

 

 

 

slave address

0F

address of the first bit

number of bits

CRC 16

1 byte

1 byte

2 bytes

2 bytes

2 bytes

 

 

1

X 1968

 

Note: if the slave address is 0, all units execute the write command without sending a response.

Page 12 - 6739389EN/FB

Image 12
Contents Mgetm GalaxyTM GTC link communication interface2 6739389EN/FB Contents Presentation IntroductionACQ module COM moduleCommunication settings InterfaceJbus protocol Principle Synchronizing data exchangesDescription 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 UPSParallel connected UPS with Static Switch cubicle Operation without batteryUPS without Mains Operation with battery Block diagram Unitary UPSMeasured quantities Normal operation Load on battery Main status bits UPS operating informationOperating modes Load on Mains Load on bypass Parallel connected UPS Normal operation Load on battery Disconnected Main status bits of system operationsStatic Switch cubicle Static Switch Main indicators of system operationsNormal operation Load on Mains Load on bypass Example of read data array commands sent by the terminal Sample commands List of variable fieldsSystem information Message formatGeneral definitions Signaling field Tables of measured dataCurrent fields Power fields Frequency fields Voltage fieldsBattery and adjustments fields Tables of binary dataRectifier-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