CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Raspberry Pi: List of available example applications
https://forum.codesys.com/viewtopic.php?f=23&t=6247
Page 2 of 3

Author:  Moderator3S [ Fri Apr 29, 2016 4:45 am ]
Post subject:  Raspberry Pi 3 Modbus TCP Master and Arduino Mega Modbus TCP Slave

Autor: alecudr

viewtopic.php?f=21&t=6884

Author:  Moderator3S [ Wed Oct 19, 2016 6:22 pm ]
Post subject:  Re: Raspberry Pi: Google Maps Application in Webvisu

Google Maps Application in Webvisu

New:
googlemaps_ext1.js
Line 395 set 'TODOSETKEY' with GOOGLE API KEY
How to get an API KEY https://developers.google.com/maps/docu ... et-api-key

Author:  Moderator3S [ Sat Nov 05, 2016 7:11 am ]
Post subject:  Webbrowser Element

Example for using the Webbrowser Element

Author:  Moderator3S [ Wed Nov 30, 2016 5:33 am ]
Post subject:  Check the Raspberry Pi License

Check the if license is activated on Runtime KEY and SoftLicense!

Author:  Moderator3S [ Wed Nov 30, 2016 5:46 am ]
Post subject:  Imported CODESYS V2.3 Project Example

Imported CODESYS V2.3 Project Example

Author:  Moderator3S [ Wed Jan 04, 2017 7:55 am ]
Post subject:  Raspberry PI as ProfinetDevice project example

In this project eth1 interface is used for the profinet connection to the ProfinetMaster
you need to add in /etc/CODESYSControl.cfg (Version <3.5SP12)
>= 3.5Sp12 /etc/CODESYSControl_User.cfg

[SysSocket]
Adapter.0.Name="eth1"
Adapter.0.EnableSetIpAndMask=1


and execute in the Linux console

<3.5Sp13
ifconfig eth1 promisc

das in /etc/rc.local einbauen

If you use a Pi3B+ you Need the following steps:

Using VLAN-Tags Need to be enabled:


sudo apt install vlan # install VLAN-Packet
sudo modprobe 8021q # load 8021q Kernelmodul




for having this in every Startup automatically:

sudo su -c 'echo "8021q" >> /etc/modules'

Author:  Moderator3S [ Wed Jan 11, 2017 5:24 am ]
Post subject:  Onewire project two tasks - improved project

Read the onewire sensor in an own onewire Task / scan connected sensors

Rescan while running is possible by reset - x
IF NOT x THEN
x := TRUE;
//scan function
Onewire_master.Scan();
FOR ui:=1 TO MIN(Onewire_master.uiScannedDevices, 20) DO
astrID[ui] := Onewire_master.pasScannedDevices^[ui-1].StringRepresentation;
//dynamic write the scanned sensors to the configuration
DS18B20.ID := Onewire_master.pasScannedDevices^[ui-1];
END_FOR
END_IF

actDate := DS18B20.stdTimeStamp;
SysTimeRtcConvertDateToUtc(actDate,dwActDate);
dtTimestamp := DWORD_TO_DT(dwActDate);

Author:  Moderator3S [ Fri Mar 03, 2017 6:22 am ]
Post subject:  Communication - 2 Raspberry PI Modbus TCP

Communication - 2 Raspberry PI Modbus TCP

Author:  Moderator3S [ Tue Mar 07, 2017 6:00 am ]
Post subject:  1-Wire Busmaster / USB Hostadapter DS9490R - OWFS

Using OWFS to read onewire
Which device is used on this example
1-Wire Busmaster / USB Hostadapter DS9490R, Eco-Line; Art-Nr: 0167
Important links to bring it up:

DS9490R:
http://pdfserv.maximintegrated.com/en/d ... S9490R.pdf
http://owfs.org/index.php?page=usb-ds9490r
 
Info and wiring (Parasitic Power):
https://shop.wiregate.de/1-wire-bus
 
Installation:
https://www.raspberrypi.org/forums/view ... 9&p=505250
 
additional Infos:
https://www.fischer-net.de/hausautomati ... eil-2.html

Author:  Moderator3S [ Thu Apr 06, 2017 7:25 am ]
Post subject:  2 Raspberry Pi communication with Ethernet /IP Scanner and Adapter

Raspberry Pi communication with Ethernet /IP Scanner and Adapter

Author:  Moderator3S [ Mon Sep 25, 2017 8:17 am ]
Post subject:  Using RFID USB Reader with Raspberry PI

Reading RFID's with an USB RFID reader.
(KKmoon Berührungslose 14443A IC Kartenlesegerät Kartenleser Card Reader mit USB Schnittstelle )
(Webvisu is mandatory for doing this - we use the visu key Event handling)

Author:  Moderator3S [ Sat Nov 25, 2017 6:19 pm ]
Post subject:  Sonos

Author: TON
Communiction with Sonos speakers
Program made with:
- PlayBar (Woonkamer)
- PLay 1 (Left)
- PLay 1 (Right)
- Sub (Subwoofer)
- Play 3 (Keuken)
- Play 1 (Badkamer)
- Play 1 (Slaapkamer)

Uses UDP socket for upnp Discover, TCP Server for events and TCP Client for commands.
Visualization for each group.
Display play status each group.
Control Play, Pause, Next, Previous each group.
Control Volume and Mute for each player.
See property each speaker by dialog.
Max 10 groups, 10 speakers with 3 satellites(LR, RR en SW).
Play doorbel

Functions:
- Find Sonos players with upnp discovery
- Find correct local ip if more then one network adapters
- Subscribe/Unsubscribe upnp events
- ZoneGroupTopology (for enumerate groups)
- AVTransport (get actual play status)
- RenderingControl (get volume/mute)
- Get XML player info
- Dialog box to display player info
- Webvisu. http://xxx.xxx.xxx.xxx:8080/webvisu.htm

Author:  Moderator3S [ Sun Nov 26, 2017 5:49 am ]
Post subject:  Push notification

Author: TON
Push notification to Android/ios/desktop withPusover.
https://pushover.net/.
Push notification to your device with title, message, sound and application.
For $5 (once) you can push 7500 notifications per month.

With this account you can create notification for applications.
This application has name, token, icon,.. So you can create a clear structure.
In this example you see a notification for three applications.

I use this for over a year and works like a charm.

I just use some of the possibilities, there a more. See https://pushover.net/api.

Author:  Moderator3S [ Wed Dec 20, 2017 2:16 pm ]
Post subject:  opcua python client for communcation with plc symbols

Using an opcua python client for communcation with plc symbols (either on the same PI or remote PI)

How to use it:
1. Install OPCUA python:
sudo apt-get install python3-lxml
pip3 install opcua


2. download CODESYS Project to the Pi and start it:
Use the OPCUA Project from the Pi examples
"c:\Users\<WindowsUserName>\CODESYS Control for Raspberry PI\3.5.12.0\Examples\OPCUA.project"

Sample Python OPC UA Client.py example for browsing the variables/symbols

Author:  Moderator3S [ Thu Dec 21, 2017 8:02 am ]
Post subject:  add python scripts in CODESYS as external file and execute them on the PI

This is an example using the Unicorn HAT:

How to add python script and download them to the Pi and execute them on the PI.

https://www.youtube.com/watch?v=R9x-QX2 ... e=youtu.be

Page 2 of 3 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/