Coder Social home page Coder Social logo

codesys_serial's Introduction

CODESYS_Serial

YouTube Video

CODESYS - Raspberry - Arduino – RS232(USB)

RS232

Arduino Program
CODESYS Program

This example demonstrates how serial communication can be implemented, how ports are opened, closed on Raspberry Pi to communicate with Arduino via COM Port RS232 by using CODESYS.

The Demo set the light of the LED bar and read out the temperature from the thermocouple.

First of all you need to download the free The CODESYS Development System (you need to register) after install it, you need to download CODESYS Control for Raspberry Pi SL (free version runs for 2h and the you need it to restart)

Links:

CODESYS Development System
CODESYS Control for Raspberry Pi SL

Important

After install Codesys on Raspberry you need to edit the file “CODESYSControl.cfg” as following: sudo nano /etc/CODESYSControl.cfg


[SysCom]

Linux.Devicefile=/dev/ttyACM
portnum := COM.SysCom.SYS_COMPORT1


Save it and restart the codesys controller
sudo /etc/init.d/codesyscontrol restart

codesys_serial's People

Contributors

pi4iot avatar

Stargazers

 avatar

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.