wago | small controller for WAGOs Linux

 by   smurfix C Version: Current License: No License

kandi X-RAY | wago Summary

kandi X-RAY | wago Summary

wago is a C library. wago has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

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

            kandi-support Support

              wago has a low active ecosystem.
              It has 7 star(s) with 5 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              wago has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of wago is current.

            kandi-Quality Quality

              wago has no bugs reported.

            kandi-Security Security

              wago has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              wago does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              wago releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wago
            Get all kandi verified functions for this library.

            wago Key Features

            No Key Features are available at this moment for wago.

            wago Examples and Code Snippets

            No Code Snippets are available at this moment for wago.

            Community Discussions

            QUESTION

            Casting function block
            Asked 2021-Apr-26 at 15:05

            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:05

            First 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:

            Source https://stackoverflow.com/questions/67263063

            QUESTION

            How to do a SQL INSERT of a timestamp in new column of table with cast to data type DATETIME
            Asked 2021-Feb-18 at 16:19

            I have a table with a column 'TIMESTAMP' of data type VARCHAR:

            ...

            ANSWER

            Answered 2021-Feb-18 at 16:19

            The only part that disagrees with MySQL's date literal format is the 'Z' at the end.

            Source https://stackoverflow.com/questions/66263572

            QUESTION

            Usage of VAR RETAIN PERSISTENT
            Asked 2021-Jan-31 at 00:03

            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 from WagoAppBuilding to handle short and long press of buttons on the wall (it could also be a function block from OSCAT library)
            • FbLatchingRelay from WagoAppBuilding 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:03

            Yes, 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.

            Source https://stackoverflow.com/questions/65953523

            QUESTION

            Whats the best way to send data from a (WAGO) PLC to an cloud database?
            Asked 2020-Jun-06 at 04:49

            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:15

            I 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.

            Source https://stackoverflow.com/questions/62191218

            QUESTION

            MODBUS TCP between PLC and Arduino
            Asked 2020-Jan-07 at 12:41

            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:

            EtherCard

            Modbus-Arduino

            Master Setup

            ...

            ANSWER

            Answered 2018-Apr-05 at 07:31

            Solved

            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.

            Source https://stackoverflow.com/questions/49277943

            QUESTION

            improve XSLT 3.0 performance to avoid expensive preceding selection
            Asked 2018-Nov-27 at 15:36

            I have a input structure like below,

            ...

            ANSWER

            Answered 2018-Nov-26 at 18:21

            Try whether an accumulator improves performance:

            Source https://stackoverflow.com/questions/53484319

            QUESTION

            PHP exec doesn't run my script as intended
            Asked 2017-May-01 at 21:14

            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:05

            if 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

            Source https://stackoverflow.com/questions/43705560

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install wago

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/smurfix/wago.git

          • CLI

            gh repo clone smurfix/wago

          • sshUrl

            git@github.com:smurfix/wago.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link