Contatto
MCP 4 – User's manual
DUEMMEGI
9.2- RAM memory mapping
The following table describes the RAM mapping of MCP 4 for the commonly used parameters.
Notes:
Unspecified RAM locations in the following table are intended to be reserved or not used.
When using
MODBUS RTU
protocol, the number of each Word in the table of next paragraph must
be increased by 1 IF AND ONLY IF the
MODBUS-
option was used (see 2.1.4).
9.2.1- Main RAM memory mapping
Byte
(HEX)
Word
(DEC)
Description
Comments
0002
00FF
1
127
Status or value of CH1 of input modules Each status or value takes 1 Word. The input modules are
127. (Note 1)
0102
01FF
129
255
Status or value of CH2 of input modules Each status or value takes 1 Word. The input modules are
127. (Note 1)
0202
02FF
257
383
Status or value of CH3 of input modules Each status or value takes 1 Word. The input modules are
127. (Note 1)
0302
03FF
385
511
Status or value of CH4 of input modules Each status or value takes 1 Word. The input modules are
127. (Note 1)
0402
04FF
513
639
Status or value of CH1 of output
modules
Each status or value takes 1 Word. The output modules are
127. (Note 1)
0502
05FF
641
767
Status or value of CH2 of output
modules
Each status or value takes 1 Word. The output modules are
127. (Note 1)
0602
06FF
769
895
Status or value of CH3 of output
modules
Each status or value takes 1 Word. The output modules are
127. (Note 1)
0702
07FF
897
1023
Status or value of CH4 of output
modules
Each status or value takes 1 Word. The output modules are
127. (Note 1)
0902
09FF
1153
1279
Map of the virtual points
2032 virtual points (digital only) organized as block of 16
points for each Word (8 points for per byte). (Note 2)
0A00
0A27
1280
1299
Scheduler management
See paragraph 9.2.2 for details
0F00
0F01
1920
Hours in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F02
0F03
1921
Minutes in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F04
0F05
1922
Seconds in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F06
0F07
1923
Day of the week in BCD format
Read from the MCP 4 timekeeper chip.
1=Monday, 2=Tuesday, ….7 (or 0)=Sunday. (Note 3)
0F08
0F09
1924
Day of the month in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F0A
0F0B
1925
Month in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F0C
0F0D
1926
Year in BCD format
Read from the MCP 4 timekeeper chip. (Note 3)
0F10
OF11
1928
Amount of binary events in the queue
Read only.
0F12
0F13
1929
Amount of binary events to be deleted
How many consecutive events must be deleted in the queue.
0F14
0F15
1930
Pointer to the first binary event
It is the address of the first event after last deleting.
0F16
OF17
1931
Amount of analog event in the queue
Read only.
0F18
0F19
1932
Amount of analog events to be deleted
How many consecutive events must be deleted in the queue.
0F1A
0F1B
1933
Pointer to the first analog event
It is the address of the first event after last deleting.
1000
17FF
2048
3071
Map of the general purpose registers
R0
R1023. 1 Word for each register.
1800
1FFF
3072
4095
Map of the counters
C0
C1023. 1 Word for each counter.
2000
2FFF
4096
6143
Map of the timer
TIMER0
TIMER511. 4 Words for each timer, the first
containing the current time and the other three reserved.
3000
3FFF
6144
8191
Scheduler data
See paragraph 9.2.2 for details
4000
7FFF
8192
16383
List of binary events
2048 events, 8 bytes for each event, total 16384 bytes.
(Note 4)
A000
BFFF
20480
24575 List of analog events
1024 events, 8 bytes for each event, total 8192 byte.
(Note 5)
E800
E9FF
29696
29951 Information about configured modules
2 bytes for each modules, offset = 2 x (Module_ Address).
(Note 6)
EA00
EAFF 29952
30079 Diagnostic information
1 byte for each modules, offset = (Module_ Address).
(Note 7)
EB00
EB7F
30080
30143 Reset of 16-bit external counter
modules MODCNT
1 byte for each modules, offset = (Module_ Address).
(Note 8)
Note 1:
Generally, for digital inputs and outputs, bit=1 means active status and bit=0 means non-active status. For analog modules, the
Word contains the value referred to that channel. The less significant bit of a Word refers to point 1, the most significant bit refers to
point 16.
Page 56 of 87
Rel.: 1.2 October 2018
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it