background image

COMPAX-M/S - RS485 - Option

2

Table of contents

1. Description of the RS485-interface ..............................2
2. RS485-Bus ...................................................................3

2.1 Bus wiring .............................................................3

2.1.1 RS485 master at option F5..........................3
2.1.2 Via RS232-converter and option F1 - ..........4
2.1.3 Position plan of the cables...........................5

3. Device settings.............................................................6

3.1 Device address.....................................................6
3.2 Baud rate ..............................................................6
3.3 RS485 operating mode.........................................6

3.3.1 Adjustment of operation mode at ASCII -

transmission .................................................6

3.3.2 Adjustment of field-bus protocol by option F56
3.3.3 Block-Check Character (BCC).....................6
3.3.4 Timeout monitoring ......................................6

4. Transmission protocol ..................................................7

4.1 Frame format for transmitting from PC to

COMPAX ..............................................................7

4.2 Meaning of the various trans-mission elements ...7
4.3 Frame format of the COMPAX response .............7
4.4 Binary data transmission via RS485 ....................8

4.4.1 Meaning of the binary command code.........8

4.5 Program examples ...............................................9

4.5.1 BASIC program with BCC............................9
4.5.2 BASIC program without BCC.....................10

5. Parameters for the RS485 interface...........................11
6. Special error messages relating to the RS485 interface11

This documentation applies to the following devices:

!

COMPAX 25XXS with option F1 or F5

!

COMPAX 45XXS with option F1 or F5

!

COMPAX 85XXS with option F1 or F5

!

COMPAX P1XXM with option F1, or F5 without option N1

!

COMPAX 02XXM with option F1 or F5

!

COMPAX 05XXM with option F1 or F5

!

COMPAX 15XXM with option F1 or F5

"XX": 

any version number

"F1/F5": RS485 option
"N1":

single-phase supply (not possible in combination
with F1)

Key to device designation:

e.g.: COMPAX 0260M:

COMPAX: Name
02: rated power class
60: version, e.g. "00" = standard device
M: device type where "M" = multi-axes device and

"S" = single-axis device

HAUSER-name-plate

The name-plate is located on the top of the device and
comprises:

1.  Description of the RS485-

interface

You can, via the RS232 interface of a industrial computer
and an RS232-RS485 bus converter, communicate with up
to 31 COMPAX devices. The following functions are
supported:

!

direct command input and execution in on-line mode,

!

reading out status values,

!

reading and writing program blocks (full command set
available),

!

reading and writing parameters, and

!

transmission of control statements.

Interface parameter of the ASCII protocol:

Interface:

F1: 4 wire for RS232-master

via RS232/RS485 -
converter.

F5: 2 wire - RS485

Baud rate:

150 up to 115200, set by
parameter P195

Maximum line
length:

1,2 kilometers

Devices on bus:

up to 31 COMPAX devices can be
connected

Address:

set by parameter P194

Character length:

8 bits

Start bit:

1 bit

Stop bit:

1 bit

Parity:

none / even / odd, set by
parameter P196

Hardware
handshake:

no

Software
handshake:

XON/XOFF, set by parameter
P196

Timeout monitoring

can be activated, by parameter
P196

Block-Check
Character (BCC)

can be activated, improves
transmission reliability

Input buffer:

command string, maximum 40
characters

Output buffer:

status string, maximum 40
characters

Data format:

ASCII, except for BCC

End-of-text
character (ETX):

CR: carriage return (0D hex)

Содержание Hauser COMPAX 25 S F1 Series

Страница 1: ...re versions V1 20 September 97 W e a u t o m a t e m o t i o n DIN EN ISO 9001 C E R T I F I E D Q U A L I T Y S Y S T E M Reg Nr 36 38 Parker Hannifin GmbH EMD HAUSER Robert Bosch Str 22 D 77656 Offenburg Germany Phone 49 0 781 509 0 Fax 49 0 781 509 176 http www parker emd com Parker Hannifin plc EMD Digiplan 21 Balena Close Poole Dorset BH17 7DX UK Phone 44 0 1202 69 9000 Fax 44 0 1202 69 5750 ...

Страница 2: ...e supply not possible in combination with F1 Key to device designation e g COMPAX 0260M COMPAX Name 02 rated power class 60 version e g 00 standard device M device type where M multi axes device and S single axis device HAUSER name plate The name plate is located on the top of the device and comprises 1 Description of the RS485 interface You can via the RS232 interface of a industrial computer and...

Страница 3: ... u t T e s t Con trol X9 X1 1 Va l ue H AUSE R C O M P A X S Sta tu s N u m b e r X6 X8 X1 0 E nter R ead y Error R S2 3 2 Input O utp u t T e s t Con trol X9 X1 1 Va l ue H AUSE R S ie m e n s S P S S ie m e n s S P S S ie m e n s S P S S ie m e n s S P S X1 X2 24 V GND ERDE RS 485 RS 485 E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 E11 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 E12 E13 E14 E15 E16 E17 E18 E19 E20 E21...

Страница 4: ...SSK13 X6 IN X7 OUT X7 OUT X5 IN X5 IN X7 to further bus subscribers In a system group comprising a number of COMPAX devices and a power module NMD the RS485 signals are transferred over the already existing ribbon cable connections possible connections with SSK13 converter SSU1 power module X6 IN or converter SSU1 COMPAX S X5 IN power module X7 OUT power module X6 IN power module X7 OUT COMPAX S X...

Страница 5: ...6 5 7 8 RxD TxD DTR DSR RTS CTS 9 5V 1 n c 1 5 6 9 1 5 6 9 X6 position plan of the cables SSK13 converter i e COMTAC to power module and power module to power module NMD X7 COMPAX S X7 SSU1 X1 NMD X6 COMPAX S X5 1 6 2 7 case RxD TxD 1 6 2 7 case RxD TxD SSK 13 1 5 6 9 RxD TxD RxD TxD 1 5 6 9 3 3 RS485 GND 5 x 0 25mm shield 2 5 9 9 pin sub D male plug connector casing with UNC4 40 screw connections...

Страница 6: ...vious adjustment P196 164 When using F5 2 wire RS485 Software V1 22 and COMPAX Version V2 0 P196 has to be adjusted to 165 Baudrate At field bus operation 4 different baud rates to be adjusted via P195 are possible 28 800 baud 57 600 baud 172 800 baud 345 600 baud 3 3 3 Block Check Character BCC A byte by byte logical XOR of all characters in a transmission up until but excluding the CR 0D hex is ...

Страница 7: ...is character is appended to a command code the command in question will not be executed immediately it will be stored in the COMPAX buffer No acknow character 2F hex ledgement If this character is appended to a command code COMPAX will not send a reply or acknowledgement Echo character 3F hex If this character is appended to a command code COMPAX will send the received data back in full completing...

Страница 8: ...T Ayy 0 85 4F yy yy 30 MSB LSB valence 1 215 214 22 21 20 OUTPUT Ayy 1 85 4F yy yy 31 MSB LSB transmission order e g 84 4C MSB LSB POSR value OUTPUT Ayy 0 8C 52 xx xx xx xx xx xx 4F yy yy 30 LSB MSB MSB LSB POSR value OUTPUT Ayy 1 8C 52 xx xx xx xx xx xx 4F yy yy 31 LSB MSB MSB LSB POSR value1 SPEED value2 8F 52 xx xx xx xx xx xx 53 xx xx xx xx xx xx LSB MSB LSB MSB 1 Negative numbers Negative num...

Страница 9: ...xt outputs read value to screen END program end output start of subprogram Output bcc 0 bcc is set to 0 FOR a 1 TO LEN text loop performed for each character in text bcc bcc XOR ASC MID text a 1 XOR operation on all characters to bcc NEXT a end of loop PRINT 1 text text is output with concluding CR to 1 PRINT 1 CHR bcc BCC in bcc is output as character without CR to 1 RETURN branch back to main pr...

Страница 10: ...gram Output GOSUB read calls up subprogram Read PRINT text outputs read value to screen text 5S1 device 5 is to be interrogated for status 1 GOSUB output calls up subprogram Output GOSUB read calls up subprogram Read PRINT text outputs read value to screen END program end output start of subprogram Output PRINT 1 text text is output with concluding CR to 1 RETURN branch back to main program read s...

Страница 11: ...on 6 Special error messages relating to the RS485 interface No Cause Measures per cause Ackn Drive disabled E70 Parity error Retransmit characters 1 no E71 COMPAX buffer overflow Retransmit more than 40 characters sent with fewer characters Retransmit with fewer characters 1 no E72 Block Check Character error Retransmit characters 1 no E73 Timeout error Retransmit characters 1 no E74 BUSY error po...

Страница 12: ...COMPAX M S RS485 12 ...

Отзывы: