config, fonts, gcode
This commit is contained in:
182
examples/fluidnc_config/config.yaml
Normal file
182
examples/fluidnc_config/config.yaml
Normal file
@@ -0,0 +1,182 @@
|
||||
board: PiBot V4.7B
|
||||
name: 3040L CNC
|
||||
meta: v1.0.0
|
||||
stepping:
|
||||
engine: I2S_STREAM
|
||||
idle_ms: 254
|
||||
pulse_us: 4
|
||||
dir_delay_us: 1
|
||||
disable_delay_us: 0
|
||||
|
||||
axes:
|
||||
shared_stepper_disable_pin: NO_PIN
|
||||
x:
|
||||
steps_per_mm: 1000.000
|
||||
max_rate_mm_per_min: 4000.000
|
||||
acceleration_mm_per_sec2: 400.000
|
||||
max_travel_mm: 230.000
|
||||
soft_limits: true
|
||||
homing:
|
||||
cycle: 2
|
||||
positive_direction: false
|
||||
mpos_mm: 0.000
|
||||
feed_mm_per_min: 100.000
|
||||
seek_mm_per_min: 1000.000
|
||||
settle_ms: 500
|
||||
seek_scaler: 1.100
|
||||
feed_scaler: 1.100
|
||||
|
||||
motor0:
|
||||
limit_neg_pin: gpio.33:low
|
||||
limit_pos_pin: NO_PIN
|
||||
limit_all_pin: NO_PIN
|
||||
hard_limits: false
|
||||
pulloff_mm: 1.000
|
||||
standard_stepper:
|
||||
step_pin: I2SO.2
|
||||
direction_pin: I2SO.1
|
||||
disable_pin: I2SO.0
|
||||
|
||||
y:
|
||||
steps_per_mm: 1000.000
|
||||
max_rate_mm_per_min: 4000.000
|
||||
acceleration_mm_per_sec2: 400.000
|
||||
max_travel_mm: 350.000
|
||||
soft_limits: true
|
||||
homing:
|
||||
cycle: 2
|
||||
positive_direction: false
|
||||
mpos_mm: 0.000
|
||||
feed_mm_per_min: 100.000
|
||||
seek_mm_per_min: 1000.000
|
||||
settle_ms: 500
|
||||
seek_scaler: 1.100
|
||||
feed_scaler: 1.100
|
||||
|
||||
motor0:
|
||||
limit_neg_pin: gpio.32:low
|
||||
limit_pos_pin: NO_PIN
|
||||
limit_all_pin: NO_PIN
|
||||
hard_limits: false
|
||||
pulloff_mm: 1.000
|
||||
standard_stepper:
|
||||
step_pin: I2SO.5
|
||||
direction_pin: I2SO.4
|
||||
disable_pin: I2SO.7
|
||||
|
||||
z:
|
||||
steps_per_mm: 1000.000
|
||||
max_rate_mm_per_min: 1500.000
|
||||
acceleration_mm_per_sec2: 50.000
|
||||
max_travel_mm: 110.000
|
||||
soft_limits: false
|
||||
homing:
|
||||
cycle: 1
|
||||
positive_direction: true
|
||||
mpos_mm: 0.000
|
||||
feed_mm_per_min: 100.000
|
||||
seek_mm_per_min: 800.000
|
||||
settle_ms: 500
|
||||
seek_scaler: 1.100
|
||||
feed_scaler: 1.100
|
||||
|
||||
motor0:
|
||||
limit_neg_pin: NO_PIN
|
||||
limit_pos_pin: gpio.34:low
|
||||
limit_all_pin: NO_PIN
|
||||
hard_limits: false
|
||||
pulloff_mm: 1.000
|
||||
standard_stepper:
|
||||
step_pin: I2SO.10
|
||||
direction_pin: I2SO.9:low
|
||||
disable_pin: I2SO.8
|
||||
|
||||
i2so:
|
||||
bck_pin: gpio.22
|
||||
data_pin: gpio.21
|
||||
ws_pin: gpio.17
|
||||
|
||||
spi:
|
||||
miso_pin: gpio.19
|
||||
mosi_pin: gpio.23
|
||||
sck_pin: gpio.18
|
||||
|
||||
sdcard:
|
||||
card_detect_pin: NO_PIN
|
||||
cs_pin: gpio.5
|
||||
|
||||
parking:
|
||||
enable: true
|
||||
axis: Z
|
||||
pullout_distance_mm: 5.000
|
||||
pullout_rate_mm_per_min: 250.000
|
||||
target_mpos_mm: -5.000
|
||||
rate_mm_per_min: 800.000
|
||||
|
||||
#control:
|
||||
# NOTE: safety_door_pin is repurposed as coolant flow monitor.
|
||||
# "Door opened" status = NO COOLANT FLOW detected.
|
||||
# safety_door_pin: gpio.39:high
|
||||
|
||||
probe:
|
||||
pin: gpio.36:low
|
||||
toolsetter_pin: NO_PIN
|
||||
check_mode_start: true
|
||||
hard_stop: false
|
||||
probe_hard_limit: true
|
||||
|
||||
start:
|
||||
must_home: false
|
||||
|
||||
# Begin OLED
|
||||
i2c0:
|
||||
sda_pin: gpio.27
|
||||
scl_pin: gpio.25
|
||||
|
||||
oled:
|
||||
i2c_num: 0
|
||||
i2c_address: 60
|
||||
width: 128
|
||||
height: 64
|
||||
radio_delay_ms: 1000
|
||||
|
||||
# Using MOSFETs
|
||||
coolant:
|
||||
flood_pin: gpio.12
|
||||
mist_pin: gpio.4
|
||||
delay_ms: 0
|
||||
|
||||
################################################################################################################################
|
||||
|
||||
# Begin Huanyang RS485
|
||||
# uart1:
|
||||
# txd_pin: gpio.15
|
||||
# rxd_pin: gpio.16
|
||||
# rts_pin: gpio.14
|
||||
# baud: 9600
|
||||
# mode: 8N1
|
||||
|
||||
# Huanyang:
|
||||
# uart_num: 1
|
||||
# modbus_id: 1
|
||||
# tool_num: 1
|
||||
# speed_map: 0=0% 0=25% 6000=25% 24000=100%
|
||||
# off_on_alarm: true
|
||||
|
||||
# Begin 10V
|
||||
10V:
|
||||
forward_pin: gpio.15
|
||||
reverse_pin: gpio.14
|
||||
pwm_hz: 5000
|
||||
output_pin: gpio.13
|
||||
enable_pin: NO_PIN
|
||||
direction_pin: NO_PIN
|
||||
disable_with_s0: false
|
||||
s0_with_disable: true
|
||||
spinup_ms: 10000
|
||||
spindown_ms: 10000
|
||||
tool_num: 0
|
||||
speed_map: 0=0% 0=25% 6000=25% 24000=100%
|
||||
off_on_alarm: false
|
||||
|
||||
# End of File
|
||||
39
examples/gcode/AccelTest.nc
Normal file
39
examples/gcode/AccelTest.nc
Normal file
@@ -0,0 +1,39 @@
|
||||
(X-Axis Accel Test - RELATIVE POSITIONING)
|
||||
(WARNING: Ensure you have 200mm of travel to the RIGHT of your starting point)
|
||||
|
||||
G21 (Set units to millimeters)
|
||||
G91 (Set relative positioning mode)
|
||||
|
||||
(Long moves: Test acceleration up to full max speed)
|
||||
G0 X200 (Move 200mm right)
|
||||
G0 X-200 (Move 200mm left)
|
||||
G0 X200
|
||||
G0 X-200
|
||||
|
||||
(Medium moves)
|
||||
G0 X100
|
||||
G0 X-100
|
||||
G0 X100
|
||||
G0 X-100
|
||||
|
||||
(Short, aggressive back-and-forth moves to stress rotational inertia)
|
||||
G0 X20
|
||||
G0 X-10
|
||||
G0 X20
|
||||
G0 X-20
|
||||
G0 X30
|
||||
G0 X-30
|
||||
G0 X40
|
||||
G0 X-30
|
||||
G0 X40
|
||||
G0 X-40
|
||||
G0 X50
|
||||
|
||||
(Return to Start Position)
|
||||
(The net travel of the short moves above is +70mm)
|
||||
(We must move -70mm to get exactly back to the start point)
|
||||
G0 X-70
|
||||
|
||||
G90 (Set back to absolute positioning for normal operation)
|
||||
(End of test)
|
||||
M30
|
||||
102
examples/gcode/FeedTest_X150.nc
Normal file
102
examples/gcode/FeedTest_X150.nc
Normal file
@@ -0,0 +1,102 @@
|
||||
; === Feed Rate Test — X axis, relative mode ===
|
||||
; Range: 1000–6000 mm/min | Step: 200 mm/min
|
||||
; Pass: 150mm | Return: 2000 mm/min | Pause: 2s
|
||||
; DRY RUN — Z is not moved. Ensure spindle is off.
|
||||
; Jog to a clear position with >155mm free on X before starting.
|
||||
; ================================================
|
||||
|
||||
G21 ; mm units
|
||||
G91 ; relative positioning
|
||||
|
||||
; --- Pass 12 of 26: F3200 mm/min ---
|
||||
G1 X150.0 F3200
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 13 of 26: F3400 mm/min ---
|
||||
G1 X150.0 F3400
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 14 of 26: F3600 mm/min ---
|
||||
G1 X150.0 F3600
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 15 of 26: F3800 mm/min ---
|
||||
G1 X150.0 F3800
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 16 of 26: F4000 mm/min ---
|
||||
G1 X150.0 F4000
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 17 of 26: F4200 mm/min ---
|
||||
G1 X150.0 F4200
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 18 of 26: F4400 mm/min ---
|
||||
G1 X150.0 F4400
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 19 of 26: F4600 mm/min ---
|
||||
G1 X150.0 F4600
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 20 of 26: F4800 mm/min ---
|
||||
G1 X150.0 F4800
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 21 of 26: F5000 mm/min ---
|
||||
G1 X150.0 F5000
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 22 of 26: F5200 mm/min ---
|
||||
G1 X150.0 F5200
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 23 of 26: F5400 mm/min ---
|
||||
G1 X150.0 F5400
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 24 of 26: F5600 mm/min ---
|
||||
G1 X150.0 F5600
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 25 of 26: F5800 mm/min ---
|
||||
G1 X150.0 F5800
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
; --- Pass 26 of 26: F6000 mm/min ---
|
||||
G1 X150.0 F6000
|
||||
G4 P2
|
||||
G1 X-150.0 F2000 ; return
|
||||
G4 P0.5 ; settle 0.5s
|
||||
|
||||
G90 ; restore absolute positioning
|
||||
M2 ; end program
|
||||
2
examples/gcode/Lavy.nc
Normal file
2
examples/gcode/Lavy.nc
Normal file
@@ -0,0 +1,2 @@
|
||||
G1 X22.8 Y86.8 F1500
|
||||
|
||||
2
examples/gcode/Pravy.nc
Normal file
2
examples/gcode/Pravy.nc
Normal file
@@ -0,0 +1,2 @@
|
||||
G1 X204.4 Y86.8 F1500
|
||||
|
||||
1
examples/gcode/Predny.nc
Normal file
1
examples/gcode/Predny.nc
Normal file
@@ -0,0 +1 @@
|
||||
G1 X111 Y0 F1500
|
||||
2
examples/gcode/Stred.nc
Normal file
2
examples/gcode/Stred.nc
Normal file
@@ -0,0 +1,2 @@
|
||||
G1 X111 Y86.8 F1500
|
||||
|
||||
2
examples/gcode/Zadny.nc
Normal file
2
examples/gcode/Zadny.nc
Normal file
@@ -0,0 +1,2 @@
|
||||
G1 X113.6 Y176.8 F1500
|
||||
|
||||
3
examples/gcode/one_revolution_macro.nc
Normal file
3
examples/gcode/one_revolution_macro.nc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 ; Set units to millimeters
|
||||
G91 ; Set relative positioning
|
||||
G1 X5 F100 ; Move X axis +5mm at feed rate 100
|
||||
Reference in New Issue
Block a user