

- HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX HOW TO
- HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX 64 BIT
- HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX 32 BIT
- HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX SOFTWARE
- HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX CODE
The connected device sends a status back wich is 'ESC + 60' if the drawer is open. That is GREAT!!! Not sure what I did wrong when I tried it but it works!!! Only thing I can't do is read from the port. For example, in VisualBasic 6.0 Professional or Enterprise. Regards Hans On 08:27:18 -0800, in -ocx-activex Hans 30.12.07 8:31. You will use Comm.drv, MSComm.ocx, or MSComm32.ocx, depending on which compiler you are using. So the question is, did you and wich ones? But it comes back with 'invalid external function property for the first command. I put the MSCOMM32.ocx into c: windows system32, put an OLE control on a window (insert->control->ole, created a command button and for that a script with the commands you suggested. I have to open, read and close a card reader slot in.
HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX CODE
Can anybody provide some sample code for communication with serial port in powerbuilder 11.5. How can it possible to Read Data from Serial Port RS232 etc (in power builder 6 / 7 ). And of course, HOWTO: Transmit and Receive Binary Data using MSCOMM32.- Eric den Doop - The Home Of The Visual FoxPro Experts - Powered By VFP8 Sat, 02:11:47 GMT. Hans -= Posted via the PFCGuide Web Newsreader =- fisher 22.12.07 1:55. Also useful may be HOWTO: Send to the Serial Port by Using Mscomm32.ocx. If someone could help me with this that would be great. So I did that and created a command button with the code to open the com port and send the string.īut all I get is an error of something like 'invalid access of object property'. Someone suggested to create a window, do insert->control->OLE and select the MScomm32.ocx file. Essentially, the aim is to capture output from a digital.Įven better would be a code example.
HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX SOFTWARE
I'm trying to develop a software using PowerBuilder which will capture data from the serial port of a PC. Everything is binary as far as I am concerned. You can read or write to the com ports as if. Well do you want to send 'ABC123' to the device attached to the serial port or 0xABC123 Not clear as to what you mean by hex data to serial port.
HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX HOW TO
How to connect to a local serial (com) port to send a string and. Is there someone here who can give me the required steps to implement and use that ocx in PB? They provide a MS Excel VBA sample which uses MScomm32.ocx and it works.īut I have difficulties using that ocx file in PB 8. Mscomm32.ocx ships with the Professional Edition of Visual FoxPro. According to the vendor I just need to send char(27)+char(53) down the serial port andit will open the cash drawer. This article describes the settings necessary to send data to the serial port by using Mscomm32.ocx. This will RE-REGISTER your file.Hi all, I have a cash drawer and and opener device connected to a USB port that is bridged to a COM16 serial port. If this gives any error the type the following regsvr32 MSCOMM32.OCX.Set serial port from the property window as Figure 2. Add the mscomm32.ocx to the toolbox in your project if not added. DataRecord DataRecord & Instring ElseIf lngStatus < 0 Then Handle error. lngStatus CommRead (intPortID, Instring, 1) If lngStatus > 0 Then Process data. Type the following command: regsvr32 /i MSCOMM32.OCX. Open a new windows form application program. Copy to clipboard DataRecord '' Wait for data to come back to the serial port.Type the following command: regsvr32 /u MSCOMM32.OCX.
HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX 64 BIT
HOW TO SEND TO THE SERIAL PORT BY USING MSCOMM32.OCX 32 BIT

If you are running Windows on 32 bit machine Copy the file that you have downloaded to C:\Windows\System32 folder. Go to the link and download the file mscomm32.ocx In this blog I will try to explain step-by-step on how to download and activate Windows activeX control MSCOM32.OCX on the client PC where the Weighbridge’s serial port is connected. This is a follow on document to my previous blog on “ Read COMM port using ABAP w/o third party software”.
