Tag Archives: Mach4

Connection of CSMIO/IP-A controller with CD1-A INFRANOR drive (simCNC, Mach4)

Connection diagram of CSMIO/IP-A controller with CD1-A INFRANOR drive with simCNC and Mach4 software

 

1. Connection diagram of CSMIO/IP-A controller with CD1-A INFRANOR drive with simCNC software

ikon pdf  Open the PDF file for larger drawing details

 

 

2. Connection diagram of CSMIO/IP-A controller with CD1-A INFRANOR drive with Mach4 software

ikon pdf    Open the PDF file for larger drawing details

 

 

 

[Source:] The diagram was created by CS-Lab’s Technical Support section for CSMIO/IP users.

7 January 2021

CSMIO/IP-S to simDrive Servo 400W, 750W (Mach3, Mach4, simCNC). Connection and settings.

Connection drawings of the CSMIO/IP-S controller, simDrives Servo 400W, 750W (v2) and simCNC, Mach3, Mach4 software

1. CSMIO/IP-S controller, simDrives Servo and simCNC software – connection and settings

ikon pdf  Open the PDF file for larger drawing details

 

2. CSMIO/IP-S controller, simDrives Servo and Mach3 software – connection and settings

  Open the PDF file for larger drawing details

 

 

3. CSMIO/IP-S controller, simDrives Servo and Mach4 software – connection and settings

ikon pdf  Open the PDF file for larger drawing details

 

[Source:] The diagram was created by CS-Lab’s Technical Support section for CSMIO/IP users.

6 June 2020

What causes network connection issues [simCNC, Mach4]?

In case of issues with the loss of network connection with a CSMIO/IP motion controller, follow the list below in the following order:

  • If you are using WiFi connection replace it with cable connection. The WiFi connection is not stable enough.
  • Disable power saving mode for your network card.
  • In your operating system settings, activate the power plan that guarantees the highest performance of a PC unit.
  • Check if the energy-saving management applications are running in the operating system, turn them off or set them so that they do not limit the performance of the PC unit
  • Disable or correctly set your anti-virus software not to block network connection.
  • Check if your network cable runs near the source of high interference, change the cable arrangement if necessary.
  • If necessary, replace the network cable with another one to test it.
  • Use a different 24V DC power supply unit (good quality) to test it.
  • If you are using a router or switch, opt-out of it as part of a test and use the direct connection (IP: 10.1.1.1 and Mask: 255.255.255.0)
  • Send the controller serial number to CS-LAB technical support to determine if your controller is up to date with the hardware.
  • As a last resort, change your computer to another computer as a part of a test.

All of the above are very important and directly affect the stability of the network connection. Most often, network connection problems are caused by laptop energy saving algorithms.

A useful tool to mention may be the network connection diagnostic window. This window contains all the necessary parameters to assess the quality of the network connection.

 

[Source:] The diagram was created by CS-Lab’s Technical Support section for CSMIO/IP users.

18 May 2020

Mach4 – CSMIO/IP analog inputs readout. RRO value control

The current plugin release provides only two analog inputs (two potentiometers) for FRO and SRO values control. If you want to control some other value in Mach4 using an analog input we will show you how to do this with RRO as an example. The easiest way to support the analog input is through a macro, and more specifically by a PLC script which is a part of Mach4 screen. The macro is executed at 50ms frequency what provides very fast reaction. If you do not know what is the PLC script you can read about it in the „3.2.3 PLC Script” chapter of the guide:
 https://www.machsupport.com/wp-content/uploads/2014/05/Mach4%20Scripting%20Manual.pdf

  1. On the main Mach4 screen press the options as follows:
  • „Operator” option
  • „Edit Screen” option

After that Mach4 goes into screen edit mode.

 

2. It the Mach4 screen editor window press as follows: 

  • the „wxRout” option („wxLathe” for a lathe)
  • the „Events” button (a sheet of paper with a lightning sign)
  • the „PLC Script” area (to highlight another button)
  • the ellipsis button (three dots)

After that, you will see the LUA scripts editor window where you can see the PLC script code. 

3. Scroll down the PLC script to the end and find the line marked below.

4. Place the cursor over the line and press „Enter” for a few times to make some space for the code. 

 

NOTE: According to the information contained in the marked line you can’t put your own code below it. 

 

5. Next place the below code in the prepared area, save the macro and quit the screen editor.

local Analog_In_Reg = mc.mcRegGetHandle(inst, "CSMIO-IP/Analog Input 2")                                  
local Analog_In_Val = mc.mcRegGetValue(Analog_In_Reg)
local maxval = scr.GetProperty('slideRRO', 'Max Value')
local minval = scr.GetProperty('slideRRO', 'Min Value')
local RRO = Analog_In_Val / (10 / tonumber(maxval))
if (RRO < tonumber(minval)) then
 RRO = tonumber(minval);
end
if (RRO > tonumber(maxval)) then
 RRO = tonumber(maxval);
end
scr.SetProperty('slideRRO', 'Value', tostring(RRO));

The above code reads voltage value of the analog input no. 2, changes it to percentage value and passes it to slideRRO. The code verifies if the RRO value doesn’t exceed the minimum and maximum RRO slide value. 

If you want to read the voltage value of any other analog inputs use the two first lines from the above code:

local Analog_In_0_Reg = mc.mcRegGetHandle(inst, "CSMIO-IP/Analog Input 0")
local Analog_In_0_Val = mc.mcRegGetValue(Analog_In_0_Reg)
-- Analog in 0
local Analog_In_1_Reg = mc.mcRegGetHandle(inst, "CSMIO-IP/Analog Input 1")                     
local Analog_In_1_Val = mc.mcRegGetValue(Analog_In_1_Reg)
-- Analog in 1
local Analog_In_2_Reg = mc.mcRegGetHandle(inst, "CSMIO-IP/Analog Input 2")                       
local Analog_In_2_Val = mc.mcRegGetValue(Analog_In_2_Reg)
-- Analog in 2
local Analog_In_3_Reg = mc.mcRegGetHandle(inst, "CSMIO-IP/Analog Input 3")                        
local Analog_In_3_Val = mc.mcRegGetValue(Analog_In_3_Reg)
-- Analog in 3

After executing the above code the variable Analog_In_0_Val, Analog_In_1_Val, Analog_In_2_Val and Analog_In_3_Val will keep the analog inputs voltage values shown in volts.

 

[Source:] The articles were created by CS-Lab’s Technical Support section for CSMIO/IP users. 

30 May 2019

CSMIO/IP-M vs various VFDs by Delta, LG, Wabeco, Kinco and more

1. Connection drawing of CSMIO/IP-M controller and VFD Delta EL (Mach3)

  Open the PDF file for larger drawing details

2. Connection drawing of CSMIO/IP-M controller and LG SV-iC5 VFD 

  Open the PDF file for larger drawing details

 

3. Connection drawing of CSMIO/IP-M controller and Wabeco VFD Varicon

 Open the PDF file for larger drawing details

4. Connection drawing of CSMIO/IP-M vs Kinco FV100 VFD

  Open the PDF file  for larger drawing deteils

 

5. Connection drawing of CSMIO/IP-M vs DBZ200 M&J VFD inverter (incl. Mach3 settings)

   Open the PDF file for larger drawing details

6. Connection drawing of CSMIO/IP-M vs DBZ200-300 VFD inverter (and Mach4)

  Open the PDF file for larger drawing details

 

[Source:] The drawings were created by CS-Lab’s Technical Support section for CSMIO/IP users. 

11 March 2019