I completely new in this manner kindly you resend my code with your suggested code in to me. I will thankfull. Just use the code in the example at that site. The offset is 0 and the bytes to read is the number of bytes available. Change the queue to a queue of Byte and add each byte that you read to the queue Dim buffer As Byte() Dim offset As Integer = 0 Dim count As Integer = SerialPort1.BytesToRead Dim Value As Integer = SerialPort1.Read(buffer, offset, count) For Each B As Byte in buffer Q. Features a large 1-in/25mm high LCD, and a bi-directional RS232 serial port inside a stainless steel enclosure to suit wall mounts for floor scales, bench scales, or anywhere a remote display is needed. Start by looking at the manufacturers details for the scale you are using: it should include the important details about the interface such as speed, bits per character, parity, and so forth, as well as the data format it is using - and there is no guarantee that it is 'standard' in any way - which is why your first stop should be the manufacturer. Enqueue (B ) Next To display the queue items use Hex() While Q. Count > 0 txtReceived. Text &= Hex(Q. Dequeue) & ' ' End While. How to read weight from a scale machine through serial port in vb.net. I have Delta 7 scale machine. I need to know how to read data in (decimal) exactly displaying on the scale machine to my windows form. You need to start with the communications protocol that the machine uses - baud rate, data bits stop bits, parity. Then you need the data protocol - the format of the information. It might be binary, ASCII text or proprietary. The manufacturer should be able to provide this information, and would likely also have examples of code available to demonstrate how to interpret the data. You will also need to know whether some form of interrogation is required - a command to tell the machine to send the data - or whether it just transmits continually. In either case there might be begin and end sequences so that you can separate one message from the next - you will need that detail as well. Thanks my friend, before this i have tested this machine by googling a code which shows me the result (weight) in some binary form. For now I am trying to convert this binary text as Decimal number to acknowledge the exact weight. I have tested this machine by googling a code which shows me the result (weight) in some binary form. For now I am trying to convert this binary text as Decimal number to acknowledge the exact weight. Here is the Code You need to show the binary value you get for a known weight. Does the scale have a readout? If so, get it to read exactly zero and then record the binary value. Then get it to read some other weights (round numbers are best) and record the binary values again. Show the results in a table and someone may be able to work out what they mean. However, that code is not reading binary values - it assumes that the data is text. If the data is not ASCII text then those results are not useful. I think is the output of the 5 to 9 second. I think is the output of the 5 to 9 second. I completely new in this manner kindly you resend my code with your suggested code in to me. I will thankfull. Just use the code in the example at that site. The offset is 0 and the bytes to read is the number of bytes available. Change the queue to a queue of Byte and add each byte that you read to the queue Dim buffer As Byte() Dim offset As Integer = 0 Dim count As Integer = SerialPort1.BytesToRead Dim Value As Integer = SerialPort1.Read(buffer, offset, count) For Each B As Byte in buffer Q. Enqueue (B ) Next To display the queue items use Hex() While Q. Count > 0 txtReceived. Text &= Hex(Q. Dequeue) & ' ' End While. So, How I can get the real manufacturer and its manual i don't have the manual. Don't you know where the scale was purchased? The only ref I can find to a Delta-07 is not a scale but is a scales Digital Weight Indicator. But I don't read the language in the.PDF. Here's another one I suppose. Glass eye 2000 enterprise serial number. However if it's being sold in the U.S.A. Then someone's probably gonna get in trouble cause it is or was manufactured in Iran I would guess. Although if you typo'd and really meant Delta-06 then you're probably in luck. La vida loca. Sir, this is not that device. Race driver grid recognize controller. I don't know who you are talking to. But in the thread which is much later than this thread you mention 'Actually a software company arranged the Weight machine and they designed a software for it about 10 years ago and they never supplied any documentation to us.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |