mscomm

kool_j

Member
Join Date
Oct 2004
Posts
2
Hi
I want to use Visual Basic as a front end to talk an Hitachi EH150 PLC (yes an Hitachi PLC !!!). Can anyone point me in the right direction on how to set mscomm to do this. I to display the specific Words that has been read from the data memory.
Thanks :)
 
koolj sent me this email.
Hi Steve, Thanks for the reply. The Hitachi EH150 uses the H Protocol, which is Hitachi own protocol. I can read the data from memory and aso know the address the data is store in memory. I can find out more about the H protocol if required. Hope this makes sense.

You'll need to find out how to compose a request for the data you want. This request will take the form of a string of ASCII characters. Let's call it Request$. In VB you'll execute a statement like:

MSComm1.Output = Request$

Following that, after some reasonable delay, you execute something like:

MSComm1.Input = Data$

Data$ will be some ASCII characters. There might be an acknowledgement from the PLC before the actual data. Then you extract the data from Data$
 
kool_j,

If your problem is only in the VB code, You can find all the information you need about it in the www.MSDN.com

Search for "mscomm" and "serial communication" in Visual Basic section.
 
hi

hi
you need to add ms comm comp from activx lib,
then if use input (inputting data from device)& mscomm1.output for sending data , you can have seeting about baudrate , parity etc
in vb if your application is countionus polling based the you need a two timer to countious scan port
i think you are using a RS 232 for coummuncation
if you want to read reg in plcs then you have set control reg of plcs the start read/writting data to it

thanks
sandeep patil
 

Similar Topics

Hello Fellow Rockwell Users: I'm new to the industry but I've done some development using the MSCOMM activeX control in VB6. I'd like to use this...
Replies
1
Views
5,269
Hi all, I am setting up a mscomm on wincc,however the mscomm needs to run all the time regardless to which screen i am on as it will then call...
Replies
1
Views
2,473
Does anyone know how to use the MSComm control with citect to send values over the serial port? I did something like this in Cicode: FUNCTION...
Replies
1
Views
2,206
Hi all, has anyone used MSCOMM in VB6 with OPC ? I have a serious issue with KEPServerEX4.0, VB6 and MSCOMM (Microsoft Comm Control 6.0). I'm...
Replies
15
Views
11,900
Back
Top Bottom