Data acquisition from a Serial port

This forum is for eXpress++ general support.
Post Reply
Message
Author
ngningha
Posts: 5
Joined: Mon Mar 07, 2011 2:04 pm

Data acquisition from a Serial port

#1 Post by ngningha »

Hi,

Please, I need a help to solve this problem : (see the diagramm attached)

> We have an modern factory who use weightBridges and weight paletts

> I want to transfert the weight mention on the displayer directly into a database and make differents treatement.

Thank you in advance for your help.

Simon
Attachments
Weight Diagramm.jpg
Weight Diagramm.jpg (69.14 KiB) Viewed 13953 times

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Data acquisition from a Serial port

#2 Post by Tom »

Hi, Simon.

You have a set of serial port functions available in the Xbase-Tools-library (part of the prof. subscription, otherwise available as an add-on). All you need in addition are the communication parameters (baudrate, handshake a.s.o.) and the data format transmitted, which should be documented in the data sheets of the scales. Serial communication is quite simple. You need to open the port and permanently ask for new data coming in, receive the data and transform them as needed.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

ngningha
Posts: 5
Joined: Mon Mar 07, 2011 2:04 pm

Re: Data acquisition from a Serial port

#3 Post by ngningha »

Thanks Tom

I will check the procedure, collete the informations and I will be back very soon.

Simon

ngningha
Posts: 5
Joined: Mon Mar 07, 2011 2:04 pm

Re: Data acquisition from a Serial port

#4 Post by ngningha »

Hi Tom,

I've collected informations about my project (I hope )

1 - xBTolls Serial set
- I have identified in this order
. Com_Open()
. Com_init()
. Com_read()
. Com_close()

- what are the syntaxe and real order ? Can I have a piece of code ?


2 - INDICATORS
- We ha 2 models of indicators ( BCIN-100M from www.epel-ind.com and IDé400 from www.masterk.com)
. BCIN - 100M (see attached data format_BCIN_0)
. Data format 1 + 8 octets
. Transmission 9600, parity NONE, Bits 8

. IDé 400 (see attached data_format_ide400_0 and data_format_ide400_1

How to proceed ?

I think that thoses informations will help you to help me.

N.B If necessary, I can send the technical documentation in my possession.

Regards
Simon
Attachments
data_format_ide400_1.jpg
data_format_ide400_1.jpg (159.41 KiB) Viewed 13903 times
data_format_ide400_0.jpg
data_format_ide400_0.jpg (126.71 KiB) Viewed 13903 times
data format_BCIN_0.jpg
data format_BCIN_0.jpg (136.92 KiB) Viewed 13903 times

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Data acquisition from a Serial port

#5 Post by digitsoft »

hello ngningha
I did something similar with a mark Magellan 8100 Scanner Scanners Retail using Standard RS232 port, the port
serial COM1, COM2, etc.

works great, tell me what your problem to see if I can help.

Nolberto Paulino
Regards

hola ngningha
Yo hice algo parecido con un SCANNER marca Magellan 8100 Retail Scanners que usa puerto Standard RS232, que el puerto
serial COM1,COM2, etc.

funciona muy bien, digame cual es su problema para ver si puedo ayudarle.

Nolberto Paulino
Un cordial saludo
Nolberto Paulino
Regards

ngningha
Posts: 5
Joined: Mon Mar 07, 2011 2:04 pm

Re: Data acquisition from a Serial port

#6 Post by ngningha »

Hi Paulino,

My problem :
> I want to acquire data directely from an indicator of a weightBridge through a Serial port into a databases

(please see the attached diagram in the 1st Topic)

Regards
Simon

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Data acquisition from a Serial port

#7 Post by digitsoft »

Simon
You can get a connection with TeamViewer_Setup for me to connect to the PC which is connected weightBridge
Try to do a very a small program that I designed to test the door and see what you sent me.

Nolberto Paulino
Regards
Attachments
COM_READ.ZIP
Example
(18.32 KiB) Downloaded 716 times
Nolberto Paulino
Regards

ngningha
Posts: 5
Joined: Mon Mar 07, 2011 2:04 pm

Re: Data acquisition from a Serial port

#8 Post by ngningha »

Norberto,

I don't know anythink about "TeamViewer_Setup". How to get the file ? How to implement it ?
we are not on top in technology in Africa.

Simon

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: Data acquisition from a Serial port

#9 Post by digitsoft »

Ok
Add me to your MSN to talk, in this way and that way pondeme speak directly and I can explain

digitsoft26@hotmail.com
Nolberto Paulino
Regards

Post Reply