What's new
What's new

EC500 Macro Issue

usfldcham

Plastic
Joined
Nov 9, 2020
All we have an older EC500 that we are trying to run a tool life macro on for high production work. We have attempted to hand type the macro in along with pull the two different macro programs over from a floppy disk. When typing the macro in you can't get past an IF statement as the machine says invalid code. If you pull the macro program over from the floppy disk it put ( ) around each line. Is there a parameter that needs to be turned on for the machine to read our tool life macro?

Our newer EC400's and EC500 don't have a problem with reading the same macro so I assume that there is a parameter that needs to be turned on or off. Any help would be greatly appreciated.
 
Here is the Alarm Macro.

%
O82721 (ALARM MACRO FOR TOOL LIFE)

(#530 WILL BE TOOL #30, SET THIS VARIABLE TO DESIRED TOOL LIFE)
(#531 WILL BE TOOL #31, SET THIS VARIABLE TO DESIRED TOOL LIFE)
(#532 WILL BE TOOL #32, SET THIS VARIABLE TO DESIRED TOOL LIFE)
(#534 WILL BE TOOL #34, SET THIS VARIABLE TO DESIRED TOOL LIFE)
(#535 WILL BE TOOL #35, SET THIS VARIABLE TO DESIRED TOOL LIFE)

IF [ #510 GE #530 ] GOTO2
IF [ #511 GE #531 ] GOTO3
IF [ #512 GE #532 ] GOTO4
IF [ #514 GE #534 ] GOTO5
IF [ #515 GE #535 ] GOTO6
GOTO10

N2 #3000= 30 (#30 TOOL LIFE OVER, CHANGE, RESET#510=0)
N3 #3000= 31 (#31 TOOL LIFE OVER, CHANGE, RESET#511=0)
N4 #3000= 32 (#32 TOOL LIFE OVER, CHANGE, RESET#512=0)
N5 #3000= 34 (#34 TOOL LIFE OVER, CHANGE, RESET#514=0)
N6 #3000= 35 (#35 TOOL LIFE OVER, CHANGE, RESET#515=0)
N10 M99
%

Here is the tool life macro.
%
O82722 (TOOL IN SPINDLE MACRO FOR TOOL LIFE)

(THIS SETS VARIABLE TO COUNT THE TOOL IN SPINDLE USAGE)

IF[#3026EQ30]GOTO2
IF[#3026EQ31]GOTO3
IF[#3026EQ32]GOTO4
IF[#3026EQ34]GOTO5
IF[#3026EQ35]GOTO6
GOTO10

N2#510=[#510+1]
GOTO10
N3#511=[#511+1]
GOTO10
N4#512=[#512+1]
GOTO10
N5#514=[#514+1]
GOTO10
N6#515=[#515+1]
GOTO10
(If tool in spindle is tool #30, then #510 would equal 1 on first usage, then count once for every part.)
(If tool #31 in spindle then #511 would equal 1 and count for every part and so on)
N10M99

%
 
I checked the parameters page/pages for this but I'm sure that I'm overlooking this. Any help would be greatly appreciated in directing me to where this parameter is at.
 
On the troublesome machine, in MDI, type #100 = 1, insert, reset, and hit cyclestart

what happens? Did it record a value in the macro vars page?
 








 
Back
Top