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
Write limit value limit comparator 1 (AL1) (= 275)
Word address = 0x000C
Instruction: (write the first part of the value)
0B06000C8000CRC16
Reply (like instruction):
0B06000C8000CRC16
Instruction: (write the second part of the value)
0B06000D4389CRC16
Reply (like instruction):
0B06000D4389CRC16
7/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Writing n words
Instruction
Reply
Example
Data type “char“
Slave
address
Function
0x10
Address
of first
word
Number of
words
Number of
bytes
(max. 2)
Word
value(s)
Check-
sum
CRC16
1 byte1 byte2 bytes2 bytes1 bytex byte(s)2 bytes
Slave addressFunction 0x10Address of
first word
Number of
words
Checksum
CRC16
1 byte1 byte2 bytes2 bytes2 bytes
Write switch-on threshold (Hys1 = -10)
Word address = 0x0018
Instruction:
0B1000180002040000C120CRC16
Reply:
0B1000180002CRC16
The high byte must be transmitted first.
Example:Configuration code C111:“9030“
MOD bus:0B10 0024 00 02 04 0903
Data type “float“
The following explanations apply under the condition that the master works with the
IEEE-754 format. Before transmitting a value, the bytes must be exchanged in a way
that the order corresponds to the presentation for the MOD bus (see illustration below).
M-23 bit normalized mantissa
E-exponent (complement to base 2)
S-Sign-bit; 1 = negative, 0 = positive
MOD-Bus
Master
(IEEE 754)
MMMMMMMM
SEEEEEEE
MMMMMMMM
EMMMMMMM
SEEEEEEE
MMMMMMMM MMMMMMMM
EMMMMMMM
7865z13e/1102
Read
Write
Example:
Transmission of decimal value “550“:
MOD bus:0x80, 0x00, 0x44, 0x09
Following is a description of all process values (variables) with their addresses, data
type and type of access.
Where:
R / ORead only access
R / WRead and write access
floatFloat value (4 bytes / 2 words)
wordInteger (2 bytes / 1 word)
The process values are subdivided into logic areas.
8/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Address tables
Process data
AddressData
AccessParameterValue rangeDefault
type
0x0000floatR / OActual value E1
0x0002floatR / OActual value E2
0x0004floatR / OActual value E3
0x0006floatR / WCurrent setpoint
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Device state
AddressData typeAccessParameter
0x0200wordR / OOutputs and states
B15 B14 B13 B12 B11 B10B9B8B7B6B5B4B3B2B1B0
B8Hysteresis limitationB0Output 1 off
(for remote operation)B1Output 3 off
B9Management system offB2Output 2 off
(for remote operation)B3Output 4 off
B10Self-optimization active
B11Second setpoint active
B12Measured value range crossing input 1
B13Measured value range crossing input 2
B14Measured value range crossing input 3
B15Reserved
0x0201wordR / OBinary signal and hardware identification
B15 B14 B13 B12 B11 B10B9B8B7B6B5B4B3B2B1B0
B15ReservedB0Operating mode 2-stage active
B14Interface presentB1Manual operation active
B13Analog output presentB2Binary input 1 closed
B3Binary input 2 closed
B4Thermostat function active
B5First controller output active
B6Second controller output active
B7Limit comparator active
11/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Description of operating modes
General
RAM parameter for remote operation
Parameter «RemoteStatus» is used to switch between the operating modes «LOCAL»,
«REMOTE SETPOINT» and «FULLY REMOTE». The change is always accomplished
via the MOD bus.
In the event the master fails or communication is lost, the RWF40... will switch to operating mode «LOCAL». The time for detecting a failure is set via the interface.
Remote
parameter
REMOperating mode «LOCAL», «REMOTE SETPOINT» or
Default after
«Power-up»
= 0
«FULLY REMOTE»
SPRSetpoint remote= SP1
RHYS1Switch-on threshold remote= Hys1
RHYS2Lower switch-off threshold remote= Hys2
RHYS3Upper switch-off treshold remote= Hys3
ROFFController ON (0) / OFF (1) in operating modes
= 0 ¹
)
«REMOTE SETPOINT» and «FULLY REMOTE»
RSTEPNumber of control cycles (opening / closing) (FULLY
= 0 ²
)
REMOTE)
RK1Release of burner (FULLY REMOTE)= 0 ³
RK2Controlling element opens (FULLY REMOTE)= 0 ³
RK3Controlling element closes (FULLY REMOTE)= 0 ³
RK6Value of «K6» in operating modes «SETPOINT
)
)
)
= 0
REMOTE» and «FULLY REMOTE»
RYDegree of modulation for the analog output (FULLY
= 0
REMOTE) in %
¹)Controller active
)
²
No travel command (K2 + K3 = deenergized)
)
³
When the operating mode changes (e.g. LOCAL ® FULLY REMOTE), the relay
information and the degree of modulation will be predefined, depending on the
operating state of the plant.
DttBus detection timer (value will also be maintained after a power failure)
The remote parameters are stored in RAM and will no longer be available after a power
failure.
After «Power-up», the default values will be used.
12/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Operating mode
«LOCAL»
The previous functions of the RWF40... are maintained (apart from memory usage).
The RWF40... can be parameterized and uploaded via the MOD bus, whereby the outputs cannot be changed. After «Power-up», the RWF40... will normally assume operating mode «LOCAL».
Operating mode
«REMOTE SETPOINT»
The RWF40... monitors cyclic bus communication via the «Dtt» parameter (bus detection timer). Operating mode «REMOTE SETPOINT» is active as long as the bus calls
within the predefined period of time. If the time limit is crossed, the RWF40... will switch
to operating mode «LOCAL» and continues to operate using the parameters of local
operation.
Like in operating mode «LOCAL», the control functions of the RWF40... are maintained.
With regard to setpoint and switching thresholds, only «RSP» and «RHYS1...RHYS3»
are active. The setpoints (SP1 and SP2), the external setpoint, the weathercompensated setpoint, the analog / binary setpoint shift and the associated changeover
functions are not available.
After the controller’s «Power-up», setpoint «SP1» and switching thresholds
«Hys1...Hys3» will be copied to RAM as remote parameters in a one-time operation.
These remote parameters can then only be changed via the management system.
The control algorithm can be deactivated by the management system via parameter
«ROFF=1». In that case, the RWF40... will switch the burner off and causes the controlling element to travel to the fully closed position. The controller terminates manual
operation (analog safety shutdown).
Self-optimization is not possible in this operating mode.
The management system controls contact «RK6» (relay «K6»).
Operating mode
«FULLY REMOTE»
The RWF40... monitors cyclic bus communication via the «Dtt» parameter (bus detection timer). Operating mode «FULLY REMOTE» is active as long as the bus calls within
the predefined period of time. If the time limit is crossed, the RWF40... will switch to
operating mode «LOCAL» and continues to operate using the parameters of local operation.
The management system switches the burner (RK1, relay «K1»), controls the actuator
(RK2 and RK3, relays «K2 / K3»), or defines the degree of modulation in the case of an
analog output, and controls contact «RK6» (relay «K6»).
Using parameter «ROFF=1», control of the burner and controlling element can be
switched off by the management system. In that case, the RWF40... deactivates the
burner and causes the controlling element to travel to the fully closed position.
Manual operation and self-optimization are not possible in this operating mode.
2-stage burner:
If, with a 2-stage burner, relay positions «RK2» and «RK3» are identical, the settings
are «K2 = deenergized» and «K3 = energized» (closing).
The analog output is set as follows, depending on the relay positions «RK2» and
«RK3»:
K2 = energized, K3 = deenergized ® analog output = 10 V or 20 mA
K2 = deenergized, K3 = energized ® analog output = 0 V or 0 / 4 mA
Setting the «RY» by the management system has no impact.
13/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Mudulating burner
Modulating controller:
The management system predefines the value (degree of modulation) for the analog
output via «RY».
Setting the «RK2» and «RK3» by the management system has no impact.
Both relays «K2» and «K3», are deenergized.
Floating step controller:
The management system controls the actuator («RK2» and «RK3», relays «K2» /
«K3»).
Setting the «RY» by the management system has no impact. In that case, the analog
output delivers 0 V or 0 / 4 mA.
The RWF40... always checks to ensure that «RK2» and «RK3» (opening / closing) are
not activated simultaneously. In such a case, the response is «K2 = K3 = deenergized».
If both relay contacts change their position during the controller’s sequence time, the
output is «K2 = K3 = deenergized». This time contact interval («K2 = K3 = off» for one
scanning time) is also permitted in 2-stage operation.
Control strategy for
floating output with
modulating burner
operation
Supervision of actual
value by setpointdependent switching
thresholds
The remote relay commands «RK2» and «RK3» (relays «K2» / «K3») control the
opening and closing travel of the controlling element. Using parameter «RSTEP», the
management system predefines the required number of control cycles.
Output «K2» (opening) is controlled by a travel command and a positive number.
Output «K3» (closing) is controlled by a travel command and a negative number.
The number gives the number of RWF40... scanning cycles (210 ms) with which the
output is controlled.
The travel command with number 0 deenergizes immediately «K2» and «K3».
If a new travel command is given before the control time has elapsed, the RWF40...
ascertains the direction of rotation requested by the command. If the direction of rotation does not change, the control time will immediately be replaced by the new value. If
the direction of rotation must be reversed, the controlled output will be dactivated and,
for the next scanning cycle, the appropriate control time is used (time contact interval).
If, simultaneously with the control strategy for the floating output, outputs «K2» and
«K3» (via «RK2» and «RK3») are directly set by the management system, the relay
information from the control strategy and output information «K2» and «K3» have a
logic «OR» connection. «RK2» and «RK3» (opening / closing) must never be energized
simultaneously. In such a case, the response is «K2 = K3 = denergized».
In operating mode «FULLY REMOTE», the management system ensures burner control. The RWF40... monitors the actual value to make certain the switching hystereses
will be observed.
If the actual value crosses the upper switch-off threshold, the management system will
be locked (status flag, «Management system locked» can be read via the interface).
The management system is released again when the actual value returns to a level
below the switch-on threshold.
If supervision of the actual value is not desired, the switching hystereses in the
RWF40... must be set to the respective maximum value.
In operating mode «REMOTE SETPOINT», the control algorithm ensures this kind of
supervision.
ã2002 Siemens Building Technologies
14/14
Siemens Building TechnologiesCC1A7865.1en
HVAC Products31.10.2002
Subject to change!
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.