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 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
87
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
130
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
159
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
128
Hello, This is my first exposure to CCW Micro8xx family. Someone will write to my existing micro850. Modbus TCP is turned on and I created a...
Replies
2
Views
172
Back
Top Bottom