Giter Site home page Giter Site logo

aliazzzz / monarco-hat-library-for-codesys-v3 Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 8.79 MB

CODESYS 3 Library for Monarco HAT

Home Page: https://github.com/Aliazzzz/Monarco-HAT-library-for-CODESYS-V3

codesys-library unlicense raspberry-pi monarco-hat-library iec61131-3 plc monarco codesy-package industrial-automation hat

monarco-hat-library-for-codesys-v3's People

Contributors

aliazzzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

monarco-hat-library-for-codesys-v3's Issues

Dev Description error

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?

Package 0.9.0.3 Crashes Codesys

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!

RS485 for Modbus RTU

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?

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.