Confirmed OMRON MX2 VFD settings
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Mon, 27 Jan 2020 04:19:27 +0000 (20:19 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Mon, 27 Jan 2020 04:19:27 +0000 (20:19 -0800)
CHANGELOG.md
src/avr/src/vfd_spindle.c
src/pug/templates/tool-view.pug
src/resources/config-template.json

index 2b18574bd161005b3fa93f744a493aeb485e4dfb..ac9005d52aeb4f7e34a95578fc2b475693a1baf5 100644 (file)
@@ -2,7 +2,7 @@ Buildbotics CNC Controller Firmware Changelog
 =============================================
 
 ## v0.4.13
- - Beta support for OMRON MX2 VFD.
+ - Support for OMRON MX2 VFD.
 
 ## v0.4.12
  - Segments straddle arc in linearization.
index d7234bbcb3fd602c60b92d68faf6918832d879ce..21d46f6174648fc0f07b511b3996483839d25094 100644 (file)
@@ -155,15 +155,15 @@ const vfd_reg_t sunfar_e300_regs[] PROGMEM = {
 
 
 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_CONNECT_WRITE,  0x1200,     3}, // A001 Frequency reference modbus
+  {REG_CONNECT_WRITE,  0x1201,     3}, // A002 Run command modbus
+  {REG_MAX_FREQ_FIXED,      0, 40000}, // TODO Want to use A004 max frequency
+  {REG_FREQ_SET,       0x0001,     0}, // F001 Frequency
+  {REG_STOP_WRITE,     0x1f00,     0}, // Stop drive
+  {REG_FWD_WRITE,      0x1f00,     2}, // Forward
+  {REG_REV_WRITE,      0x1f00,     6}, // Reverse
+  {REG_FREQ_READ,      0x1001,     0}, // D001 Output freq
+  {REG_STATUS_READ,    0x0004,     0}, // Status A
   {REG_DISABLED},
 };
 
index a3ef3a11edd7dbb8eec4deade2f343fe734ecbfe..4f331a4b53abb85f103a1299513731cb47b2fa75 100644 (file)
@@ -374,7 +374,7 @@ script#tool-view-template(type="text/x-template")
             td 0.5 seconds
             td Communication error timeout
           tr
-            td.reg-addr C077
+            td.reg-addr C078
             td.reg-value 1
             td 1 milisecond
             td Communication wait time
index 9e4d808b3131b388c9daa7aa987bcd378ca13f04..bc2ea45a9f60ab60abbdcbbd4aaaef6c3773c96a 100644 (file)
       "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)", "OMRON MX2 (Beta)"],
+                 "Sunfar E300 (Beta)", "OMRON MX2"],
       "default": "Disabled",
       "code": "st"
     },