Page 2
Strictly adhere to the technical information regarding installation requirements. This manual is not for use or disclosure outside of Leadshine except under permission. All rights are reserved. No part of this manual shall be reproduced, stored in retrieval form, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise without approval from Leadshine.
Page 3
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Safety Precautions Overall Notes Do not remove the housing with the drive powered on. Cables. Connectors and optional equipment. Please disconnect the power supply for at least 2 minutes and make sure the ...
Page 4
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Precautions for Installation Please install the drive in a cabinet that provides fire protection. Electrical protection in the control cabinet. Please install the driver and motor in a position with sufficient weight ...
Divided into simple hands-on tuning and practical application scenarios 1.3.1 Hands-on Tuning (1) The trial run can be performed with Leadshine's MS tuning software, which requires Leadshine’s tuning software, RS232 tuning cable (provided by Leadshine), RS232toUSB converter, drive and motor, as described in Section 6.1...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 1.3.2 Practical Application Scenarios (1) Controlled by Modbus RS485 (PLC or HMI) The RS485 (Modbus-RTU protocol) communication triggers the drive's PR motion register, which can realize the drive's path motion. Both PLC and HMI have RS485 communication so user can choose one or both.
Cheek if it is fully equipped with accessories. Accessories include power supply and I/O signals connector. Neither the damaged nor missing accessories of stepper system is allowed to install. Contact Leadshine or local distributor if any failure was found. 1.4.2 Nameplate information 1.4.3 Part number - 3 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 1.4.4 Parts description 1.4.5 Accessories Information Name Necessary Picture Description (CABLEM-RZ*M*) for CS2RS-D503/507; Motor (CABLEH-RZ*M*) Motor Side: Drive Side: extension for CS2RS-D1008; Manufacturer: TE Manufacturer: Molex cable Optional length: Housing: 172159-1-4P Housing: 39012040 1.5m,3m,5m,8m,...
DO NOT mount the drive and motor in a location subjected to airborne dust. Please ensure grounding wires are securely connected 2.2 Dimensions Unit: mm (1inch=25.4mm) CS2RS-D503 / 507 - 5 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual CS2RS-D1008 Figure 2.1: CS2RS series mechanical drawing 2.3 Installation Direction and Space The mounting of drive, wiring and motor should be under the regulations of EN 61800-5-1. Incorrect installation may result in a drive malfunction or premature failure of the drive and /or motor. Please follow the ...
Output Signals Brake, Alarm, In Position, GPIOs Protection Functions Over Current, Over Voltage, Position Following Error, Encoder Cable Error, etc. PC Software Leadshine ProTuner (coming soon) Environment Avoid dust, oil ,fog and corrosive gases Operating 0-50℃ (32 F – 122 F)
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 3.2 Wiring Instructions Figure 3.1 Wiring Instructions Note: (1) There are two RS485 communication ports one of them is input port which connects with master station or previous slave, and another is output port which connects with the following slave. (2) Single-ended inputs I1, I2, I3, I4, I5, I6 and I7 connection types can be common-cathode and common-anode.
Max. 24V/100mA, GPIOs. COMO Note:(1) DI or DO is shown as SI or SO in Leadshine MotionStudio. (2) DI1 is normally closed, default by Enable signal. It means the motor is locked shaft after the driver powered on. (3) When using brake output signals you need to connect a relay and a diode.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual RS485 RxD- 5, 6, 13, 14 7, 8, 15, 163, 4, 11, 12 Received Connector cover Shield GND 3.3.5 CN5-RS232 Tuning Port Name Signal 3.3.6 CN6-Encoder Input Signals Connector Name Signal Description 1, 2, 3, 4...
Page 19
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual (1) Slave ID: SW1-SW5 (off=1, on=0) Slave ID (default) (factory) Note: (1) When the SW1-SW5 is default (all are on), the Slave ID can be configured by the PC software - 12 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual (2) Baud Rate: SW6 - SW7 Baud Rate 115200 (Default) 38400 (Factory) 19200 9600 Note: (1) When the SW6-SW7 is default (all are off), the Baud Rate can be configured by the PC software (3) Terminal Resistance Selection: SW8 SW8=ON: terminal resistance is valid;...
3.4.3 Brake Output Use PC software (from Leadshine or Controller or PLC vendor) to configure this output as a BRAKE CONTROL output. In this case, brake signal can be used for automatic brake control while system power failure. It is recommended to connect a fly- wheel diode in parallel to a 24VDC relay and brake coil connection.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 4 Modbus RTU 4.1 Communication Specifications Items Specifications Remarks Communication RS232 only for fine tuning RS485 and RS232 Port RS485 for motion control Baud Rate 9600/19200/38400/115200[bps] Parameter setting Synchronous Start / Stop Synchronization Mode Communication Half-duplex, Master-slave Mode...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Slave>master data: Message 00 00 00 02 00 00 00 01 00 00 00 04 Value Slave Number Value of Address Value of Value of Value of Description bytes returned 0x01BC 0x01BD 0x01BF...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Example D: Save the written value to EEPROM Send message: 01 06 18 01 22 11 06 06 Receive message:01 06 18 01 22 11 06 06 Details as following: Master->slave data Message: 18 01...
4.3.1 Basic Parameters Leadshine RS485 parameter data type is 32 bits, a parameter contains two registers of high 16 bits and low 16 bits, only the lower 16 bits are used in practice. However, when reading or writing multiple parameters in succession, the high 16 bits of the parameter need to be used as the start, usually 00.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 4.3.2 Input and Output Parameters Register Par. # in Definition Description Range Default Unit Address software 0x0145 Pr4.02 SI1 (DI1) 0-65535 136 (0x88) (1) SI1 is set to enable by default, N.C 0x0147 Pr4.03 SI2 (DI2)
Page 30
The default state is 0000, which correspond to 10ms (2) If you need to set other filter times for the IO port, you can fill in the value manually in the parameter manage table of Leadshine MotionStudio. Example 1: IO input port 1 is set to enable function. Normally closed. Filter time 50ms The register value is configured as 0000 1100 1000 1000, which is converted to 3208 in decimal, i.e.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Routine 3: IO input port 7 is set to JOG2 function. Normally open. Filter time 500ms The register configuration is 0000 1111 0010 1100, which is converted to 3884 in decimal, i.e. write 3884 to Pr4.08 to achieve the above configuration.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 4.4 Error Codes and Troubleshooting 4.4.1 Communication Error Codes When the master station receives a message from the slave about a communication error, you can follow the table below for analysis Return Commands (slave->master) Description...
Shaft locking 0x80 1. Check whether the motor wire is broken error 1. Connect the drive to Leadshine software to 0x200 EEPROM error reset parameters to the factory 2. If it still exists, the hardware failure 1. Restart the drive;...
(2) There are two methods to clear the current alarm: one is via Clear current error Current error Leadshine MotionStudio, and the second is via external I/O, refer to Section 4.3.2. (3) If the current error cannot be cleared, please check the drive...
DI1 of CS2RS series drive is the enable input by default, normally closed, so CS2RS drive immediately enters the enable state after power on. RS485 communication: Pr0.07 of Leadshine MotionStudio (Register address 0x00F) set to value “1” indicates enable the drive by RS485 - 29 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 5 PR Mode (Indexer Table) PR mode is a single-axis motion control function with 16-segment position table, also called indexer table. It can save the motion control function of the controller. 5.1 PR Main Features PR mode can mainly set the following functions: Features...
Trigger to homing: when IO port set to Home function triggered by external level, or trigger via Modbus RS485. Homing method: Limit switch homing: Set by register address 0x600A, or Leadshine software. If the homing direction is positive, then it is positive limit switch homing. Conversely, the negative limit homing.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Bit0: homing direction =0: CCW; =1: CW. Bit1: move to the Specified point after homing? =0: No; =1: Yes. Bit2- Bit3: homing method Pr8.10 0x600A Homing mode =00: Homing by detecting limit switch signal =01: Homing by detecting Home Switch signal =10: Homing by Z signal (index signal) Note:...
Page 40
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual (2) Home Switch at Positive Direction (3) Home Switch & Negative Limit Switch - 33 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 5.3 Soft Limit & JOG & Quick Stop 5.3.1 Soft Limit The soft limit function means that the internal position feedback of the drive is compared with the limit position, an alarm and stop when determining that the motor exceeds the limit position.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual RS485 communication trigger JOG: Write value 0x4001 to 0x1801, JOG+. Write value 0x4002 to 0x1801, JOG-. JOG velocity: Pr6.00 (0x01E1). JOG acceleration and deceleration time: Pr6.03 (0x01E7). ...
5.4.1 PR Parameters Usually it is recommended using the PTP window of the Leadshine tuning software to configure the PR path parameters, but it can also use the following objects: Par.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual paths paths Similar as above Similar as above Pr9.56- Pr9.63 PR path 7 paths paths Similar as above Similar as above Pr9.64- Pr9.71 PR path 8 paths paths 5.4.2 PR Path Configuration If use the digital input ports to configure the PR path, they can be set to ADD0, ADD1, ADD2 and ADD3, thus forming 16- segment PR path, and then trigger the path number to complete the PR motion.
Page 46
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Single path sequence diagram 5.5.3 Multi-segment Jump For example: set paths 5 and 9, set path 5 to jump to path 9. Multi-segment jump path sequence diagram Continuous movement ...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Continuous movement timing sequence (no overlap). Interrupt function The interrupt function is the priority of a PR path. Interrupts a valid path means that interrupting and abandoning the current path under trigger, and runs another path directly, which is similar as Interrupt priority of function..
Steps as below: 1. Firstly, configure required homing and path, it can be set through controller/PLC software after power-on , or through Leadshine PC software; 2. Enable drive; 3. Write corresponding command to the 0x6002 to realize the selection and startup of each action.
Page 50
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual The position & velocity& homing and so on are achieved through one data frame. This method uses PR0 to implement, which has 8 data, the last parameter Pr9.07 is mapped to Pr8.02, writing value 0x10 to it will trigger PR0 motion immediately, thus realizing the immediate trigger operation.
CABLE-PC-1 Pin Definition It is recommended that users order this cable directly from Leadshine, not to make it yourself (2) USB to RS232 converter, sometimes it needs to manually install the drive program. (3) COM port selection, as shown in the figure below, the communication port is COM3: (4) Connect tuning software Select COM3, do not select baud rate and device number, keep the default settings.
Page 52
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual (5) Basic parameter setting (6) Input and output function and polarity setting - 45 -...
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Note: After setting the parameters, click "OK". Then, in the parameter management window, click the Save button to prevent the parameter values from being lost after the drive is powered off. 6.1.2 Operation of Trial Run Trial run lets the motor to achieve forward and reverse rotation, or repeat motion.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 6.1.3 Operation of PR Function (1) This window can set the CTGR trigger and Homing parameters of PR motion: (2) This window is the PR path parameter setting, including operation mode, target position, speed value, etc. Double click to modify parameters.
Page 55
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual After the setting is completed, please click to download and save, as follows (3) Manually run the PR path As shown in the figure below, the default is the motion parameter of PR0. As long as click Start, the motor will run according to the path of PR0.
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 6.2 Basic Operation of Serial Port Tools Software This is to control the motor through RS485 communication, user can realize the movement of the motor by sending commands to the corresponding registers. 6.2.1 Preparation and Steps (1) RS485 tuning cable RS458 to USB (User-provided)
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual (4) Connect tuning software Select COM3, select the same baud rate as the drive settings. After clicking connect. 6.2.2 Operation Instruction Format Data format: Here is an example of setting the PR0 path: (Data is in hexadecimal) Slave Function Code Register Address...
Page 58
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 01 06 62 02 0D 40 32 D2 Set PR0 position low 01 06 62 03 02 58 66 E8 Set PR0 speed value 01 06 62 04 00 32 56 66 Set PR0 acceleration 01 06 62 05...
1. Modbus RTU Parameters The Leadshine RS485 parameter data type is 32-bit data, and a parameter contains two registers, high 16 bits and low 16 bits, but in practice most parameters only need to use the low 16 bits. When reading and writing multiple parameters in succession, the high 16 bits of the parameter need to be used as the start.
Page 60
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual 0x0167 Pr4.19 0-1500 Delay of brake released Keep default normally 0x0169 Pr4.20 0-1500 Delay of brake locked Keep default normally Threshold value of brake 0x016B Pr4.21 0-500 Keep default normally locking velocity Bit setting: =1: Yes;...
Page 61
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Read only: Bit NO. Read value =1 means Bit0 Fault Bit1 Enable Bit2 Running 0x1003 Motion status Bit4 Command completed Bit5 Path completed Bit6 Homing completed Write value Function 0x1111 Reset current alarm 0x1122 Reset history alarm...
Page 62
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Pr8.15 0x600F Homing high velocity The 1 segment velocity of homing, unit: rpm Pr8.16 0x6010 Homing low velocity The 2 segment velocity of homing, unit: rpm Pr8.17 0x6011 Homing Acc Acc of homing, unit: ms/1000rpm Pr8.18 0x6012...
Page 63
CS2RS Series Modbus RS485 Closed Loop Stepper Drive User Manual Pr9.03 0x6203 velocity Unit: rpm Pr9.04 0x6204 Unit: ms/1000rpm Pr9.05 0x6205 Unit: ms/1000rpm Pr9.06 0x6206 Pause time Pause time after the command is stopped Pr9.07 0x6207 Special parameter PR Path 0 maps directly to Pr8.02, Others are reserved Pr9.08 0x6208 Motion of Path 1...