Hello Guest it is April 18, 2024, 11:56:50 PM

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 - Graham Waterworth

1641
was not thinking when I typed it in, Byte is a reserved word in VB, try it like this :-

Dim command As String
Dim oneByte As String
command="B000013E------"
For a=1 To Len(command)
  oneByte=Mid(command,a,1)
  putportbyte(Ox378,Asc(oneByte)) ' Ox378 is the address of your serial port
  For b=1 To 1000
  ' this is a delay loop, adjust to get your 9 ms delay
  Next
Next
End

Graham.

1642
Sorry Ian, its a reply to VMAX about his Denford ATC, I need to create a new thread, should not have hijacked this one.

Graham.

1643
Hi Terry,

something like this will do it :-

dim command as string
dim byte as string
command="B000013E------"
for a=1 to len(command)
  byte=mid(command,a,1)
  putportbyte(Ox378,asc(byte)) ' Ox378 is the address of your serial port
  for b=1 to 1000
  ' this is a delay loop, adjust to get your 9 ms delay
  next
next
end

Graham.

1644
G-Code, CAD, and CAM discussions / Re: HELP WITH A M98 SUBROUTINE
« on: March 21, 2008, 06:51:22 PM »
OK, if you had to centre, drill and tap 4 hole you could use a sub for the hole positions like this.

%
O0001 (MAIN PROGRAM)

G21 G40

N1 (CENTRE DRILL)
T1 M6
G54 G00 G90 G43 X0 Y0 Z25. H1 S1000 M3
G81 Z-2. R1. F100. M8
M98 P0002 L1
G80
G91 G28 Z0 M6
M1

N2 (DRILL 5.00 DIA)
T2 M6
G54 G00 G90 G43 X0 Y0 Z25. H2 S1000 M3
G81 Z-20. R1. F100. M8
M98 P0002 L1
G80
G91 G28 Z0
M1

N3 (TAP M6*1)
T3 M6
G54 G00 G90 G43 X0 Y0 Z25. H3 S100 M3
G84 Z-12. R3. F100. M8
M98 P0002 L1
G80
G91 G28 Z0 M6
M30

O0002(HOLES SUB)
X-25.
Y-25.
X0
M99
%


Graham.

1645
G-Code, CAD, and CAM discussions / Re: HELP WITH A M98 SUBROUTINE
« on: March 21, 2008, 03:20:20 PM »

%
O0001 (MAIN PROGRAM)
G00 G90 G43
etc..
M98 P0002 L1
M30

O0002 (SUB PROGRAM)
(SOME CODE)
M99
%

Graham.

1646
I think Scott (Poppabear) has one that works that way.

Graham.

1647
General Mach Discussion / Re: ? Cutter Wear or Comp.?
« on: March 18, 2008, 07:24:07 PM »
You have to start the G41 on the first feed move. Rapid moves vector so the start point is wrong.

You can reverse the direction by setting the X & Y scale to -1, beware that everything will be reversed.

You can put G51 in the program to reverse sections and then G50 to revert to normal.

Man you are making my grey matter work overtime.  ;D

Graham.

1648
General Mach Discussion / Re: Setting up mach3
« on: March 18, 2008, 11:17:08 AM »
You need to contact the supplier of the interface and get the pin outs for the M108, it may not work the same way as Mach3.

You may have to set the pins different and also 1 pin may be an enable signal.

Graham.

1649
General Mach Discussion / Re: Formula use in Mach 3 secret
« on: March 18, 2008, 05:38:53 AM »
 :)

Graham.

1650
General Mach Discussion / Re: Help with spindle speed command.
« on: March 18, 2008, 05:27:02 AM »
If you look at the settings page you will see the pulley number in use, it is the correct one?

Graham.