This should get you started.

The attached macro is a demonstration of extracting the text string from a
user command or text element.

In the current state the macro will prompt for the element number. If the
element entered is a user command or text element, the macro will extract
the text string and assign it to the string variable #UserText. The macro
will then display the text using a "Pause" message box.

================================================== 
 Fred Lauzus, CAM Programming Coordinator 
 High Steel Structures, Incorporated 
  mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.highsteel.com <http://www.highsteel.com/>  
================================================== 
  

-----Original Message-----
From: Michael Senack [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:34 PM
To: 'SmartCAM Users Group ([EMAIL PROTECTED])'
Subject: [mfg-smartcam] Macro inspiration



I'm looking for some ideas to start a macro for automatically changing User
Elements.

 

Attached is an Advanced Wire EDM .PM4 program for our Agie wire EDM machine.

 

The program is intended for the Agie 100 control. 

However if that machine is tied up, I have to reprogram it to the HS150 

Agie by modifying the following user elements manually.

 

Modify Element 3

from #DOFF=15,#TOOL=1  to #DOFF=15,#TOOL=1,#V1=16,#V2=1

 

Modify Element 26

from #DOFF=1,#TOOL=1  to  #DOFF=1,#TOOL=1,#V1=16,#V2=1

 

Modify Element 41

from #DOFF=2,#TOOL=1  to  #DOFF=2,#TOOL=2,#V1=16,#V2=2

 

Modify Element 56

from #DOFF=3,#TOOL=2  to  #DOFF=3,#TOOL=3,#V1=16,#V2=3

 

Is it possible to check if the element is an User Element that is
#DOFF=1,#TOOL=1

then if it is change it to #DOFF=1,#TOOL=1,#V1=16,#V2=1 ?

 

Any ideas to get me started are greatly appreciated.

 

Regards,

Michael Senack

Attachment: Get User Text.mcl
Description: Binary data

Reply via email to