Axis AXIS USB Instrukcja Obsługi Strona 35

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 68
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 34
HyTechWorks©2013 – V3.1 31
When PWM2 is not used for Mach3 watchdog status output, PWM2 s duty cycle
can be set by using a M code, i.e.M101. Create a new text file called m101.m1s
under Mach3/Macros/Mach3Mill directory. Fill the following content by a text
editor and save.
Declare Sub PWM2_SetDutyCycle Lib "HyCNC_4P"(ByVal duty As Double)
PWM2_SetDutyCycle(Param1())
PWM2_SetDutyCycle is a function declared in HyCNC_4P.DLL. It takes a double
input value between 0.0 1.0 that controls the PWM2s duty cycle. Such value is
provided by P parameter of M101 code (via Param1()). To test this M code, click
on page MDIof the Mach3s main interface. Type M101 P0.3on the MDI
input box and check 30% duty cycle output on PWM2. This M code can be used in
GCode file(*.TAP) as well.
Przeglądanie stron 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 67 68

Komentarze do niniejszej Instrukcji

Brak uwag