300_600SerialCommunication
300_600SerialCommunication
www.DanaherMotion.com
Message Control
Requirements
The SERVOSTAR and the host must use the same format for serial data. When setting up a host for
serial transmission, you must consider the type of duplex transmission, the number of bits per character,
whether to use a parity check, the number of stop and start bits, and the baud rate. To properly
communicate with either the SERVOSTAR 600 or 300, the drive parameters corresponding to the
previously mentioned transmission issues must configure to:
• Full-duplex
• 8 bits per character
• No parity
• One Start bit
• BAUD rates supported: 9,600 (S600)
38,400 (S300)
• Hardware supported: RS-232
Addressing
The SERVOSTAR 600 and 300 support serial communication from a PC or PLC to one drive through an
RS-232 cable. To communicate, connect the PC to S600 Connector X6 (RS232 pins). See the Installation
Manual for either the S600 or S300 for full details on pin-out wiring.
The SERVOSTAR 600 only supports serial communication to multiple S600 drives through one serial
connection to the first drive and then uses the CAN link to transfer the serial communication to other
axes. This is accomplished by connecting the PC to the first drive using connector X6 (RS232 pins).
Then, connecting additional drives using the connector X6 CANOPEN connections on each drive.
CAN
RS232
Multi-drop communications – S600 only
When more than 1 drive is used, the ASCII command, , looks for the connected drives in
combination with RS-232 and CAN applications.
Example
Three S600 are connected together. Drive 1 connects to the PC through RS-232. Drive 1 connects to
drive 2 through the CAN connection. Drive 2 connects to drive 3 through the CAN connection.
• DRIVE1 has ADDR= 1
• DRIVE2 has ADDR= 2
• DRIVE3 has ADDR= 5
The command, , gives back the address of each additional drive to the first.
Using A Terminal Emulator
It is possible to communicate to one or more drives (but only one at a time) using a terminal emulator
program, such as HINT or HYPERTERMINAL.
The SERVOSTAR 600 or 300 cannot be configured for RS-485 communication with the
host.
NOTE
Data Control
The SERVOSTAR 600 is capable of processing about 1 character each 1 ms (assuming 9600 baud rate).
The operating system obeys backspaces and resets upon receipt of an character. The
command allows the user to configure communication responses between drive and host:
: enables/disables the serial prompt (- - >). This feature indicates to the host that the drive is
ready for instruction.
PROMPT 0 = no character response to the host.
PROMPT 1 = character by character response to the host
PROMPT 2 = reserved
PROMPT 3 = character by character response with checksum.
Example: PROMPT= 3
All characters of a command are added by modulo 256. This checksum is transmitted as a two digit Hex
number at the end of the command.
Command: ADDR 1
Checksum: A = 0x41 (H)
D = 0x44 (H)
D = 0x44 (H)
R = 0x52 (H)
<Sp>= 0x20 (H)
1= 0x31 (H)
Total: 0x16c (H)
Checksum
Message Message
Start
Unit Termination
This diagram shows that the drive also accepts (and ignores) a message termination sent without any
additional information and that the checksum is optional (only valid in Safety Level 3).
Message Unit
The term, message unit, refers to a block of information being transmitted on the communication
medium. In general, message units are composed of a mnemonic and one or more optional parameters.
The SERVOSTAR 600 or 300 can only receive a single message unit in a message format. The basic
message unit can be shown by the following diagram.
Message
Unit
SP
Mnemonic Parameter
=
SP
When parameters are used, they are separated from the mnemonic by either a space or an assignment
operator. Multiple parameters within one mnemonic must be separated by spaces.
Termination CR
Drive
Message
CR LF
Termination
Complete Format
The general message format is shown by the following diagram.
SP
General Information
The following specifications, special character protocol, and summary provide the information needed to
understand the command issuing section that follows.
SPECIFICATIONS
Communication Port: RS-232C
Baud Rate: 9600 BPS - S600
38,400 BPS - S300
Cable Length: 15 Meters Maximum (~50 feet)
Data Type: Data (8) + Stop (1)
Parity: None
Handshake: None
Character: ASCII code
Data Error Check: Checksum (optional with PROMPT=3)
CONTROL CODE DEFINITIONS
Name Symbol Control Hex Decimal
Bell <Bell> ^G 07h 7
Line Feed <Lf> ^J 0Ah 10
Carriage Return <Cr> ^M 0Dh 13
Space <Sp> -- 20h 32
Ack Message <Ack> ^F 06h 6
Nak Message <Nak> ^U 15h 21
DELAY <Dly> -- -- --
Error Message <ErrMsg> -- -- --
Error Number <##> -- -- --
Communication Summary
Drive-to-Terminal Terminal-to-Drive Protocol Flags (parameters)
Transmission Transmission
- echoes characters - commands ACKMODE
- transmit prompt - parameter values MSG
- Ack/Nak messages - parameter queries
- parameter values
- error/fault messages
PARAMETER R/O
EXAMPLE 1-READ MAXIMUM SYSTEM CURRENT (IPEAK) Example Value: 5
Sequence # 1 2 3 4 5 6 7
User Enters: I P E A
Drive Returns: I P E
Sequence # 8 9 10 11 12 13 14
User Enters: K <Cr>
Drive Returns: A K <Cr> <Lf> <Dly>
Sequence # 15 16 17 18
User Enters:
Drive Returns: 5 <Cr> <Lf> - - >
PARAMETER R/W
EXAMPLE 2: WRITE ACCELERATION (ACC) Example Value: 50000
Sequence # 1 2 3 4 5 6 7
User Enters: A C C =
Drive Returns: A C C
Sequence # 8 9 10 11 12 13 14
User Enters: 5 0 0
Drive Returns: = 5 0 0
Sequence # 15 16 17 18 19 20 21
User Enters: 0 0 <Cr>
Drive Returns: 0 0 <Cr> <Lf>
Sequence # 22 23 24 25
User Enters:
Drive Returns: <Dly> - - >
These commandsnormally have a longer delay because of the amount of data output to
NOTE the screen.
Sequence # 1 2 3 4 5 6 7
User Enters: D U M P
Drive Returns: D U M
Sequence # 8 9 10 11 12 13 14
User Enters: <Cr>
Drive Returns: P <Cr> <Lf> <Dly> <VAR1> <VAL1>
Sequence # 15 16 17 18 19 20 21
User Enters:
Drive Returns: <Cr> <Lf> <VAR2> <VAL2> <Cr> <Lf> <VARn>
Sequence # 22 23 24 25 26 27
User Enters:
Drive Returns: <VALn> <Cr> <Lf> - - >
COMMANDS (R/W)
EXAMPLE 4- EN Command
Sequence # 1 2 3 4 5 6 7
User Enters: E N <Cr>
Drive E N <Cr> <Lf>
Returns:
Sequence # 8 9 10 11
User Enters:
Drive <Dly> - - >
Returns:
Sequence # 8 9 10 11 12 13 14
User Enters: T E <Cr>
Drive O T E <Cr>
Returns:
Sequence # 15 16 17 18 19 20 21
User Enters:
Drive <Lf> <Dly> 0 <Cr> <Lf> - -
Returns:
Sequence # 22
User Enters:
Drive >
Returns:
STRING VALUES
EXAMPLE 8: LDUMP
Sequence # 1 2 3 4 5 6 7
User Enters: L D U M
Drive L D U
Returns:
Sequence # 8 9 10 11 12 13 14
User Enters: P <Cr>
Drive M P <Cr> <Lf> <Dly>-
Returns:
Sequence # 15 16 17 18 19 20
User Enters:
Drive <MOTOR> <Cr> <Lf> - - >
Returns:
The last two characters of the hex value sum is entered by the user before the carriage
NOTE return.
The first character of checksum: D(H)+ 30(H) = 3D(H) or “=” ASCII character
The second character of checksum: F(H) + 30(H) = 3F(H) or “?” ASCII character
The command with checksum is: ACC 25001=?
Sequence # 1 2 3 4 5 6 7
User Enters: A C C <sp>
Drive A C C
Returns:
Sequence # 8 9 10 11 12 13 14
User Enters: 2 5 0
Drive Returns: <sp> 2 5 0
Sequence # 15 16 17 18 19 20 21
User Enters: 0 0 0 =
Drive Returns: 0 0 0
Sequence # 22 23 24 25 26 27 28
User Enters: ? <Cr>
Drive Returns: = ? <Dly>
Sequence # 29 30 31 32
User Enters:
Drive Returns: <ACK> - - >
EXAMPLE 1 - \ Command
A value other than 0, puts the system in Multidrop Mode and changes the prompt.
Sequence # 1 2 3 4 5 6 7
User Enters: \ 3 <Cr>
Drive \ 3 <Cr> <Lf>
Returns:
Sequence # 8 9 10 11
User Enters:
Drive Returns: <Dly> - - >
Sequence # 8 9 10 11 12 13 14
User Enters: <Cr>
Drive Returns: X <Cr> <Lf> 50000 <Cr> <Lf>
Sequence # 15 16 17 18
User Enters:
Drive Returns: <Dly> - - >
< > is a condition in which there is no response from the drive or there is a
NOTE misconnection among the wires.
Sequence # 1 2 3 4 5 6 7
User Enters: <Trip>
Drive Returns: <Dly> <Cr> <Lf> <Bell> ERR <Sp>
Sequence # 8 9 10 11 12 13 14
User Enters:
Drive Returns: <##> <Sp> <ErrMsg> <Cr> <Lf> - -
Sequence # 15
User Enters:
Drive Returns: >
Parameter Definitions
ADDR
Drive Address. The entry is the station address (1...63) of the amplifier. This
number is required by the fieldbus (CANopen, PROFIBUS DP, SERCOS, etc.)
and for the parameter setting of the servo amplifier in multi-axis systems for an
unambiguous identification of the servo amplifier within the system. You can
also use the keys on the front panel of the servo amplifier to set the station
address (see Installation Manual).
Standard Parameter (Read / Write) -
0 to 63 Serial No. & 0x1F
All -
ERRCODE[*]
Activated Fault Messages (1 Number). This parameter returns an error code
(corresponds to error displays Exx in the front-panel LED display) and a brief
description of the error for any active errors in the servo amplifier.
Command -
0 to 0xFFFFFFFF (1 Bit is 1 Fault) -
All -
MSG
Enable / Disable All Messages. This flag enables the sending of messages from
the drive to the serial port:
If 2 is set, execution of the individual initialization steps is signaled through
the serial interface when the amplifier is switched on (initialization phase). This
setting should only be used for test purposes (e.g. during commissioning).
Since the drive setup software Drive.exe only works with 1, the 2
setting can only be implemented with the help of a terminal program (not in the
terminal window of the operating program).
Switch Parameter (Read / Write) -
0-2 0
All -
PROMPT
Prompt Enable. This parameter configures the serial port prompt put out by the drive:
0 – no character response or prompt to the host
1 – character response and prompt to the host
2 – reserved
3 – character response, prompt, and checksum to the host
Customer Support
Danaher Motion products are available world-wide through an extensive authorized distributor
network. These distributors offer literature, technical assistance, and a wide range of models off
the shelf for the fastest possible delivery. Danaher Motion sales engineers are conveniently
located to provide prompt attention to customer needs. Call the nearest office for ordering and
application information and assistance or for the address of the closest authorized distributor. If
you do not know who your sales representative is, contact us at:
Danaher Motion
203A West Rock Road
Radford, VA 24141 USA
Phone: 1-540-633-3400
Fax: 1-540-639-4162
Email: [email protected]
Website: www.DanaherMotion.com