This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprinter.cfg
174 lines (132 loc) · 2.92 KB
/
printer.cfg
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# This file is an example config file for cartesian style printers.
# One may copy and edit this file to configure a new cartesian
# printer.
# DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT
# FIRST. Incorrectly configured parameters may cause damage.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PD2
dir_pin: !PD3
enable_pin: !PD4
microsteps: 32
rotation_distance: 40
endstop_pin: ^!PD5
position_endstop: 0
position_max: 579
homing_speed: 120.0
[stepper_y]
step_pin: PD6
dir_pin: !PD7
enable_pin: !PB0
microsteps: 32
rotation_distance: 40
endstop_pin: ^!PB1
position_endstop: 0
position_max: 544
homing_speed: 120.0
[stepper_y1]
step_pin: PB2
dir_pin: !PB3
enable_pin: !PB4
microsteps: 32
rotation_distance: 40
endstop_pin: ^!PC0
[stepper_z]
step_pin: PC5
dir_pin: PC6
microsteps: 32
rotation_distance: 40
endstop_pin: PC7
position_endstop: 0
position_max: 80
[mcu]
#serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
serial: /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-port0
[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 25
max_z_accel: 30
[output_pin POMPKA]
pin: !PC1
[servo arm_open_close]
pin: PC2
minimum_pulse_width: 0.00178
maximum_pulse_width: 0.0025
[servo arm_up_down]
pin: PC3
minimum_pulse_width: 0.00065
maximum_pulse_width: 0.00245
[servo arm_rotate]
pin: PC4
minimum_pulse_width: 0.0004
maximum_pulse_width: 0.0024
#[extruder]
#step_pin: PC1
#sensor_type: EPCOS 100K B57560G104F
#sensor_pin: PC6
#min_temp: -100
#max_temp: 200
#control: pid
#pid_Kp: 1
#pid_Ki: 1
#pid_Kd: 1
[gcode_macro CALIBRATE]
variable_max_x: 579
variabile_max_y: 544
gcode:
G28 X Y F1200
G1 X{max_x} Y{max_y} F16000
[gcode_macro MAX]
gcode:
G1 X579 Y544 F16000
[gcode_macro MOVE_POUR]
gcode:
G1 X{params.X|int} Y{params.Y|int}
SET_PIN PIN=POMPKA VALUE=1
G4 P{params.TIME|float * 1000}
SET_PIN PIN=POMPKA VALUE=0
[gcode_macro POUR]
gcode:
SET_PIN PIN=POMPKA VALUE=1
G4 P{params.TIME|float * 1000}
SET_PIN PIN=POMPKA VALUE=0
[gcode_macro ARM_OPEN]
gcode:
SET_SERVO SERVO=arm_open_close ANGLE=180
[gcode_macro ARM_CLOSE]
gcode:
SET_SERVO SERVO=arm_open_close ANGLE=0
[gcode_macro ARM_UP]
gcode:
SET_SERVO SERVO=arm_up_down ANGLE=0
[gcode_macro ARM_MIDDLE]
gcode:
SET_SERVO SERVO=arm_up_down ANGLE=90
[gcode_macro ARM_LEVEL_2]
gcode:
SET_SERVO SERVO=arm_up_down ANGLE=48
[gcode_macro ARM_DOWN]
gcode:
SET_SERVO SERVO=arm_up_down ANGLE=180
[gcode_macro ARM_0]
gcode:
SET_SERVO SERVO=arm_rotate ANGLE=0
[gcode_macro ARM_45]
gcode:
SET_SERVO SERVO=arm_rotate ANGLE=45
[gcode_macro ARM_90]
gcode:
SET_SERVO SERVO=arm_rotate ANGLE=90
[gcode_macro ARM_135]
gcode:
SET_SERVO SERVO=arm_rotate ANGLE=135
[gcode_macro ARM_180]
gcode:
SET_SERVO SERVO=arm_rotate ANGLE=180
#ustawienia do moonraker
[pause_resume]
[display_status]
[virtual_sdcard]
path: ~/printer_data/gcodes