WEG CFW100 User Manual

WEG CFW100 User Manual

Modbus rtu
Hide thumbs Also See for CFW100:
Table of Contents

Advertisement

Motors I Automation I Energy I Transmission & Distribution I Coatings
Modbus RTU
CFW100
User's Manual
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Advertisement

Table of Contents
loading

Summary of Contents for WEG CFW100

  • Page 1 Motors I Automation I Energy I Transmission & Distribution I Coatings Modbus RTU CFW100 User’s Manual Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net...
  • Page 2 Modbus RTU User’s Manual Series: CFW100 Language: English Document Number: 10002909455 / 00 Publication Date: 06/2014 Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net...
  • Page 3: Table Of Contents

    ABBREVIATIONS AND DEFINITIONS ......................5 NUMERICAL REPRESENTATION ....................... 5 DOCUMENTS ..............................5 INTRODUCTION TO SERIAL COMMUNICATION ............6 INTERFACE DESCRIPTION ..................7 RS485 COMMUNICATION MODULE (CFW100-CRS485) .............. 7 2.1.1 RS485 module’s connector ....................... 7 2.1.2 RS485 Interface Characteristics ....................7 2.1.3...
  • Page 4 Contents AVAILABLE FUNCTIONS AND RESPONSE TIMES ..............17 MEMORY MAP ..........................17 DETAILED DESCRIPTION OF THE FUNCTIONS ............. 19 FUNCTION 03 – READ HOLDING REGISTER ................19 FUNCTION 06 – WRITE SINGLE REGISTER ................. 19 FUNCTION 16 – WRITE MULTIPLE REGISTERS ................20 FUNCTION 43 –...
  • Page 5: About This Manual

    About this Manual ABOUT THIS MANUAL This manual supplies the necessary information for the operation of the CFW100 frequency inverter using the Modbus RTU protocol. This manual must be used together with the CFW100 user manual. ABBREVIATIONS AND DEFINITIONS ASCII...
  • Page 6: Introduction To Serial Communication

    Introduction to Serial Communication 1 INTRODUCTION TO SERIAL COMMUNICATION In a serial interface the data bits are sent sequentially through a communication channel or bus. Several technologies use the serial communication for data transfer, including the RS232 and RS485 interfaces. The directions that specify the RS232 and RS485 standards, however, do neither specify the character format, nor its sequence for the data transmission and reception.
  • Page 7: Interface Description

    Interface Description 2 INTERFACE DESCRIPTION The interfaces for serial communication RS485 or USB available for the CFW100 frequency inverter depend on the selected communication module for the product. Following are presented information about the connection and installation of the equipment, using different communication modules.
  • Page 8: Terminating Resistor

    Enable the termination resistors only at two points, at the extremes of the main bus, even if there are  derivations from the bus. USB COMMUNICATION MODULE (CFW100-CUSB) Figure 2.2: Module with USB connection For this module, a USB interface with mini-USB conector is available. When connecting the USB interface, it will be recognized as a USB to serial converter, and a virtual COM port will be created .
  • Page 9: Programming

    P0228 – JOG SELECTION – REMOTE SITUATION These parameters are used in the configuration of the command source for the CFW100 frequency inverter local and remote situations. In order that the device be controlled through the Modbus RTU interface, the options ‘serial’...
  • Page 10: P0311 - Serial Interface Byte Configuration

    Programming P0311 – SERIAL INTERFACE BYTE CONFIGURATION Range: 0 = 8 data bits, no parity, 1 stop bit Default: 1 1 = 8 data bits, even parity, 1 stop bit 2 = 8 data bits, odd parity, 1 stop bit 3 = 8 data bits, no parity, 2 stop bits 4 = 8 data bits, even parity, 2 stop bits 5 = 8 data bits, odd parity, 2 stop bits...
  • Page 11: P0314 - Serial Watchdog

    Programming P0314 – SERIAL WATCHDOG Range: 0.0 to 999.0s Default: 0.0 Properties: Description: It allows programming a time limit for the detection of serial interface communication error. If the frequency inverter remains without receiving valid telegrams longer than the time programmed in this parameter, it will be considered that a communication error has occurred, the alarm A128 will be showed on the HMI and the option programmed in P0313 will be executed.
  • Page 12: P0681 - Motor Speed In 13 Bits

    Programming Table 3.3: P0680 parameter bit functions Bits Values Bits 0 to 4 Reserved. 0: The drive is configured to use the first ramp values, programmed in P0100 and P0101, as the motor Bit 5 acceleration and deceleration ramp times. Second ramp 1: The drive is configured to use the second ramp values, programmed in P0102 and P0103, as the motor acceleration and deceleration ramp times.
  • Page 13: P0682 - Serial Control Word

    Programming P0682 – SERIAL CONTROL WORD Range: 0000h to FFFFh Default: 0000h Properties: Description: It is the device Modbus RTU interface control word. This parameter can only be changed via serial interface. For the other sources (HMI, etc.) it behaves like a read-only parameter. In order to have those commands executed, it is necessary to program the equipment to be controlled via serial.
  • Page 14 Programming 60 Hz => 8192 30 Hz => 13 bit reference 13 bit reference = 30 × 8192 => Value corresponding to 30 Hz in a 13 bit scale 13 bit reference = 4096 This parameter also accepts negative values to revert the motor speed direction. The reference speed direction, however, depends also on the control word - P0682 - bit 2 setting: Bit 2 = 1 and P0683 >...
  • Page 15: Modbus Rtu Protocol

    It is not possible to use the two transmission modes in the same network. The CFW100 frequency inverter uses only the RTU mode for the telegram transmission. The bytes are transmitted in hexadecimal format and its configuration depends on the programming done by means of P0311.
  • Page 16 Modbus RTU Protocol received character represents the beginning of a new telegram. And in the same manner, the network elements will assume that the telegram has reached its end when after receiving the telegram elements, this time has elapsed again. If during the transmission of a telegram the time between the bytes is longer than this minimum time, the telegram will be considered invalid because the frequency inverter will discard the bytes already received and will mount a new telegram with the bytes that were being transmitted.
  • Page 17: Operation In The Modbus Rtu Network - Slave Mode

    In the Modbus RTU specification are defined the functions used to access different types of data. In the CFW100 the parameters have been defined as being holding type registers. In order to access those data the following services (or functions) have been made available: Read Holding Registers ...
  • Page 18 Operation in the Modbus RTU Network – Slave Mode P0680 (holding register 680): Status word  P0681 (holding register 681): Motor speed  Command (writing): P0682 (holding register 682): Command Word  P0683 (holding register 683): Speed Reference  Refer to the Programming Manual for a complete parameter list of the equipment. NOTE! All the parameters are treated as holding type registers.
  • Page 19: Detailed Description Of The Functions

    The transmitted values are always integer, regardless of having a representation with decimal point. Thus,  the value 9.5 would be transmitted via serial as being 95 (5Fh). Refer to the CFW100 parameter list to obtain the resolution used for each parameter.
  • Page 20: Function 16 - Write Multiple Registers

    Detailed Description of the Functions Example: writing of 30 Hz as the speed reference (P0683) (assuming a motor frequency of 60 Hz) for the slave at address 3. Address: 3 = 03h (1 byte)  Initial register address: 683 = 02ABh (2 bytes) ...
  • Page 21: Function 43 - Read Device Identification

    The CFW100 supports the codes 01 (basic information in sequence) and 04 (individual access to the objects). The other fields are specified by the protocol, and for the CFW100 they have fixed values. Example: reading of basic information in sequence, starting from the object 02h, from a CFW100 at address 1:...
  • Page 22 Detailed Description of the Functions When the master sends a message for an inverter configured in a specific network address, the product will not respond to the master if the following occurs: Parity bit error.  CRC error.  Timeout between the transmitted bytes (3.5 times the transmission time of a byte).
  • Page 23: Faults And Alarms Related To The Modbus Rtu Communication

    Faults and Alarms Related to the Modbus RTU Communication 7 FAULTS AND ALARMS RELATED TO THE MODBUS RTU COMMUNICATION A128/F228 – TIMEOUT FOR SERIAL COMMUNICATION Description: It is the only alarm/fault related to the serial communication indicates that the equipment stopped receiving valid serial telegrams for a period longer than the one programmed in P0314.
  • Page 24: Appendices

    Appendices I. APPENDICES APÊNDICE A. ASCII TABLE Table I.1: ASCII Characters (Null char.) (Start of Header) (Start of Text) " (End of Text) (End of Transmission) (Enquiry) (Acknowledgment) & (Bell) (Backspace) (Horizontal Tab) (Line Feed) (Vertical Tab) (Form Feed) (Carriage Return) (Shift Out) (Shift In) (Data Link Escape)
  • Page 25: ApĂȘndice B. Crc Calculation Using Tables

    Appendices APÊNDICE B. CRC CALCULATION USING TABLES Next, a function using programming language “C” is presented, which implements the CRC calculation for the Modbus RTU protocol. The calculation uses two tables to supply pre-calculated values of the necessary displacement for the calculation. /* Table of CRC values for high–order byte */ static unsigned char auchCRCHi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,...

Table of Contents