corsinvest / cv4ab-api-dotnet Goto Github PK
View Code? Open in Web Editor NEWAPI for accessing Allen-Bradley PLC data over Ethernet Windows/Linux .NET Core
License: GNU General Public License v3.0
API for accessing Allen-Bradley PLC data over Ethernet Windows/Linux .NET Core
License: GNU General Public License v3.0
Add method return list of tags
https://github.com/kyle-github/libplctag/blob/master/src/examples/list_tags.c
How can I force digital outputs on compactlogix?
I try to read a 'short' tag from a ControlLogix controller. Its current value is zero in the PLC, but a tag read returns '-32768', the same tag can be read through OPC UA with the correct value '0'.
Is there an issue with the sign bit of integers in the libPlcTag library?
Anbody else with the same issue?
I'm using release 0.1.7 of Corsinvest.AllenBradley.PLC.Api within a Win64 console app, .net core 3.1.
I know this has been hinted at as a problem previously, but I'm not able to solve it
I have cloned the solution directly into VS and changed the IP of the PLC to one thats relevant to me
The first call to code which uses the NativeLibrary fails with BadImageFormatException:
Everything is 64 bit as is the plctag.dll reference
I have installed a couple of VC++ components into VS in case that is the issue, something about dlls that the plctag.dll depends on? But that hasn't worked
Any help appreciated!
Assumed was that the native library was 64 bits, but as it seems it is a 32 bits version (of Windows anyway). It would be nice if we got it to work for 64 bits application (like I have).
I ran your test project, but that project also fails at the first call of a native method (creating a tag)
using (var controller = new Controller("<address>", "1,0", CPUType.LGX)) { var tagLong = "CCU_SEQUENCE_ID_IN"; Console.WriteLine($"Ping - {controller.Ping(true)}"); // output //Address: <address> //RoundTrip time: 236 //Time to live: 60 //Don't fragment: False //Buffer size: 32 //Status: Success //Ping - True var group = controller.CreateGroup(); var tag = group.CreateTagInt64(tagLong); // here is "Unable to cast object of type 'System.Int64' to type 'System.Int32'." var value = tag.Read(); }
I have an issue when trying to read value from Int64 tag. When calling method CreateTagInt64() or CreateTagType() is error "Unable to cast object of type 'System.Int64' to type 'System.Int32'."
when there is a network outage,
In Tag.cs
public ResultOperation Read()
..
var statusCode = NativeMethod.plc_tag_read(Handle, Controller.Timeout);
System Access Violation Exception in this line
Congratutation for this nice project !
I've moved project from ControlLogix PLC to CompactLogix PLC. Now I'm always getting -3 error when I'm reading tags.
Hello,
Thanks for your amazing work on this project.
This library works very well but i have only 1 issue.
I need to read boolean tags on my ControlLogix but i don't know how to do that.
I hope this is possible.
Hi, I've created a new Net core 3.1 project and pasted in some code behind a button click just to step through the code, the tag I tested in another app previously.
I added Corsinvest using Nuget console
I get the error here:
I'm using Visual Studio Preview 16.5 but I can use earlier stable version if required
Thanks in advance
Hi
I tried your software with Soft Logix 19 and I get format error and could not read the tags
Does it work with soft logix? if yes any idea why I a unable to read tags?
Thanks
Laz
AutoRead functionality leads to a stack overflow.
tag.Value Getter calls Read(). (Tag.cs line 113)
Read() uses tag.Value (Tag.cs line 172)
This is an endless loop.
Tag.CS - line 172 OldValue = DeepClone(Value);
You probably want to do OldValue = DeepClone(_value);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.