Télécharger Imprimer la page

Ditel MICRA-M Manuel De L'utilisateur page 92

Masquer les pouces Voir aussi pour MICRA-M:

Publicité

Les langues disponibles

Les langues disponibles

ASCII PROTOCOL
The Transmission format is: 1 START bit, 8 DATA bits, NO parity bit and 1 STOP bit.
• MESSAGE FORMAT TO BE SENT
A message sent to the instrument must be composed of the following sequence of ASCII characters:
One " * " byte [ASCII 42] of start of message.
Two address bytes (from 00 to 99).
One or two ASCII characters corresponding to the desired command according to the functions table (List of com-
mands).
In case that the command request for a modification of parameters, the new value shall be transmitted with one byte
of sign (+ [ASCII 43] or - [ASCII 45] ) followed by a block of N ASCII characters (depending on model), including the
decimal point.
One " CR " [ASCII 13] character of end of message. CR= Carriage Return
• MESSAGE FORMAT FROM INSTRUMENT
The data sent from the instrument as a response to a data request type command from the master device is the follo-
wing:
One byte of blank space [ASCII 32].
One text (requested values) consisting of a byte of sign (+ [ASCII 43] or - [ASCII 45] ) followed by a block of N
ASCII characters (depending on model) including the decimal point.
One " CR " byte [ASCII 13] of end of message.
If the command belongs to "orders" or "changing parameters", the instruments gives no response.
ISO 1745 PROTOCOL
The transmission format is: 1 START bit, 7 DATA bits, 1 EVEN PARITY bit and 1 STOP bit.
• MESSAGE FORMAT TO BE SENT
The message format, as sent from the master device, must consist of the following sequence of characters:
One byte SOH of start of message [ASCII 01].
Two bytes corresponding the first to the tens and the second to the units of the instrument address number.
One byte STX of start of text [ASCII 02].
Two commands bytes according to the functions table.
In case of commands that change parameters, a block of N bytes corresponding to the new value including sign
and decimal point.
One byte ETX of end of text [ASCII 03].
One control byte BCC calculated in the following manner:
Perform an exclusive-OR with all bytes between the STX (not included) and the ETX (included).
- If the obtained byte (in ASCII format) is higher than 32, it can be taken as the BCC.
- If the obtained byte (in ASCII format) is lower than 32, the BCC byte will be obtained by adding 32.
KOSMOS SERIE
* D
d
C
C
X ........................... X
SP
X ........................... X
SOH
D
d
STX
C
www.ditel.es
CR
CR
C
X ...... X
ETX
BCC
MICRA-M
92

Publicité

loading