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: IANWIL18.pm4
Description: Binary data

Attachment: IANWIL18.jof
Description: Binary data

Reply via email to