Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generic Modbus Driver - Serial & IP
#21
Oh, wait, how did you create the file? If you just right clicked there and created a new file, or you opened a text editor and saved to there, it won't have actually gone there. Unless you are running as admin it will get redirected to a per-user account location.

Run a text editor as admin, then go there and see if the file is there. If not, then that happened. Run another instance non-admin which should find your redirected one. Copy the text, then delete that file. Then create the new one in the admin instance and save it. See if that works.
Dean Roddey
Software Geek Extraordinaire
Reply
#22
I just did a wireshark view of the comms and the driver appears to ask for a slave ID from the PLC. It returns an exception (as slave ID is only part of the serial modbus comms protocol, not Modbus TCP). Would I be correct in thinking that the driver is possibly trying to write this exception to a field and thus throwing the error or would driver account for that? On attached 192.168.1.10 is CQC, 192.168.1.16 is PLC.

Thanks Dean, I did check that alright. I used the config file given with the driver and resaved it as .csv before copying over.The file does indeed exist at C:\Program Files (x86)\CQC\CQCData\MacroFileRoot\Drivers\Modbus\ when running notepad++ as admin.

Jim


Attached Files
.jpg   Capture.JPG (Size: 45.08 KB / Downloads: 7)
Reply
#23
Hi,


So opening the driver in the harness gave a bit more detail.

Code:
CQCGenDrvS, MEng.User.CQC.Drivers.Modbus.Generic.DriverImpl.1195, Status/App Status
Could not open file: \Drivers\Modbus\modbus_FieldAlias.csv

Some questions;


1. Is \Drivers\Modbus\modbus_FieldAlias.csv referenced to the C:\Program Files (x86)\CQC\CQCData\MacroFileRoot folder? I assume it is but just want to check

2. Is it correct that it prepends the driver moniker (modbus in my case) and an underslash to the config file name as shown above? (Changing config file name to modbus_FieldAlias had no affect anyhow)

3. Is it an issue that it can't find the file or that it can't open the file due to contents of file?

Any ideas on how I can investigate further?

Jim
Reply
#24
It is relative to that MacroFileRoot, so it would in the end be MacroFileRoot/Drivers/Modbus/ and the file would be in there. It is prepending the driver moniker to the file name, so you should name yours that way. Fro the error I would say it's not finding it.
Dean Roddey
Software Geek Extraordinaire
Reply
#25
Its been a long time since i looked at this and there is another version in development that has stalled.

The csv file needs the moniker in the filename - that way you can have multiple copies of the driver installed.

I tested this on a Modicon PLC and it would return the ID so I used that as a way of connecting, but since then I have found that not every MODBUS TCP device will report an address.

This is something I need to get back to as I have some modbus power meters going in, a new PLC using Modbus (Click), a VSD and a few other smaller cheap Modbus devices. I'm trying to model its flexability around the Matrikon OPC server for modbus as I use that in our production environment
Mykel Koblenz
Illawarra Smart Home
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Amazon Echo Hue Simulator Driver wuench 109 32,556 08-02-2018, 02:45 PM
Last Post: Dean Roddey
  Sony TV IP driver dogman 10 273 08-01-2018, 03:53 PM
Last Post: znelbok
  Sony Bravia TV Driver znelbok 12 1,126 06-11-2018, 09:19 AM
Last Post: Dean Roddey
  XBMC Driver wuench 427 148,010 05-29-2018, 03:02 AM
Last Post: znelbok
  OpenHAB Driver whozeawhat 5 453 05-28-2018, 08:50 AM
Last Post: whozeawhat
  Pushbullet Driver whozeawhat 1 292 05-13-2018, 07:27 AM
Last Post: whozeawhat
  Generic Irrigation Scheduler jkish 540 137,741 02-24-2018, 09:24 PM
Last Post: Dean Roddey
  Monoprice Blackbird 4x4 HDMI Switcher - Driver request batwater 14 7,282 02-10-2018, 02:29 PM
Last Post: batwater
  LIFX Driver bobskie708 9 1,075 01-30-2018, 12:34 PM
Last Post: jkmonroe
  SNMP Driver wuench 115 264,587 01-01-2018, 05:18 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)