Please note that additional settings needed for proper machine operations (those that are not directly related to Modbus communication) are not covered in this manual and may have to be adjusted in addition to the steps demonstrated below.
In this example, we will be showing the setup process for a Delta VDF-EL to myCNC. The Modbus communication will be using three wires - on the controller side, you will need to connect the RS485A, RS485B and GND contacts:
On the VFD side, you will need to connect SG+, SG- и GND, which can be found in the RG45 block. Counting from the right, pin #3 is GND, pin #4 is SG-, and pin #5 is SG+.
Connect GND to GND, RS485A to SG+, and RS485B to SG-.
Next, we need to alter some settings within the VFD. For the Delta EL, this will be:
Open up the Technology > Mill/Lathe > Spindle tab in myCNC Settings.
RS485 speedfield, select the 19200 value;
Load defaults for inverterfield, press the
After this, the correct register addresses should be displayed in the registers above.
After this, the Messages animation should begin to run, and the Modbus Diagnostics window should display confirmation messages (in red and blue) indicating that some sort of a connection ahs already been established. At this point, it is the matter of fine-tuning our configuration.
Press the “Save PLC” button in the bottom right corner and confirm the replacement of the existing procedures with the new altered ones.
#define SPINDLE_ON_CW_VALUE 12345and change the default 12345 value to 18;
#define SPINDLE_ON_CCW_VALUE 12345and change the default 12345 value to 34
#define SPINDLE_OFF_VALUE 12345and change the default 12345 value to 1;
#define SPINDLE_OFF_VALUE 12345and change the default 12345 value to 1.
After this is done, press the “Build All”, “SEND” and “Save ALL” buttons at the top right side of your screen, and confirm that the PLC procedures have been successfully saved.
Now, when the М03 from the main screen is pressed, the spindle will start rotating clockwise, and when the M04 button is pressed, the spindle will start rotating counter-clockwise. It should also respond to changing the rotation speed. If the observed rotation speed is not equal to the theoretical (expected) rotation, this can be adjusted by using the coefficient in the
Speed ratio (modbus) field in your Settings.
At this point, the setup should be complete.