Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP as a PLC
Message
From
23/11/2014 01:11:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP as a PLC
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01611323
Message ID:
01611323
Views:
141
I'm looking into an industrial application that would require reading some remote temperatures, and controlling a few motors through relays. Basically I want to build a VFP application that does "normal" business stuff, but in addition ... monitor and control (to a minor extent) some remote gear. I read a bit on the "Raspberry Pi" microcomputer, but thought that I saw some issues that pushed me away. I also found the "Arduino" ... another computer on a chip device that supported some serial communication. The bottom line on my quick review was that I could write my code in VFP faster than I could write it in Python3 or C++ (which the two mentioned use respectively), and all I really need to build myself a Programable Logic Controller ("PLC") is VFP, access to a serial port, a handful of relays and temperature probes, a big spool of wire and some electrical connectors.

Oh yea ... I also need to be pointed to some appropriate literature that can tell me how to make this all happen. I don't have any details on the specifics of the project, as there is no project. I thought that if I picked up some capability along these lines, that I could go out and find a project.

Actually I did something a lot like this many years ago in a Clipper program that I wrote to talk to a "smart valve". It needed a special board to hook up to, that got installed inside the PC that was used to run the process. I was talking over a couple of rs232 serial lines at the time, "directly" from my Clipper app.

Any thoughts on where to pick up info on generating serial input/output to multiple devices from my VFP code, and what to look out for once I get past the edge of my computer?

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform