Sorry here I think i must enquire from the support team about the type of drawer..
Priya
Main Topics
Browse All TopicsHello All,
I'm using MSCOMM32 ocx to be able to open a drawer.Refer to my Code..
Everything works fine.
But now I'm trying to display a message like
"Drawer is already open"
when trying to open the drawer when it is already open...
The drawer can be opened only by my application, and it is being closed manually..
When closed, nothing changes in the status of the port...that is why I'm not being able to check for the status if it is open or closed.
One solution is to close the drawer by the application itself and set a global variable as the status of the drawer...but this not being accepted by my users since according to them.
Its a bit complicated here I know...But does anyone have any idea how can I achieve this..
Private Sub Command1_Click()
Dim output(5) As Byte
output(1) = 27
output(2) = 112
output(3) = 0
output(4) = 50
output(5) = 250
MSComm1.output = output
End Sub
Private Sub Form_Load()
' Use COM1.
MSComm1.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input
' is used.
MSComm1.InputLen = 0
' Open the port.
MSComm1.PortOpen = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
' Close the serial port.
MSComm1.PortOpen = False
End Sub
Regards,
Priya
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello there,
We are no longer using the serial port now...hence we are not using the mscomm control. Here is the modified code.
Private Sub command1_click()
Label13.Caption = GetPortBit(889, 0)
Label1.Caption = GetPortBit(889, 1)
Label2.Caption = GetPortBit(889, 2)
Label3.Caption = GetPortBit(889, 3)
Label4.Caption = GetPortBit(889, 4)
Label5.Caption = GetPortBit(889, 5)
Label6.Caption = GetPortBit(889, 6)
Label7.Caption = GetPortBit(889, 7)
Label8.Caption = GetPortBit(889, 8)
Label9.Caption = GetPortBit(889, 9)
Label10.Caption = GetPortBit(889, 10)
Label11.Caption = GetPortBit(889, 11)
Label12.Caption = GetPortBit(889, 12)
Label13.Caption = GetPortBit(889, 14)
Label14.Caption = GetPortBit(889, 15)
Label15.Caption = GetPortBit(889, 16)
Label16.Caption = GetPortBit(889, 17)
Label17.Caption = GetPortBit(889, 18)
Label18.Caption = GetPortBit(889, 19)
Label19.Caption = GetPortBit(889, 20)
Label20.Caption = GetPortBit(889, 21)
Label21.Caption = GetPortBit(889, 22)
Label22.Caption = GetPortBit(889, 23)
Label23.Caption = GetPortBit(889, 24)
Label25.Caption = GetPortBit(889, 26)
End Sub
Private Sub command2_click()
'Me.Visible = False
Dim output(5) As Byte
output(1) = 27
output(2) = 112
output(3) = 0
output(4) = 50
output(5) = 250
Dim FrFile As Integer
FrFile = FreeFile
Open "LPT1" For Binary Shared As #FrFile
Put #FrFile, , output
Close #FrFile
End Sub
But we are still not able to enquire about the status...
I'm reading the values of the bits of the port when the drawer is open and when closed, but there is no bit which is being changed with the drawerbeing closed or opened!!!
Please help,
Priya
This link tells you how to create VB programs to enquire on status.
http://pos.epson.com/point
Epson support is quite good, if you can't find what you want above, why not call Epson, they are normally very helpfull.
Business Accounts
Answer for Membership
by: inthedarkPosted on 2004-01-21 at 05:26:31ID: 10164464
What type of draw is it? Some draws you can enquire on the draw status.
PS in your code do you have option base 1?
If you don't.....
Dim output(1 To 5) As Byte ' is better