6.3.7 Edit schedule
A BA-weekly schedule has 7 daily schedules (corresponding to Monday – Sunday).
Each daily schedule includes a list of [Time, Value] in pairs. The list describes the
sequence of scheduled actions for a given day of the week.
The data structure of each [Time, Value] pair is encoded in 2 MODBUS holding
registers with the following structure:
Register
Address
b15
b1
4
b1
3
b1
2
b1
1
b1
0
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
x
NULLVal
Hours (00…23; 0x7F)
Minutes (00…59; 0xFF)
X+1
Value
MODBUS structure for [Time, Value] pair (16bit)
●
Mapped time information on MODBUS does not support encoding in seconds
and hundredths of a second.
●
Flag NULLVal = 1: Encode Value= NULL, i.e. it disables this entry.
●
Flag NULLVal = 0: Field value is a valid value ≠ NULL, i.e. this enables this
time entry.
●
Void [Time, Value] pair is encoded with Hours = 0x7F and Minutes = 0xFF. In
this case, the field value is interpreted as a void value.
●
Depending on the schedule type, the register value can be:
–
A multistate Value >0, encoded at 16 bit
–
Or a binary where only the values 0x0000 or 0x0001 are allowed.
–
Example: multistate ROpMod encoding.
Register
Address
Register
Value
X
NULLVal:
0
Hours: 00
Minutes 00
X+1
Unoccupied (Value=2)
X+2
NULLVal:
0
Hours: 06
Minutes 00
X+3
Economy (Value=3)
X+4
NULLVal:
0
Hours: 22
Minutes 30
X+5
Unoccupied (Value=2
X+6
NULLVal:
1
Hours: 0x7F
Minutes 0xFF
X+7
--
…
…
X+30
NULLVal:
1
Hours: 0x7F
Minutes 0xFF
X+31
---
MODBUS structure for daily-schedule for 16bit OpMode value
X=Schedule register address
●
MODBUS mapping of the BA-daily-schedule reserves a fixed number of
16 [Time, Value] pairs.
●
The [Time, Value] entries are sorted (by time, ascending).
●
We recommend starting the 1st entry at [00:00,Value] for a clear value
definition after midnight (the BA schedule default may otherwise be active).
Engineering of communicative devices
Modbus slave
6
166 | 170
A6V10733786_en_c