background image

24

Rev. 1.0

0006302013

TSM24S/Q Hardware Manual

+86-400-820-9661

8.4  SCL Command Reference 

The Serial Command Language (SCL) was developed to give users a simple way to control a 

motor drive via a serial port. This eliminates the need for separate motion controllers or indexers 

to supply Pulse and Direction signals to the drive. It also provides an easy way to interface to a 

variety of other industrial devices such as PLCs and HMIs, which often have standard or optional 

serial ports for communicating to other devices. Some examples of typical host devices might be:

• 

A Windows based PC running MOONS’ software

• 

An industrial PC running a custom or other proprietary software application

• 

A PLC with an ASCII module/serial port for sending text strings

• 

An HMI with a serial connection for sending text strings

SCL commands control the motion of the step motor, use of the inputs and outputs, and configure 

aspects of the drive such as motor current and microstep resolution.

In SCL mode, the TSM24S/Q  receives commands from the host, executing them immediately or 

sending them to a command buffer and then executing them directly from the buffer. It cannot, 

however, create a stored program for stand-alone operation. For that function, the TSM24Q is 

needed.

The communications protocol of SCL is simple in that the host initiates all communication, with one 

exception. The only time the drive will initiate communication is at power-up. At that time, the drive 

will send an identifier to tell the software which drive is connected and what the firmware version 

is. 

There are two types of SCL commands: buffered and immediate. Buffered commands are loaded 

into and then executed out of the drive’s command buffer. Buffered commands are executed 

one at a time and in sequential order. The buffer can be filled with commands without the host 

controller needing to wait for a specific command to execute before sending the next command. 

Special buffer commands enable the buffer to be loaded and to pause for a desired time.

Immediate commands are not buffered, but are executed immediately, running in parallel with a 

buffered command if necessary. Immediate commands are designed to access the drive at any 

time and can be sent as often as needed. This allows a host controller to get information from the 

drive at a high rate, most often for checking drive status or motor position.

The basic structure of a command packet from the host to the drive is always a text string followed 

by a carriage return. The text string is composed of the command itself, followed by any required 

parameters. A carriage return denotes the end of transmission to the drive.

The syntax of the command is

XXAB<cr>

where 

XX

 designates the command (always composed of 2 uppercase letters), and 

A

 and 

B

 

define the possible parameters. These parameters can vary in length, can be letters or numbers, 

and are often optional. Once a drive receives the 

<cr>

 (carriage return), it will determine whether 

or not it understood the command-if it did, it will either execute or buffer the command. The drive 

can also be programmed ahead of time to send a response as to whether or not it understood the 

command as well as any error code.

Содержание TSM24S/Q

Страница 1: ...TSM24S Q Integrated Step Servo Motor Hardware Manual Rev 1 0 AMP MOONS Automation...

Страница 2: ...Supply 10 3 2 Connecting the TSM24S Q Communications 11 3 2 1 Connecting to the PC using RS 232 11 3 2 2 Connecting to a Host using RS 485 12 3 3 Inputs and Outputs 14 3 3 1 Connector Pin Diagram 14 3...

Страница 3: ...ntrol Digital input Control Velocity Analog velocity SCL Commanded Velocity Jogging Position Control Digital Signal type Step Direction CW CCW pulse A B Quadrature Analog Position Serial Commanded Pos...

Страница 4: ...0 VDC External Power Supply Voltage Temp Detect Over Current Detect motor encoder 5 Volt DC Power Supply DSP Driver Controller 3 3VDC Internal Logic Supply TSM24S Q I O Connector 5VDC 100mA max GND St...

Страница 5: ...in injury and damage to persons and machinery All technical information concerning the installation requirements must be strictly adhered to It is vital to ensure that all system components are connec...

Страница 6: ...e drive to the PC using the programming cable When using RS 485 it must be setup in a 4 Wire configuration see Connecting to a host using RS 485 below Connect the drive to the power supply See instruc...

Страница 7: ...reliable operation Absolute minimum power supply input is 10 VDC If the Input supply drops below 10 VDC the low voltage alarm will be triggered This will not fault the drive Absolute maximum power su...

Страница 8: ...the less current will be required from the power supply It is important to note that the current draw is significantly different at higher speeds depending on the torque load to the motor Estimating h...

Страница 9: ...3 TSM24S Q Hardware Manual 86 400 820 9661 0 0 5 1 1 5 2 2 5 3 3 5 4 4 5 5 0 0 5 1 1 5 2 2 5 3 3 5 0 10 20 30 40 50 Torque N m Speed RPS TSM24 3 G 70V Power Amps Continuous Torque Boost Supply Current...

Страница 10: ...open the internal fuse on the drive and void the warranty MOONS offers two matched power supplies for use with the TSM24S Q A 24VDC 150W P N MF150A24AG V and a 48VDC 320W P N MF320A48AG V These power...

Страница 11: ...both of these serial communication types to a PC 3 2 1 Connecting to the PC using RS 232 Locate the TSM24S Q within 1 5 meters of the PC Plug the DB9 connector of the communication cable that came wi...

Страница 12: ...eparate transmit and receive wires One pair of wires must connect the host s transmit signals to each drive s RX and RX terminals The other pair connects the drive s TX and TX terminals to the host s...

Страница 13: ...will need to connect individually to the host computer so that it can be assigned a unique address Once the drive has been connected to the PC as described above launch the Step Servo Quick Tuner sof...

Страница 14: ...being used for the Step Direction function these inputs can be used for CW CCW step start stop direction oscillator mode or general purpose input X3 X4 are low speed software programmable input and ca...

Страница 15: ...ed to Sensor FS Seek Home SH and other SCL or Q commands The diagrams below show how to connect the STEP DIR Inputs to various commonly used devices 5v to 24v out DIR STEP DIR DIR STEP STEP Indexer wi...

Страница 16: ...or mechanical switches you will need a 5 24 V power supply What is COM Common is an electronics term for an electrical connection to a common voltage Sometimes common means the same thing as ground b...

Страница 17: ...re to set the signal range offset dead band and filter frequency The TSM24S Q provides a 5 volt 100mA limit voltage supply that can be used to power external devices such as potentiometers It is not t...

Страница 18: ...is in position dynamic Y3 can be set to control a motor brake These outputs can also be turned on and off by program instructions like Set Output SO The output can be used to drive LEDs relays and th...

Страница 19: ...e an output frequency proportional to motor speed tach signal or to provide a timing output 50 pulses rev or to indicate whether the motor is in position static Diagrams of various connection types fo...

Страница 20: ...his and which warnings may be masked Code Error Solid green no alarm motor disabled Flashing green no alarm motor enabled 1 red 1 green motor stall optional encoder only 2 red 1 green ccw limit 2 red...

Страница 21: ...S Q Hardware Manual 86 400 820 9661 5 Reference Materials 5 1 Mechanical Outlines 9 5 Flat 8 58 1 38 1 20 24 129 1 1 90 77 47 14 60 5 Max 47 14 60 5 Max 4 4 5 50 9 10 1 5 Unit mm Model Length L Length...

Страница 22: ...djustable bandwidth digital noise rejection filter on all inputs X1 X2 Optically isolated 5 24 volt Minimum pulse width 250 ns Maximum pulse frequency 2 MHz Function Pulse Direction CW CCW Pulse A B q...

Страница 23: ...0 9661 8 3 Torque Speed Curves Note all torque curves were measured at 20 000 steps rev Note 5 amp rating is continuous 7 5 amp rating is boost 0 0 5 1 1 5 2 2 5 3 3 5 0 10 20 30 40 50 Continuous Boos...

Страница 24: ...software which drive is connected and what the firmware version is There are two types of SCL commands buffered and immediate Buffered commands are loaded into and then executed out of the drive s com...

Страница 25: ...e that will adjust a drive s serial communications protocol to best fit an application Typically this command is used when configuring a drive and saved as part of the startup parameters But it can be...

Страница 26: ...Beijing Branch Office Room 202 Unit 2 7th Building Huilongsen International Science Technology Industry Park No 99 Kechuang 14th Street Beijing 101111 P R China Tel 86 0 10 59755578 Fax 86 0 10 597555...

Отзывы: