Giter Club home page Giter Club logo

cv4ab-api-dotnet's People

Contributors

franklupo avatar sharpseeer avatar timyhac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cv4ab-api-dotnet's Issues

Wrong read value of a short tag

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.

BadImageFormatException

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:

image

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!

x64 vs x86 native library

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)

Exception when create a tag 64 bit "Unable to cast object of type 'System.Int64' to type 'System.Int32'."

        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();
        }

Int64 tags

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'."

System Access Violation Exception

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 !

Read boolean

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.

Unable to load DLL PicTag

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:

dll

I'm using Visual Studio Preview 16.5 but I can use earlier stable version if required
Thanks in advance

Does not work with Soft Logix

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

Read/write single bits/booleans

Hello, is it possible to read/write single bits/booleans with your API? In this case, single means a BOOL tag as single element in an Allen Bradley PLC.

image

Could you please provide an example?

Thanks in advance,
Domi

AutoReadValue leads to Stack Overflow

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.