Hello Guest it is April 26, 2024, 06:00:22 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ZASto

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 »
251
Mach Screens / Re: LIcznik
« on: October 03, 2019, 10:40:53 AM »

252
Mach Screens / Re: LIcznik
« on: October 02, 2019, 04:22:57 PM »
Movie is nice, but I could not taste the letters :D

253
Mach Screens / Re: Opening g-code
« on: October 01, 2019, 05:13:47 PM »
Graham, it works through macro, that was the point of my writing.
It does not display of variable in DRO.
Anyway, Sebastians problem is solved with macro.

254
Mach Screens / Re: LIcznik
« on: September 30, 2019, 06:39:01 PM »
You're welcome, Sebastian.

255
Mach Screens / Re: Opening g-code
« on: September 30, 2019, 06:38:12 PM »
You were right, I use 1200 for some other things, but...
even if I change the variable to, eg. 999 or 1000 (with corresponding changes in screenset), still no update of DRO.

It only works if I call a macro.

Code: [Select]
M1100.m1s:

counter = getuserdro(1100)
counter = counter + 1
setuserdro(1100, counter)

Anyway, I tried to help Sebastian since I do need counters :)

256
Mach Screens / Re: LIcznik
« on: September 30, 2019, 02:38:57 AM »
Ok, typing error :(
last line in macro should be setuserdro...

I realy don't like when people do blind copy/paste.

257
Mach Screens / Re: LIcznik
« on: September 29, 2019, 02:34:51 PM »
Thank you very much but I still don't count the number of completed items
Not incrementing DRO, user variable incrementing.
But, you can write a macro and add it to your macro folder and it works perfectly:

Code: [Select]
count = getuserdro(1200)
count = count + 1
detuserdro(1200, count)

Save it as M900.m1s

then add it to your GCode program:

Code: [Select]
T1M6
G17

G0X09.048Y08.090Z0
G0X0.000Z0.000
M900
M30
%

It increments DRO 1200 every time before rewinding program.

258
Mach Screens / Re: Opening g-code
« on: September 29, 2019, 02:19:47 PM »
Not incrementing DRO, user variable incrementing.

259
Mach Screens / Re: Opening g-code
« on: September 29, 2019, 07:29:11 AM »
Create a button a Label and a DRO on the screen of your choice.

Set the DRO to a user variable e.g. 1200

Set label to "Part Counter" and position close to DRO

Label the button "Reset Counter" and set it to run vb script

Enter VB code :-

setuserdro(1200,0)

Save screen.

Then on the end of every g-code file just before the M30 enter

#1200 = #1200 +1



Wel, Graham
The incrementing of the #1200 works, incrementing is not shown in DRO



260
Mach Screens / Re: LIcznik
« on: September 29, 2019, 03:41:13 AM »
But a g-code error pops up

Code: [Select]
T1M6
G17

G0X09.048Y08.090Z0
G0X0.000Z0.000
#1200=[#1200+1]
M30
%

This one does not throw error :)

When you have math operations, they have to be enclosed in square brackets. Notice the percent (%) sign at the end of the program. If your program does not have CRLF after M30, this is the way to be on the safe side, % is anyway ignored.

HTH

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 »