Buildbotics CNC Controller Firmware Changelog
=============================================
+## v0.4.13
+ - Beta support for OMRON MX2 VFD.
+
## v0.4.12
- Segments straddle arc in linearization.
- Control max-arc-error with GCode var.
{
"name": "bbctrl",
- "version": "0.4.12",
+ "version": "0.4.13",
"homepage": "http://buildbotics.com/",
"repository": "https://github.com/buildbotics/bbctrl-firmware",
"license": "GPL-3.0+",
static void _write_word(uint8_t *dst, uint16_t value, bool little_endian) {
- dst[!little_endian] = value;
- dst[little_endian] = value >> 8;
+ dst[!little_endian] = value;
+ dst[little_endian] = value >> 8;
}
SPINDLE_TYPE_YL600,
SPINDLE_TYPE_FR_D700,
SPINDLE_TYPE_SUNFAR_E300,
+ SPINDLE_TYPE_OMRON_MX2,
} spindle_type_t;
};
+const vfd_reg_t omron_mx2_regs[] PROGMEM = {
+ {REG_CONNECT_WRITE, 0x1201, 3}, // A001 Frequency reference modbus
+ {REG_CONNECT_WRITE, 0x1202, 3}, // A002 Run command modbus
+ {REG_MAX_FREQ_READ, 0x1204, 0}, // A004 Max frequency
+ {REG_FREQ_SET, 0x0001, 0}, // F001 Frequency
+ {REG_STOP_WRITE, 0x1e01, 0}, // Stop drive
+ {REG_FWD_WRITE, 0x1e01, 2}, // Forward
+ {REG_REV_WRITE, 0x1e01, 6}, // Reverse
+ {REG_FREQ_READ, 0x1001, 0}, // D001 Output freq
+ {REG_STATUS_READ, 0x0005, 0}, // Status A
+ {REG_DISABLED},
+};
+
+
static vfd_reg_t regs[VFDREG];
static vfd_reg_t custom_regs[VFDREG];
case SPINDLE_TYPE_YL600: _load(yl600_regs); break;
case SPINDLE_TYPE_FR_D700: _load(fr_d700_regs); break;
case SPINDLE_TYPE_SUNFAR_E300: _load(sunfar_e300_regs); break;
+ case SPINDLE_TYPE_OMRON_MX2: _load(omron_mx2_regs); break;
default: break;
}
.notes(v-if="tool_type == 'HUANYANG VFD'")
h2 Notes
- p Set the following using the VFD's frontpanel.
+ p Set the following using the VFD's front panel.
table.modbus-regs.fixed-regs
tr
th Address
.notes(v-if="tool_type.startsWith('NOWFOREVER VFD')")
h2 Notes
- p Set the following using the VFD's frontpanel.
+ p Set the following using the VFD's front panel.
table.modbus-regs.fixed-regs
tr
th Address
.notes(v-if="tool_type.startsWith('DELTA VFD015M21A')")
h2 Notes
- p Set the following using the VFD's frontpanel.
+ p Set the following using the VFD's front panel.
table.modbus-regs.fixed-regs
tr
th Address
.notes(v-if="tool_type.startsWith('YL600')")
h2 Notes
- p Set the following using the VFD's frontpanel.
+ p Set the following using the VFD's front panel.
table.modbus-regs.fixed-regs
tr
th Address
.notes(v-if="tool_type.startsWith('SUNFAR')")
h2 Notes
- p Set the following using the VFD's frontpanel.
+ p Set the following using the VFD's front panel.
table.modbus-regs.fixed-regs
tr
th Address
target="_blank") Sunfar E300 VFD manual
|
| and spindle type.
+
+ .notes(v-if="tool_type.startsWith('OMRON')")
+ h2 Notes
+ p Set the following using the VFD's front panel.
+ table.modbus-regs.fixed-regs
+ tr
+ th Address
+ th Value
+ th Meaning
+ th Description
+ tr
+ td.reg-addr C071
+ td.reg-value 5
+ td 9600 BAUD
+ td Must match #[tt baud] above
+ tr
+ td.reg-addr C072
+ td.reg-value 1
+ td Bus ID 1
+ td Must match #[tt bus-id] above
+ tr
+ td.reg-addr C074
+ td.reg-value 0
+ td No parity
+ td Must match #[tt parity] above
+ tr
+ td.reg-addr C075
+ td.reg-value 2
+ td 2 stop bits
+ td Serial stop bits
+ tr
+ td.reg-addr C076
+ td.reg-value 4
+ td Deceleration stop
+ td Communication error action
+ tr
+ td.reg-addr C077
+ td.reg-value 500
+ td 0.5 seconds
+ td Communication error timeout
+ tr
+ td.reg-addr C077
+ td.reg-value 1
+ td 1 milisecond
+ td Communication wait time
+ tr
+ td.reg-addr C096
+ td.reg-value 0
+ td Modbus-RTU
+ td Communication mode
+ tr
+ td.reg-addr P200
+ td.reg-value 0
+ td Standard
+ td Modbus mapping
+ tr
+ td.reg-addr P400
+ td.reg-value 0
+ td Big endian
+ td Communication byte order
+
+ p
+ | Other settings according to the
+ |
+ a(href="https://buildbotics.com/upload/vfd/omron_i570_mx2.pdf",
+ target="_blank") OMRON MX2 VFD manual
+ |
+ | and spindle type. The VFD must be rebooted after changing
+ | the above settings.
"values": ["Disabled", "PWM Spindle", "Huanyang VFD", "Custom Modbus VFD",
"AC-Tech VFD", "Nowforever VFD", "Delta VFD015M21A (Beta)",
"YL600, YL620, YL620-A VFD (Beta)", "FR-D700 (Beta)",
- "Sunfar E300 (Beta)"],
+ "Sunfar E300 (Beta)", "OMRON MX2 (Beta)"],
"default": "Disabled",
"code": "st"
},