Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- ITOP40
- Callaway #Mavrik #Epic Flash
- CM-EF-NEX
- Dell #Latitude #BIOS
- egpu #aorus gaming box #gtx1070 #tb3
- Xeon #E5-2680
- macro lens #EF #FD
- TensorFlow #Python #pip
- Arduino #Wall Plotter
- x99 itx/ac
- Linux #VirtualBox
- 매크로렌즈 #리버스링
- VNC #Firewall #CenOS7 #VMware
- Laptop #CPUID
- XTU #Virtual Machine System
- 다이슨 #배터리
- razer #deathadder #viper #g102
- Arduino #PlatformIO #macOS
- cycloidal #rv reducer
- Tarantula #3D 프린터
- Oh My Zsh #macOS
- VirtualBox #VMware
- k6 #피코프레소
- 피코프레소 #ITOP40
- Octave #homebrew #macOS
- centos7 #yum update #/boot
- Java #MacBook #macOS
- ESP32 #Arduino
- VMware #Shared Folder
- fat32 #rufus
Archives
- Today
- Total
얕고 넓게
[3DP] XY Plotter 진짜 최종본? 본문
2025.11.24
일단 스트로크를 길게 모델링

Test 글자가 잘 써지는 듯 했지만 문제가 있다.
처음 위치에서 Test 출력하는 위치까지 이동할 때 팬이 내려온다.
서보 딜레이가 커서 그런가 싶어서 옵션 수정
서보 명령 후 딜레이 추가를 위해 G4 P500을 넣었다.
그런데 줄바꿈이 안되어서 plug-in python 코드 수정(AI 도움)
layser.py
def generate_custom_interface(laser_off_command, laser_power_command):
"""Wrapper function for generating a Gcode interface with a custom laser power command"""
class CustomInterface(interfaces.Gcode):
"""A Gcode interface with a custom laser power command"""
def __init__(self):
super().__init__()
##def laser_off(self):
## return f"{laser_off_command}"
##def set_laser_power(self, _):
## return f"{laser_power_command}"
def laser_off(self):
return laser_off_command.replace("\\n", "\n")
def set_laser_power(self, _):
return laser_power_command.replace("\\n", "\n")
return CustomInterface

서보 동작후 움직일 때까지 잘 멈춘다
그런데...
처음 시작후 팬이 올라갔다가 출력 위치까지 가기 시작하면 팬이 내려간다.
글자 중간에도 올라가고 내려 가는것 이 꼬인다.
보드를 바꿔 보려고도 했는데 BTT 보드에서 컴파일 에러가 계속 발생.
SD 메뉴가 안보여서 SDSUPORT를 켰는데 계속 에러다.
다시 MKS로 도전.
Copliot, ChatGPT를 번갈아 가며 질문.
결론 G는 버퍼링, M280을 실시간
M280(팬 올림) -> G1 (이동) -> M280(팬 내림) 순서로 가야 되는데
G1(이동) 하자마지 바로 M280(팬 내림) 실행됨
버퍼링하거나 M280전에 G1(이동)이 완료된 것을 확하는 것이 필요
Gcode로 는 안되고
코드 수정
M280.cpp를 수정
void GcodeSuite::M280() {
if (!parser.seenval('P')) return;
TERN_(POLARGRAPH, planner.synchronize());
planner.synchronize();
const int servo_index = parser.value_int();
극좌표계를 쓰는 프린터는 planner.synchronize() 를 사용한다.
<- 일종을 blocking
바꾸고 나니 정상 출력!!!
G코드에 딜레이를 좀 줄여도 되겠다.
'IT > 3D Printer, CNC' 카테고리의 다른 글
| [3DP] Anycubic i3 Mega 정리 (0) | 2025.12.04 |
|---|---|
| [3DP] Anycubic i3 Mega Display (0) | 2025.12.04 |
| [3DP] XY Plotter 최종본 (아마도) (0) | 2025.11.23 |
| [3DP] Marlin Servo 제어 @MKS Base (0) | 2025.11.21 |
| [3DP] Marlin + Reprap LCD @MKS Base (0) | 2025.11.20 |