资源简介
GRBL XY结构伺服版舵机控制,写字机的源码.不是常见的CoreXY结构的那种,亲测可以使用.这个版本资源很少.压缩包用ARDUINO1.89加载到库文件 ,然后编验证上传就可以了,我自己用光驱步进电机加舵机控制做了个写字机.
代码片段和文件信息
/*
coolant_control.c - coolant control methods
Part of Grbl
Copyright (c) 2012-2015 Sungeun K. Jeon
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl. If not see .
*/
#include “grbl.h“
void coolant_init()
{
COOLANT_FLOOD_DDR |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_DDR |= (1 << COOLANT_MIST_BIT);
#endif
coolant_stop();
}
void coolant_stop()
{
COOLANT_FLOOD_PORT &= ~(1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
COOLANT_MIST_PORT &= ~(1 << COOLANT_MIST_BIT);
#endif
}
void coolant_set_state(uint8_t mode)
{
if (mode == COOLANT_FLOOD_ENABLE) {
COOLANT_FLOOD_PORT |= (1 << COOLANT_FLOOD_BIT);
#ifdef ENABLE_M7
} else if (mode == COOLANT_MIST_ENABLE) {
COOLANT_MIST_PORT |= (1 << COOLANT_MIST_BIT);
#endif
} else {
coolant_stop();
}
}
void coolant_run(uint8_t mode)
{
if (sys.state == STATE_CHECK_MODE) { return; }
protocol_buffer_synchronize(); // Ensure coolant turns on when specified in program.
coolant_set_state(mode);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-08-12 19:09 grbl-servo-master\
文件 2587 2015-08-12 19:09 grbl-servo-master\README.md
文件 27964 2015-08-12 19:09 grbl-servo-master\config.h
文件 1566 2015-08-12 19:09 grbl-servo-master\coolant_control.c
文件 894 2015-08-12 19:09 grbl-servo-master\coolant_control.h
文件 1681 2015-08-12 19:09 grbl-servo-master\cpu_map.h
目录 0 2015-08-12 19:09 grbl-servo-master\cpu_map\
文件 5475 2015-08-12 19:09 grbl-servo-master\cpu_map\cpu_map_atmega2560.h
文件 6226 2015-08-12 19:09 grbl-servo-master\cpu_map\cpu_map_atmega328p.h
文件 3539 2015-08-12 19:09 grbl-servo-master\defaults.h
目录 0 2015-08-12 19:09 grbl-servo-master\defaults\
文件 2809 2015-08-12 19:09 grbl-servo-master\defaults\defaults_generic.h
文件 2848 2015-08-12 19:09 grbl-servo-master\defaults\defaults_oxcnc.h
文件 3259 2015-08-12 19:09 grbl-servo-master\defaults\defaults_shapeoko.h
文件 3218 2015-08-12 19:09 grbl-servo-master\defaults\defaults_shapeoko2.h
文件 3164 2015-08-12 19:09 grbl-servo-master\defaults\defaults_shapeoko3.h
文件 3191 2015-08-12 19:09 grbl-servo-master\defaults\defaults_sherline.h
文件 2892 2015-08-12 19:09 grbl-servo-master\defaults\defaults_simulator.h
文件 3230 2015-08-12 19:09 grbl-servo-master\defaults\defaults_x_carve_1000mm.h
文件 3230 2015-08-12 19:09 grbl-servo-master\defaults\defaults_x_carve_500mm.h
文件 3248 2015-08-12 19:09 grbl-servo-master\defaults\defaults_zen_toolworks_7x7.h
文件 5448 2015-08-12 19:09 grbl-servo-master\eeprom.c
文件 1059 2015-08-12 19:09 grbl-servo-master\eeprom.h
目录 0 2015-08-12 19:09 grbl-servo-master\examples\
目录 0 2015-08-12 19:09 grbl-servo-master\examples\grblUpload\
文件 1231 2015-08-12 19:09 grbl-servo-master\examples\grblUpload\grblUpload.ino
文件 1081 2015-08-12 19:09 grbl-servo-master\examples\grblUpload\license.txt
文件 59816 2015-08-12 19:09 grbl-servo-master\gcode.c
文件 8002 2015-08-12 19:09 grbl-servo-master\gcode.h
文件 1612 2015-08-12 19:09 grbl-servo-master\grbl.h
文件 14983 2015-08-12 19:09 grbl-servo-master\limits.c
............此处省略26个文件信息
相关资源
- FontMaker-master.zip
- fdfs_client-py-master
- zw_2048-master.zip
- perfmon-agent-master
- boss直聘小程序demoConnectToBoss-master.zi
- zed-examples-master.zip
- robomaster 开发板A型板原理图
- 基于ATMega16的freemodbus主站程序移植
- fastdfs-nginx-module-master
- faster_rcnn-master 直接运行即可,重新编
- reGeorg-master.zip
- XLSX-Workbook-Class-master.zip
- zw_MLX90620_Example-master.zip
- flashimg-master
- 最新沈阳公交车查询系统-BusMaster
- IIC控制器verilog源代码文件
- ios-native-popup-using-unity-master.zip
- wechat-api-master.zip
- Mastering_OpenCV_第六章车牌识别word版本
- MASTERCAM2017版本 西门子四轴后处理
- 新一代django脚手架,支持微信登录、
- 微信小程序开发的音乐播放器wx_mymu
- 电子-STM32硬件I2CMaster接口函数V1.01.z
- qtftp-master
- 2048-AI-master 的源码
- hadoop-common-2.7.3-bin-master包含hadoop.dll、
- hackbar2.1.3-master.rar
- IMU-orientation-master
- GRBL中文翻译代码中文注释
- winutils.exe和hadoop.dllhadoop-common-2.2.0-b
评论
共有 条评论