CSMIO-LPT v1 User Guide
C S - L a b s. c. P a g e 2 Contents General... 4 Safety... 5 Installation of the equipment... 6 Description of CSMIO connectors... 6 (1) LPT port - PC connection... 7 (2) COM port (RS232) - PC connection... 8 (3) Mounting hole with earth connector... 8 (4) Potentiometer connector - adjustment of feeding speed, spindle rpm correction and "start" button input... 9 (5) Spindle control output - clockwise and counter-clockwise revolutions, 0-10V outlet for infinitely variable control... 10 (6) Connection of emergency stop, signal from tool length adjustment sensor and two general purpose inputs... 11 (7) Limit switch connector (LIMIT+)... 12 (8) Limit switch connector (LIMIT-)... 13 (9) Home switch connector (HOME)... 14 (10, 11, 12, 13) Axis drive control signal connectors, axes X, Y, Z, A... 15 (14) 24DVC power connector... 16 (15) Power supply connection via our proprietary dedicated power unit... 17 (16) Additional analogue and digital IN/OUT... 18 (17) Additional emergency stop and RS485 (for remote panel and/or additional in/out)... 19 Integration with Mach3 software... 20 About the plug-in... 20 Step by step installation... 20 Installation of Mach3 software... 21 Installation of files for operation with CSMIO... 21 Microsoft.NET Framework... 21 First use... 21 Assignment of inputs/outputs... 24 LPT PORT 1... 25 MODBUS - PORT 4... 26 Configuration of spindle controls... 28 Using analogue inputs to adjust the speed of feeding and spindle rpm... 29 Using additional analogue inputs/outputs... 29
C S - L a b s. c. P a g e 3 Setting default output states... 30 Setting line polarization... 30 Diagnostics window... 31 Summary... 31
C S - L a b s. c. P a g e 4 General Device CSMIO-LPT v1 is designated for construction of economic CNC machinery (millers, lathes, plasma contour saws, etc.) control system, based on common Mach3 software by ArtSoft company. Demo version of the software can be downloaded from http://www.machsupport.com. The licensed version is available for purchase directly from our company http://www.cs-lab.eu. The basic weakness of available electronic modules working with Mach is limited availability of in/out signals due to small number of signals at LPT port; in addition many available devices are not suited to industrial standards. Obviously it might be stated that using of LPT port itself for industrial purposes is something unacceptable. It is however not so, since not every single application or CNC machine tools requires systems worth thousands of Euros. To minimize costs we developed CSMIO - the product which eliminates the weakness of LPT port - too small number of signals available - by way of using, in addition, also a COM port and Modbus industrial protocol. We have not decided to use extra parallel port, since it is often very difficult to add another LPT port, since such a port should be "seen" by computer in ISA space. Unfortunately the PCI variety does not often work with Mach. In addition CSMIO is fitted with in/out in 24V standard which allows trouble-free connection of various peripherals, such as induction sensors, proximity sensors, reflection sensors, etc. CSMIO is also fitted with analogue in/out, operating within the industrial range of 0-10V. A plug-in developed by our company connects analogue in/out to Mach registers, thus allowing development of scripts using in/out (we offer necessary scripts, serving many types of devices). All in/out signals are very well protected from overvoltage, interference, etc. Also, signals from LPT port are passed through specially selected filters so as to eliminate the possibility of losing steps and in positioning deviations. Since overvoltage protection is very effective and optical isolation is used in virtually all motor drives, even budget ones, CSMIO in standard execution is not fitted with optical isolation. Nevertheless, customers wishing to maximize the protection of their computers can order a special module CSMIO-OPTO, which isolates optically LPT and COM ports. Using of the module is very convenient since we fitted it with a so-called "DC-DC converter", thanks to which CSMIO-OPTO does not need two power sources. For further information on out product visit our website http://www.cs-lab.eu. Fig. 1 - CSMIO operation block diagram
C S - L a b s. c. P a g e 5 Safety Despite CSMIO being powered with safe voltage 24V DC, remember to observe basic safety principles, in particular when connecting the drives of motors, since there is often high voltage present at motor terminals (especially in servo-motors). It is critical to connect earthing correctly. All interference and overvoltage is directed to earthing, so if the earthing is not connected the device might not operate correctly. There are two earthing connections in CSMIO: by power supply connector, marked with upper left board mounting hole. Connection does not to be simultaneous at both indicated points, so when CSMIO board is mounted using metal sleeves and bolts on earthed mounting board, the connector by power supply is not necessary. Bear in mind that all works on device are carried out with power supply off, and all connections are to be performed with due care This shall allow to prevent any damages to the equipment and to obtain efficiently and reliably operating CNC machine tool.
C S - L a b s. c. P a g e 6 Installation of the equipment Description of CSMIO connectors 3 4 5 6 7 8 9 2 10 11 1 12 13 14 17 16 15 Fig. 1 Locations of connectors 1. LPT port - PC connection 2. COM port (RS232) - PC connection... 3. Mounting hole with ground connector... 4. Potentiometer connector - adjustment of feeding speed, spindle rpm correction and "start" button input 5. Spindle control outputs, clockwise and counter-clockwise revolutions and 0-10V outlet for rpm control 6. Connector for emergency stop, signal from tool length adjustment sensor, and 2 general purpose inputs 7. Connector for limit switches (LIMIT+) for axes X, Y, Z, A 8. Connector for limit switches (LIMIT-) for axes X, Y, Z, A 9. Connector for home switches (HOME) for axes X, Y, Z, A 10. Connector for X axis drive control signals 11. Connector for Y axis drive control signals 12. Connector for Z axis drive control signals 13. Connector for A axis drive control signals 14. 24VDC power connector 15. Power supply connection via our proprietary dedicated power unit 16. Additional analogue and digital IN/OUT 17. Additional emergency stop and RS485 (for remote panel and/or additional in/out)
C S - L a b s. c. P a g e 7 (1) LPT port - PC connection Fig. 3 - view from CSMIO connector Assignment of pins: 1. Reserved for future use, presently not used 2. X_DIR (X axis drive direction control) 3. X_STEP (X axis drive step signal) 4. Y_DIR 5. Y_STEP 6. Z_DIR 7. Z_STEP 8. A_DIR 9. A_STEP 10. X_HOME (signal of X axis home switch) 11. Y_HOME 12. Z_HOME 13. A_HOME 14. Out_EXT2 - general purpose outlet (connector 16, Fig. 2) 15. TC - signal from tool length probe 16. Out_EXT3 - general purpose outlet (connector 16, Fig. 2) 17. Out_EXT4 - general purpose outlet (connector 16, Fig.2) 18. GND (ground) 19. GND 20. GND 21. GND 22. GND 23. GND 24. GND 25. GND When purchasing the connecting cable make sure it has complete 25 cores since some printer cables have less. It is also practically required that such cable is shielded. It is better not to economize -poor quality cable can cause problems and waste of time
C S - L a b s. c. P a g e 8 (2) COM port (RS232) - PC connection Fig. 4 - View of CSMIO connector Assignment of pins: 1. Not used 2. TxD (CSMIO transmission line, to be connected to RxD in computer) 3. RxD (CSMIO reception line, to be connected to TxD in computer) 4. Not used 5. GND (ground) 6. Not used 7. Not used 8. Not used 9. Not used Requirements concerning COM connecting cable are not as restrictive as in the case of LPT, because MODBUS transmission protocol has a mechanism for checking transmission errors; also the protocol used for upgrading of CSMIO firmware is checking the correctness of data transmission. Nevertheless a shielded cable won't hurt, remember also that that the cable is to be of so-called "patch" type (with lines RxD and TxD transposed). (3) Mounting hole with earth connector When earth connection is executed like that, bear in mind that metallic spacing sleeve under the board is not too big - this could lead to connecting the earthing with system ground, which is not recommended.
C S - L a b s. c. P a g e 9 (4) Potentiometer connector - adjustment of feeding speed, spindle rpm correction and "start" button input 5 4 3 2 1 Fig. 5 - View of the plug Assignment of pins: 1. GND (ground) 2. +3.3 V (power supply to potentiometers) 3. START button input 4. CNC SPEED (feeding speed adjustment) 5. SPINDLE RPM (spindle rpm correction adjustment input) Connecting feeding speed adjustment potentiometer: 4 1 1kΩ 2 Connecting spindle rpm correction adjustment potentiometer: 5 1 1kΩ 2 Connection of START button: (NO) 1 3 Under no circumstances use power supply terminal available at this connector to supply anything other than potentiometer and button connection. Never use potentiometers with lower value than indicated. Start button input does not tolerate voltages exceeding 5V! It should be controlled by ground, it is fitted with internal pull-up to +3.3 V.
C S - L a b s. c. P a g e 10 (5) Spindle control output - clockwise and counter-clockwise revolutions, 0-10V outlet for infinitely variable control 5 4 3 2 1 Fig. 6 - View of the plug Assignment of pins: 1. GND (ground) 2. NO - common relay contacts, connect to common control terminal in the inverter 3. NO1 - counter-clockwise revolutions 4. NO2 - clockwise revolutions 5. Vrpm - inverter control voltage (spindle rpm) 0-10V Connection of the inverter: inverter CSMIO common 2 Ffd Rev Ain 4 3 5 Enable To E-STOP circuit Relay rating is low, they are suitable only for controlling low currents. No motors are to be connected directly to relays; should such necessity occur, install indirectly larger relays.
C S - L a b s. c. P a g e 11 (6) Connection of emergency stop, signal from tool length adjustment sensor and two general purpose inputs 8 7 6 5 4 3 2 1 Fig. 7 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. +24 VDC 4. E-STOP (emergency stop) 5. TC (tool length sensor input) 6. In_EXT2 - general purpose input 7. In_EXT1 - general purpose input 8. +24 VDC Connection of E-STOP button: (NC) 3 4 Connection of tool length sensor (TC): (NC) 3 5 Inputs E-STOP, TC, In_EXT1 and In_EXT2 operate under 24V logic. They are not responding to 5V signals since their switching threshold is in the order of ca. 10V. Signal E-STOP in the above example is connected to the button; obviously these can and should be suitable specialised module of emergency stop. However when connecting a regular button, bear in mind that its contacts are NormalClosed type. For tool length sensor absolutely use an NC switch! Otherwise, e.g. when damage to cable or accidental disconnection causes tool movement down to the sensor, at the absence of sensor signal both the tool and the sensor are damaged! Tool length measuring sensor can be purchased from our company.
C S - L a b s. c. P a g e 12 (7) Limit switch connector (LIMIT+) 8 7 6 5 4 3 2 1 Fig. 8 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. LIMIT+A (A axis positive limit switch input) 4. LIMIT+ Z 5. LIMIT+ Y 6. LIMIT+ X 7. +24 VDC 8. Earthing Example of X axis positive limit switch connection: (NC) 7 6 Example of X axis positive limit switch connection via shielded cable: When connecting with shielded cable, obviously on limit switch side, also the display can be connected to e.g. machine tool structure; nevertheless even with onesided connection, resistance to signal interference is much better than without shielding. Limit switches, as well as emergency stop, are to be Normal Closed type. The thing is that in the event of switch failure, or at least accidental disconnection, the signal is still active - then you know immediately that something is wrong.
C S - L a b s. c. P a g e 13 (8) Limit switch connector (LIMIT-) 8 7 6 5 4 3 2 1 Fig. 9 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. LIMIT- A (A axis positive limit switch input) 4. LIMIT- Z 5. LIMIT- Y 6. LIMIT- X 7. +24 VDC 8. Earthing Example of X axis negative limit switch connection: (NC) 7 6 Example of X axis negative limit switch connection via shielded cable: When connecting with shielded cable, obviously on limit switch side, also the display can be connected to e.g. machine tool structure; nevertheless even with onesided connection, resistance to signal interference is much better than without shielding. Limit switches, as well as emergency stop, are to be Normal Closed type. The thing is that in the event of switch failure, or at least accidental disconnection, the signal is still active - then you know immediately that something is wrong.
C S - L a b s. c. P a g e 14 (9) Home switch connector (HOME) 8 7 6 5 4 3 2 1 Fig. 10 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. HOME A (A axis positive limit switch input) 4. HOME Z 5. HOME Y 6. HOME X 7. +24 VDC 8. Earthing Example of X axis home switch connection: (NC) 7 6 Example of X axis home switch connection via shielded cable: When connecting with shielded cable, obviously on limit switch side, also the display can be connected to e.g. machine tool structure; nevertheless even with onesided connection, resistance to signal interference is much better than without shielding. With homing switches shielding is strongly recommended, since high interference level can cause high dispersion of homing positions. In the event of HOME switches it is not absolutely necessary that they are NC, however we suggest to use exactly those, because in the event of failure you will know immediately that something is wrong, and not later, during reference run test.
C S - L a b s. c. P a g e 15 (10, 11, 12, 13) Axis drive control signal connectors, axes X, Y, Z, A 8 7 6 5 4 3 2 1 Fig. 11 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. POWER_R (current reduction for stepper motors) 4. ENABLE (drive enable) 5. RESET (drive reset) 6. FAULT (drive fault signal) 7. STEP (step signal) 8. DIR (direction signal) Example connection of stepper motor drive: The figure is only the example of connection. As you can see it is not always necessary to connect all output signals. Prior to connecting specific motor drive first make yourself familiar with its documentation. Since signals STEP and DIR are the base for system positioning, carry out drive connections with utmost care, always with shielded cable, and take care that connections between CSMIO and drives are possibly short, and that they do not cross with any cables conducting high currents. FAULT lines can be active at both low and high state - see configuration. When FAULT lines are configured as active at low state, it may be necessary to pull the voltage with resistor up to +24V.
C S - L a b s. c. P a g e 16 (14) 24DVC power connector 3 2 1 Fig. 12 - View of the plug Assignment of pins: 1. +24 VDC (power supply connection) 2. GND (ground) 3. Earthing The tolerance of connected power supply is to be +/-10 %. Obviously this should be constant voltage. Generally speaking there are no specific requirements concerning power supply, however when larger contactors, motors., etc. are supplied from 24V, it is better to separate power supply of logic and of said devices.
C S - L a b s. c. P a g e 17 (15) Power supply connection via our proprietary dedicated power unit Fig. 13 - CSMIO, view from the top Assignment of pins: 1. +24 VDC (power supply connection) 2. GND (ground) 3. +24 VDC (power supply connection) 4. GND 5. AUX1 - Cooling pump control output 6. GND 7. AUX2 - High voltage feed to drives output 8. GND 9. AUX3 - LED Error LED - Error lamp output 10. GND Requirements and recommendations concerning power supply from that connector are the same as for the above mentioned connector. Remember that outputs available at this connector feature very low current efficiency, in the order of 100mA. The only thing that can be connected directly is relay or LED diode. When connecting relays, add overvoltage protection diode! We recommend using dedicated power unit, available from our company: http://www.cs-lab.eu/galeria-zdjecie-dd-21-plyta_zasilacza_napedow_serwo.html The power unit was designed for our servo-motors ARBAH (descriptions available also on our website), however, when mated with lower voltage transformer, it works excellent with e.g. CSMIO and stepper motors. In addition the power is fitted with soft-start and PTC shorting protection for 24V, and a cut-out on higher voltage of drives.
CS-Lab s.c. P a g e 18 (16) Additional analogue and digital IN/OUT 10 9 8 7 6 5 4 3 2 1 Fig. 14 - View of the connector Assignment of pins: 1. In_EXT4 (general purpose input) 2. In_EXT3 3. Out_EXT4 (general purpose output) 500mA max. 4. Out_EXT3 500mA max. 5. Out_EXT2 500mA max. 6. Out_EXT1 500mA max. 10V (general purpose 0-10V 0 analogue output) 7. Out_0-10V 8. In_0-10V 10V (general purpose 0-10V 0 analogue input) 9. +24 VDC 10. GND (ground) Outputs Out_EXT1,2,3,4 available at that connector feature load capacity of 500mA and when in active state they make ground. There are pullpull-up resistors on the board, pulling those outputs up to +24V, or to 5V. Pull-up up voltage is selected by replacing jumper in top right corner of the connector (see figure below). Inputs In_EXT1,2 operate in n 24V standard. Load capacity of analogue output Out_0-10V Out_0 10V is 20mA, and as its name suggests it operates in industrial standard 0-10V, 10V, same as analogue input In_0-10V. Operation of analogue inputs in Mach software shall be discussed later, in section "Integration "I with Mach3 software". Fig. 15 - output pull-up voltage selection jumper
C S - L a b s. c. P a g e 19 (17) Additional emergency stop and RS485 (for remote panel and/or additional in/out) 5 4 3 2 1 Fig. 16 - View of the plug Assignment of pins: 1. GND (ground) 2. +5 VDC 3. E-STOP (emergency stop of remote panel) DO NOT CONNECT +24V 4. A+ (RS485) 5. B- (RS485) Only dedicated equipment, supplied by CS Lab s.c., is to be connected to this connector. User cannot use this connector for any other purpose. In the event that nothing is attached to that connector, there should be a plug with jumper between pin 1 and 3 (standard connected) plugged in the connector.
CS-Lab s.c. P a g e 20 Integration with Mach3 software Since CSMIO is designed for operation with Mach3, no special adjustments are required. In addition we took best efforts to possibly facilitate installation and configuration activities. About the plug-in Developing the plug-in in we took best efforts to possibly facilitate configuration and make plugin operation as convenient as possible. The biggest advantages are: No need to select COM port since at the start of Mach the program automatically checks COM1 to COM9 ports to locate CSMIO. All configuration data are recorded jointly with current Mach profile, thus no additional files are created at any other location, etc. Own Modbus stack eliminating the need to configure any Modbus related settings in Mach. Mach Obviously there is a possibility to handle additional Modbus devices using standard functionalities of Mach. Multi-thread operations - Mach operation is no way interfered with by Modbus communication. For comparison - the original communication of Mach in the event of breaking connection causes freezing of the whole graphic user interface. With CSMIO nothing like that happens. Possibility of setting default states of analogue and digital outputs of CSMIO. Thus promptly after starting CSMIO outlet states are exactly as you want them - even if Mach program is not started. Step by step installation Prior to installation only carry out minimum connections, i.e. connect ports COM and LPT to computer, and CSMIO to power supply suppl - see figure 17 below. Fig. 17 Minimum connections
C S - L a b s. c. P a g e 21 Installation of Mach3 software We start by installing Mach3 software. The latest installation file can be downloaded from http://www.machsupport.com/downloads.php. Installation of Mach3 is itself basically automatic and is described in related documentation, and we shall not describe the process here. Installation of files for operation with CSMIO On CD attached with CSMIO you receive a group of files, which can also be downloaded In catalogue "plug-in" there is a file named "CSMIOv1.dll". Copy this file to catalogue "C:/Mach3/PlugIns". In catalogue "plug-in" there is a file named "CSMIOv1.xml". Copy this file to main Mach catalogue "C:/Mach3". The second file is Mach configuration file. Thanks to this file you will not have to set everything one by one - all inputs and outputs shall be configured. Obviously user can modify settings to his needs. Microsoft.NET Framework Plug-in allowing operation with CSMIO was developed using state-of-the-art development environment VisualC++, employing Microsoft.Net platform. As of now there is a number of applications operating under Windows utilizing.net platform which is installed on a majority of computers. Nevertheless, should any problem occur or error message display at loading attempt of CSMIOv1.dll - this means that there is no.net framework installed on the computer. In such an event please click on the link "download netframework 3.5 at CSMIO product website http://www.cs-lab.eu (click on "Products", and then "Recently completed projects ). Having downloaded file "dotnetfx35.exe" please open the file. Installation is automatic, and following the completion of installation everything should be working fine. First use Click on "Mach3 Loader" icon - profile selection window, as below, should be displayed: Fig. 18 - Profile selection window Select CSMIOv1 and click OK.
CS-Lab s.c. P a g e 22 in loaded correctly, there should be an item "CSMIOv1", as in below figure, visible in When the plug-in "Plug-in in Control" menu of Mach program. Fig. 19 - Mach3, "Plug-in Control" menu In the absence of this item in the menu please check if the plug-in plug in is activated. To do so select "Config/Config plugins" in the menu. Fig. 20 - Plug-ins configuration window When "Enabled" box next to CSMIOv1 is unchecked, check it and click on "OK" and restart Mach.
CS-Lab s.c. P a g e 23 Finally check if communication between the plug-in plug in and CSMIO is correct. If everything works well diode "CPU 2" blinks fast - signalling correct reading of CSMIO registers. Fig. 21 - CPU2 diode - signalisation of transmission You can check device and transmission status at any time by clicking on "Plug-in "Plug in Control/CMSIOv1" in the menu. Fig. 22 - CSMIO status window
C S - L a b s. c. P a g e 24 Assignment of inputs/outputs Virtually all below described signals are preconfigured in the CSMIOv1.xml file attached with CSMIO. Below presented are signal assignment tables for all signals - for users who wish to configure inputs and outputs to their needs. Data are configured in "Config/ports and Pins" menu of Mach3 program. Fig. 23 - configuration of drive signals Fig. 24 - configuration of input signals Fig. 25 - configuration of output signals
C S - L a b s. c. P a g e 25 LPT PORT 1 Below presented is the list of all signals from LPT port, or "Port 1" in Mach. Digital outputs Signal name Pin no. Description X axis drive direction signal DIR X 2 (connector 10, see description of connectors) STEP X 3 X axis drive step signal (connector 10, see description of connectors) DIR Y 4 Y axis drive direction signal (connector 11, see description of connectors) STEP Y 5 Y axis drive step signal (connector 11, see description of connectors) DIR Z 6 Z axis drive direction signal (connector 12, see description of connectors) STEP Z 7 Z axis drive step signal (connector 12, see description of connectors) DIR A 8 A axis drive direction signal (connector 13, see description of connectors) STEP A 9 A axis drive step signal (connector 13, see description of connectors) OUT_EXT2 14 General purpose output (connector 16, see description of connectors) OUT_EXT3 16 General purpose output (connector 16, see description of connectors) OUT_EXT4 17 General purpose output (connector 16, see description of connectors) Digital inputs Signal name Pin no. Description Home X 10 Home Y 11 Home Z 12 Home A 13 Digitize (TC) 15 X axis homing input (connector 9, see description of connectors) Y axis homing input (connector 9, see description of connectors) Z axis homing input (connector 9, see description of connectors) A axis homing input (connector 9, see description of connectors) Tool length sensor input (connector 6, see description of connectors)
C S - L a b s. c. P a g e 26 MODBUS - PORT 4 Below presented is the list of all signals handled by COM port and MODBUS. Signals handled by MODBUS have two important features: They are handled with bigger delay than LPT signals - this is due to serial data transmission. Thus all time critical lines, such as axis homing or tool length measurement, are assigned to LPT port. They are safer - with LPT it is easy to accidentally change the output state, in particular when Mach program is not started. With MODBUS -it is virtually impossible that any program accidentally sends MODBUS data frame with correct syntax, causing change in the state of any output. Note! - irrespective of which COM port in PC computer CSMIO is connected to, the below signals shall always be assigned to port 4 in Mach. Digital outputs Signal name Pin no. Description DRV Enable 0 Drive enable (connectors 10-13, see description of connectors) DRV PowerReduction 1 Current reduction in stepper motors (connectors 10-13, see description of connectors) Aux1 (cooler pump) 2 Activation of cooling pump (connector 15, see description of connectors) Out_EXT1 3 General purpose output (connector 16, see description of connectors) Spindle, clockwise 4 Activation of spindle - clockwise revolutions (connector 5, see description of connectors) Spindle, counter-clockwise 5 Activation of spindle - ccw revolutions (connector 5, see description of connectors) Analog outputs Signal name Mach register Description See Controlling spindle rpm "Configuration of (connector 5, see description of connectors) V rpm spindle controls" General purpose output Out_0-10V 81 (connector 16, see description of connectors)
C S - L a b s. c. P a g e 27 Digital inputs Signal name Pin no. Description e-stop 0 start 1 ext_in1 2 ext_in2 3 ext_in3 4 ext_in4 5 fault X 6 fault Y 7 fault Z 8 fault A 9 limit X++ 10 limit Y++ 11 limit Z++ 12 limit A++ 13 limit X-- 14 limit Y-- 15 limit Z-- 16 limit A-- 17 Analog inputs Emergency stop signal (connector 6, see description of connectors) Spare signal, e.g. for start of the cycle (connector 4, see description of connectors) General purpose input (connectors 16 and 16, see description of connectors) General purpose input (connectors 16 and 16, see description of connectors) General purpose input (connectors 16 and 16, see description of connectors) General purpose input (connectors 16 and 16, see description of connectors) X axis drive fault signal (connectors 10-13, see description of connectors) Y axis drive fault signal (connectors 10-13, see description of connectors) Z axis drive fault signal (connectors 10-13, see description of connectors) A axis drive fault signal (connectors 10-13, see description of connectors) Signal of X axis positive limit switch (connector 7, see description of connectors) Signal of Y axis positive limit switch (connector 7, see description of connectors) Signal of Z axis positive limit switch (connector 7, see description of connectors) Signal of A axis positive limit switch (connector 7, see description of connectors) Signal of X axis negative limit switch (connector 8, see description of connectors) Signal of Y axis negative limit switch (connector 8, see description of connectors) Signal of Z axis negative limit switch (connector 8, see description of connectors) Signal of A axis negative limit switch (connector 8, see description of connectors) Analogue inputs Mach register Description CNC Speed 80 RPM Speed 81 In_0-10V 82 Feeding speed adjustment input (connector 4, see description of connectors) Spindle rpm correction output (connector 4, see description of connectors) General purpose analogue input (connector 16, see description of connectors)
C S - L a b s. c. P a g e 28 Configuration of spindle controls CSMIO enables the control of the following: Activation of clockwise and counter-clockwise revolutions Spindle revolutions, via dedicated analogue output 0-10V Settings are defined, as standard, in CSMIOv1.xml file, attached with the device. Some parameters, such as maximum rpm are to be adjusted to individual needs. Below presented is description of spindle configuration functions. Fig. 26 - spindle configuration window - output parameters Settings of M3 and M4 depend on how the outputs are configured by user. In any case it should be port 4 / pin 4 for M3, and port 4 / pin 5 for M4. at the same time outlet to cooling activation can be set; in case you are using our dedicated power unit it is best to use port 4 / pin 2 (AUX1) - this activates corresponding relay on power unit board. "Modbus Spindle" is an important setting. "Enabled" box is to be checked for revolution control to work correctly. Register number should be 64. "Max ADC Count" - 4095. Now CSMIO and Mach are ready to control spindle revolutions. Proper definition of revolution range is required for correct functioning of "S" command from G-code. This can be done in "Config/Spindle Pulleys" menu: Fig. 27 - setting of spindle rpm range
C S - L a b s. c. P a g e 29 Using analogue inputs to adjust the speed of feeding and spindle rpm CSMIO features two dedicated analogue inputs designed for connecting feeding speed and spindle rpm correction potentiometers. They are on connector 4 (see description of connectors). When the potentiometers are connected and you want to use them for the purpose of above mentioned corrections, display plug-in configuration window - menu "Config/Config PlugIns. Next to CSMIO item click on "CONFIG". Then select the tab "Override config. Fig. 28 - Feeding and spindle rpm correction configuration window As you can see in the figure, the sources for feeding speed and spindle revolutions can be set independently. "Feed override source" refers to feeding speed, whereas "Spindle override source refers to spindle revolutions. Selecting "Analog In" means that the adjustment shall be effected via connected potentiometer, whereas "Mach3 Screen" sets the default adjustment via Mach3 screen. Having completed the selection click on "Save" to save the settings. Using additional analogue inputs/outputs General purpose analogue inputs and output In_0-10 and Out_0-10V can be used from Mach script level. To that end please note the item "Mach Registry" in tables listing analogue in/out. AS writing scripts in VisualBasic is a domain of more advanced users, we refer all interested persons to technical documentation of Mach, and other sources as well. Our company offers development of scripts for specific solutions - please visit http://www.cs-lab.eu. Conditions and prices are determined on "by project" basis.
C S - L a b s. c. P a g e 30 Setting default output states It is very often the case that in some applications control outputs are fixed in specific state immediately following the energization. In normal case the states would only be set by Mach program, after the connection is established. However power supply of control cabinet can be switched on, and it takes a lot of time before Mach program starts. CSMIO features the function of quick setting of analogue and digital output states right at energization. Default states are configured in plug-in configuration window - menu "Config/Config PlugIns", and then click on "CONFIG" next to CSMIO item. In window displayed select the tab "Outputs". Fig. 29 - CSMIO, configuration of outputs Values entered in default analogue output states are to be from within the range 0-4095. Value "0" refers to voltage 0V, and value "4095" refers to voltage 10V. Setting line polarization The plug-in allows also selection of the state in which drive RESET and FAULT lines are active. Checking of corresponding box in the right-hand side of configuration window activates given signal at low state. When configuring FAULT signal as active at low state, it might be necessary add 4,7kΩ resistor pullingup voltage to +24V.
C S - L a b s. c. P a g e 31 Diagnostics window Fig. 30 - Plug-in diagnostics window In menu "PlugIn Control" click on "CSMIOv1", diagnostics window opens. You can find there the states of analogue and digital inputs and outputs, as well as the status of communication with the device. Summary CS-Lab s.c. team wishes you many successfully completed projects and perfect operation of machine tools based on CSMIO-LPT device.