sending digits via serial communication

Hi,

you can use mscomm ocx (mscomm32.ocx) as a vb compenent. The appropriate command is mscomm1.output, but keep in mind that you will send data as string so i advice you to convert it using asc and chr command first then send it.

i m doing the same with my application over modbus.

bye
 
Hi,

Could you please let me know the various functions defined in MSCOMM.OCX. My requirement is to read data from the COM1 Port through the d2k forms 6i. if any idea in this regard. please help me out.

Ravi
[email protected]
 
R

Ramakrishnan, Raja \(GE Energy\)

Hi,

First you use "Settings" property of MSCOMM control to set the communication parameters, then use "PortOpen=true" to open serial port otherwise assign "false" to close the port. Once it is opened, create your request string (read or write) and assign it to MSCOMM control's "output" property to send the request to serial port. Use MSCOMM control's "input" property to read data from serial port. Don't use ONCOMM event of MSCOMM control to get data from serial port. Poll the serial port using "input" property periodically.

Raja
 
Top