background image

COMPAX-M/S - RS485 Option

8

4.4  Binary data transmission via RS485

As far as time-critical applications are concerned it is possible to transmit certain commands in the internal COMPAX binary
format. By leaving out the format conversion from ASCII to the binary format, time can be saved; nevertheless, transmission in
the normal ASCII-format is still possible (mixed operation)

At binary data transmission the frame format changes when transmitting from PC to COMPAX:

necessary data

characters that can be added
optionally.

device address
(ASCII-format)
binary command code

block-check-character BCC

!

Please note that the device address will still be
transmitted in ASCII-format!

!

The end-sign may not be sent!

!

The binary format has always to be transmitted
in its whole length!

4.4.1  Meaning of the binary command code

command

binary format (hexadecimal)

number formats

POSA value

88 41 xx xx xx xx xx xx

LSB

MSB

number formats of "xx xx xx xx xx xx"

 

*

 2

3 byte of places behind/ 3 byte of places in front
of the decimal point.

POSR value

88 52 xx xx xx xx xx xx

LSB

MSB

valence:

2

-24 

2

-23 

... 2

-2

 2

-1

 , 2

0

 2

1

 2

2

 ... 2

22

 2

23

SPEED value

88 53 xx xx xx xx xx xx

LSB

MSB

transmission order.e.g.: "88 41 LSB....MSB"

ACCEL value

84 4C yy yy

MSB

LSB

number formats of "yy yy"

ACCEL- value

84 44 yy yy

MSB

LSB

2 byte of places in front of the decimal point.
no places behind the decimal point.

OUTPUT Ayy=0

85 4F yy yy 30

MSB

LSB

valence: *

 1

 2

15 

2

14

 ...  2

2

1

 2

0

.

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

*

Negative numbers

!

 

Negative numbers are shown in a two's complement. -

Formation of a two's complement:

!

 

the bit combination of the positive numerical value has to
be determined.

!

 

the binary value must be negated.

!

 

there has to be added "1".

*

Format transformation

Out of any optional number disposing of places behind the
decimal point, you can generate this format as follows:

example:

 number = 450,5

1. Number to be multiplied by 2

24

450,5* 2

24 

=7558135808.

2. 8388608 to be changed into a hexadecimal number (possibly

change into integer before) => .0x00 01 C2 80 00 00 

 places in

front of the decimal point,
places behind the decimal point 

 MSB,.... LSB, MSB,.... LSB.

3. These bytes have now  to be filled into the command in the indicated

order. The order of bytes is reversed. The order of bits is not allowed
to be reverserd.

This conversion is also valid for negative numbers.

Example for the number format of xx xx xx xx xx xx"

number

MSB

LSB

10

00

00

0A

00

00

00

256

00

01

00

00

00

00

400,5

00

01

C2

80

00

00

-1

FF

FF

FF

00

00

00

places in front of
the decimal point

places behind the
decimal point

For 

POSA 256,0

 you get the following string:

"88 41 00 00 00 00 01 00"

Please note, that all places have to be transmitted

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

Отзывы: