background image

COMPAX-M/S - RS485 Option

6

3. Device settings

The RS485 interface supports a number of functions with selectable settings.  These are set by means of definable parameters.

3.1 Device address

The device address on each COMPAX can be set by means
of parameter P194.
The range is 0:

31, where "0" is the default setting. Before

putting any COMPAX device into operation, an address from
1 to 31 must be set.

3.2 Baud rate

The baud rate on each COMPAX can be set by means of
parameter P195. The range is 150 - 115200 bit/s.

Important: In all devices connected, the same baud

rate must be set.

3.3  RS485 operating mode

3.3.1  Adjustment of operation mode at

ASCII - transmission

to be adjusted via parameter P196

function

adjustment

valence

handshake:

none:
with XON/XOFF

0
1

parity:

none:
with:
odd:
even:

0
2
0
4

block-check-
character:

none:
with:

0
8

time-out-
supervision:

none:
with:

0

16

end-sign of
COMPAX-reply

C

R

 L

F

 >

C

R

0

32

COMPAX - reply

without address
with preceding address
of COMPAX

0

64

The desired adjustment can be carried out by entering the
valence sum into parameter P196.

3.3.2  Adjustment of field-bus protocol by

option F5

In order to be able to communicate with COMTAC, the field-
bus protocol must be adjusted. . For doing this, please set

P196 = 164

.

Reference during an application with COMTAC, field-bus
(option F5) and COMPAX:

Previous 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 sent after the last

character; (CR in the direction from PC to COMPAX, and the

prompt in the direction from COMPAX to IPC). This performs an
additional check on the transmitted data.
If the BCC function has been activated, COMPAX performs a
block check, and reports any detected transmission errors in
the form of error message E72. This error message does not
have to be acknowledged; you simply send the same
message again. If the BCC is error-free, COMPAX
acknowledges the error message itself.

3.3.4 Timeout monitoring

As soon as COMPAX is activated via the assigned address, a
time monitoring check is performed.  For a definite period
(namely the transmission time required for five characters),
COMPAX awaits receipt of the next character.  If COMPAX does
not receive this character, it generates error message E73.
This error message does not have to be acknowledged; you
simply send the same message again.  If transmission is
error-free, COMPAX acknowledges the error message itself.
If the BCC function has been activated, timeout monitoring is
performed up until the BCC, and otherwise right up until the
last character.

Содержание 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 ...

Отзывы: