Finless-type ac drive, 200 v class, single-phase input: 1/6 to 3 hp, 200 v class, three-phase input: 1/6 to 25 hp, 400 v class, three-phase input: 1/2 to 25 hp (236 pages)
Technical References Refer to the following publications for further information about the GPD315/V7: • GPD315/V7 Technical Manual • Publication TM4315 Refer to the following Modicon publication for technical information on Modbus RTU: • Modicon Modbus Protocol Reference Guide • Publication PI-MBUS-300 Rev. D Technical Support Center: Provide telephone assistance related to installation, start-up, programming, and troubleshooting For technical phone support call 1-800-541-0939.
Chapter 1 GPD315/V7 and Serial Communication Introduction This manual describes the set-up and protocol for Modbus Communication. The GPD315/V7 offers RS-485 and RS-422 serial communication as a standard. The Modbus RTU protocol requires that the controller communicates using a master-slave technique, in which only one device (the master) can initiate transactions.
Chapter 2 GPD315 Modbus RTU Connections Wiring Locate terminals S+, S-, R+, and R- on the control terminal block. R+ R- S+ S- Figure 2-1 Location of Terminals and Dip switches Twisted pair, shielded wire should be used for all RS-485 connections. The shielded wire should be separated and connected per the drawing below to eliminate interference due to noise.
The function of terminals R+, R-, S+, and S- are described below. Table 2-1. Functions of Terminals Terminal Symbol Functions Remarks RS-485 output (+) Use as output at RS-485 output (-) parallel connection RS-485 input (+) Us as input at RS-485 input (-) parallel connection It is important to select an appropriate wire size to prevent voltage drop.
Connecting Multiple Drives Multiple drives may be connected together. A terminating resistor must be enabled at the start and end of the network. Set SW2 switch 1 to “on” to enable the terminating resistor. SW2 is found just above the upper row of control terminals and consists of two switches. The switch towards the top (labeled “1”) controls the terminating resistor.
Chapter 3 GPD315 Communication Parameters Run/Stop and Frequency Selection The run/stop and frequency reference commands can originate from serial communication, the digital operator, or the external terminals. The origin of the run/stop command does not have to be the same as the origin of the frequency reference command. Parameter n003 (Operation Method Selection) allows you to set up the origin of the run/stop commands.
Serial Communication Set up Parameters The GPD315 has parameters used for setting up serial communications. These communication set up parameters are n151 through n155. Parameter n151 - Modbus Time Out Detection Parameter n151 is used to determine how the drive will respond to a time out error. A time out is detected if the length of time between Modbus messages exceeds two seconds.
Parameter n154 - Modbus Baud Rate Parameter n154 selects the baud rate, as indicated by the following table: Table 3.5 Modbus Baud Rate Selection Parameter n154 Setting Baud Rate(bps) 2400 4800 9600 19200 The default setting of parameter n154 is ‘2’. Parameter n155 - Modbus Parity Selection Parameter n155 selects the parity, as indicated by the following table: Table 3.6 Modbus Parity Selection...
“ENTER” Command The GPD315 has two types of memory: ‘Volatile’ and ‘Non-volatile’. Data held in the Volatile memory will be lost when power is removed from the drive. Data held in the Non-volatile memory will be retained when power is removed from the drive. It is necessary to follow each block of parameters with the ENTER command in order to transfer data form Volatile to Non-volatile memory.
Chapter 4 Modbus RTU Message For Message Functions In communicating to the GPD315 drive via Modbus RTU, there are three message functions available. The master specifies the function to be executed by the slave according to the function code. The following table shows the types of function codes available, and the length (quantity) and contents of the message according to the function.
Read Multiple Registers – Function 03h The multiple register read function (03h) allows the master to request information from the slave. The command message of a multiple register read is structured as shown below. Table 4-2 Read Command Message Slave Address Function Code Upper Starting Register...
Normal Response Message Table 4-3 Read Normal Response Message Slave Address Function Code Number of Data Bytes Upper Starting Register Lower Upper Next Register Lower Upper Next Register Lower Upper Last Register Lower Lower CRC-16 Upper The normal response message contains the same slave address and function code as the command message, indicating to the master which slave is responding and to what type of function it is responding.
Fault Response Table 4-4 Read Fault Response Message Slave Address Function Code Error Code Lower CRC-16 Upper The fault response message contains the same slave address as the command message, indicating to the master which slave is responding. The function code of a fault response message is actually a value of 80h plus the original function code of 03h.
The function code of this message is 08h (loop-back test). The test code must be set to ‘0000’. This function specifies that the data passed in the command message is to be returned (looped back) in the response message. The data section contains arbitrary data values. These data values are used to verify that the slave receives the correct data.
A CRC-16 value is generated from a calculation using the values of the address, function code, and data sections of the message. The procedure for calculating a CRC-16 value is described at the end of this chapter. When the master receives the fault response message it calculates a CRC-16 value and compares it to the one in the CRC-16 field of the fault response message.
The data section of the response message contains 8 upper and 8 lower bits of data for each register that is being written to. A CRC-16 value is generated from a calculation using the values of the address, function code, starting register number, quantity, number of data bytes, and data sections of the message.
Write Registers Fault Response Table 4-10 Write Registers Fault Response Message Slave Address Function Code Error Code Lower CRC-16 Upper The fault response message contains the same slave address as the command message, indicating to the master which slave is responding. The function code of a fault response message is actually a value of 80h plus the original function code of 10h.
No Response Message The slave disregards the command message and does not return the respond message in the following cases: In simultaneous broadcasting of data (slave address field is 0), all slaves execute but do not respond. When a communication error (overrun, framing, parity, or CRC-16) is detected in the command message.
// *buf pointer to character array that contains the characters to used calculate CRC // bufLen number of characters to calculate CRC for // *crc pointer to the array that contains the calculated CRC void getMBCRC(char *buf, int bufLen, char *crc) { unsigned long crc_0 = 0xffff;...
Drive Parameter Registers (Read/Write) Table 5-4 Drive Parameters Parameter ADDR Name Description Default N001 Can Be Read And Set; N002-N179 Others Read Only N001-N039 Can Be Read And Set N001-N067 Can Be Read And Set N001-N113 Can Be Read And Set N001-N179 Can Be Read And Set Not Used Clear Fault Record Only...
Page 28
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Mid. Output n014 010Eh 0.1 - 399.9hz Frequency Voltage @ 0.1 - 255.0 (230v Drive) 12.0 n015 010Fh Mid. Frequency 0.2 - 510.0 (460 V Drive) 24.0 Min. Output n016 0110h 0.1 - 10.0hz Frequency...
Page 29
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Motor Overload n038 0126h Protection Time 1 - 60 Minutes Constant Cooling Fan Operates Only When Drive Is Running n039 0127h Operation Operates With Power Is ON n040-n049 0128h - Reserved 0131h Run Forward...
Page 30
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description @ Fault @ Running @ Speed Agree @ Zero Speed Frequency Detection ≤n095 Frequency Detection ≥n095 Overtorque Detection (N.O. Contact) Overtorque Detection (N.C. Contact) Reserved Multi-Function 0132 Reserved n057 Output 1 Minor Fault (MA-MB-MC) @ Baseblock...
Page 31
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Analog n069 0145h Frequency Ref. ±100% (Operator Voltage Input) Bias Analog 0.00 To 2.00 Seconds (Operator Voltage Input) n070 0146h Freq. Ref. Filter 0.10 0.00 = Filter Disabled Time Constant Analog n071 0147h...
Page 32
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description DC Injection n090 015Ah 0.0 - 25.5 Seconds (0.0 = Disabled) Time @ Stop DC Injection n091 015Bh 0.0 - 25.5 Seconds (0.0 = Disabled) Time @ Start Stall Prevention Enabled n092 015Ch...
Page 33
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Stall Prevention Disabled (Follows Accel/Decel Time 1) n116 0174h Accel/Decel Enabled (Follows Accel/Decel Time 2) 0175- n117-119 Reserved 0177h Frequency n120 0178h 0.00 .- 9.99Hz or 100.0 - 400.0Hz 0.00 Reference 1 Frequency n121...
Page 34
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Energy-Saving Disabled n139 018Bh Control Enabled (Must Be In V/F Control Mode) Energy-Saving n140 018Ch 0.0 - 999.9 or 1000 - 6550 Coefficient K2 Energy-Saving n141 018Dh Voltage Low 0 - 120% Limiter @60hz Energy-Saving n142...
Page 35
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Energy-Saving n159 019Fh Voltage Upper 0 - 120% Limit @60Hz Energy-Saving n160 01A0h Voltage Upper 0 - 25% Limit @6Hz Search Power n161 01A1h Supply Detect 0 - 100% Hold Width Power n162 01A2h...
Page 36
Table 5-4 Drive Parameters (continued) Parameter ADDR Name Default Description Q-Axis Hunting n188 01BCh 0.00 - 2.55 (Vector Control Mode Only) Prevent Gain Power Factor n189 01BDh Angle Detect 1 - 255 (1 = 4ms) (@ Accel/Decel) Filter Time Power Factor n190 01BEh Angle Detect...
Notes: Not Used registers and bits must be programmed with 0 Frequency reference depends on the setting of n152 Reserved registers cannot be accessed Available in 10020 software or later Range dependant on n018 setting Value differs according to inverter capacity Set to 0, Forward/Reverse command is set to terminal S3.
Chapter 6 Error Codes and Troubleshooting Communication Error Once the data sent from the PLC is received the drive, the received data is checked for CRC, parity, overrun, framing, and receiving buffer overflow. If all checked items pass, the data has been received normally.
Chapter 7 Command Priority Command Priority The setting of parameter n003 determines the origin of operation commands. This was discussed in detail in chapter 3, Setting GPD315 Parameters for Communication. Some commands may be accessed by a source other than the one set up by parameter n003, as illustrated in the tables 1, 2, and 3 on the following pages.
Set up for Serial Communication Control The first table indicates the functions or commands that can be accessed via serial communication, external terminals, or the digital operator when the drive’s parameter n003 is set up for serial communication (n003 = 3). The “O” indicates that the function is Operable from that source, and “n/a”...
Set up for External Terminals Control Table two indicates the functions or commands that can be accessed via serial communication, external terminals, or the digital operator when the drive’s parameter n003 is set up for external terminal control (n003 = 1). The “O” indicates that the function is Operable from that source, and “n/a”...
Set up for Digital Operator Control Table three indicates the functions or commands that can be accessed via serial communication, external terminals, or the digital operator when the drive’s parameter n003 is set up for digital operator control (n003 = 0). The “O” indicates that the function is Operable from that source, and “n/a”...
Appendix A Product Specifications The following table indicates the environmental specifications for the GPD315 drive. Table A-1 Product Specifications Environmental Conditions Ambient Temperature -10 to +50 degrees C (+14 to +122 degrees F) Storage Temperature (1) -20 to +60 degrees C (-4 to +140 degrees F) Relative Humidity 95% RH or less (non-condensing) Altitude...
Page 44
Please phone us at 1-800-541-0939 for technical support. Additional technical information is available at www.drives.com. Data subject to change without notice. GPD is a trademark of Yaskawa, Inc. All trademarks are the property of their respective owners. Yaskawa Electric America, Inc.