61rXd Xe47l

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Banria Copyright

CNC Stepper Motor Driver


1.Description:
It is an operation control module specially designed for single-axis stepper motors.
The module has built-in multiple fixed operation modes, and the user can quickly select the appropriate
motion trajectory.It can save the setting parameters after power off.
It supports setting distance/speed/delay/cycle times.
It can run independently as a module, or it can be used in conjunction with other systems.
It can be used in general industrial control occasions.

2.Parameters:
1>.Product name:CNC Stepper Motor Driver
2>.Input voltage:DC 5V-30V
3>.Output/driver current:4A(Max)
4>.Control shafts:Single axis
5>.Suitable motor:42/57 step motor(Nema17/23 motor)
6>.Control speed:0.1-999RPM
7>.Forward pulses number:1-9999
8>.Reverse pulses number:1-9999
9>.Loop times:1-9999
10>.Forward delay time:0.0-999.9s
11>.Reverse delay time:0.0-999.9s
12>.Subdivision:1/2/4/8/16/32
13>.Acceleration and deceleration control:Yes
14>.Input reverse polarity protection:Yes
15>.Control modes:Auto/Manual/Setup/UART

3.Setting methods:
1>.Running interface:
1.1>.The first line displays rotating speed in RPM.
1.2>.The second line displays delay time or loop times which can be set by F-10 menu.
1.3>.Press CW button to clockwise/forward rotating.
1.4>.Press CCW button to counterclockwise/reverse rotating.
1.5>.Press RUN/STOP button to start or stop rotating.
1.6>.Rotate the potentiometer to change the forward or reverse rotation speed. Note:the operation
mode is different in different modes.
1.7>.Keep press potentiometer more than 3second enter into parameter set mode.
2>.Parameter interface:
2.1>.Rotate the potentiometer to change parameter F-01~F-13 after enter parameter set mode.
2.2>.The selected parameter keeps blinking.
2.3>.Press potentiometer to selected parameter value.
2.4>.Modify Value Method 1: Directly rotate the potentiometer to change value.
2.5>.Modify Value Method 2: Press the potentiometer again and the selected bit keep blinking. Then
rotate the potentiometer to change value for this bit form 0 to 9. Modify other bits in the same method
which can improve setup efficiency and save your time.
2.6>.Press RUN/STOP button return to parameter(Note:parameter and parameter value are not the
same).
2.7>.Set others parameters and parameters value if needs.
2.8>.Save and exit parameter set mode after keep press potentiometer more than 3second.
3>.Auxiliary function:
3.1>.It can work independently by default, only need to connect the power supply and stepper motor,
and no longer need to connect other accessories.
3.2>.Users can also connect external control buttons to change the operation mode. External
control buttons can input from COM/STOP/CCW/CW/OUT terminal on PCB.
3.3>.Users can also connect other types of stepper motor driver and just use ZK-SMC02 alone as a
stepper motor controller.Auto/Manual/Setup/UART
4>.Work Mode:
4.1>.Automatic Control Mode: Step motor works with ZK-SMC02’s parameters set.
4.2>.Manual Control Mode: This mode needs connect buttons to COM/STOP/CCW/CW terminal on
ZK-SMC02.
4.3>.Setup Control Mode: This mode needs connect to others stepper motor driver and just use
ZK-SMC02 alone as a stepper motor controller.
4.4>.UART Control Mode: This mode needs input MODBUS-RTU commands.

4.Function Parameter Table:

1
Banria Copyright

[F] Function Parameter Table


Parameter Function Set Ranges Defaults
F-01->? Working mode selection. Refer to the Work Mode Table. P01~P09 P01
F-02 Forward pulses number 1~9999 1600
F-03 Forward rotation speed in RPM 0.1~999.9 10
F-04 Reverse pulses number 1~9999 1600
F-05 Reverse rotation speed in RPM 0.1~999.9 10
F-06 Cycle work times(‘----’ means infinite loop) 0~9999 or infinite loop 1
F-07 Forward in-position delay in second. +/-0.2s 0.0~999.9 0.0
F-08 Reverse in-position delay in second. +/-0.2s 0.0~999.9 0.0
Pulse numbers for one revolution. Unit is *10.
E.g. if step anglemar is 1.8 and subdivision is 8. So that
F-09 1~9999 160
the pulse numbers for one revolution is 360/1.8*8=1600.
So the set value should be 160.
Set LCD display parameters:
0:1st line display motor rotating speed in rpm.
F-10 2nd line display delay time in second. 0 or 1 0
1:1st line display motor rotating speed in rpm.
2nd line display cycle work times.
Set motor working state after press RUN/STOP button:
F-11 0:Slow down and stop. 0 or 1 0
1:Stop immediately.
Set the acceleration/deceleration level:
F-12 001~100 020
001 is the slowest and 100 is the fastest.
F-13 Set device address 001~255 001

5.Work Mode Table:


Work Mode Work Process
1.Function:Motor works with the rotation of potentiometer. That is, motor can only be
controlled by potentiometer, and other buttons are invalid.
F-01->P01 2.Motor rotates forward and CW indicator turns ON if potentiometer is turned clockwise.
3.Motor rotates reverse and CCW indicator turns ON if potentiometer is turned
counterclockwise.
1.Function:Motor rotates when keep press and stop if release button.
2.Motor rotates forward and CW indicator turns ON if keep press CW button. Motor stops if
F-01->P02 release the button.Rotating potentiometer to reset motor rotate speed in RPM.
3.Motor rotates reverse and CCW indicator turns ON if keep press CCW button. Motor
stops if release the button.Rotating potentiometer to reset motor rotate speed in RPM.
1.Function:Rotates at first press and stop press again. self-locking control.
2.Motor rotates forward and CW indicator turns ON if press CW button. Motor stops if
press again.Rotating potentiometer to reset motor rotate speed in RPM.
F-01->P03 3.Motor rotates reverse and CCW indicator turns ON if press CCW button. Motor stops if
press again.Rotating potentiometer to reset motor rotate speed in RPM.
4.Note:please stops motor at first when the motor is running if need change the running
direction.
1.Function:Motor rotates from pulses number F-02/F-04, then stop. Then loop F-06 times.
2.Press CW button, then motor keep rotates forward from F-02, Then stop for delay time
F-07.Then loop like this. Loop time from F-06. E.g. Forward->OFF->....->Forward->OFF.
3.Press CCW button, then motor keep rotates reverse from F-04, Then stop for delay time
F-01->P04
F-08.Then loop like this. Loop time from F-06. E.g. Reverse->OFF->....->Reverse->OFF.
4.Rotating potentiometer to reset motor rotate speed in RPM.
5.Note:please stops motor at first when the motor is running if need change the running
direction.
1.Function:Motor rotates from pulses number F-02/F-04, then stop. Then loop F-06
times.Then running and return to start positive in the opposite direction.
2.Press CW button, then motor keep rotates forward from F-02, Then stop for delay time
F-07.Then loop like this. Loop time from F-06. Then reverse return to start positive. E.g.
Forward->OFF->....->Forward->OFF->Reverse.
F-01->P05 3.Press CCW button, then motor keep rotates reverse from F-04, Then stop for delay time
F-08.Then loop like this. Loop time from F-06. Then forward return to start positive. E.g.
Reverse->OFF->....->Reverse->OFF->Forward.
4.Rotating potentiometer to reset motor rotate speed in RPM.
5.Note:please stops motor at first when the motor is running if need change the running
direction.
F-01->P06 1.Function:Motor rotates from pulses number F-02/F-04,then stop and change rotation

2
Banria Copyright

direction. Then loop F-06 times.


2.Press CW button, then motor keep rotates forward from F-02, then stop for delay time
F-07,then reverse from F-04,then stop for delay time F-08. Then loop like this. Loop time
from F-06. E.g. Forward->OFF->Reverse->OFF....->Reverse->OFF->Forward->OFF.
3.Press CCW button, then motor keep rotates reverse from F-04, then stop for delay time
F-08,then reverse from F-02,then stop for delay time F-07. Then loop like this. Loop time
from F-06. E.g. Reverse->OFF->Forward->OFF....->Forward->OFF->Reverse->OFF.
4.Rotating potentiometer to reset motor rotate speed in RPM.
5.Note:please stops motor at first when the motor is running if need change the running
direction.
1.Function:Motor rotates when keep press and stop if release button.Then running and
return to start positive in the opposite direction.
2.Motor rotates forward and CW indicator turns ON if keep press CW button. Motor stops
F-01->P07 for time F-07 if release the button. Then reverse return to start positive.
3.Motor rotates reverse and CCW indicator turns ON if keep press CCW button. Motor
stops for time F-08 if release the button. Then forward return to start positive.
4.Rotating potentiometer to reset motor rotate speed in RPM.
1.Function:Motor rotates from delay time F-07/F-0, then stop. Then loop F-06 times.
2.Press CW button, then motor keep rotates forward from F-07, Then stop for delay time
F-08.Then loop like this. Loop time from F-06. E.g. Forward->OFF->....->Forward->OFF.
3.Press CCW button, then motor keep rotates reverse from F-08, Then stop for delay time
F-01->P08
F-07.Then loop like this. Loop time from F-06. E.g. Reverse->OFF->....->Reverse->OFF.
4.Rotating potentiometer to reset motor rotate speed in RPM.
5.Note:please stops motor at first when the motor is running if need change the running
direction.
1.Function:Motor forward rotates from pulses number F-02,then stop for time F-07, then
rotates reverse from F-04, then stop for delay time F-08, and loop like this. Then loop F-06
times.
F-01->P09
2.Rotating potentiometer to reset motor rotate speed in RPM.
3.Note:please stops motor at first when the motor is running if need change the running
direction.

6.MODBUS Control Method:


1>.It can be control by MODBUS-RTU control protocol which support function code 0x03/0x06/0x10.
Note:It is recommended to use other control methods, because this method requires the user to have an
electronic programming skills.
2>.Baud rate: 9600/14400/19200/38400/56000/57600/115200
3>.Device address:001~247
4>.Communication Interface:TTL
5>.Data frame structure:
Data Frame Interval Address Code Function Code Data Area CRC Check
>3.5 Byte 1 Byte 1 Byte N Byte 2 Byte
6>.0x03 read function host format:
Address Code Function Code Register Start Address Number Register Addresses n (1~32) CRC Check
1 Byte 1 Byte 2 Byte 2 Byte 2 Byte
7>.0x03 read function slave return format:
Address Code Function Code Register Start Address Return Register Quantity n Register Data CRC Check
1 Byte 1 Byte 2 Byte 1 Byte 2*n Byte 2 Byte
8>.0x06 write single register function host format:
Address Code Function Code Register Start Address Register Data CRC Check
1 Byte 1 Byte 2 Byte 2 Byte 2 Byte
9>.0x06 write single register function slave return format:
Address Code Function Code Register Start Address Register Data CRC Check
1 Byte 1 Byte 2 Byte 2 Byte 2 Byte
10>.0x10 write multiple registers function host format:
Address Function Register Start Number Register Addresses Write Byte Quantity Register Data CRC Check
Code Code Address n (1~32) 2*n
1 Byte 1 Byte 2 Byte 2 Byte 1 Byte 2*n Byte 2 Byte
11>.0x10 write multiple registers function slave return format:
Address Code Function Code Register Start Address Number Register Addresses n (1~32) CRC Check
1 Byte 1 Byte 2 Byte 2 Byte 2 Byte
12>.Introduction to protocol registers (the data in a single register address is double-byte data)
Name Description Byte R/W Register Adds
F-01 Working mode selection 2 R/W 0000H
F-02 Forward pulses number 2 R/W 0001H
F-03 Forward rotation speed in RPM 2 R/W 0002H

3
Banria Copyright

F-04 Reverse pulses number 2 R/W 0003H


F-05 Reverse rotation speed in RPM 2 R/W 0004H
F-06 Cycle work times 2 R/W 0005H
F-07 Forward in-position delay 2 R/W 0006H
F-08 Reverse in-position delay 2 R/W 0007H
F-09 Pulse numbers for one revolution 2 R/W 0008H
F-10 Set LCD display parameters 2 R/W 0009H
F-11 Set state after press RUN/STOP 2 R/W 000AH
F-12 Set acceleration/deceleration level 2 R/W 000BH
F-13 Set device address 2 R/W 000CH
COM 0:Enable UART; 1:Disable UART 2 R/W 000DH
Read motor status:
00:Stopping 01:Accelerating 2 R 0010H
Enable
02:Decelerating 03:In constant speed
UART
Read motor running direction:
2 R 0011H
00:Forward 01:Reverse
Control motor status:
00:Stopping 01:Accelerating 2 R 0100H
02:Decelerating 03:In constant speed
Control motor running direction:
00:No turning(default) 2 R 0101H
Disable 01:Change direction
UART Set high 16bit for pulses number
2 R 0102H
Default is 10000
Set low 16bit for pulses number
2 R 0103H
Default is 10000
Set acceleration/deceleration level 2 R 0104H
Set default running speed 2 R 0105H

7.Note:
1>.It is suitable for 2 phase stepper motors whether it is 4-wire or 5-wire or 6-wire or 8-wire.
2>.It has built-in drivers and controllers, but can also connect other drivers.

8.Application:
1>.Industrial Automation Control
2>.CNC machine
3>.Mechanical packaging
4>.Electronic processing and testing
5>.Automatic assembly line

You might also like