Author Topic: Project Black Box  (Read 7226 times)

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Project Black Box
« on: April 15, 2016, 09:53:08 AM »
Well on the project i have up and coming i have to send info and store data in so many ways Desk Top app, Web and eventually mobile devices!! And all has to be routed through an OPC Server.

After some research, learning and trial and error i am on the right path!!

I started with AHMI solution and added WCF and then just a console app. I am just starting to develop this but thought i would post some info in case anyone has some ideas or suggestions. When complete it will be able to connect what i call the black box to the OPC server and then from there i can request the data from and send data back from any platform!! This could be easily configured to communicate directly with PLC's but due to where i work the Process Engineers say i have to use the OPC so they can limit access primarily on writes so i am not dumping a ladle full of molten steel on someone, so i see there point :) the screen shots i a attached are of the Matrikon OPC simulator. Any questions or comments please go for it!!

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #1 on: April 15, 2016, 09:54:41 AM »
Screen shot

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #2 on: April 15, 2016, 11:02:12 AM »
Short video of write and read. Hopping that it is just the OPC sim that is on the slow side

https://youtu.be/pE6uz8AaUks

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #3 on: April 15, 2016, 12:54:44 PM »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5261
    • View Profile
    • AdvancedHMI
Re: Project Black Box
« Reply #4 on: April 17, 2016, 01:40:11 PM »
It is saying the videos are private.

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #5 on: April 17, 2016, 04:32:01 PM »
Oh shoot let me fix that

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #6 on: April 18, 2016, 07:01:39 AM »
Should be ok now.

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #7 on: July 08, 2016, 12:36:08 PM »
First basic live test!!
Using MS SQL Server and Matrikon OPC.
Basic Console application Reads the Values and compares them with the Set Point Values in the DB and if they do not match it updates the OPC Value.

https://youtu.be/y03hmz6U6Ws


Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #8 on: August 05, 2016, 12:20:31 PM »
Everything works perfect!! Can connect from any .net application!!! Last time i will post on this unless anyone wants the basic source code to the Black Box part of this!!

rbelknap

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Project Black Box
« Reply #9 on: August 19, 2016, 02:07:53 PM »
Mike,

I would like to see the source code for the Blackbox part of this.
I'm thinking this may be useful to me, and am very interested in the details.

Thanks,

Rich

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #10 on: August 19, 2016, 03:41:04 PM »
Ok I will work on getting it for you over the next couple of days!!

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #11 on: August 19, 2016, 03:46:18 PM »
Do you need it in VB? Currently in C#.

rbelknap

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: Project Black Box
« Reply #12 on: August 22, 2016, 09:46:26 AM »
I do most of my development in VB, but C# should be fine.

I can always throw it into an online converter if I have to.

Thanks.

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #13 on: August 22, 2016, 12:12:16 PM »
I should create a VB version just to make it easier for anyone that wants to use it. Give me a bit and i'll get it put together and uploaded to a repository.

Mike

Mikefly95

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: Project Black Box
« Reply #14 on: December 13, 2016, 01:48:41 PM »
Just a quick update while i have a min.

The Black Box has been running for quite some time now, connecting to it is a basic console app that fires every minute and updates any necessary tags based off of a comparison with a the data base. The HMI looking desktop app has stayed pretty much the same with a few dials showing over all power consumption. I plan on expanding the project to some scales and feeders and take it as far as i can. I want to get the source code pushed out somewhere when i get some time but not sure when i would be able to convert it to VB sorry :(

Mike