Hello Guest it is May 18, 2025, 09:38:23 AM

Author Topic: active "Brains" file  (Read 4652 times)

0 Members and 1 Guest are viewing this topic.

active "Brains" file
« on: November 17, 2024, 10:12:40 AM »
Hi everyone
I'm busy writing a VB macropump to sort my spindle and laser operations out.
I am trying to have one Macropump to cover several machines
Different machines have different brains files for the spindle

my question is; Is there a function to identify if a particular "Brains" file has been marked as "Active"
my backup way is to set a different userLED in each brain and use "else if" to select a code area in the macropump to select how the spindle functions. Or should I just use different macropump files.

OPen to idea's
regards
servomac

Offline TPS

*
  •  2,578 2,578
Re: active "Brains" file
« Reply #1 on: November 18, 2024, 03:07:53 AM »
if you are using different profilenames on your machines you can
identify it by using:

GetActiveProfileName

if you are using different screensets on your machines you can
identify it by using:

GetActiveScreenSetName

just some "other" ideas
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: active "Brains" file
« Reply #2 on: November 18, 2024, 05:08:54 AM »
Hi
brilliant tied to profiles should do the trick, I have several machines and am developing a modbus pick and mix for control stations, using macropump because of the problems I am having with manual spindle run, and one file fits all would save me from getting things mixed up.

many thanks your help is much appreciated; I owe you a pint

regards
servomac