Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
This is what I figured, referencing something that is changing every second wont help!
The #500 are better, just got to work out which ones the Renishaw probe are not using. The N1and N2 were from earlier attempts.
Now have it working, with a few extra bits that should store the previous shifts count in another variable and reset the new shifts count.
%
O9007(COUNTER)
#105=#3012
#106=#3011
N100
IF[[#105GT060000]AND[#105LT180000]]THENGOTO3
IF[#105LT055959]GOTO4
IF[#105GT180000]GOTO4
GOTO300
N3
#100=#100+1(DAY COUNTER)
IF[#101EQ0.0]GOTO6
#103=#101
#101=0.0
N6
GOTO300
N4
#101=#101+1(NIGHT COUNTER)
IF[#100EQ0.0]GOTO7
#102=#100
#100=0.0
N7
N300
M30
%
I have also added this to the M30 call set in the M/c parameters, i.e M30 will call and run this protected sub and then end and rewind after it is read.
I'm trying to make a macro counter that will count parts using #100 between 06.00 in the morning and 18.00 in the evening and #101 for counting nightshift parts between 18.01pm and 05.59am.
think I have the dayshift sorted but getting hung up on the nightshift counter!!
O7999(COUNTER)
(#3012 SYSTEM CLOCK)
N100 IF[[#3012GT060000]AND[#3012LT180000]]THENGOTO3 IF[[#3012LT060000]AND[#3012GT180000]]THENGOTO4 N200 N1 IF[#3012LT055959]GOTO4 N2 IF[#3012LT180000]GOTO3 GOTO300 N3 #100=#100+1(DAY COUNTER) GOTO300 N4 #101=#101+1(NIGHT COUNTER) N300 M99
can anybody see where I'm going wrong or even point me in the right direction
TIA
http://www.netstoredirect.com/belkin-kvm-switches/284649-belkin-flip-usb-kvm-switch-0722868588482.html?gclid=CILfu9ay4sgCFQvhGwodpAsBQg
used these in past, only good if your using 1 monitor on 2nd pc.
reboot didn't help!! sorted it now!! it was a third party app called actual multiple monitors( gives you a second taskbar on dual monitors)
stopped and restarted, all fine.
The code is just two positions repeated in 8 different work offsets!
G0G90G54X39.162Y#1S4000M3
M11
B0.
M10
G17T5
G43Z50.H10M8
G98G81Z-15.05R2.0F200.
Y#2
G80
G0Z100.0
The code is just a repeat of this!
The variables are set in a slave program.
Had a search on forums, no joy in finding anything! I have to post a drilling op( 2 holes, 2 operations) and need the positions posted as variables due to main program being in data server, and the need to fine tune from the machine(plunging end mill into material to achieve slot length on y axis)
Is this possible?
Can you not just change to metric in the config? It should ask to scale your part! I've never had a problem doing this and feeds automatically change.
Or is this a post setup issue?
The best way I learnt the new tool paths was to go with what I knew(legacy)! As I am my own programmer/setter and operator(sometimes!)
I would get machine set, go back to the pc and play with the new ones while it was running, once I thought it looked good on screen and time permitting actually run the the new tool paths on part that had already been cut, without coolant! If it looked good run the next one with new paths!
Only problem was having te repost prog with much higher feedrates and shorter cycle times!
Did a full scan with MS last week, first time run a full scan on a 6 month old pc and it sort of killed the file open x style option!!!
If I open a file in X style I get slow load times and when I try to edit m/c deff I get no response for a few minutes! Tool paths are fine!All files are on the c drive.
Changed it to windows style and all is ok! Thinking of going back to avg free :
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.