Page 1 of 1
scale interface
Posted: Sat Oct 06, 2012 8:17 am
by BruceN
Has anyone written (or have) an interface for getting a reading from an electronic scale? I have a candy store that's interested in that and I want to know what's involved. I know most scales are serial port, and that's the sum total of my knowledge on the subject.
thanks.
Re: scale interface
Posted: Sun Oct 07, 2012 12:03 am
by Wolfgang Ciriack
Hello Bruce,
I have different interfaces for truck scales, most of them with serial port.
The communication depends on the protocol of the electronic scale.
With the serial commands of the XBase ToolsIII it is no problem to communicate with the scale.
You only need the commands COM_OPEN, COM_INIT, COM_CLOSE, COM_FLUSH, COM_SEND, COM_COUNT, COM_READ.
With the most simple protocol you open and init the COM port and send a character to the COM-Port, then waiting for the response string.
In the response string you will find the information you need, the format depends on the protocol of the scale.