How to write MPI/USB driver for S7 mpi/usb adapter?

chenhg

Member
Join Date
Sep 2008
Location
Shanghai
Posts
26
Does anyone has written usb driver for S7 mpi/usb adapter(6ES7972 0CB20 0XA0).We want to do this.(OS:windoexp,VC6.0++)
We have found the adapter device (VID_0908 & PID_0004)using general usb driver.We then Createfile()successfully.We send(call function writefile()) the mpi first byte(0x02) to PLC,then start a read thread to read msg (call function readfile()),PC came to bluescreen,read failed.

Any comments for me? Appreciate any help.
 
It's ok

The ReadFile() problem has been solved by changing the receiving or sending buffer.My COM default size is2048.When I set 256,the driver runs well.So I can only set the datablock address length to be 210.
The speed of communication is 100ms/210 bytes by MPI/USB cable.
As a doubt, Why I can't set the buffer size to be 2048?
Thanks anyone anyway.
 

Similar Topics

Hi I have a ifix 5.5 application where the operator opens a valve by clicking on a screen object. I can trace from object to data base that it is...
Replies
2
Views
49
Hi everyone, I hope you're all doing well. I'm currently working on updating an HMI project for the GP2500, and I've encountered a bit of a...
Replies
1
Views
125
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
148
Hi everyone, I am working on a project that needs to expose the SV (Set Value) of a temperature controller to a SCADA system. SCADA <-...
Replies
4
Views
175
Thank you for any and all responses/help. I have an RSLogix 5000 v20 and a Cognex In-Sight v5.9 spreadsheet (8502P). I can not figure out how to...
Replies
0
Views
146
Back
Top Bottom