DUEMMEGI
MCP 4 – User's manual
Contatto
MCP to HOST answers
Code
# Byte
Data Bytes
Description
0x7F
1
256
Data1…DataN
Answer to reading message of N bytes from RAM
memory.
0x7E
1
0xFF if writing OK
0x00 se writing KO
Answer to writing message of N bytes to RAM
memory.
0x7D
1
256
Data1…DataN
Answer to reading message of N bytes from
microcontroller memory.
0x7C
1
0xFF if writing OK
0x00 if writing KO
Answer to writing message of N bytes to
microcontroller memory.
0x7B
8
256
Data1…Data(Nx8)
Answer to reading message of N (1
32) output
modules starting from address module
Mod_Addr. The answer contains Nx8 bytes in the
data field. The meaning of each block of 8 bytes
is the following:
Data1-Data2: CH1 of module Mod_Addr
Data3-Data4: CH2 of module Mod_Addr
Data5-Data6: CH3 of module Mod_Addr
Data7-Data8: CH4 of module Mod_Addr
0x7A
8
256
Data1…Data(Nx8)
Answer to reading message of N (1
32) input
modules starting from address module
Mod_Addr. The answer contains Nx8 bytes in the
data field. The meaning of each block of 8 bytes
is the following:
Data1-Data2: CH1 of module Mod_Addr
Data3-Data4: CH2 of module Mod_Addr
Data5-Data6: CH3 of module Mod_Addr
Data7-Data8: CH4 of module Mod_Addr
0x79
1
0xFF if writing OK
0x00 if writing KO
Answer to channel writing (Ch = 1
4) of an output
module (Mod_Addr=1
127).
0x78
1
0xFF if writing OK
0x00 if writing KO
Answer to writing message of a virtual point.
0x70
68
FV1_H, FV1_L, FV2_H, FV2_L,
ID1….ID64
Answer to the identification code request. Bytes
FV1_H
FV2_L return the version number of the
firmware loaded into MCP 4.
ID1
ID64 are the ASCII codes of the 64
characters of the identification string.
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it
Rel.: 1.2 October 2018
Page 55 of 87