desktop

Conversor Lazo Corriente a RS232 (Current loop to RS232) para surtidores.

Que tal Gente.

Estoy desarrollando una interface para controlar un surtidor por medio del puerto Serial RS232, pero no logro entender como enviar los comandos para comunicar el surtidor (Veeder Root tls350).

Me pueden explicar como programo esto en C#??


Enquiry message format is as follows
<SOH><SECURE CODE><COMMAND NUMBER><MAIN ARGUMENT>
where:
<SOH> (0x01H) marks the end of the command.
<SECURE CODE> (exactly 6 ASCII characters) – optional field depended on Site Sentinel setting.
<COMMAND NUMBER> (three ASCII characters) number of command
<MAIN ARGUMNET> (two ASCII characters) contains various, usually decimal coded data, depend on command ...


El TLS 350 no es un surtidor si no una consola de toma de medidas de tanques electrónicamente, el manual está disponible por internet ... Si necesitas en C# comunicarte con el tienes varias formas de hacerlo. Hay varios tipos de tarjetas de interface para el Veeder Root TLS 350, viene RS 232 y también viene ethernet. La parte más importante es que los comandos que envíes al VR tienen que comenzar por <SOH> que en c# se produce con el siguiente comando Convert.ToChar(1)

Si te conectas por RS232 solo es cuestión de abrir el puerto .... tienes que esperar por lo menos 100ms en lo que el VR contesta para leer la respuesta.

Si te conectas por TCP/IP utilizando la tarjeta de ethernet debes utilizar el puerto 10001

Amigos.

Luego de realizar varias tareas de decodificacion logre encontrar lo siguiente:

Los Dispensadores o Surtidores Marca Gilbarco se conectan a una velocidad de 5887 Baudios y logre sacar los siguientes tramas de comunicación, estoy seguro que los datos son correctos porque pude autorizar una venta es decir la velocidad es la correcta pero cuando se envían algunas tramas llegan datos que no se como decodificarlos para entenderlos.


Trama 1: FFh E9h FEh EEh E0h E0h FBh E1h F0h
Trama 2: FFh E9h FEh E0h E1h E0h FBh EEh F0h Autorizacion de Inicio de venta
Trama 3: __h E5h F4h F6h __h __h __h __h __h __h F0h esta ultima varia no lo he decodificado aún
Trama 4: FFh ECh F4h FBh E6h F0h
Trama 5: FFh E9h FEh EEh E0h FBh E1h F0h
Trama 6: FFh E4h F2h F4h F8h E0h E0h E0h E1h E0h E0h FBh E3h F0h No se saco combustible se espero hizo 88888 y luego se colgo

Espero que alguien pueda avanzar en algo con estos datos.


El baud es 5787

Son tramas del surtidor wayne obviando los ceros del principio el primer byte es la direccion del surtidor el segundo es un bit verificador que es (255- bit anterior) asi sucesimante los dos siguientes bits son los datos, te cuento que esa parte si la vez bien es facil decifrar.

Me gustaria ver más en detalle esto

61 72 6E 61 6C 64 6F 72 40 67 6D 61 69 6C 2E 63 6F 6D
 
Última edición por un moderador:
Encontré parte del documento del protocolo wayne
 

Adjuntos

  • Wayne protocolo 4.jpg
    Wayne protocolo 4.jpg
    48.7 KB · Visitas: 324
  • Wayne protocolo 3.jpg
    Wayne protocolo 3.jpg
    55.2 KB · Visitas: 300
  • Wayne protocolo 2.jpg
    Wayne protocolo 2.jpg
    56.3 KB · Visitas: 270
  • Wayne protocolo 1.jpg
    Wayne protocolo 1.jpg
    78.8 KB · Visitas: 283
  • Wayne protocolo.jpg
    Wayne protocolo.jpg
    110.5 KB · Visitas: 282
hola a todos,
quisiera contactar con personas que tengan experiencia con los surtidores Dresser Wayne y especialmente con el controlador IGEM

Debo reparar a veces alguna de estas plaquetas y no dispongo de info detallada. (solo la configuracion con el control remoto)

Lo que intento ahora es comunicar la tarjeta IGEM con una PC. Uso un cable null modem (version completa) y el programa terminal Tera Term. pero recibo extraños caracteres. Desconozco la confi. exacta del Rs232.

Pregunta; Es posible comunicar esta tarjeta como lo estoy intentando o debo usar algun programa especial ? Que configuracion del RS232 seria la correcta?
Alguien dispone de esquemas de este plaqueta?

Espero alquien pueda ayurarme.
Saludos.
 
Buenos días a todos, encontré el protocolo de Gilbarco, lo adjunto para que aprovechen.
Ahora quiero pedirles una ayudita, tengo un controlador VOX forecourt de Veeder Root, y quisiera que controle un dispensador de AdBlue, que no es otra cosa que una bomba de acero inoxidable y una caudalímetro marca Piusi modelo turbinox de 2 cables 88 pulsos por litro.
Cómo puedo interfacear el caudalímetro y la bomba con el controlador?

Muchas gracias.
 

Adjuntos

  • ZAO NPF_TWOTP-IS-IS2.26-P.pdf
    1.4 MB · Visitas: 357
Buenas! Estuve leyendo todo el hilo, genio el del protocolo de Gilbarco, me costo un montón conseguirlo en su momento. Los de Wayne consiguieron algo?
Tengo experiencia desencriptando, pero al no tener un controlador a mano cuesta un poco mas.
Por lo que averigüe y comparto con respecto a WAYNE Loop Current
Es que trabaja en 45mA (lo estaba testeando a 12v, supuestamente garantido a 24v)
9600 Baudios 8O1
Probé lo de arnaldor pero sin exito.
Alguno tiene info extra? gracias!
 
Son tramas del surtidor wayne obviando los ceros del principio el primer byte es la direccion del surtidor el segundo es un bit verificador que es (255- bit anterior) asi sucesimante los dos siguientes bits son los datos, te cuento que esa parte si la vez bien es facil decifrar.


Alguien a logrado obtener datos adicionales sobre los dispensadores wayne, estoy trabajando en esta interface y solo logro encontrar cosas similares

Con una comunicación de 9600 8 bits 1 Stop y 0dd parity bit

00 00 09 F6 FF
00 00 09 F6 8A 75 1B E4 20 DF 07

00 00 11 EE FF
00 00 11 EE 9E 61 01 FE 20 DF 07 F8 FF

00 00 19 E6 FF
00 00 19 E6 2C D3 4E B1 20 DF 07 F8 FF


00 00 21 DE FF
00 00 21 DE 29 D6 02 FD 20 DF 07 F8 FF
 
Investigando encontre que este protocolo corresponde a un protocolo especifico que es el de wayne current loop.

00 00 09 F6 FF
00 00 09 F6 8A 75 1B E4 20 DF 07

00 00 11 EE FF
00 00 11 EE 9E 61 01 FE 20 DF 07 F8 FF

00 00 19 E6 FF
00 00 19 E6 2C D3 4E B1 20 DF 07 F8 FF


00 00 21 DE FF
00 00 21 DE 29 D6 02 FD 20 DF 07 F8 FF

Encontré esto que nos permite identificar estas tramas:

Hay vamos poco a poco encontrando información que nos vaya sirviendo. de antemano agradezco cualquier ayuda al respecto de todos nosotros
 

Adjuntos

  • Trama Infromacion 1.jpg
    Trama Infromacion 1.jpg
    53.3 KB · Visitas: 197
  • Wayne Current Loop 1.jpg
    Wayne Current Loop 1.jpg
    86.5 KB · Visitas: 195
  • Wayne Current Loop 2.jpg
    Wayne Current Loop 2.jpg
    53.3 KB · Visitas: 194
Buenas

Solo tienes esas hojas .Recomendación para los que no se quieran complicar mucho tiempo en desarrollo.
yo desde hace 7 year utilizo un equipo que me salio demasiado bueno y no es caro comparado al tiempo que hay que invertir
desarrollado .para wayne gilbarco la tarjeta de corriente loop con asesorios cuesta 300 dolares la main principal 550 dolares
y si compras los sdk viene la main un convertidor 485 a rs232 para simulacion y dianostico por 950 dolares.
soporte es genial tuve en sumomento problema de autorizacion con thokheim muy viejo 262a . me resolvieron 12 horas
PTS CONTROLER
 
Buenas

Solo tienes esas hojas .Recomendación para los que no se quieran complicar mucho tiempo en desarrollo.
yo desde hace 7 year utilizo un equipo que me salio demasiado bueno y no es caro comparado al tiempo que hay que invertir
desarrollado .para wayne gilbarco la tarjeta de corriente loop con asesorios cuesta 300 dolares la main principal 550 dolares
y si compras los sdk viene la main un convertidor 485 a rs232 para simulacion y dianostico por 950 dolares.
soporte es genial tuve en sumomento problema de autorizacion con thokheim muy viejo 262a . me resolvieron 12 horas
PTS CONTROLER
Hola, se que estamos inventando la rueda, solo que me parece muy interesante lograr hacer un aparato que pueda hacer lo que yo le programe y agregarle cosas específicas. De antemano le agradezco su apoyo.
 
Eso tienes razon como cuando implemente lo de gilbarco por que tenia una tarjeta loop casera a la mano.
Ellos te dan un sdk con un protocolo estandar que se comunica main principal hace la traducion al protocolo de
las 100 marcas que soportan
 
hola oscar, yo tambien estoy en lo mismo tengo dispensanrio wayne y un gilbarco, ya tengo el circuito current loop a rs232 , y recivo datos lo que me falta son los protocolos del dispensario wayne y gilbarco, ojo tengo los protocolos de la interfaz de wayne, yo necesito los del dispensario, si te interesa el circuito dime y te lo envio. y psss podemos trabajar a la par. saludos
Hola Buenos dias Jose..me interesa el circuito current loop a rs232 para el dispensario gilbarco, para recibir los datos del dispensario a la computadora, ya que estoy trabajando en un desarrollo de un sistema de control de flotillas y me falta nada mas la comunicacion del dispensario a la computadora, quedo en espera de tus comentarios, saludos..
 
Hola Buenos dias Jose..me interesa el circuito current loop a rs232 para el dispensario gilbarco, para recibir los datos del dispensario a la computadora, ya que estoy trabajando en un desarrollo de un sistema de control de flotillas y me falta nada mas la comunicacion del dispensario a la computadora, quedo en espera de tus comentarios, saludos..
Notaste el detalle que el usuario a quién le pides información no entra a la comunidad desde el 08 Feb 2008
 
Alguien podria compartir el diagrama para el current loop para bennett y cual es la diferencia real de 20mA 40mA y 60mA utilizados en dispensarios, seria sufucuente cambiar las resistencias unicamente para poder hacer una placa universal.

Saludos
 
Notaste el detalle que el usuario a quién le pides información no entra a la comunidad desde el 08 Feb 2008

Lo tome de:
Current Loop Application Note

Current Loop Application Note

Introduction

The purpose of this current loop application note is to introduce the reader to the physical aspects of 20 mA current loop communications.

Until the early 1960's, military teleprinters used 60 ma current loops to communicate over long distances. In 1962, the Model 33 teletype was introduced and 20 mA current loop interfaces became widely used. Throughout the 60's, 70's, and early 80's, 20 mA current loop interfaces were applied in many types of equipment. Current loop interfaces became popular at this time because they offered the most cost effective approach to long distance, noise immune data transmission. The 20 mA current loop is suitable for distances to 2000 feet at data rates up to 19.2k baud with careful attention to interface design. It can be used at longer distances when data rates are as low as 300 baud.

When the EIA 422 Standard (December 1978) and the EIA 485 Standard (April 1983) brought forth the application of balanced differential digital data transmission, the popularity of 20 mA current loop rapidly diminished.

The Basics of Current Loop

2.1 Full-duplex 20 mA Circuit
Figure 1 is a full-duplex 20 mA current loop circuit. Simultaneous two-way communications is possible with this circuit. Two 20 mA current generators are necessary with this circuit. It is possible to have one of the two current generators in one current loop interface and the other current generator in the other interface. For example, the original IBM PC serial adapter card had a current loop interface that contained only one current generator. When you made a correct connection to this current loop interface, the second current loop device would need to provide one current loop generator.

currentlpfig1.gif

Figure 1: Full-duplex 20 mA Circuit



2.2 The Simplex 20 mA Circuit
Figure 2 is a diagram of a simplex 20 mA current loop circuit. The fundamental elements of a 20 mA current loop are a current source, a current switch, and a current detector. The transmitter is the current switch and the receiver is the current detector. The interface that contains the current source is called the active unit and all other units are referred to as passive units. Figure 3 is a diagram of the levels in an RS-232 interface and how they relate to the presence and absence of current in a 20 mA current loop circuit. In a 20 mA loop the current flows when the loop is idle (no data being transmitted). In a simplex type circuit a number of transmitters and receivers are put in series in a current loop. As long as only one transmitter sends data, all receivers receive the data.

(Only one device can transmit at a time)
currentlpfig2.gif

Figure 2: Simplex 20 mA Circuit


currentlpfig3.gif

Figure 3: Comparison of signal levels in an RS-232 Circuit and a 20-mA Current Loop Circuit



2.3 Problems with 20 mA Current Loop
The main problem with 20 mA current loop is that there is no mechanical or electrical standard defined for this interface. This makes every interface somewhat unique and the user must know some of the technical details about the circuits used in the interface.

currentlpfig4.gif

Figure 4: Simplified One Direction Current Loop

Figure 4 is a simplified one-way current loop implemented with two optocouplers, a voltage source, and a resistor. Optocoupler U1 is the transmitter and optocoupler U2 is the receiver. The value of the loop current in this circuit is:

I loop = (Vs - V transmitter -V receiver)/Rs

for typical optocouplers
When turned ON:
V transmitter (U1) = 0.2 V
When input LED is conducting:
V receiver (U2) = 1.8 V

If Vs = 12 volts & Rs = 470 ohms then
I loop = (12V - (0.2V + 1.8V))/470 ohms
I loop = 10V/470 ohms = 21.3 mA

If we changed Vs = 60 V and left Rs = 470 then
I loop = (60V -(0.2V + 1.8V))/470 ohms = 123 mA

If we changed Vs = 5 V and left RS = 470 ohms then
I loop = (5V - (0.2V + 1.8V)/470 ohms = 6.4 mA

The point of showing these different calculations is to demonstrate that the loop currents circuit can vary by considerable amounts, if Vs is varied. Likewise, if Rs was changed the loop currents could also vary considerably. The only way to determine that currents are near 20 mA is to examine the circuit in detail.



2.4 Current Regulation in Current Loops
Several methods can be used to control the amount of current in a current loop circuit. This section will illustrate several common methods of regulating the current in a current loop.

2.4.1 Constant Current Generator Current Source
Figure 5 is a circuit that uses a linear voltage regulator integrated circuit to serve as a constant current source. Almost any fixed or adjustable voltage regulator can be used. The example shown in Figure 6 uses an LM317 adjustable regulator because is provides a low amount of voltage drop (3 volts) across the current regulator circuit. For example, if Vs was 12 volts in this circuit, then the maximum voltage that the constant current regulator could drive would be 9 volts. The 62 ohm, Rg resistor sets the regulator current because there is an internal voltage reference in the LM317 between VO and the ADJ pins of 1.25 volts.

currentlpfig5.gif

Figure 5: Constant Current Generator for a 20 mA Current Loop

In a current loop, the sum of all the voltage drops across all the devices must be less than the voltage source, Vs driving the loop. Each device in the current loop whether it is a transmitter (current switch) or receiver (current detector) has some voltage drop across it. For instance, a typical transistor switch can have typically 0.2 volts drop across it. For most of B&B Electronics converters, the voltage drop across the transmitters can be as much 2.3 volts when the switch is turned ON. The reason for this is that the transmitter switch must provide for the reverse bias of the internal photo detector diode inside the optocoupler. An optocoupler used as a current detector will have from 1.2 to 2.0 volts drop across it.

currentlpfig6.gif

Figure 6: Current Limiter built into Transmitter

2.4.2 Transmitter Current Limiter
Some current loop interfaces incorporate current limiting into the transmitter (current switch) itself. Figure 6 is an example of a circuit that has built-in current limiting so that the loop current cannot exceed 20 mA. In this circuit Rg provides a source of bias current for Q2 so that if the loop current tries to exceed 20 mA Q2 will shunt Q1 base bias current so that Q1 will not conduct more than 20 mA.


currentlpfig7.gif
Figure 7. Current Limiter built into Receiver

2.4.3 Receiver Current Limiter
The circuit shown in Figure 7 is used not to regulate the loop current, but to regulate the maximum emitter current in the optocoupler, U1. This is done because some optocouplers require less than 20 mA to operate at maximum speed. Transistor Q1 is used to shunt some of the loop current around the emitter of optocoupler, U1.


3.0 Current Loop Interface Connections
To connect our converter to an existing current loop port, you must first determine if the port is active or passive. What this means is: does the port have an internal power supply that provides the current (active) for the transmitter, the receiver, or both (transmitter and receiver). The simplest way to determine this is to break the loop (disconnect it) and see if there is any DC voltage across the output or input pairs. If you have access to the instruction manual for the unit you can also look in there for the information.

Current loop interfaces normally consist of four wires. They are usually labeled T+, T-, R+, and R-. T+ and T- are the transmit plus and transmit minus lines and data is output from that device on those lines. The R+ and R- lines are the receive plus and receive minus lines and data is input into that device on these lines. Interconnection of the two current loop devices is different depending on whether your unit is active or passive.

3.1 Connection to an Active Current Loop Port
Connection to an active current loop port is very simple. Your units T+ and T- lines go to our units R+ and R- lines. And your units R+ and R- lines go to our units T+ and T- lines. See the following drawing.

currentlpfig8.gif

Figure 8. Connection to an Active Current Loop



3.2 Connection to a Passive Current Loop Port
Connection to a passive current loop port is a little harder. You must use a 12 VDC power supply with the 470 ohm resistors inside of our converter to "create" a 20 ma current source. See the following drawing.

currentlpfig9.gif

Figure 9. Connection to a Passive Current Loop




3.3 Interconnection of 2 Current Loop Converters
Interconnection of two B&B current loop converters also requires the use of a 12 VDC power supply since they are both passive port. See the following drawing.

currentlpfig10.gif

Figure 10. Interconnection of Two Current Loop converters


4.0 What Isn't Digital Current Loop

4.1 4 to 20 mA Analog Current Loop
The diagram shown in Figure 11 is an analog 4 to 20 mA current loop. This circuit is mentioned here because it is sometimes confused with 20 mA digital current loop. The purpose of 4 to 20 mA analog current loop is to transmit the signal from an analog sensor over some distance in the form of current signal. Only two wires are required to send the analog signal and also supply power to the sensor. A loop supply voltage (24 volts in Figure 11) is used to power the remote sensor. The remote sensor regulates the loop current such that the loop current represents the value of the parameter being measured by the sensor. A series resistor RL at loop power supply converts this current to a voltage that can be used by the electronics to record or distribute the parameter being measured.

currentlpfig11.gif

Figure 11. 4 to 20 mA analog current loop



4.2 HART® 4 to 20 mA Current Loops
Figure 12 is another example of a type of 4 to 20 mA combined analog & digital current loop. This current loop uses HART® Communications protocol. The HART® (Highway Addressable Remote Transducer) protocol is used for SMART remote transducers that are compatible with 4 to 20 mA analog current loops but also have digital communications on the same two wires. This is accomplished by superimposing a two-tone Frequency Shift Keyed (FSK) digital current signal on the 4 to 20 mA analog signal.

currentlpfig12.gif

Figure 12. 4 to 20 mA analog current loop with digital communications using HART protocol
 
Buenas tardes a todos,
Alguien tiene algo de info respecto a los trenes de pulsos en la comunicación RS232 entre el WIP y la Igem, la idea es generar un software para simular el WIP y descartar posibles fallas en los mismo, como también probar el normal funcionamiento de la Igem.

Desde ya agradezco cualquier aporte.
 
Atrás
Arriba