Open DamienPim opened 3 weeks ago
Searching existing issues for "MicroLogix 1400" yields that someone has had some success already: https://github.com/search?q=repo%3Alibplctag%2Flibplctag.NET+micrologix+1400&type=issues
Can you please turn on debugging to level 4, and provide other information such as a code snippet of what you have tried, and let us know if you have been able to get something working, even if it isn't the final result you're looking for.
Unpacking what you are saying:
plc_tag_create
and you pass in an attribute string of "protocol=ab_eip&gateway=192.168.0.98&cpu=MicroLogix&elem_size=1&elem_count=1&name=Bit_1"
.cpu=MicroLogix
instead of cpu=micrologix
.I note the attribute string doesn't specify the path, is that correct?
I don't specify path because I see that it is not used for MicroLogix PLC. I write MicroLogix and not micrologix because I see a case insensitive comparison. Both the libplctag package (v1.5.2) and the libplctag.NativeImport package (v1.0.41) have been added to the application. C# .Net Framework 4.6.2. Tests on Windows 10. The MicroLogix1400 on which I can make tests will be no longer available after this afternoon. I have to find another MicroLogix PLC to continue my tests... Thank again for your help.
name=Bit_1
is not a valid DF1/PCCC data file reference. B42:0/1
is.
That said, the debug file will help a lot.
The MicroLogix1400 on which I can make tests is no longer available. I have find another MicroLogix but I don't yet received it. I will come back with results ASAP.
Hello, I can't get libplctag to work with MicroLogix 1400. I use libplctag 1.5.2 and libplctag.NativeImport in a VS2022 C# project. I call plc_tag_create with following UniqueKey: "protocol=ab_eip&gateway=192.168.0.98&cpu=MicroLogix&elem_size=1&elem_count=1&name=Bit_1" but I get PLCTAG_ERR_BAD_PARAM error. For cpu, I see that I can use MicroLogix because in get_plc_type, stricmp is used to compare cputypes... Can anyone help me? Has anyone tried libplctag with a MicroLogix 1400 ? Thank you in advance.