background image

27

Rev. A

920-0081

TSM23S/Q Hardware Manual

5.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 Applied Motion Products 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 TSM23S/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 TSM23Q 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.

Содержание TSM23Q series

Страница 1: ...TSM23S Q Integrated Step Servo Motor Hardware Manual Rev A...

Страница 2: ...M23S Q Communications 14 3 2 1 Connecting to the PC using RS 232 14 3 2 2 Connecting to a Host using RS 485 15 3 3 Inputs and Outputs 17 3 3 1 Connector Pin Diagram 17 3 3 2 STEP DIR Digital Inputs 18...

Страница 3: ...0 0081 TSM23S Q Hardware Manual Model Communications RS 232 RS 485 Modbus RTU TSM23S 2AG TSM23S 2RG TSM23S 3AG TSM23S 3RG TSM23S 4AG TSM23S 4RG TSM23Q 2AG TSM23Q 2RG TSM23Q 3AG TSM23Q 3RG TSM23Q 4AG T...

Страница 4: ...L Commanded Velocity Jogging Position Control Digital Signal type Step Direction CW CCW pulse A B Quadrature Analog Position Serial Commanded Position Q Programming Q Verision only Stand alone operati...

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

Страница 6: ...n 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 connect...

Страница 7: ...nnect the 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...

Страница 8: ...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 supply input is 75 VDC...

Страница 9: ...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...

Страница 10: ...que Boost Supply Current Full Load No Load 0 0 5 1 1 5 2 2 5 3 3 5 0 0 5 1 1 5 2 2 5 0 10 20 30 40 50 Torque N m Speed RPS TSM23 3 G 24V Power Amps Continuous Torque Boost Supply Current Full Load No...

Страница 11: ...e Boost Supply Current Full Load No Load 0 0 5 1 1 5 2 2 5 3 3 5 4 4 5 0 1 2 3 4 5 0 10 20 30 40 50 Torque N m Speed RPS TSM23 4 G 48V Power Amps Continuous Torque Boost Supply Current Full Load No Lo...

Страница 12: ...Rev A 920 0081 TSM23S Q Hardware Manual 0 0 5 1 1 5 2 2 5 3 3 5 4 4 5 0 1 2 3 4 5 0 10 20 30 40 50 Torque N m Speed RPS TSM23 4 G 70V Power Amps Continuous Torque Boost Supply Current Full Load No Lo...

Страница 13: ...fuse on the drive and void the warranty Applied Motion Products offers two matched power supplies for use with the TSM23S Q A 24VDC 150W P N PS150A24 and a 48VDC 320W P N PS320A48 These power supplies...

Страница 14: ...l communication types to a PC 3 2 1 Connecting to the PC using RS 232 Locate the TSM23S Q within 1 5 meters of the PC Plug the DB9 connector of the communication cable that came with the drive into th...

Страница 15: ...d 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 receive signals A l...

Страница 16: ...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 soft...

Страница 17: ...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 can be used...

Страница 18: ...or 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 with Sinking...

Страница 19: ...ical 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 but not alw...

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

Страница 21: ...ition 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 the inputs o...

Страница 22: ...t 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 follow Do no...

Страница 23: ...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 2 green...

Страница 24: ...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 Torque N m Speed rps TSM23 4 G 24V 48V 70V 24V 48V 70V Continuous Boost 0 0 3 0 6 0 9 1 2 1 5 0 10 20 30 40 50 Torque N m S...

Страница 25: ...Q Hardware Manual 5 2 Mechanical Outlines Unit mm Model Length L Length M TSM23S Q 2 G 95 6 24 6 TSM23S Q 3 G 117 6 46 6 TSM23S Q 4 G 120 6 49 9 L 1 20 24 7 5 Flat 8 38 1 M 7 4 5 1 56 4 Max 56 4 Max 4...

Страница 26: ...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 quadrature...

Страница 27: ...oftware 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 comm...

Страница 28: ...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 used at any...

Страница 29: ...29 Rev A 920 0081 TSM23S Q Hardware Manual 6 Contacting Applied Motion Products 404 Westridge Dr Watsonville CA 95076 USA 1 800 525 1609 Tel 831 761 6555 Fax 831 761 6544 www applied motion com...

Отзывы: