The RS-485 interface is used for integrating RWF40… controllers into data networks
via MOD bus protocol.
Application examples:
- Process visualization
- Plant control
- Reporting
Communication between a PC (master) and a device (slave) via MOD bus is based on
the master-slave principle in the form of data query / instruction – reply.
RWF40...
CC1A7865.1en
31.10.2002
A master computer controls the exchange of data and can address up to 99 controllers
via device addresses (slaves).
Siemens Building Technologies
HVAC Products
Transmission mode (RTU)
The transmission mode used is the RTU (remote terminal unit) mode. Data are transmitted in binary format (hexadecimal) with 8 bits.
The LSB (least significant bit) is transmitted first.
ASCII mode is not supported.
Data format
Device address
The data format describes the structure of the transmitted byte.
Data wordParity bitStop bit ½ bitNumber of bits
8 bitNot19
The slaves’ device addresses can be selected between 1 and 99.
Device address 0 is reserved.
A maximum of 31 slaves can be addressed via the RS-422 / RS-485 interface.
+
There are 2 choices of data exchange:
QueryData query / instructions delivered by the master to a slave via the re-
spective device address.
The addressed slave responds.
BroadcastMaster instructions to all slaves via device address 0.
The addressed slaves do not respond.
A data query with device address 0 does not make sense.
A certain setpoint can be transmitted to all slaves, for example.
In that case, correct adoption of the value by the slaves should be
checked by subsequent setpoint readout.
2/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Communication sequence
Both the start and end of a data block are characterized by transmission pauses. The
maximum period of time that may elapse between 2 successive characters is 3 times
the period of time required for the transmission of one character.
The character transmission time (period of time required for the transmission of 1 character) is dependent on the Baud rate and the type of data format.
Using a data format of 8 data bits, no parity bit and 1 stop bit, the character transmission time is calculated as follows:
Character transmission time [ms] = 1000 * 9 bits / Baud rate
Process
Example
Data query by the master
Transmission time = n characters * 1000 * x bits / Baud rate
Identification of end of data query
3 characters * 1000 * x bits / Baud rate
Handling of data query by the slave (£ 250 ms)
Reply by the slave
Transmission time = n characters * 1000 * x bits / Baud rate
Identification of end of reply
3 characters * 1000 * x bits / Baud rate
Identification of the data query or end of the reply with a data format of 10 / 9 bits.
Waiting time = 3 characters * 1000 * x bits / Baud rate
Baud rateData format [bits]Waiting time [ms]
9.60092.813
19.20091.406
3/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Data query sequence
Time sequence
The time sequence of a data query looks as follows:
Master
Slave
7865z12e/1102
Data query
Data query
Reply
t
t
0
1
t
t
0
2
t0Identification of end = 3 characters
(time is dependent on the Baud rate)
t1This time is dependent on internal handling.
The maximum handling time is 250 ms
t2This is the time required by the device to switch from the transmitting mode back
to the receiving mode.
This time must be observed by the master before it makes a new data query. It
must always be maintained, even if the new data query is sent to some other
device.
t2 ³ 20 ms
Communication during the slave’s internal handling time
The master is not allowed to make any data queries during the slave’s internal handling
time.
Data queries made during that period of time will be ignored by the slave.
Communication during the slave’s response time
The master is not allowed to make any data queries during the slave’s response time.
Data queries made during that period of time cause all data currently on the bus to
become obsolete.
4/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002