Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; #######################################################################
- ; ###### RRF3 Configuration file for RailcoreII ZL Series Printers ######
- ; #######################################################################
- ;
- ;
- ; Duet G-code: https://duet3d.dozuki.com/Wiki/Gcode
- ; RRF3 G-code meta commands: https://duet3d.dozuki.com/Wiki/GCode_Meta_Commands
- ; RRF3 Object model: https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware
- ; RRF3 Pin Names: https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet
- ; #### Debugging
- M111 S0 ; Debug off
- M929 P"eventlog.txt" S3 ; Start logging to file eventlog.txt
- M550 P"RailCore" ; Machine name and Netbios name (can be anything you like)
- ;M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xEE ; MAC Address
- ;M551 Pmyrap ; Machine password (used for FTP)
- ;M586 P1 S1
- ; #### Networking and Communications
- M552 S1 ; Enable Network
- M586 P0 S1 ; enable HTTP
- M586 P1 S0 ; disable FTP
- M586 P2 S0 ; disable Telnet
- ; #### General preferences
- ;M555 P2 ; Set output to look like Marlin (WAS THIS)
- M555 P1 ;Set output to look like RepRap_Firmware
- M575 P1 B57600 S1 ; Comms parameters for PanelDue
- G21 ; Work in millimetres
- G90 ; Send absolute coordinates...
- M83 ; ...but relative extruder moves
- ; #### Axis and motor configuration
- M669 K1 ; CoreXY mode
- M350 X16 Y16 Z16 E16 I1 ; set 16x microstepping for axes& extruder, with interpolation
- M92 X200 Y200 Z1600 ; steps/mm
- M92 E836
- ; #### Drives
- M584 X0 Y1 Z5:6:7 E3:4:8:9 ; Map Z to drivers 5, 6, 7. Define unused drivers 3,4,8 and 9 as extruders
- M569 P0 S1 ; Drive 0 goes forwards (change to S0 to reverse it) X stepper (Rear)
- M569 P1 S0 ; Drive 1 goes backwards Y Stepper (Front)
- M569 P2 S1 ; Drive 2 goes forwards Unused
- M569 P3 S1 ; Drive 3 goes forwards Extruder
- M569 P4 S1 ; Drive 4 goes forwards Extruder (unused)
- M569 P5 S1 ; Drive 5 goes backwards Front Left Z
- M569 P6 S1 ; Drive 6 goes backwards Rear Left Z
- M569 P7 S1 ; Drive 7 goes backwards Right Z
- ; #### Leadscrew locations
- M671 X-10:-10:333 Y22.5:277.5:150 S7.5 ;Front left, Rear Left, Right S7.5 is the max correction - measure your own offsets, to the bolt for the yoke of each leadscrew
- ; #### Endstop Configuration - microswitches
- M574 X1 S1 P"xstop" ; configure active-low endstop for low end on X via pin xstop
- M574 Y1 S1 P"ystop" ; configure active-low endstop for low end on Y via pin ystop
- ; #### Current, speeds and Z/E step settings
- ; ##########################################
- ; Conservative speeds for commissioning
- ;M906 X1150 Y1150 Z600 E560 I60 ; Motor currents (mA) - WARNING: Conservative - May trigger stallguard (and prematurely during homing) if sensorless.
- ;M201 X1000 Y1000 Z30 E500 ; Accelerations (mm/s^2) - WARNING: Conservative
- ;M203 X3000 Y3000 Z50 E1800 ; Maximum speeds (mm/min) - WARNING: Conservative
- ;M566 X700 Y700 Z30 E500 ; Maximum jerk speeds mm/minute - WARNING: Conservative
- ; Fully commissioned speeds.
- M906 X1400 Y1400 Z1000 E560 I25 ; Set motor currents (mA) and idle at 25%
- ;M201 X2500 Y2500 Z100 E1500 ; Accelerations (mm/s^2)
- M201 X1750 Y1750 Z250 E1500 ; Set accelerations (mm/s^2)
- M203 X18000 Y18000 Z500 E3600 ; Maximum speeds (mm/min)
- ;M566 X500 Y500 Z100 E1500 ; Maximum jerk speeds mm/minute
- M566 X600 Y600 Z200 E3600 ; Maximum jerk speeds mm/minute
- M204 T3000 ; Set travel acceleration
- ; #### Set axis minima:maxima switch positions
- ; Adjust to suit your machine and to make X=0 and Y=0 the edges of the bed
- M208 X0 Y0 Z-0.5 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)
- M208 X300 Y300 Z320 ; set axis maxima and high homing switch positions (adjust to suit your machine)
- ; #### Tool definitions
- ; #####################
- ; Pressure Advance
- M572 D0 S0.01 ; Set pressure advance to offset elasticity
- ;Dynamic Acceleration Adjustment and Non-linear
- M592 D0 A0.015 B0.0012 L0.2
- M593 F21 P4
- ; #### Tool E0 / Heater 1 - E3D Gold
- M563 P0 S"E3Dv6 Gold" D0 H1 F0 ; Define tool 0
- ;G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
- ;M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8 A"Hotend"; define E0 temperature sensor
- M950 H1 C"e0heat" T1
- M308 S1 P"spi.cs1" Y"rtd-max31865" A"Hotend"; create sensor number 1 as a PT100 sensor in the first position on the Duet 2 daughter board connector ; create nozzle heater output on e0heat and map it to sensor 1
- ; #PID
- M307 H1 A584.8 C269.3 D3.3 S1.00 V23.9 B0; PID HOT End
- ; #MAX Temp
- M570 H1 S360 ; Hot end may be a little slow to heat up so allow it 180 seconds
- ;M143 S400
- M143 H1 S280
- ;## E3D Test Core
- ; #Fan Hot End
- M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
- M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
- ; # Layer Fan
- M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
- M106 P0 S0 H-1
- ; Filament Sensor for E0
- M591 D0 P1 C"e0_stop" S1; Filament Sensor (Extruder0)
- ; BLTouch -
- ; #####################
- ;M558 P9 C"^zprobe.in" H5 F50 T8000 A5 S0.2 ; set Z probe type to bltouch and the dive height + speeds
- ;M950 S0 C"duex.pwm1" ; _RRF3_ Define BLTouch Servo (S0) on duet pwm1
- M558 P9 C"^zprobe.in" R1 F50 ; _RRF3_ BLTouch connected to Z probe IN pin
- M950 S0 C"duex.pwm1" ; _RRF3_ Define BLTouch Servo (S0) on duet pwm1
- M558 H5 A5 T12000 S0.02 ; M558 settings for all probes
- ;G31 X2 Y42 Z2.48 P25 ; E3D V6 Gold was 2.5 vanadium nozzle was 2.6
- G31 X2 Y42 Z2.681 P25 ; Mosq
- ;G31 X2 Y42 Z2.927 P25 ; Mosq
- ;G31 X2 Y42 Z2.40 P25 ; E3D Heater Core Nozzle-X
- ; ## Old Offsets for Reference only
- ;G31 X2 Y42 Z.5800 P25 ; Mosquito
- ;M557 X45:282 Y46:254 P2:2 ; Set Default Mesh - NOTE: take probe offset into account - corners only
- ;M557 X10:295 Y10:295 S57:57 ; elmoret's mesh
- ;M557 X45:282 Y46:254 P2:2 ; JohnOCFII magnet-avoiding mesh
- ;G31 X2 Y42 Z2.5 P25 ; E3D V6 Gold was 2.5 Nozzle X
- ; ##### Mesh
- M557 X115:240 Y94:209 S125:115 ; 4pt Center square furthest away from magnets
- ; #### Bed - Heater 0
- M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 R4700 H0 L0 A"Bed" ; configure sensor 0 as thermistor on pin bedtemp
- M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
- M307 H0 A371.3 C793.9 D14.1 S1.00 V24.0 B0 ; Temp 60
- M140 H0 ; map heated bed to heater 0
- M143 H0 S120
- ; #### Electronics Cabinet
- M950 H2 C"mcu-temp" T2
- M308 S2 Y"mcu-temp" A"mcu-temp" ; Set MCU on Sensor 10
- ; # Elctronics Fan
- M950 F2 C"fan2" Q500 ; create fan 2 on pin fan1 and set its frequency
- M106 P2 S2 H2 T40:55 H100:101 L0.40 ; electronics cooling fan
- ; #### Bed - Kenovo Sensor
- M308 S3 P"e4temp" Y"thermistor" T100000 B3950 R4700 H0 L0 A"Kenovo"; configure sensor Kenovo
- ;M950 S3 Y"e4temp" A"Kenovo"
- ; #### Compensation
- ;M556 S80 X0.8 Y0.3 Z0.72 ; Axis compensation (measured with Orthangonal Axis Compensation piece)
- ;M579 X1.0027 Y1.0027 Z1.0011 ; Scale Cartesian axes
- ;M572 D0 S0.05 ; Default Pressure Advance compensation
- ; #### FINISH STARTUP.
- ; Purposely engage motors to prevent bed from moving after power on.
- ;G91
- ;G1 Z-0.001 S2
- ;G90
- ; ##Ensure all temperatures are off and cleared.
- M140 S0 R0 ; clear temperatures from DWC
- M140 S-273.1 R0 ; Standby and initial Temp for bed as "off" (-273 = "off")
- G10 P0 S-273.1 R-273.1 ; Set tool 0 operating and standby temperatures(-273 = "off")
- ; Automatic power saving
- M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
- T0 ; select first tool
- M501
- M98 P"/macros/01.) LED ON 100%" ; Turn on LED lights
Advertisement
Add Comment
Please, Sign In to add comment