12.07.2015 Views

EV MODBUS Manual (250KB) - TECO-Westinghouse Motor Company

EV MODBUS Manual (250KB) - TECO-Westinghouse Motor Company

EV MODBUS Manual (250KB) - TECO-Westinghouse Motor Company

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents1. Communication Data Frame 21.1 Hardware Installation 21.2 Data Format Frame 21.2.1 Data Frame for ASCII Mode 2-31.2.2 Data Frame for RTU mode 31.3 Follower Address 31.4 Function Code 32. CMS (Checksum and time out definition) 42.1 LRC 42.2 CRC check 42.3 Timeout 53. Error Code 64. Inverter Control 74.1 Command Data (Readable and Writable) 74.2 Monitor Data (Read Only) 8-95. Function Code 105.1 Read the Data from Holding Register [03] 105.2 Loop Back Test [08] 115.3 Write to Holding Register 125.4 Write to Multiple Registers [10] 13-146. <strong>MODBUS</strong> Register Addresses 15-16<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 1


1. Communication Data FrameThe <strong>EV</strong> series inverter can communicate with a PC or PLC using, Modbus ASCII Mode & ModeRTU, RS485 or RS232 protocols.Frame length maximum 80 bytes.1.1 Hardware installationController(PLC / HMI orPC )RS-485InterfaceFollower<strong>EV</strong>Address 01Follower<strong>EV</strong>Address 02Follower<strong>EV</strong>Address 03Follower<strong>EV</strong>Address FEOption Card Option Card Option Card Option CardRSA RSB RSA RSB RSA RSB RSA RSBResponseRequest120Ω1/4w120Ω1/4w** Terminate the communications line with a (120 ohm, 1/4 watt) resistor at both ends.1.2 Data Format Frame1.2.1 Data Frame for ASCII ModeSTX(3AH)Address HiAddress LoFunction HiFunction LoCommand StartAddressCommand StartAddressCommand StartAddressStart Bit = 3AHCommunication Address(Station):2-digit ASCII CodeFunction Code (command):2-digit ASCII CodeCommand Start byte:4-digit ASCII Code<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 2


Command StartAddressData lengthData lengthData lengthData lengthLRC Check HiLRC Check LoEND HiEND LoData Frame for ASCII Mode con’tThe length of the command:4-digit ASCII CodeLRC Check Code:2-digit ASCII CodeEnd Byte:END Hi=CR(0DH), END Li = LF(0AH)1.2.2 Data Frame for RTU ModeMASTER (PLC etc.) sends request to FOLLOWER, and the FOLLOWER sends a responseto the MASTER. The data received is illustrated here.The data length varies depending on the command (Function).FOLLOWERAddressFunction CodeDATACRC CHECKSignal Interval** The drive response time is 10ms.1.3 Follower Address00H: Broadcast to all the drivers01H: to the No. 01 Driver0FH: to the No.15 Driver10H: to the No.16 Driverand so on...., Max to No. 254 (FEH)1.4 Function Code03H: Read the register contents06H: Write a WORD to register08H: Loop test10H: Write several data to register (complex number register write)<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 3


2. CMS (Checksum and time-out definition)2.1 LRCEx. ADDRESS 01HFUNCTION 03HCOMMAND 01H00HDATA LENGTH 0AH-----------------------0FH------------two’s complementChecksum = F1HCS(H) = 46H (ASCII)CS(L) = 31H (ASCII)2.2 CRC CHECK:CRC check code is calculated from the FOLLOWER Address to end of the data. The calculationmethod is illustrated as follow:(1) Load a 16-bit register with FFFF hex (all1’s). Call this the CRC register.(2) Exclusive OR the first byte of the message with the low-order byte of the 16-bit CRCregister, putting the result into the CRC register.(3) Shift the CRC register one bit to the right (toward the LSB), Zero-filling the MSB, Extractand examine the LSB.(4) (If the LSB was 0): Repeat Step (3) If the LSB is a “1”: Exclusive OR the CRC registerwith the polynomial value of A001 hex (1010 0000 0000 0001).(5) Repeat Steps (3) and (4) until 8 shifts been performed. When this is done, a completebyte is processed.(6) Repeat Steps (2) through (5) for next byte of the message. Continue doing this until allbytes have been processed. The final content of the CRC register is the CRC value. Nowappend the 2 Byte CRC Checksum to the end of the message. The low-order byte will betransmitted first, followed by the high-order byte.<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 4


• CRC calculation application programUWORD ch_sum ( UBYTE long , UBYTE *rxdbuff ) {BYTE i = 0;UWORD wkg = 0xFFFF;while ( long-- ) {wkg ^= rxdbuff++;for ( i = 0 ; i < 8; i++ ) {if ( wkg & 0x0001 ) wkg = ( wkg >> 1 ) ^ 0xa001;else wkg = wkg >> 1;}}return( wkg );}2.3 TIME-OUT (400ms) & RETRY (max.: 2 times)PC-LINK S 400msPC-LINK S 400msPC-LINKSPC – LINKWhen a time-out, checksum error is detected, the drive will retry a maximum of two times, andif the error is still present the display will show “ERR6”.<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 5


3. Error codeASCII ModeRTU ModeSTX ‘:’ SLAVE Address 02HAddress‘0’ Function 83H‘1’ Exception code 52HFunction‘8’High C0HCRC-16‘6’ Low CDHExceptioncode‘5’‘1’LRC Check‘2’‘8’END‘CR’‘LF’During a communication error the drive will response with an Exception Code and send amessage back to the main system consisting of a Function Code that is “ANDED (and 80h)”with 80 Hex.ErrorCodeDescription51 Function Code Error52 Address Error53 Data Amount Error54 Data Over Range55 Writing Mode Error4.0 Inverter Control4.1 Command Data (Readable and Writable)<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 6


RegisterCodeBitContent0 Operation Command 1 : Run 0 : Stop1 Reverse Command 1 : Reverse 0 : Forward2 External Fault 1 : Fault (EFO)00E6H3 Fault Reset 1 : Reset4 Jog Command 1 : JOG5 Multi-function Command S1 1 : ON6 Multi-function Command S2 1 : ON7 Multi-function Command S3 1 : ON00E7H00E8H00E9H00EAH00EBH00ECH00EDH00EEHFrequency CommandRemote Keypad Used(Reserved)(Reserved)(Reserved)(Reserved)(Reserved)(Reserved)(Note) Bits that are not used are defined as “0”, registers defined as “NOT USED”,are read only.<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 7


4.2 Monitor Data (Read Only)Register No.ContentBit Description 1 00 Operation state Run Stop00EFH1 Direction state Reverse Forward2Inverter operation preparestateready3 Abnormal Abnormalunready4 DATA setting error Error5-F (not used)Fault DescriptionCode Description Code Description00 The inverter is normal 01 Inverter over heat (OH)02 Over current at stop (OC) 03 Under voltage (LV)04 Over voltage (OV) 05 External BB (b.b.)06 CPU interrupted (CT) 07 PID feedback signal loss (PID)08 EEPROM abnormal (EPR) 09 Inverter over load (OL2)00F0H10 <strong>Motor</strong> over load (OL1) 11 Emergency stop (E.S.)12 (unused) 1314Over current during accelerating(OCA)Over current at constant speed(OCC)Over current during decelerating(OCD)16 Over current at startup (OCS) 17 Under voltage during running (LVC)18Over voltage at constant speed /decelerating (OVC)1519Inverter over heat at constant speed(OHC)20 Stop at 0 Hz (SP0) 21 Direct start disable (SP1)22Control panel emergency stop(SP2)23 Keypad operation error (ER1)24 Parameter setting error (ER2) 25 Analog converting error (ER4)26Modifying the parameter incommunication (ER5)27 Communication failure (ER6)28 Incorrect parameter setting (ER7) 29 Factory setting error (ER8)30 Copy (CPY) 31 Compare (CPR)32 Copy error (EP1) 33 Compare error (EP2)34 Inverter over speed (OVS) 35 Over current limit (OCL)<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 8


36~45 (not used) Define as “0”Register No.ContentBit Description 1 00 Terminal S1 Closed Opened1 Terminal S2 Closed Opened00F1HSequence inputstatus2 Terminal S3 Closed Opened3 Terminal S4 Closed Opened4 (not used)5 (not used)6 Terminal AIN Closed OpenedContact output7Multi-function output1(RELAY1)ONOFF8-F (not used)00F2H00F3H00F4H00F5H00F6HFrequency command (100/1Hz)Output frequency (100/1Hz)Output voltage command (10/1V)Output DC voltage command (1/1V)Output current (10/1A)00F7H PID Feedback value (100% / Max output frequency, 10/1% )00F8HPID input value (100% / Max output frequency, 10/1% , sign attached)00F9H TM2 AIN input value (100% / 10V) *100FAH Keypad AIN input value (100% / 10V) *100FBH00FCH00FDH00FEH00FFHRemote keypad usedRemote keypad used(Reserved)(Reserved)(Reserved)(Note) Do not write data in the reserved registers.<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 9


5. Function Code5.1 Read Data from Holding Register [03H]Read the data from a register at a specified address.Example: Read the frequency reference command from address 1.ASCII ModeInstruction MessageResponse Message Response Message(Normal)(Fault)STX 3AH STX 3AH STX 3AHFollower 30H Follower 30H Follower 30HAddress 31H Address 31H Address 32HFunction Code30H Function 30H38HFunction Code33H Code 33H 33HStart Address30HDATA 30H35HError Code30H number 32H 32H46H31H32HLRC CHECK32H First holding 37H 41HQuantity30H register 37H0DHEND30H 30H 0AH30H37HLRC CHECK31H33HLRC CHECK30H0DHEND39H 0AHEND0DH0AHRTU ModeInstructionMessageResponse Message(Normal)Response Message(Fault)Follower Address 01H Follower Address 01HFollowerAddress01HFunction Code 03H Function Code 03H Function Code 83HStart High 00H DATA number 02H Error Code 52HAddress Low F2H First High 17HHigh C0HholdingCRC-16High 00HQuantityregisterLow 70H Low CDHLow 01HHigh B6HCRC-16High 25H Low 50HCRC-16Low F9H<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 10


5.2 Loop Back Test [08H]The test function to check the transmission of the signal between MASTER andFOLLOWER.ASCII ModeInstruction MessageResponse Message Response Message(Normal)(Fault)STX 3AH STX 3AH STX 3AHFollower 30HFollower 30H Follower 30HAddress 31H Address 31HAddress31HFunction Code30HFunction Code 30H 38HFunction Code38H 38H 38HTest Codes30H30H32HError Code30H 30H 30HTest Codes30H30H37HLRC CHEC30H 30H 35H41H41H0DHEND35H 35H 0AHDATADATA33H33HLRC CHECKEND37H31H42H0DH0AHInstruction MessageFollowerAddress01 HLRC CHECKEND37H31H42H0DH0AHRTU ModeResponse Message(Normal)FollowerAddress01HResponse Message(Fault)FollowerAddress01HFunction Code 08H Function Code 08H Function Code 88HTestCodesDATACRC-16High 00H Test High 00H Error Code 20HLow 00H Codes Low 00HHigh 47HCRC-16High A5HHigh A5H Low D8HDATALow 37H Low 37HHigh DAHCRC-16 High DAHLow 8DH Low 8DH<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 11


5.3 Write to Holding Register [06H]Send data to a specific holding register.(e.g.) send the frequency command 60.0Hz from the PLC to FOLLOWER with address 1.ASCII ModeInstruction MessageResponse Message Response Message(Normal)(Fault)STX 3AH STX 3AH STX 3AHFollower 30HFollower 30H Follower 30HAddress 31H Address 31H Address 31HFunction Code30H30H38HFunction CodeFunction Code36H 36H 36HStart Address30H30H35HError Code30H 30H 32HStart Address45H45H32HLRC CHECK37H 37H 37H31H31H0DHEND37H 37H 0AHDATADATA37H37HLRC CHECKEND30H38H42HLRC CHECK30H38H42H0DH0DHEND0AH 0AHInstruction MessageRTU ModeResponse Message(Normal)Response Message(Fault)Follower Address 01 H Follower Address 01H Follower Address 01HFunction Code 06H Function Code 06H Function Code 86HStartAddressDATACRC-16High 00H Start High 00H Error Code 52HLow E7H Address Low E7H CRC-1 High C3HHigh 17HHigh 17H 6 Low 9DHDATALow 70H Low 70HHigh 37HHigh 37HCRC-16Low E9H Low E9H<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 12


5.4 Write to Multiple Holding Registers [10H]Send data to multiple registers starting at a specific address.E.g. send a frequency command ‘Running forward 60 Hz.’ to Follower with address 1.ASCII ModeInstruction MessageResponse Message Response Message(Normal)(Fault)STX 3AH STX 3AH STX 3AHFollower 30HFollower 30H Follower 30HAddress 31H Address 31H Address 31HFunction Code31H31H39HFunction CodeFunction Code30H 30H 30HStart Address30H30H35HError Code30H 30H 32HStart Address45H45H31HLRC CHECK36H 36H 44H30H30H0DHEND30H 30H 0AHQuantityQuantity30H30H32H32HDATA Number*30H30HLRC CHECK34H37H30H0DHEND30H 0AHFirst DATA30H31H31HNext DATA37H37H30HLRC CHECK37H42HEND0DH0AHSee following page for RTU Mode<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 13


RTU ModeInstruction MessageResponse Message Response Message(Normal)(Fault)Follower Address 01 H Follower Address 01H Follower Address 01HFunction Code 10H Function Code 10H Function Code 90HStart High 00H Start High 00H Error Code 52HAddress Low E6H Address Low E6HHigh CDHCRC-16High 00HHigh 00H Low FDHQuantityQuantityLow 02H Low 02HDATA Number * 04HHigh A0HCRC-16First High 00H Low 3FHDATA Low 01HNext High 17HDATA Low 70HCRC-16High 22HLow 19H(Note) Data numbers are the actual number times 2<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 14


6. <strong>MODBUS</strong> Register AddressesRegisterNo.FunctionRegisterNo.FunctionRegisterNo.Function0001H F01 0018H F26 002AH F510002H F02 0019H F27 002BH F520003H F03 001AH F280004H F04 001BH F290005H F05 001CH F300006H F06 001DH F310008H F07 001EH F320007H F08 001FH F33000AH F09 0020H F34000BH F10 0021H F35000EH F11 0022H F36000FH F12 0023H F370010H F13 0024H F380011H F14 0025H F390012H F15 0026H F400092H F16 0027H F410013H F17 0028H F420014H F18 0095H F430076H F19 0096H F440077H F20 0099H F450015H F21 0097H F460016H F22 0098H F470017H F23 00DCH F48009FH F24 00DDH F4900A0H F25 00DFH F50<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 15


<strong>MODBUS</strong> Register Addresses (con’t)RegisterNo.FunctionRegisterNo.FunctionRegisterNo.Function0064H C00 0080H C26 0087H C510065H C01 0081H C27 0088H C520066H C02 0082H C28 0089H C530067H C03 0083H C29 009BH C540068H C04 008AH C30 009CH C550069H C05 008BH C31 009BH006AH C06 008CH C32 009CH006BH C07 008DH C33 009DH006CH C08 008EH C34 009EH006DH C09 008FH C35 009FH006EH C10 0090H C36 00A0H006FH C11 0091H C37 00A1H0070H C12 0093H C38 00A2H0071H C13 0094H C39 00A3H009AH C14 0072H C40 00A4H0007H C15 009DH C41 00A5H009EH C16 0073H C42 00A6H007AH C17 0074H C43 00A7H007BH C18 0075H C44 00A8H007CH C19 0078H C45 00A9H007DH C20 0079H C46 00AAH007EH C21 0030H C47 00ABH000CH C23 0084H C48 00ACH000DH C24 0085H C49 00ADH0029H C25 0086H C50 00AEH<strong>EV</strong> Inverter Series: Modbus Communication <strong>Manual</strong>Page: 16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!