How to get Gcode in matlab ?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
i want to run my laser machine over a particular path for that i need gcode. so how it can be done in matlab ?
댓글 수: 0
채택된 답변
Walter Roberson
2018년 4월 27일
0 개 추천
댓글 수: 13
khushboo chhikara
2018년 4월 27일
I want for line not text ! Is there any code for line ?
Walter Roberson
2018년 4월 27일
All of the 'lent' entries in that file are indicating straight line cuts. All of the 'tourHoraire' and 'tourAntihoraire' are indicating arc cuts. All of the 'rapide' entries in that file indicate movement.
In summary: Emit a G0 to move to a position. Emit a G01 to draw straight. Emit a G02 to turn clockwise, and G03 to turn counter-clockwise.
You need to decide whether you want to cut your shapes into the sheet, or if you want to cut everything away except your shapes.
khushboo chhikara
2018년 4월 27일
i have a gcode for this line ... now how can use that gcode in matlab to move my machine attached with arduino.

Walter Roberson
2018년 4월 27일
How is your arduino attached to your MATLAB host? How is your CNC attached to your arduino? Do you have two serial ports on your arduino, one to talk to MATLAB and the other to talk to the CNC?
khushboo chhikara
2018년 4월 28일
Arduino is attached using the matlab ad-ons ...and my laser machine is connected to arduino.
Walter Roberson
2018년 4월 28일
Are you using:
- a very old PC with a DB25 parallel connector and parallel to serial adapter to connect to the arduino
- an old PC with a DB25 RS232 connector to connect to the arduino
- a less-old PC with a DB9 connector to connect to the arduino
- a PS/2 DIN-6 port with a PS/2 to DB9 adapter to connect to the arduino
- a USB port with a USB to serial adapter to connect to the arduino
- a USB port to a USB port on the arduino
- a USB port with a USB to TTL adapter connecting to a TTL port on the arduino
- a pair of zigbees connecting the PC to the arduino
- regular wifi on the PC connecting to a zigbee connected to the arduino
- ethernet connecting the PC to the arduino directly
- PC and arduino are both connected by ethernet by way of a hub or switch
- something else?
khushboo chhikara
2018년 4월 28일
a USB port to a Usb port in the arduino.
khushboo chhikara
2018년 4월 28일
Picture
Walter Roberson
2018년 4월 28일
I cannot tell which model of arduino you are using. You appear to have some kind of red DC Shield on top but I do not seem to find a match for it (the ones I can find do not say "DC Shield" in the same position.)
Based upon what I can make out from the picture, it looks to me as if you are not using USB to connect from the arduino to that white device: the connection appears to on some kind of DIN connector.
khushboo chhikara
2018년 4월 28일
that white wire is a USB connector. i am using arduino uno and above that a cnc shield is used.
khushboo chhikara
2018년 4월 29일
any help ?
Walter Roberson
2018년 4월 29일
편집: Walter Roberson
2018년 4월 29일
Walter Roberson
2018년 4월 29일
You could probably use serial() to open a serial port connection to the COM port that the arduino is on, and then send it the gcode strings. It looked to me as if that software would accept the strings and act on them.
추가 답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
