AllenBradley Compactlogix PLC Ethernet IP & C# Communication? [closed] - plc

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have Compact Logix Ethernet/Ip PLC. I want to make small scada/hmi on my pc with C#. I can use visual studio 2017 windows forms. I will take some data from plc to pc and I will show on c# and changed some picture image.
how can I do communication C# and Allen Bradley PLC via ethernet/IP. I need your helps, sample programs, libraries, support, advises.

Look at AdvancedHMI. It is an HMI/SCADA Visual Studio toolkit with AB drivers. You can do most HMI stuff without writing code, but you can also use VB or C# for advanced tasks.

Look at EEIP Library. They have a C# and Java library for Ethernet/IP communication. They even offer some videos on YouTube on how to use it. But be aware, that some of this free libraries have some rough edges or bugs with them. Personally, I would use Modbus or another PLC before using Ethernet/IP along with a PC.

There is an open-source project called libplctag which has a few .NET wrappers, some of which are on nuget: https://www.nuget.org/packages/libplctag/, https://www.nuget.org/packages/PlcTag.Net/
Full disclosure: I'm one of the authors of the first wrapper.

Related

Should I write a cross-platform service in Go? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm looking into writing a cross-platform (Windows/Debian/Darwin/Red Hat) service and am comparing language options. I really appreciate Go's cross-platform threading abilities and easy cross-compiling, but I want to make sure I'll be able to easily reach any native (eg. Windows Service) APIs when needed.
What sort of things should I be considering to drive my language decision?
Go has full support for calling into arbitrary Win32 API's via its core syscall package.
While calling out to raw Win32 via syscall is not exactly pretty to write (mostly because you're crossing the managed/unmanaged boundary, and back) and has no support from the compiler (akin to, say, that of Delphi), this works just OK, and generation of wrapper functions for such API calls can be automated—the Go core packages use this facility for themselves, other popular examples include the odbc package.
Note that there already exists winsvc—a library which interfaces Go with the Windows SCM and event log.
Also look at service which provides unified API for turning your program into a daemon/service using platform-native tools (it uses winsvc on Windows, IIRC).

what the technology to create a real time application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i wanna to know what the technology must i do when i want to create an application like:
real time application ?
multiplayer in game ?
sometimes i'm read this article keep alive.
what is that support in socket TCP ?, i'm already read server push but is many example work under HTTP, how about in TCP like create a socket TCPServer and TCPClient.
There isn't just one "go-to" technology for making real-time / multiplayer gaming applications. You have to understand a multitude of different programming realms like graphics manipulation, threading, networking(TCP,etc). I would say it would be good for you to pick up a book on game development and design at your local library, bookstore or on the web. You also want to decide where and how you want to run the game. If you are going for a desktop application you are probably going to want to use a language like Java or C++/C#. For web applications Java and Flash are historically the way to go, and there is even a growing case for games written primarily in javascript (presumably with a .NET/PHP back-end).
If you want to jump right in you might try a framework like Unity which I believe is based on Microsoft's .NET framework. This tool has a lot of things built into it which would help you get started.
I know that is not a lot of specific information but hopefully it points you in the right direction.

Windows driver programming or Linux driver programming? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I want to learn driver programming. But I don't know anything about it, except a driver is something that acts as an interface between the operating system and the outer world. What is easier to learn, Windows driver or Linux driver programming?
Where should I start?
I am at an intermediate stage in C programming. What are the prerequisites? As I, in 2010, graduated as a B.Tech. in computer science from an average college, can I start doing driver programming? I mean, can only experienced persons program drivers? What are the career oppurtunities in this field?
I'd say Linux device driver programming is easier than Windows, only because you've got access to thousands of drivers in the Linux kernel source tree that you can copy from. (And you can copy from them, because it's all GPL v2 licensed. You just have to GPLv2 license your driver too.)
The Linux Device Drivers, 3rd Edition book might be the best starting point. It's a little dated at this point, and the "flavor of the month" for many of the different techniques in the book have changed several times over, but it will get you experience writing small drivers and adding functionality over time. Once you've got some more experience, then the new "flavor of the month" for the different mechanisms will make much more sense to learn about it.

How to write a WOL app for iPhone? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Wake on LAN so cool, just want to write a iPhone app to WOL my PC, but have no idea to code, any one can point me the way?
If you've no experience of programming, then this is a very large first step. (More of a sheer vertical incline really.)
As such, you might want to take a step back and have a look a some basic (or indeed BASIC) programming tutorials. (Google is your friend.)
Alternatively, Apple has good online documentation regarding Objective C and the Cocoa (the language and framework that iPhone applications are written in.) A good place to start for this would be Apple's Introduction to The Objective-C Programming Language.
Basically you need to send a magic packed as described here, to do that you'll need basic programming knowledge and some knowledge on socket programming, here is a good book on the subject. There are numerous examples of that.
But in the end perhaps I could persuade you to purchase one of several iPhone applications that do exactly that, or grab the free one?
You'll need an understanding of bsd sockets as well as the user interface kit framework to put the necessary controls on the screen.
Or of course download an existing free app like this one which does it already, automatically detects your mac address, and also tells you whether your machines are on or off:
http://itunes.apple.com/us/app/wake/id396566137?mt=8
All the best for your projects.

Muscial notation on the iPhone. Any suggestions for example code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm writing an iPhone app where I'd like to display some simple musical notation (just a chord or two).
This question is a call for suggestions on the quickest way to go about it. For instance:
Is there any iphone OR objective-C libraries for doing this that I'm missing?
Are there any examples of open-source objective-C software in the wild I could look at? It wouldn't have to be iPhone specific.
If there isn't any objective-C code to do this, anyone know of any musicial-notation rendering software in other languages?
Indeed, MusicKit is an audio tool, not a symbolic tool like you need.
I don't know of any open-source Objective-C music notation programs. However, the recently-released Zong! Viewer is an open-source (GPL) Java program. You can't run Java on the iPhone, of course, but it might give you some ideas for structuring your software. MuseScore is an open source music notation editor that might provide more ideas.
So far the only iPhone music notation application I know is pocketscore. It has the great idea of exporting MusicXML files via e-mail so you can work on your music later with a more full-featured program than you can write on an iPhone.
There might be other open source programs you can check out on the MusicXML software list. Good luck!
This is an objective-c music analysis framework which may have what you need:
musickit