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 日
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 件)
この質問は閉じられています。
参考
2018 年 4 月 27 日
閉鎖済み:
2018 年 5 月 3 日Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
