aliazzzz / monarco-hat-library-for-codesys-v3 Goto Github PK
View Code? Open in Web Editor NEWCODESYS 3 Library for Monarco HAT
Home Page: https://github.com/Aliazzzz/Monarco-HAT-library-for-CODESYS-V3
CODESYS 3 Library for Monarco HAT
Home Page: https://github.com/Aliazzzz/Monarco-HAT-library-for-CODESYS-V3
Will be added to repo if not too big, current size exceeds over 60MB
This is on Codesys V3.5 SP11 Patch 3 64 bit
"Cannot import device description file '.....\MonarcoHAT.devdesc.xml': '>' is an unexpected token. The expected token is '=' Line 42 Position 92".
This is "data-pjax-transient>". Should this be data-pjax-transient=TRUE or some other value as in other lines?
This is on Codesys V3.5 SP11 Patch 3 64 bit, possibly important it is running in a VMWare virtual machine Windows 7 64 bit. This had no effect however in installing the Pi and Wago packages.
Loading the package file results in an immediate crash notification. Selected save crash report but Codesys is locked up in the package installer screen. Only way out is to kill entire Codesys process. Cannot find any traces of the crash report....BUMMER!
The library will will be installed in the CODESYS library manager but the source code project is not available in the user directory;
Workaround
download the .library loose from git
Greetings,
I now have my Monarco hat and everything up and running. One Wire works perfectly from inside codesys. I do however seem to be having some issues with the compilation of some libraries. I will wait a bit for that though. My "issue" is I am wondering if I can use the native Codesys RS-485 Modbus RTU support with your system and without external libraries and calls? I see in the example you have separate calls for RS-485.
I ran a "dmesg" and it is showing /dev/ttyAMA0 (which I assume from your documentation may be the "terminal". I also see /dev/ttyS0. What I am wondering is if either of these may be a direct line to the RS485 that can be used directly from the Codesys Modbus RTU drivers? Looking at the Codesys forum I found that when a USB - RS485 adapter is used, it is added as follows:
""so you need to add in /etc/CODESYSControl.cfg
(Attention you need to remove the 0 from USB0)
[SysCom]
Linux.Devicefile=/dev/ttyUSB
portnum := COM.SysCom.SYS_COMPORT1;""
Assuming that ttyS0 is a direct line to the RS485 port, would you agree that adding "Linux.Devicefile=/dev/ttyS" would bring me directly to the RS485? I am a bit worried by this as we already have the Linux.Devicefile=/dev/ttyAMA and the portnum command doesnt seem to attach to a particular tty (unless it attaches only to the preceeding devicefile call).
What is your take on all of this?
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.