“All shaft reset” only clears the working coordinates, is it currently displaying the machine coordinates, and “clr origin” is the clearing machine coordinates. or please check if you change Machine – home– referenceCoor–Zero DCoor,the default is 0
The SMC5-5-N-N5 axis motion controller is standalone cnc 5 axis controller without pc uses high-performance 32-bit CPU and high-performance FPGA, equipped with 7-inch LCD display, humanized window man-machine interface, memory using external USB port and built-in 8G TF card, can be connected to U disk, working voltage 12 -24V ultra-wide input, light touch operation keyboard.
The offline cnc controller system features high reliability, high precision, low noise, and easy operation.
The standalone cnc controller can be linked with 5 axes, and has multi-micro line segment forward control algorithm, which can realize five-axis linear interpolation and five-axis multi-micro multi-line segment continuous interpolation, and has continuous line engraving control, power-off storage coordinate function. Support handwheel control interface.
Simple and clear parameters bring convenience and speed to your operation. The input/output setting function can facilitate your use and expand peripherals.
Maximum pulse output frequency 500KHz (all five axes can be 500KHZ at the same time)
U disk easy to break
Offline control does not support the network
SMC5-5-N-N Upgrade Firmware
You need tell me your serial number,then we sent you a upgrade file(NC_5.MD5),copy it to the root directory of TF, (note that a single file, not including folders)
Note: If the controller has already set the parameters, please take a photo backup and it will be cleared after the upgrade.
Plug TFcard in controller
In factory mode, enter, SZMAP0 (zero)
Wait for the controller to complete itself
If an error occurs after upgrading, please enter in factory mode, 000001, to restore the factory state. If the overall system disk speed is slow after upgrading, please format the memory disk. The factory mode code is 010101. Note that the memory disk data will be cleared.
G codes supported by AutoGM
G0XYZ45 quickly moves to the given coordinate position
G1XYZ45F moves to the given coordinate position according to the given F value, accurate feed, CVL is invalid.
G04P Pause, delay P suffix is milliseconds, minimum is 500ms + P *
G05 P1XYZ45 safely move to the given XYZ45 workpiece coordinates
Example: G05P1X100Y100Z200A360B360 Return to the safe area according to the tool axis, then adjust the rotation axis, and then enter the tool according to the given workpiece coordinate tool axis.
G05P2XYZ45 safely move to the given XYZ45 machine coordinates
Example: G05P2X100Y100Z200A360B360 Return to the safe area according to the tool axis, then adjust the rotary axis, and then feed the tool according to the given mechanical coordinate tool axis.
G05P3XYZ45 move linearly to the given XYZ45 mechanical coordinates
Example: G05P3X100Y100Z200A360B360 Move directly in a straight line according to the given mechanical coordinates.
G05P4XYZ45T * compares the given T * number with the T * number selected by the system. Move the equal side to the given XYZ45 mechanical coordinates, otherwise give up.
Example: Suppose the selected tool of the system is T2 G05P4T2X100Y100Z100A360B360 Because T2 = system T2, the side safety moves to the whole area, and then moves to X100Y100Z100A360B360
G28 G28P1 G28P2 G28P3 G28P4 (tool setting) All functions are the same as G28 of the system G90 G91 is the same as the system M00 M03 M04 M04 M07 M08 M08 is the same as the system M101 – 108 are the same as the system M201 – 208 is the same as the system M301 – M322 are the same as the system M401 – M422 is the same as the system
Note: G41 42 AutoGM is invalid, but system G43 is globally effective. It is not recommended to use RTCP in AutoGM, with G54-G59.
File Header (FileS) Before running G code, first run this code file
End of File (FileE) After the G code is finished running, run this code file
PAUSE Run this code file when paused
M6 When running G code, when M6 appears, run this code file
M600-M604 When running G code, M600-M604 appears, run the corresponding code file
AutoGM corresponds to the file control code, and only the U disk file import method is used:
Create and write
Use a PC to create a new GM folder in the root directory of the USB flash drive. Then create the following files in the GM folder (if you don’t,then don’t create them).
Select the function button corresponding to the interface, and the corresponding file name is displayed in the file basket at the bottom right
Then click Import. At this time, the code basket on the left displays the imported control code.
Start stop key
Before the file is ready or running, pressing the start / stop key will bring up the start / stop display basket.
If the G code file is already running, the side PAUSE: *** is displayed as the number of lines to be paused. Wait for the operation to pause after the *** line, and wait for the operation of the start or stop key.
If you press the start key while waiting, it will run to the next line and continue to wait.
If you press the start / stop button while waiting, the start / stop function will be abandoned.
File Edit — FileList — Teach
Auto fill in coordinates
Machine — Controller — DrawPICMode : 2
0: Do not select drawing during processing or open the processing path preview drawing in the file.
1: Start drawing mode, the pattern drawing mode is: G0 red, G1G2G3 and other given processing passes are blue.
2: start drawing mode,
X Position Y Position: The position of the Gcode origin in the figure. X Y P: Gcode X Y magnification Z Threshold: Gcode Z threshold Z P: Z axis scale
When the Gcode Z-axis value is greater than the “Z-axis Threshold” given in the graphic parameters, the drawing is red.
The Gcode Z-axis value is less than the “Z-axis threshold” given in the graphics parameters. The chromaticity in the drawing is determined. The blue color is the base color in the drawing. Controls the brightness of blue. The maximum clamping value is 1F and the minimum is 0. Generally set the Z axis valve value as the deepest machining value of the Z axis.
I have a question about your SMC5-5 controller. Do you know if it can be used for an ATC toolchanger spindle? It’s important that we can program it to do toolchanges.We will be using ATC spindles for our machnes, like this: https://www.aliexpress.com/item/32582277189.html But we are not sure if your controller can work with tool-changers, and how it is programmed. Can you please tell us if this controller has the posibility for programming the toolchanger? Need to use AutoGM function to write the corresponding GM code,see here. https://www.shaogecnc.com/smc5-5-n-n/#G_codes_supported_by_AutoGM
does the control support english dimensions (inches) ? Also – does it support constant velocity contouring? You can enter inch data,What unit is the equivalent calculated in，it doesn’t support constant velocity contouring
I worked with it more and found that the cause of the error is happening because the ijk mode was not activated. It seems that the instruction manual needs to be updated because there is no G02/G03 tolerance either. Was it replaced by the ijk mode? Solution 1. Use IJK circle center method 2. The post-processing setting of the CAM software closes the option greater than 180 degrees
SMC4-4-16a16b is a standalone cnc controller without pc,supports up to 4 axes linkage, linear interpolation and continuous interpolation. The maximum pulse output frequency of each axis can reach 50KHz (3 axes can be 50KHz at the same time). In the offline state, manual, jog, return to program zero, return to mechanical zero, coordinate clearing and other operations can be realized. Delete, modify, read in, save, save, auto process, continuous, pause and other functions, can define a variety of external manual functions for easy use.
High-performance, high-speed 32-bit ARM CPU
SMC4-4-16A16B support 4axis Linkage
Maximum pulse output frequency 50KHz (3 axis can be 50KHZ at same time)
Does not have the function of saving current coordinates and engraving after power failure
You need tell me your serial number,then we sent you a upgrade file(NC_4S.MD5),copy it to the root directory of TF, (note that a single file, not including folders)
Shutdown, the TF card into the controller and restar, press at the same time.
SMC4-4-16a16b Wiring Diagram
SMC4 4 Axis Controller Tutorial
Motor connection and testing
Each axis of the pulse output of the SMC4 4-axis controller uses the pulse plus direction method. When using a stepper motor driver with an optocoupler, the common positive method is used.
Note: When connecting a two-phase stepper motor, first distinguish the two phase lines of the motor. If the stepper motor has no clear instructions, you can use a multimeter (resistance gear) to measure the resistance between the two lines. The two phase are not connected, and the same phase should be a small resistor, usually within a few ohms.
The power supply connected to the controller also needs to pay attention to the voltage and polarity of the connected power supply. It is necessary to test the voltage of the power supply not to exceed 24V before it can be connected to the controller. If it exceeds 24V, it may cause a serious failure of the controller and cannot be repaired
Motor parameter setting
From the main interface menu “machine configuration” to enter the “motor parameters” setting interface, you can use the multi-function knob, up and down keys, OK key and numeric symbol keys to set or modify the motor parameters of the four motion axes. Remember to press “Save” to save after modification.
The motor parameter setting items mainly include the following items:
Pulse equivalent refers to the number of pulses that need to be output in one unit, and allows the input of floating-point decimals. The unit here can be millimeters, circles, degrees, etc. Units are determined according to actual needs, and millimeters and degrees are generally used for engraving machines. For example, a screw with a lead of 5mm is installed on the X axis, the stepping angle of the connected stepper motor is 1.8 degrees, and the driving subdivision value is 8, you can get 1mm according to the calculation formula (360/1.8)x8/5 The pulse equivalent is 320. Simply speaking, the pulse equivalent is obtained by dividing the number of pulses required for each rotation of the motor by the distance moved. Most stepper drives in the market will directly mark the pulse number of a stepper motor with a step angle of 1.8, such as 1600 (8 subdivisions), so that using a lead of 5mm can directly calculate 1600/5=320. The same is true for servo motors. The same is true for the rotary axis. For example, the stepping drive on the A axis is set to 1600, and the pulse equivalent per degree is calculated. 1600/360=4.44444. If a reduction gear is installed, the reduction ratio needs to be added for calculation.
The maximum speed is the number of units per minute that the system can allow. For example, the pulse equivalent is in mm and the maximum speed is set to 1200. This 1200 means that the system can allow the maximum speed of 1200mm per minute, according to the G code F value is F1200. Similarly, if the pulse equivalent is in degrees, it means 1200 degrees per minute. Because the highest pulse output rate of the system is 50KHz, the allowable input value of the highest speed is limited. The specific calculation formula will not be discussed here. The maximum speed can be calculated based on 70-80% of the maximum speed of the stepper motor. If you do not know the motor parameters, you can slowly increase the maximum speed value during actual operation, subject to no step loss with load.
Acceleration refers to the speed value of the motor from stationary to uniform speed, or uniform speed to stationary. If the pulse equivalent is in mm, then the unit of acceleration is mm/sec. The larger this value is, the shorter the process from the start to the constant speed movement or from the constant speed to the stop of the motor, the faster the required motor response speed. If the acceleration value is set too large, it will cause step loss. The acceleration can be calculated based on 70-80% of the acceleration value of the stepper motor. If you don’t know the motor parameters, you can slowly increase the acceleration value during actual operation, subject to no step loss with load.
The pulse level setting is mainly to determine whether the pulse is valid for the falling edge or the rising edge. The default setting is 1, some step drives need to be set to 0 to work properly.
The direction level mainly determines the relationship between the positive and negative values of the system coordinates and the direction of the motor. It can be set to 1 or 0. If the direction of the motor is found to be wrong, it can be corrected here.
The pulse time is to set the width of the pulse output. When the default value is 1, the pulse width is about 2us. Some versions of the Lei X brand stepper drive need to set the pulse level to 0 and the pulse time to 5.
External switch and sensor
The SMC4 4-axis offline controller supports 16 input ports. The function of each input port is not fixed. The specific functions need to be configured in the system or used by the program instructions in the program.
Input port definition
The following figure shows that the two DB25 ports on the rear panel of the host are OUT and IN ports respectively. The DB25 port on the right side of the figure is the IN port. There are 8 GND pins, 16 IN pins, and a 5V power output (500mA)
Host IO adapter board pin definition
The IN input adapter board does not add a functional circuit, the pin number function is still the same as DB25, but it is more convenient for wiring.
The input port can be used for the following functions: 1- Limit input 2- Mechanical origin input 3- Tool setter input 4- Shortcut function input 5- Program waiting for input Both mechanical switches and sensors can be used for the functions listed above
The input port of the SMC4 4-axis controller can support mechanical switches and NPN type electronic sensors. The type of electronic sensor must be NPN, which can be a common photoelectric sensor, proximity sensor, etc. When using the sensor connection, the power supply of the sensor must not exceed 24V. It is recommended to use 12V. It can also share a power supply with the SMC4. Only one function can be set for each input port. For example, after IN1 is set as a limit function, this port cannot be set as a shortcut button.
When connecting a mechanical switch, you only need to connect the common terminal (C) of the switch to any GND port of the SMC4 offline controller, and connect the normally open contact (NO) or normally closed contact (NC) to On any port of IN1-16 of SM4 offline controller. It is recommended to connect to the normally closed contact when used, which can increase the anti-interference. The principle of another common tool setting device is similar to that of a mechanical switch, and the wiring method is in accordance with the mechanical switch connection method.
When connecting the NPN sensor, the positive terminal of the sensor power supply needs to be connected to the positive terminal of the power supply. It can be an independent power supply or can share the power supply with the SMC4 four-axis controller. The voltage must not exceed 24V. The negative terminal of the sensor power supply is connected to the negative terminal of the power supply. The output is connected to any port of IN1-16 of SM4 offline controller. NPN sensor output type can be normally open or normally closed
SMC4 4-axis controller built-in input port test interface. It can be opened from the menu “machine configuration”-“test”. After entering the test interface, you can use the display graphics in the interface to test the quality of the switches, lines and ports. When the graph is red, it indicates that the output ports INx and GND are open, and when the graph is black, the output ports INx and GND are closed.
Suppose that an emergency stop (normally closed) IN1, an X axis + limit (normally closed) IN2, a Y origin (normally closed) IN3 and a tool setter (normally open) IN4 are connected
Emergency stop (normally closed) IN1
In this example, the emergency stop switch(急停) is normally closed and connected to IN1. Enable(使能): When this item is set to 1, this item takes effect, and when set to 0, this item is invalid. Pin position(脚位): the port number to which the function switch is connected. Level(电平): Connect to normally open, set the level to 0. Connected to normally closed, set the level to 1.
X axis + limit (normally closed) IN2
In this example, the X-axis limit + switch is normally closed and connected to IN2. Enable(使能): When this item is set to 1, this item takes effect, and when set to 0, this item is invalid. Pin position(脚位): the port number to which the limit switch is connected. Level(电平): Connect to normally open, set the level to 1. Connected to normally closed, set the level to 0.
Y origin (normally closed) IN3
In this example, the Y-axis mechanical origin switch is normally closed and connected to IN3. Enable(使能): When this item is set to 1, this item takes effect, and when set to 0, this item is invalid. Pin position(脚位): the port number to which the mechanical origin switch is connected. Level(电平): Connect to normally open, set the level to 1. Connected to normally closed, set the level to 0. Direction(方向): can be set to 0 or 1, respectively expressed as the forward and reverse of the motion axis, set according to the actual situation
Tool setting (对刀器)(normally open) IN4
In this example, the tool setting switch is normally open and connected to IN4. Enable(使能): When this item is set to 1, this item takes effect, and when set to 0, this item is invalid. Pin position(脚位): the port number to which the tool setting switch is connected. Level(电平): Connect to normally open, set the level to 1. Connected to normally closed, set the level to 0. Direction(方向): can be set to 0 or 1, respectively expressed as the forward and reverse of the motion axis, set according to the actual situation.
Other setting items of tool setting(对刀器) can be set in “G parameter”
Safety height(安全高度): Z axis will be raised according to this setting value when paused/homed/referenced. Tool setting mode(对刀模式): The default value is 0, which means floating tool setting. When the value is 1, it is fixed tool setting. There are two operations: first tool setting and tool setting after tool change. Tool setting offset(对刀偏移): After tool setting, the Z axis coordinate will be offset to this value. This value is usually set to the thickness of the tool block. Tool setting springback(对刀弹回): After tool setting, the Z axis will leave the tool setting device according to this setting value, which is convenient for taking the tool setting device.
In the program, you can also use the M command to detect the input port. Use M3xx to judge whether the port is low level (equivalent to low level when the normally open switch is triggered), if it is, then execute the next line down, or wait for the other side. Use M4xx to judge whether the port is high level (equivalent to high level when the normally closed switch is triggered), if it is, then execute the next line down, or wait for the other side. xx represents the IN port No. 01-16. For example, if you want to judge whether IN1 is low, you can use M301 to judge in the program.
The SMC4 offline controller does not have the function of single-step code execution. If single-step execution is required, some instructions can be used. For example, connect a switch to the input port and wait for its input signal with M3xx M4xx instructions. When there is an input signal, it will continue to execute the next line. Inserting such an instruction after each line of code can achieve a simple single-step execution function.
Installation program indicator
The 4-axis offline controller is not designed with a special program running status output function. If such a function is needed, the M07 or M08 function that is not commonly used can be used as the program running status output.
Connect the LED indicator (or other devices) to the output port. Port 1 is used in the figure
If you use M08 to control, set the port number of M08 to be port 1
Q :SMC4-4-16A16B and I hace an issue with my first hole. Im using Fusion 360, when I make the instructions for the hole, it seems is an perfect square but the final line, the boundary make a small round in the corner instead a straight 90 degree line. A:You can try. enabled cvl setting 1,CVL is set to tool or fillet radius
Q: Yesterday we did something stupid, and after the successful firmware update gave the “G0XYZF” system command without the correct “system.rar” file on the MicroSD card. Now we lost the Chinese language altogether, and all the Chinese language characters are just a black square. English seems still to work almost fine, although some symbols are also missing when using English. Could you please supply to us the correct “system.rar” file with the English and Chinese languages? I would be very grateful for this file and I feel very ashamed now that we used a system command we don’t fully understand. (I also wonder if it would be possible for me to compile a special system.rar file with Finnish language? This would be also a very interesting project for later times. Our professors would be very pleased if I could show the device operating in Finnish language instead of English.)