wago | small controller for WAGOs Linux
kandi X-RAY | wago Summary
kandi X-RAY | wago Summary
This program runs on a Wago Linux controller. Its job is to export the external inputs and outputs in a controlled fashion.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wago
wago Key Features
wago Examples and Code Snippets
Community Discussions
Trending Discussions on wago
QUESTION
I'm using Wago PFC200 for my home automation. I got base function block:
FUNCTION_BLOCK ABSTRACT Room
and two the interface:
...ANSWER
Answered 2021-Apr-26 at 15:05First of all, an interface
is already a reference
to a function block:
CODESYS always treats variables declared with the type of an interface as references.
So there shouldn't be a need to use pointers
.
Secondly, to cast an function block into an interface, personally I'd recommend using a dedicated method inside a function block. For example:
QUESTION
I have a table with a column 'TIMESTAMP' of data type VARCHAR:
...ANSWER
Answered 2021-Feb-18 at 16:19The only part that disagrees with MySQL's date literal format is the 'Z'
at the end.
QUESTION
I'm using WAGO PLC PFC200 in my home automation project. I've plenty of POUs, each for one room. Each room implements IRoom interface and uses base POU for common logic like turning off all lights. For lights management, I'm using
FbEvaluateShortLongPress
fromWagoAppBuilding
to handle short and long press of buttons on the wall (it could also be a function block from OSCAT library)FbLatchingRelay
fromWagoAppBuilding
as a toggle for PLC digital output
I want to save the state of FbLatchingRelay
in case of e.g.: power drop. I want all lights which were turned off before power drop to be turned on when the power comes back.
I've solved it by declaring a FbLatchingRelay
in the VAR RETAIN PERSISTENT
area in my POU. But then after reading here that:
If you declare a local variable in a function block as RETAIN, CODESYS stores the complete instance of this function block in the Retain range (all data of the function block); however, only the declared RETAIN variable is treated as such.
I decided to change that in order not to waste RETAIN memory for a bunch of variables which are in POU but are not needed to be stored as RETAIN.
So right now I have something like that:
- the VAR RETAIN PERSISTENT area is only declared in my main program
- it stores structures for each room (each POU) only with needed data - FbLatchingRelay POU and few other variables
- while initializing the room (POU) I'm passing those structures to my rooms using VAR_IN_OUT
- each room (POU) uses then this data
PLC_PRG:
...ANSWER
Answered 2021-Jan-31 at 00:03Yes, this is how my organization handles retain vars. This also lends itself to supporting “save to disk” solutions for other FB demands (not so much for your light states).
On the other hand, did you run out of memory by the original way? Sometimes I find we worry about things that never happen. Yes it is “wasteful” for the whole FB instance to be put in retain memory, but if your FBs are small and your device has plenty of retain memory - then nothing to worry about until later.
QUESTION
Whats the best way to send data from a (WAGO) PLC to an (DynamoDB) cloud database?
Our situation:
We have WAGO PLC's(750-880, 750-882, 750-890) installed on site and we would like to send multiple data to an cloud database, preferabel an AWS DynamoDB. Whats the best approach how to achieve this? Is there an universal solution or a specific WAGO solution for this?
...ANSWER
Answered 2020-Jun-04 at 17:15I would use a process running on some server that read the Wago Input/Output and publish it on your server.
You will need to create a socket to port 502 of Wago talking using ModbusTCP, normally you can find some libraries around depending on which programming language you use. After acquiring data you will publish to your database.
Following a link to a Control Software that talks with Wago using this protocol. It is not a barebone example at all, but may give you some ideas. Bliss Project ESRF - Wago controller don't esitate to ask if you need help.
QUESTION
I am trying to exchange data between an PLC(WAGO 750-8101) and an Arduino(UNO) with PLC as master, and the Arduino as Slave, but cant seem to get a connection.
For the Arduino I have a MINI ENC28J60 as the networkmodule, and is connected to the arduino like this:
SCK - Pin 13, SO - Pin 12, SI - Pin 11, CS - Pin 10
VCC: 3.3V
For the arduino I am using these libraries:
Master Setup
...ANSWER
Answered 2018-Apr-05 at 07:31Solved
The problem was sending and receiving on the Arduino-side. I connected the Arduino and the PLC to a switch. I was then able to exchange data.
My setup that didn't work:
Ardunio <-------> PLC (WAGO)
My setup that did work:
Arduino <------> switch <-----> PLC.
QUESTION
I have a input structure like below,
...ANSWER
Answered 2018-Nov-26 at 18:21Try whether an accumulator improves performance:
QUESTION
Hey fellow programmers,
I'm working on my bachelor's project and got into a bit of a problem.
The goal is to create a web app, that can operate and modify I/O of a WAGO PLC 750-8202 (you can imagine it as some kind of industrial Raspberry PI) running an embedded linux with a lighttpd web server. I've made some C scripts that utilize DAL(HAL) functions the PLC provides.
Now I want to link it with my web application/site. I have a simple PHP page (ignore the button, it does nothing):
...ANSWER
Answered 2017-Apr-30 at 11:05if you run the script as root, it has another rights than user under which lighthttpd is running.
- set appropiate rights for user or group (www or www-data, see lighthttpd config)
check running under this user, in console for switch from root use
# su - www
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wago
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page