libplctag / libplctag4j Goto Github PK
View Code? Open in Web Editor NEWJava wrapper for libplctag
License: Mozilla Public License 2.0
Java wrapper for libplctag
License: Mozilla Public License 2.0
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.
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.
The build instructions in the README are incorrect. The command line for building the JAR files should be:
gradle -b build-jar.gradle clean shadowJar
an example of how you can read or write a UDT tag with libplctag4j, thanks
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/
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)
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.