background image

MCD Modbus Module Instructions 

 

AP ASCII Protocol 

 

MG.17.F5.02 - VLT

® is a registered Danfoss trademark 

11 

10.4.

 

Calculating the Checksum (LRC) 

Each command string sent to and from the starter includes a checksum. The form used is the 
longitudinal redundancy check (LRC) in ASCII hex. This is an 8-bit binary number represented and 
transmitted as two ASCII hexadecimal characters. 

To calculate LRC: 

1.

 

Sum all ASCII bytes 

2.

 

Mod 256 

3.

 

2's complement 

4.

 

ASCII convert 

For example Command String (Start): 
ASCII STX B  1  0 
or 

02h 42h 31h 30h 

ASCII 

Hex 

Binary          

 

STX 02h 

0000 

0010 

B  

42h 

0100 0010 

1  

31h 

0011 0001 

0  

30h 

0011 0000  

 

 A5h 

1010 

0101 

 SUM 

(1) 

   

A5h 

1010 0101 

 

MOD 256 (2) 

 

 5Ah 

0101 

1010 

 1's 

COMPLEMENT 

   

01h 

0000 0001 

 

+ 1 = 

  

5Bh 

0101 1011  

 

2's COMPLEMENT (3) 

ASCII 

5 B   ASCII 

CONVERT 

(4) 

or 35h 

42h 

  LRC 

CHECKSUM 

The complete command string becomes: 

ASCII 

STX 

   B 

ETX 

or 

02h 

   42h  31h 

30h 

35h 

42h 

03h 

To verify a received message containing an LRC: 

1.

 

Convert last two bytes of message from ASCII to binary 

2.

 

Left shift 2

nd

 to last byte four bits 

3.

 

Add to last byte to get binary LRC 

4.

 

Remove last two bytes from message 

5.

 

Add remaining bytes of message 

6.

 

Add binary LRC 

7.

 

Round to one byte 

8.

 

The result should be zero 

Response or status bytes are sent from the starter as an ASCII string: 

STX 

[d1]h [d2]h [d3]h [d4]h LRC1  LRC2  ETX 

d1 = 

30h 

d2 = 

30h 

d3 = 

30h plus upper nibble of status byte right shifted by four binary places 

d4 = 

30h plus lower nibble of status byte 

For example status byte = 1Fh, response is: 

STX 

30h 

  30h 

31h 

46h 

LRC1 

LRC2 

ETX 

 

Summary of Contents for VLT MCD 200

Page 1: ...ion with a Remote Operator This document describes Modbus and AP ASCII messaging and Appendix A describes how to connect the Remote Operator and use it as a Modbus RTU or AP ASCII slave device 2 Insta...

Page 2: ...o accept serial commands a link must be fitted across terminals A1 N2 on MCD 200 Series starters In order for the MCD 500 to accept commands from the serial network the soft starter must be in Auto On...

Page 3: ...ns link between the module and the network LED operation is as follows LED 177HA263 11 Off On Flashing No connection or soft starter not powered up Communication active Communication inactive N B If c...

Page 4: ...Jog forward 9 Jog reverse 4 1 Positive phase sequence only valid if bit 6 1 Always 0 5 1 Current exceeds FLC 6 0 Uninitialised 1 Initialised 7 Always 0 40004 Trip Code Multiple Read See Trip Code tab...

Page 5: ...mplete parameter list The first product parameter is always allocated to register 40009 The last product parameter is allocated to register 40XXX where XXX 008 plus total number of available parameter...

Page 6: ...tantaneous overcurrent 8 Power loss Power circuit 9 Undercurrent 10 Heatsink overtemperature 11 Motor connection 12 Input A trip Auxiliary input A 13 FLC too high FLC out of range 14 Unsupported optio...

Page 7: ...Configuration For standard Modbus 11 bit transmission the Master must be configured for 2 stop bits with No Parity and 1 stop bit for odd or even parity For 10 bit transmission the Master must be conf...

Page 8: ...ister not allowed for data reading 04 Not writable data Register not allowed for data writing 05 Data boundary fault Multiple data transfer across data boundary or data size more than 125 06 Invalid c...

Page 9: ...r nn two byte ASCII number representing the soft starter address where each decimal digit is represented by n lrc two byte longitudinal redundancy check in hexadecimal ccc three byte ASCII command num...

Page 10: ...pped 7 Program mode 4 1 Positive phase rotation only valid if bit 6 1 5 1 Current exceeds FLC 6 0 Uninitialised 1 Initialised 7 0 Communications are OK 1 Communications device fault 10 3 Data Retrieva...

Page 11: ...5Ah 0101 1010 1 s COMPLEMENT 01h 0000 0001 1 5Bh 0101 1011 2 s COMPLEMENT 3 ASCII 5 B ASCII CONVERT 4 or 35h 42h LRC CHECKSUM The complete command string becomes ASCII STX B 1 0 5 B ETX or 02h 42h 31h...

Page 12: ...le This resistance should match the cable impedance typically 120 Do not use wire wound resistors Network Master RS485 Remote Operator RS485 Soft Starter Module RS485 GND B8 B6 B7 B3 B1 B2 68 B8 69 B6...

Page 13: ...parity 5 Timeout No timeout 1 2 3 4 5 6 ON 1 2 3 4 5 6 ON 16 8 4 2 1 0 0 0 0 0 DIP SWITCH A DIP SWITCH B 177HA543 10 1 2 3 4 5 The Remote Operator internal parameters must be set as follows Parameter...

Page 14: ...30 VAC VDC 1 2 POWER SUPPLY The Serial Timeout setting on the MCD 3000 Parameter 24 applies to communications between the Remote Operator and the MCD 3000 See the MCD 3000 Operating Instructions for s...

Page 15: ...op function disable 0 0 Remote Operator and Network start stop quick stop function enabled 1 Remote Operator start stop quick stop function enabled Network start stop quick stop function disabled 2 Re...

Page 16: ...on is restored To clear nEt from the display press the Data Prog pushbutton momentarily or send a Reset command from the network Master SP flashing on display Soft starter is off and being programmed...

Reviews: