GithubHelp home page GithubHelp logo

libplctag / libplctag4j Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 3.0 1.03 MB

Java wrapper for libplctag

License: Mozilla Public License 2.0

Java 100.00%
plc java allen-bradley modbus ethernet controllogix micrologix

libplctag4j's People

Contributors

kyle-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libplctag4j's Issues

Modify build so that repo can be used as is on Android

Modify the build configuration so that the repo can be checked out and used as is when building an Android app. Alternatively, build both a fat JAR and a "skinny" JAR and see if Android can use the skinny version.

Errors building under Android

This is from @GitHubDragonFly's comments in core library issue 189.

Another thing, related to your Tag.java, is that Android doesn't seem to like this line:

NativeLibrary.getInstance(Tag.JNA_LIBRARY_NAME)

It seems to be causing this error: "The SecurityManager implementation on this platform is broken; you must explicitly provide the class to register". I thought it was related to ASan libraries but it looks like I was wrong.

UDT tag reading

an example of how you can read or write a UDT tag with libplctag4j, thanks

Continuous tag reading

To continuously display the value of some tags, I use the following instruction:

tag2.Read(TIMEOUT)
tag3.Read(TIMEOUT)
tag4.Read(TIMEOUT

val2 = tag2.GetInt32(0)

LabelTAG_INT.Text = val2

val3 = tag3.GetFloat32(0)
LabelTAG_REAL.Text = NumberFormat(val3,0,1)

val4 = tag4.GetString(0)
LabelTAG_STRING.Text = val4
instructions that repeat within a loop, it works fine, but is this the correct way?
make constant read calls, affect the performance of the computer?

the language is B4X, and it is a wrapper for this platform, but it is still in testing. Thank you
https://www.b4x.com/

Tag string writing

I use the libplctrag4j library. I would like to know the correct way to write on a tag of type string, because sometimes the result is not the desired one

is this correct?
tag4.SetString(0,"value")
tag4.Write(TIMEOUT)

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.