Comunication Rs-232 - J.P. SELECTA UNITRONIC-ORBITAL Manual

Shaking precision bath with electronic regulation
Table of Contents

Advertisement

MANUAL DE INSTRUCCIONES CODIGO 80063 REV E 24/12/09
COMUNICACIÓN RS-232
CARACTERÍSTICAS DE COMUNICACIÓN
RS-232
• 9600 baudios, 7bits de datos, 1 bit de stop, sin pa-
ridad y sin handshake.
• Hasta 15m de cable.
• Cable de conexion DTE a DTE 9 pins macho.
• Protocolo ASCII con sistema LRC de protección
contra errores.
• Comunicación MASTER-SLAVE (El ordenador es
el master).
• El equipo nunca envia nada si no es a petición del
ordenador.
Inicio trama
Start frame
#
Inicio trama / Start frame
Dirección / Adress
Datos / Data
LRC / LRC
Fin de trama / End frame
• Los mensajes empiezan con el caracter #.
• En cada mensaje debemos indicar la dirección del
equipo al que va dirigido.
Este campo puede ir de 00 a 99, siempre ocupa 2
bytes en formato decimal-ascii.
• En el campo de datos es donde va el mensaje que
queremos que enviar.
• LRC es un valor calculado para comprobar si la trans-
misión a sido correcta.
• Al final de la trama siempre un CR (0D) seguido de
un LF (0A).
• El dispositivo Slave responde siempre indicando su
dirección.
CAMPO DE COMPROBACIÓN DE
ERRORES LRC
La trama incluye un campo de comprobación de erro-
res LRC. Este campo ocupa 2 bytes. El LRC lo calcula
el dispositivo que envia el mensaje y lo incluye en la
trama. El dispositivo receptor calcula, también, el LRC
y compara el valor calculado con el recibido. Si son
iguales el mensaje ha llegado bien, sino se ha produci-
do un error en la comunicación.
J
.P. SELECTA s.a.
Dirección
Datos
Adress
Data
N
N
Mensaje (n bytes)
H
L
Message (n bytes)
#
NN
Mensaje / Message
KK
<CR><LF>
Ctra. NII Km 585.1 Abrera 08630 (Barcelona) España
e-mail: selecta@jpselecta.es - http://www.jpselecta.es
(Sujetas a modificaciones sin previo aviso)

COMUNICATION RS-232

RS-232 COMUNICATION OVERVIEW
9600 bauds, 7 dat bits, 1 bit stop, without parity
no handshake.
Up to 15m of cable.
Cable conection DTE to DTE 9 pins male.
Protocol ASCII with LRC against transmition er-
rors
MASTER-SLAVE Comunication (PC computer as
a master).
The device never sends nothing if computer does
not ask for it.
LRC
LRC
K
K
H
L
=
ASCII (23)
=
01...99
=
Comando + argumentos
=
00..FF
=
ASCII (0D)+ASCII (0A)
Messages starts with character #.
Device address must be included.
This field goes from 00 to 99, size allways 2 bytes
in decimal-ASCII format.
Data field is the message
LRC is a calculated value to check good
transmision.
At the end of the frame allways a CR (0D) followed
by LF (0A).
Slave device answers always sending its address
LRC ERROR CHEKING FIELD
Frame includes a transmition error cheking field called
LRC. This field size 2 bytes. This field is calculated
by the sender device and includes it on the frame. The
reciver device also calculates and if are equal the
transmition was good.
Tel (34) 93 770 08 77 Fax (34) 93 770 23 62
Pag.: 14
Fin de trama
End frame
CR
LF
1 byte
2 bytes
n bytes
2 bytes
1 byte

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unitronic-orbital c60320116001173

Table of Contents