Jump to content

Multiple Machine QMH


Recommended Posts

Hi,

I'm working on a project to connect and interact with a cell of machines (8 PLC aprox) with datasocket, the app consist in a simple communication to poll a trigger, read and search the partnumber and retrieve data to PLC from a SQL database. I use QMH to start this project, and I made a MHL with the functionality of ONE machine (PLC and SQL communication, and a few messages to UI loop).

This loop I called "Station Handler" is initialized with a configuration file which haves unique information to run each machine (CSV file with tags and parameters of SQL), I convert this loop in a SubVI and configured to be < Preallocated Clone Reentrant >, and I configure the datasocket subvis that i made to be reentrant also.

When I run the application it works fine with the PLC about a couple of cycles (write/read), also I can use the two PLC I currently have to do tests, but suddenly, the "Station Handler" vi dont read ok the trigger tag, i have it in true and labview never read it. Is not a problem of network or OPC because I already open a OPC test client and read ok the value of the trigger tag.

I will appreciate if anyone can help me... and sorry for the english if I dont explain myself enough haha

Also I'm open if there is a better way to achieve this, and QMH maybe wasn't the answer...

 

Top level VI

imagen.png.a5151642b76954ea7396c27ffb01a812.png

 

Station Handler loop in Poll trigger state

imagen.png.0f1a46cade5c0ed5db4ff705d5118ff2.png

 

Poll trigger VI

imagen.png.fe4a37d1cc8cb83ea6c9f0cbe89dffc5.png

 

 

Thanks in advance!

 

 

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.