MCD MCD Modbus Module

MCD Modbus Module MCD Modbus Module MCD Modbus Module INSTALLATION INSTRUCTIONS MCD MODBUS MODULE Order Code: 175G9000 Introduction MCD 3000 and MCD...
Author: Bridget Atkins
13 downloads 0 Views 253KB Size
MCD Modbus Module MCD Modbus Module MCD Modbus Module

INSTALLATION INSTRUCTIONS MCD MODBUS MODULE Order Code: 175G9000

Introduction MCD 3000 and MCD 200 Series soft starters can be controlled and monitored across an RS485 serial communication network using the Modbus RTU and AP ASCII protocols. For users requiring simple control of an MCD 200 soft starter using Modbus RTU or AP ASCII, the instructions below describe the installation and operation of the Modbus Module.

Remove the Modbus Module using the following procedure: 1. Remove power from the module. 2. Remove control power and mains supply from the soft starter. 3. Push a small flat-bladed screwdriver into the slots at the top and bottom of the module and depress the retaining clips. 4. Pull the module away from the soft starter.

MCD 200 starters can also connect to the network via a correctly configured Remote Operator - see Appendix A for details.

177HA378.10

MCD 3000 soft starters have AP ASCII protocol support built in - see the MCD 3000 Operating Instructions for details of message formats. The MCD 3000 supports Modbus RTU control when used in conjunction with a Remote Operator. This document describes Modbus messaging and Appendix A describes how to connect the Remote Operator.

CAUTION Remove control power and mains supply from the soft starter before attaching or removing accessories. Failure to do so may damage the equipment.

Installation Install the Modbus Module using the following procedure: 1. 2. 3.

Remove control power and mains supply from the soft starter. Attach the Modbus Module to the starter as shown. Apply control power to the soft starter.

Adjustment Network communication parameters must be set on the Modbus Module.

ON

177HA261.10

1 2 3 4 5 6

Baud Rate

AP ASCII

RTU

OFF

ON

Example: Address = 24

Address

ON

DIP SWITCH B

1 2 3 4 5 6

DIP SWITCH A

Protocol +16

0

+16

0

+8

0

+8

0

+4

0

+4

0

+2

0

+2

0

+1

0

+1

ON

Parity Timeout (seconds)

0

ON

4800

9600

19200

OFF

OFF

ON

ON

OFF

ON

OFF

ON

No Parity

ODD

EVEN

10 bit

OFF

OFF

ON

ON

OFF

ON

OFF

ON

10 s

60 s

100 s

No Time Out

38400

OFF

OFF

ON

ON

OFF

ON

OFF

ON

177HA262.11

35 mm (1.38 inches)

MG.17.F4.02 - VLT is a registered Danfoss trademark

1

Connection

Modbus Register A1

177HA326.11

MCD 200

Register Type Address 40002 Write Command

N2 MODBUS MODULE RS485 SERIAL PORT + GND B8 B7 B6

40003 Starter status

Read

40004 Trip code

Read

40005 Current 40006 Temperature 40007 Product type and version

Read

N.B.!: For the Modbus Module to operate correctly, a link must be fitted across terminals A1-N2 on the starter.

Network Status LED

177HA263.10

MCD Modbus Module

MCD Modbus Module

LED

The Network Status LED indicates the state of the communications link between the module and the network. LED operation is as follows: Off No connection

On Network active

Flashing Network inactive

N.B.!: If the network is inactive, the soft starter may trip if the Communications Timeout function has been set on the module. When communication is restored, the MCD 200 will require an individual Reset.

2

Description 1 = Start 2 = Stop 3 = Reset 4 = Quick stop 5 = Forced communication trip Bit Description 0 to 3 1 = Ready 2 = Starting 3 = Running 4 = Stopping 5 = Restart delay 6 = Tripped 7 = Programming mode 4 1 = Forward phase rotation 5 1 = Current exceeds FLC 6 0 = Uninitialised 1 = Initialised (Bit 4 is only valid if Bit 6 = 1) 0 = Remote Operator status 7 OK 1 = Remote Operator fault 255 = No trip 0 = Shorted SCR 1 = Excess start time 2 = Motor overload 3 = Motor thermistor 4 = Phase imbalance 5 = Supply frequency 6 = Phase rotation 7 = Instantaneous overcurrent 8 = Power circuit fault 9 = Undercurrent 10 = Starter overtemperature 11 = Motor connection error 13 = FLC range error 15 = Communication failure between starter and module 16 = Communication failure between module and network 33 = Bypass overload

Read

Read

Bit 0 to 2 3 to 7

Description Parameter list version 1 = MCD 3000 4 = MCD 200

MG.17.F4.02 - VLT is a registered Danfoss trademark

MCD Modbus Module

• 06 (Single Write) MCD 3000 and MCD 200 Series soft starters do not support broadcast functions. N.B.!: Command, Starter Status, Trip Code, Motor Current, Motor Temperature, Product Type/Version, RS485 Protocol Version and Parameter Upload must be sent individually (i.e. one data word request at a time).

CRC

Function Code

Data

Starter Address

Register Address

Message

40002 40002

1 1

CRC1, CRC2 CRC1, CRC2

40003 2

1 CRC1, CRC2 xxxx0011 CRC1, CRC2

CRC

Data

03 03

Register Address

20 20

Function Code

Messag e Starter Address In Out

03 03

40004 2

1 CRC1, CRC2 00000010 CRC1, CRC2

1 350

CRC1, CRC2 CRC1, CRC2

40025 40025

CRC

Data 3 3

CRC1, CRC2 CRC1, CRC2

Modbus Error Codes Code 01 02 03 04 05

07 08

10

Description Illegal function code Illegal data address Not readable data

Example Function other than 03 or 06 Not in range 40002 to 40255 Register not allowed for data reading Register not allowed for data Not writable data writing Data boundary fault Multiple data transfer across data boundary, or data size more than 127 Invalid command Writing "6" into 40002 code Illegal parameter Invalid parameter number read Illegal parameter Invalid parameter number, write read only, or hidden parameter Unsupported Writing parameter with starter command running (not applicable for MCD 200 Series) Local Communication error communication between Modbus slave and error starter

N.B.!: Some of the above codes are different from those defined in the Modbus Application Protocol Specification available on www.modbus.org.

CRC

Function Code

20 20

Data

Starter Address

In Out

Register Address

Message

Trip Code: Motor Overload

Register Address

06 03

09

Starter Status: Running

CRC

Function Code

20 20

06

06 06

Data

Starter Address

In Out

Command: Start

20 20

40011 2

Upload parameter to starter (MCD 3000 only) Write Parameter 17, Soft Stop Profile, set = 3

Least significant bit is transmitted first.

In Out

Register Address

Message

03 03

Function Code

• 03 (Multiple Read)

20 20

Starter Address

MCD 3000 and MCD 200 Series soft starters support two functions:

In Out

Message

Modbus Hex Functions

Download parameter from starter (MCD 3000 only) Read Parameter 3, Initial Current, 350%

MG.17.F4.02 - VLT is a registered Danfoss trademark

3

MCD Modbus Module MCD Modbus Module

Read RS485 protocol version 40008 RS485 Protocol version 40009 to Multiple Upload or download parameters 40061 read or from the starter (see MCD 3000 single Operating Instructions for details) Starter parameters write 1 to 53 Only available on MCD 202 and MCD 3000 units. Only available on MCD 3000 units Only available on MCD 202 units.

This section describes AP ASCII communications with MCD 200 soft starters. For details of AP ASCII message formats for MCD 3000 soft starters, see the MCD 3000 Operating Instructions. The message fragments used in communicating with the MCD 200 are shown below. The message fragments may be assembled into complete messages as described in the sections that follow.

N.B.!: Data transmitted to and from the Modbus Module must be in 8 bit ASCII, no parity, 1 stop bit. Message ASCII Character String or Fragment Type (Hexadecimal Character String) Send address EOT [nn] [lrc] ENQ or (04h [nn] [lrc] 05h) Send command STX Send request (02h Receive data STX

[lrc] [lrc]

ETX or 03h)

[dddd] [lrc] [dddd] [lrc]

ETX or 03h)

STX [ssss] [lrc] (02h [ssss] [lrc] ACK or (06h) NAK or (15h) BEL or (07h)

ETX or 03h)

(02h Receive status ACK (acknowledge) NAK (negative acknowledge) ERR (error)

[ccc] [ccc]

two byte ASCII number representing the soft starter address where each decimal digit is represented by n. two byte longitudinal redundancy check in lrc = hexadecimal. ccc = three byte ASCII command number where each character is represented by c. dddd = four byte ASCII number representing the current or temperature data where each decimal digit is represented by d. ssss = four byte ASCII number. The first two bytes are ASCII zero. The last two bytes represent the nibbles of a single byte of status data in hexadecimal.

Commands Commands can be sent to the soft starter using the following format: Send Address

ACK

Possible error responses

= Master

Command Start Stop Reset Coast to stop

ACK NAK

Invalid LRC

= Slave (MCD)

ASCII B10 B12 B14 B16

Forced communication trip

B18

Comment Initiates a start Initiates a stop Resets a trip state Initiates an immediate removal of voltage from the motor. Any soft stop settings are ignored. Causes a communications trip

Status Retrieval Soft starter status can be retrieved using the following format: Send Address

ACK

Send Request

Possible error responses

= Master

nn =

4

Send Command

Request Trip code

ASCII C18

Receive Status NAK

Invalid LRC

= Slave (MCD)

Receive Status (ssss) Requests the trip status of the starter. 255 = No trip 1 = Excess start time 2 = Motor overload 3 = Motor thermistor 4 = Phase imbalance 5 = Supply frequency 6 = Phase rotation 8 = Power circuit fault 15 = Communication failure between starter and module 16 = Communication failure between module and network 33 = Bypass overload

MG.17.F4.02 - VLT is a registered Danfoss trademark

177HA311.10

AP ASCII Protocol

177HA316.12

MCD Modbus Module

MCD Modbus Module

MCD Modbus Module C22

Bit 0 to 3

4 5 6

7

Description 0 = Not used 1 = Ready 2 = Starting (including Pre-start tests) 3 = Running 4 = Stopping 6 = Tripped 1 = Forward phase rotation 1 = Current exceeds the FLC 0 = Uninitialised 1 = Initialised (Bit 4 is only valid if Bit 6 = 1) 0 = Remote Operator status OK 1 = Remote Operator fault

= MCD 202 models only.

Data Retrieval Data can be retrieved from closed loop MCD 202 models using the following format:

177HA313.10

Send Address

ACK

Send Request

Possible error responses

= Master

Request Motor current

Motor temperature

Receive Data NAK

Invalid LRC

= Slave (MCD)

ASCII Receive Data (dddd) D10 Requests motor current. The data is four byte decimal ASCII. Minimum value 0000 A, maximum value 9999 A. D12 Requests the calculated value of the motor thermal model as a % of motor thermal capacity. The data is four byte decimal ASCII. Minimum value is 0000%. Trip point is 0105%.

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. 2. 3. 4.

Sum all ASCII bytes Mod 256 2's complement 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 1 0 5 B or 02h 42h 31h 30h 35h 42h To verify a received message containing an LRC:

ETX 03h

1. Convert last two bytes of message from ASCII to binary nd 2. Left shift 2 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

MG.17.F4.02 - VLT is a registered Danfoss trademark

MCD Modbus Module MCD Modbus Module

Starter status

30h

30h

31h

46h

LRC1 LRC2 ETX

5

Using the Remote Operator with MCD 200

Appendix A - Modbus Control via Remote Operator To control a soft starter via an RS485 serial communications network using the Remote Operator, connect the Remote Operator to the network as described in the following sections.

A1

MCD 200

RS485 SERIAL COMMS NETWORK CONNECTION (MODBUS RTU or AP ASCII)

REMOTE OPERATOR

N2

+ GND -

REMOTE RS485 SERIAL PORT + GND 68 61 69

4-20 mA

RS485 MCD

RS485 POWER NETWORK SUPPLY

- GND + - GND + ~/+ ~/+ B10 B11 B1 B2 B3 B6 B7 B8 1 2

Grounding and Shielding Twisted pair data cable with earth shield is recommended. The cable shield should be connected to a GND device terminal at both ends and one point of the site protective earth.

177HA339.12

4-20 mA ANALOGUE OUTPUT (MOTOR CURRENT)

SUPPLY VOLTAGE 18 ~ 30 VAC / VDC

Termination Resistors

Using the Remote Operator with MCD 3000

In long cable runs prone to excessive noise interference, termination resistors should be installed between B1 (-) and B3 (+) of the soft starter and the Remote Operator. This resistance should match the cable impedance (typically 120 Ω). Do not use wire wound resistors.

In order to operate correctly on the network, the MCD 3000 must be set for local operation only (i.e. set Parameter 20 = 2). The Remote Operator's default communications protocol setting is AP ASCII.

Network Master RS485

GND

Soft Starter

Remote Operator RS485

120

B8

B3

B6

B1

B3 B1

B7

B2

B2

120

120

GND

The RS485 Network Timeout setting on the Remote Operator applies to the link between the Remote Operator and the network. This can be set to any value between 0 and 100 seconds.

GND

120

GND

177HA377.10

MCD 3000

REMOTE OPERATOR

RS485 SERIAL COMMS NETWORK CONNECTION (MODBUS RTU or AP ASCII) +

GND

RS485 Data Cable Connection Daisy chain connection is recommended. This is achieved by parallel connections of the data cable at the actual device terminals.

177HA376.10

MCD Modbus Module

MCD Modbus Module

RS485 SERIAL PORT + GND B3 B2 B1

4-20 mA + -

RS485 STARTER - GND +

RS485 NETWORK - GND +

B10 B11 B1 B2 B3 B6 B7 B8

POWER SUPPLY ~/+ ~/1

2

Remote Operator RS485 Network Connection Specifications Input impedance: .............................................. 12 kΩ Common mode voltage range:.............- 7 V to + 12 V Input sensitivity: .......................................... ± 200 mV Minimum differential output voltage: .................................1.5 V (with max loading of 54 Ω)

6

4-20 mA ANALOGUE OUTPUT

SUPPLY VOLTAGE 18 ~ 30 VAC / VDC

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 soft starter configuration details.

MG.17.F4.02 - VLT is a registered Danfoss trademark

-

MCD Modbus Module

The Remote Operator must be configured to operate on the network. In order to access Programming Mode, the Remote Operator must be powered up when the soft starter is not running. Programming Procedure 1. To enter Programming Mode, hold down the Data/Prog pushbutton for four seconds. The default value of the first parameter will be displayed. 2. Use the Data/Prog pushbutton to advance to the next parameter. 3. Use the Stop/+ and Reset/- pushbuttons to adjust parameter values. Programming Mode closes when the Data/Prog pushbutton is pressed after Parameter 8. N.B.!: There is a 20 second timeout when the Remote Operator is in Programming Mode. Programming Mode will automatically close if no input is registered for 20 seconds. Any changes already made will be saved. Programmable Parameters The Remote Operator offers the following programmable parameters: Par . Description No. 1 RS485 network baud rate

Default Setting 4 (9600 baud)

RS485 network satellite address RS485 network timeout

20

2

3

4

RS485 network protocol

5

Modbus protocol parity

0 seconds (= off) 1 (AP ASCII) 0 (no parity)

Adjustable Range 2 = 2400 baud 3 = 4800 baud 4 = 9600 baud 5 = 19200 baud 6 = 38400 baud 1 to 99

Motor FLC (A) Analogue output 4 mA offset (%) Start, Stop, Quick stop function disable

10 100

1 to 2868 80 to 120

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 = Remote Operator start, stop, quick stop function disabled. Network start, stop, quick stop function enabled. 3 = Remote Operator start, stop, quick stop function disabled. Network start, stop, quick stop function disabled. , Remote Operator Reset/- pushbutton is always enabled. RS485 Network reset and forced communication trip functions are always enabled. 8

0

0 to 100 seconds

1 = AP ASCII protocol 2 = Modbus RTU protocol 0 = no parity 1 = odd parity 2 = even parity 3 = 10-bit transmission

MG.17.F4.02 - VLT is a registered Danfoss trademark

7

MCD Modbus Module MCD Modbus Module

6 7

Programming

MCD Modbus Module

MCD Modbus Module Troubleshooting The Remote Operator display and status indication LEDs can indicate abnormal operating and system conditions. The following messages indicate an error in the Remote Operator's link to the RS485 network: Display Indication nEt on display

SP flashing on display

Problem

Possible Solution

A loss of communication has been detected on the RS485 link to the network.

The Remote Operator has an RS485 Network Timeout Protection setting (Parameter 3). This error is reported when no communication occurs for longer than the timeout setting. The system will become active as soon as communication is restored. To clear nEt from the display, press the Data/Prog pushbutton momentarily or send a Reset command from the network Master. Soft starter is off and being Finish soft starter network programming procedure and exit programmed from the serial Programming Mode. network.

Appendix B - Specifications Enclosure Dimensions ............................................................................................... 35 mm (W) x 157 mm (H) x 90 mm (D) Weight ......................................................................................................................................................... 250 g Protection ...................................................................................................................................................... IP20 Mounting Spring-action plastic mounting clips (x 2) Connections Soft starter ............................................................................................................................ 6-way pin assembly Network ...................................................................... 5-way male and unpluggable female connector (supplied) 2 Maximum cable size ................................................................................................................................ 2.5 mm Settings Protocol .......................................................................................................................... Modbus RTU, AP ASCII Address range ........................................................................................................................................... 0 to 31 Data rate (bps) ............................................................................................................ 4800, 9600, 19200, 38400 Parity .............................................................................................................................. None, Odd, Even, 10-bit Timeout ..................................................................................................................... None (off), 10 s, 60 s, 100 s Certification C ............................................................................................................................................. IEC 60947-4-2 CE .............................................................................................................................................. IEC 60947-4-2

8

MG.17.F4.02 - VLT is a registered Danfoss trademark

Suggest Documents