DUEMMEGI
MCP 4 – User's manual
Contatto
Note 2:
The less significant bit of the first Word in the map of virtual points (Word 1153) is the status of virtual point V1, the most
significant bit of the same Word is the status of the virtual point V16, and so on for the next Words. Bit=1 means active status and bit=0
means non-active status. The virtual point n is the bit (n-1)%16 (n-1 module 16) of the Word 1153 + INT[(n-1)/16].
Note 3:
These Words contain the current status of MCP 4 internal timekeeper chip; in addition to reading, these cells may be written
and in this case the timekeeper chip will be updated with new passed parameters (also in MODBUS protocol). All Words related to the
timekeeper information have the MSByte always set to zero, while the LSByte contains the related information (hh, mm, ss, day of the
week, day, month, year) in BCD format.
Note 4:
The binary event list can store up to 2048 events, and it is organized in blocks of 8 bytes for each event. Each 8-byte block
(related to an event) is coded as follows:
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
VIRT
Module_Address (1
127)
STATUS
SYS. F
Channel ( 0 – 3 )
Point (0
15)
-
-
-
-
Hours
-
-
Minutes
-
-
Seconds
-
-
-
Day of the month
-
-
-
-
Month
1.
If the bit VIRT is =1, then the specified address is referred to a virtual point
2.
For virtual point Vn, n = ((Module_Address) - 1) x 16) + Point + 1
3.
(SYS.F = 1) & (Module_Address = 0) & (STATUS=1) means BUS.F
4.
(SYS.F = 1) & (Module_Address = 0) & (STATUS=0) means BUS. OK
5.
(SYS.F = 1) & (Module_Address <> 0) & (STATUS=1) means MOD.F
6.
(SYS.F = 1) & (Module_Address <> 0) & (STATO=0) means MOD.OK
7.
The symbol – means “not used”
Note 5:
The list of analog events (values or codes) can store up to 1024 events, and it is organized in blocks of 8 bytes for each event.
Each 8-byte block (related to an event) is coded as follows:
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
-
Module_Address (1
127)
Value or Code (Byte_H)
Value or Code (Byte_L)
-
-
-
Hours
-
-
Minutes
Channel ( 0 – 3 )
Seconds
-
-
-
Day of the month
-
-
-
-
Month
The symbol – means “not used”.
Note 6:
The configuration map (bytes 0xE800
0xE9FF) contains the information related to the bus modules included in the polling
cycle of MCP 4. The information is organized in two bytes for each module with offset = 2x(Module_Address) as follows:
offset 0 (Bytes 0xE800
0xE801): not used
offset 2 (Bytes 0xE802
0xE803): input module 1
offset 4 (Bytes 0xE804
0xE805): input module 2
………
offset 254 (Bytes 0xE8FE
0xE8FF): input module 127
offset 256 (Bytes 0xE900
0xE901): not used
offset 258 (Bytes 0xE902
0xE903): output module 1
………
offset 510 (Bytes 0xE9FD
0xE9FF): output module 127
On the contrary of other cases, the first byte (that with even address) must be interpreted as low byte of the Word and the second one
(that with odd address) as high byte of the Word; in other words, the bits of each Word in this map must be interpreted as follows:
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Bit15 Bit14 Bit13 Bit12 Bit11 Bit10 Bit9 Bit8
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it
Rel.: 1.2 October 2018
Page 57 of 87