Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /homepages/23/d548214462/htdocs/clickandbuilds/Joomla/MyCMS/templates/rt_chapelco/features/color.php on line 11
myCNC - advanced CNC control, software - Modbus - Modbus

Frequently Asked Questions - Modbus

FAQs - Modbus

myCNC Ethernet controllers contain RS485 bus connector with RTU-modbus and ASCII-modbus implemented protocols.

Modbus can be configured through configuration tab "Technology"->"Spindle"

 

1) Check "RS 485/Modbus communication" to enable RS485/Modbus on myCNC Ethernet controller.
2) Setup "RS485" comminication speed according your inverter settings.
3) Setup "Inverter Address" and check the first checkbox.
address value 0...15 are reserved in myCNC or non-modbus devices, Modbus Inverter address value should be 16 or more;
For 1-spindle configuration the first checkbox only should be checked. Other checkboxes are for multi-spindle configurations.

 4) Modbus diagnostic mode.

If "Spindle" Tab dialog is open, myCNC software can ping over Modbus selected registers for testing pupose. If register selected, myCNC tries to read them 2 times per second.
myCNC shows register value if reply recieved.
If inverter replies with exception myCNC shows register address that generates exception.

On a picture below there are 2 registers choosen for ping: #2239, #8192

A- Register #2239 value is received and shown ("1")

B- Inverter replied with Exception regarding register #8192

 

 If "modbus diagnose" checkbox is checked, myCNC shows all traffic between myCNC controller and modbus device (Inverter).

 Blue lines are outgoing traffic from myCNC Etherent controller to Modbus unit. There are extra ">" symbol and current time added to each line. Red lines are modbus unit (Inverter) reply. On a pictures below examples of Modbus traffic.

1- No income traffic (Modbus unit is disconnected or configured not properly

2- Correct traffic between Modbus client (myCNC contrller) and Modbus server (Inverter)

 

 

myCNC Ethernet controllers contain RS485 bus connector with RTU-modbus and ASCII-modbus implemented protocols.

Modbus can be configured through configuration tab "Technology"->"Spindle"

 

1) Check "RS 485/Modbus communication" to enable RS485/Modbus on myCNC Ethernet controller.
2) Setup "RS485" comminication speed according your inverter settings.
3) Setup "Inverter Address" and check the first checkbox.
address value 0...15 are reserved in myCNC or non-modbus devices, Modbus Inverter address value should be 16 or more;
For 1-spindle configuration the first checkbox only should be checked. Other checkboxes are for multi-spindle configurations.

 4) For proper communication 2 write registers should be setup.

"WR/Operate" - Writing to this register defined values will turn ON rotation, direct rotation or Stop rotation.

"WR/Frequency" - Writing to this register will change inverter output frequency (spindle speed)

For number of inverter types (Delta-VFD, Mitsubishi/VD-D700, Fuling-DZB, Yaskawa V7 & V1000) you can load register addresses by pressign "Load defaults" button.

 

5) Defined values that "Spindle ON", "Spindle Reverse" and  "Spindle OFF" should be written on "PLC Configuration->Spindle" dialog settings. Option "Spindle inverter over Modbus" - "yes" should be choosen as well to activate sending SPindle commands over modbus.

 

6) Depends on Inverter model Inverter frequency unit can be rpm, 1 Hz, 0.1Hz, 0.01% or something else. MyCNC software sends spindle speed as "Spindle speed, rpm" multiplied by "speed  ratio (modbus)". This ratio should be choosen to get correct spindle speed setup for any inverter model.

For example, Inverter "Fuling DZB": speed settings unit is 0.01%, max inverter frequency 300Hz, 18000 rpm.

This means value 10 000 should e sent to get spindle frequency 18000rpm.

Speed ratio is 10000/18000=0.55556