MPCIB 396 P6
mect s.r.l.
ME3025_13 03/21
35
C1 C2 = mnemonic ASCII code for command to follow . (see paragraph “command
codes”).
D1
D8 = Digits seen. The same rules are valid as those described in the paragraph "
data transmission from MPCIB396 P6 to host"
BCC = Checksum, obtained using EXCLUSIVE OR, of the transmitted string
excluding code "STX" comprising "ETX" in the order indicated
BCC = C1 + C2 + D1 + D2 + D3 + D4 + D5 + D6 + D7+ D8+ ETX
EXAMPLE: string for writing data from host to MPCIB396 P6 with "01" address.
EOT 0 0 1 1 STX P R blank blank blank blank 0 1 0 0 ETX BCC
04 30 30 31 31 02 50 52 20 20 20 20 30 31 30 30 03 00
The instrument starting from the first code received of the data string transmitted by
the host, leaves 400 ms during which it waits for the transmission operation to be
completed. When the 400 ms operation finishes, or when the data reception is
complete, the instrument , depending on the information received, can behave in four
different ways :
1.
If the data string received presents errors which do not allow address
identification, then the instrument cannot reply and rejects the information
received.
2.
The string has a correct address code but detects other errors: in this case the
instrument transmits the ASCII code: NACK (not understood) and rejects the
information received.
3.
The received data string is totally complete, in which case the instrument stores
the information and transmits the code ASCII=ACK (understood)
4.
When the complete message is not received before "time-out" (400 ms), the
instrument rejects the information received and is ready to receive a new message.
5.4 COMMAND CODES
The codes of the variables used for the MPCIB396 P6 instrument programming, are
listed in the following Table. Not all the parameters allow the writing from host, in
this case the instrument replies "NACK" (read only parameters).
Table 14
COMMAND
CODES
COMANDS
DESCRIPTION
POSSIBLE
OPERATION
DATA CODES
SC
Selection instrument
(Cib, Cin, A+B, A-B)
Read/write
Hexadecimal
0 = CIb
1 = CIn
2= A+B
3 = A-B