Search the web
Sign In
New User? Sign Up
CheapAss · CheapAss_dro_machinists_cnc
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Logic to read chinese scales   Message List  
Reply | Forward Message #35 of 61 |
ANYONE wanting to Program a Palm or junk computer to read chinese
scales? this is the logic and communication protocol in visual basic,
you just convert the logic to your programming language.

'The logic for the polar hole calculator is just as simple:



Private sub ConfigureX_port()
'This is the port configuration:
MSComm1.CommPort = 1
MSComm1.Settings = "4800,N,8,1" ' 9600 baud, no parity, 8 data, and 1
stop bit.
MSComm1.InputLen = 48 'two 24 bit streams on reply.
end sub


Private sub Exit_to_readX()
'this is the exit line to read the scale:
Read_X_scale 'send to subroutine to read the chinese scale
X_pos_txt.Text = X_pos 'set the returned value to reflect scale value
end sub

'This is the sub that reads the scale each loop:
Private Sub Read_X_scale()
Dim a$
MSComm1.PortOpen = True ' open the port using MSCOMM
a$ = MSComm1.Input
If a$ <> "" Then
X_pos = Val(a$) / 25.4
'ProgressBar1.Value = Val(a$)
End If
MSComm1.PortOpen = False ' close the port using MSCOMM so buffer does
not overflow.

End Sub







Tue Feb 28, 2006 2:00 pm

ibewgypsie
Offline Offline
Send Email Send Email

Forward
Message #35 of 61 |
Expand Messages Author Sort by Date

ANYONE wanting to Program a Palm or junk computer to read chinese scales? this is the logic and communication protocol in visual basic, you just convert the...
ibewgypsie
Offline Send Email
Feb 28, 2006
2:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help