PROTOCOL

The communication protocol can be easily implemented in any programmable controller to ensure high efficiency and low cost.

Ready-to-use gateways are available to convert TraxBus into industry standard fieldbus systems.

See below for typical communication times at different baud rates.

Messages must be ASCII characters, 8bits, no parity, 1 stop bit.


COMMAND

FROM SUPERVISOR TO PERIPHERALS


Commands issued to peripherals within a single string terminated with Carriage Return:


< S N C KK <Cr>

<

Preamble (from master)


S

Segment, Zone identifier


N

Node, Unit identifier


C

Command


KK

Checksum


<Cr>

Carriage return

RESPONSE

FROM PERIPHERALS TO SUPERVISOR


Peripherals will acknowledge all valid command received from supervisor:


> S N T KK <Cr>

<

Preamble (to master)


S

Segment, Zone identifier


N

Node, Unit identifier


T

Status


KK

Checksum


<Cr>

Carriage return

S and N can be any alphanumeric character and must match the settings of the peripheral to be addressed.

The special character * (star) can be used like wild card to send broadcast command: a star character instead of S will address all existing nodes, a star character instead of N will address the whole segment, two star characters will address all the connected units. No acknowledge answer sent back after broadcast commands.


CHECKSUM CALCULATION

  • Commands without a valid checksum (KK) are ignored.
  • The answer includes a valid checksum that can be optionally evaluated by supervisor.
  • KK is the ASCII figure of the sum of all characters HEX values, including Carriage Return.
  • See example and use only last two characters, ignoring leading ones (if any).

< 0 8 S 04 <Cr>

<

Equals HEX 3C +


0

Equals HEX 30 +


8

Equals HEX 30 +


S

Equals HEX 53 +


<Cr>

Equals HEX 0D =



ASCII 104  


Any supervisor takes time for internal processes, real fieldbus performance should be calculated by adding this delay.

POLLING TIME 1 UNIT



4800

9600

19200

38400

COMMAND

15 ms

8 ms

4 ms

2 ms

Q2 PROCESS

4 ms

4 ms

4 ms

4 ms

ANSWER

15 ms

8 ms

4 ms

2 ms

OVERALL

34 ms

20 ms

12 ms

8 ms

POLLING TIME 100 UNITS



4800

9600

19200

38400

COMMAND

1,5 s

0,8 s

0,4 s

0,2 s

Q2 PROCESS

0,4 s

0,4 s

0,4 s

0,4 s

ANSWER

1,5 s

0,8 s

0,4 s

0,2s

OVERALL

3,4 s

2,0 s

1,2 s

0,8 s




PROTOCOL CONVERSION 

TraxBus can be managed in many ways.

Devices are available to convert the physical interface, use standard fieldbuses, or even control directly with contacts without any programming.