GW Instek PFR Series Start Manual
GW Instek PFR Series Start Manual

GW Instek PFR Series Start Manual

Modbus rtu/tcp

Advertisement

Quick Links

Modbus RTU/TCP
PFR Series
START GUIDE
ISO-9001 CERTIFIED MANUFACTURER

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PFR Series and is the answer not in the manual?

Questions and answers

Summary of Contents for GW Instek PFR Series

  • Page 1 Modbus RTU/TCP PFR Series START GUIDE ISO-9001 CERTIFIED MANUFACTURER...
  • Page 2 This manual contains proprietary information, which is protected by copyright. All rights are reserved. No part of this manual may be photocopied, reproduced or translated to another language without prior written consent of Good Will company. The information in this manual was correct at the time of printing. However, Good Will continues to improve products and reserves the rights to change specification, equipment, and maintenance procedures at any time without notice.
  • Page 3: Table Of Contents

    TABLE OF CONTENTS Table of Contents Overview ..............4 Quick guide function setting ........5 Modbus RTU .............. 6 Introduction ..................6 Using Modbus RTU ................8 Multiple Unit Connection .............. 10 Function check ................. 12 Modbus TCP ............. 14 Introduction ..................
  • Page 4: Overview

    (please refer to the user manual to check the firmware version), and it needs to be activated or a license purchased before the machine leaves the factory. For more information, please contact your local dealer or GW Instek at www.gwinstek.com/marketing@goodwill.com.tw.
  • Page 5: Quick Guide Function Setting

    Quick guide function setting Quick guide function setting 1. Connect PFR IN port to a PC 1. Connect an Ethernet cable using RS485/RS232 cable from the network to the rear with DB9 & RJ-45. panel Ethernet port. 2. Set the F-29 (Interface Select) 2.
  • Page 6: Modbus Rtu

    Modbus RTU/TCP START GUIDE Modbus RTU Introduction Modbus RTU message consists of Address and Overview PDU, ending with CRC. Modbus data is transmitted in frames, and each frame has a determined starting point and ending point. In RTU mode, a minimum 3.5-character pause is required at the beginning of the message.
  • Page 7 Modbus RTU Request: Write Single Registers Address Function Starting Data (FC 0x06) code registers Byte0 Byte1 Byte2,3 Byte4,5 Byte6,7 Response: Address Function Starting Data code registers Byte0 Byte1 Byte2,3 Byte4,5 Byte6,7 Request: Write Multiple Registers Address Function Starting Number count Data (FC 0x10) code registers...
  • Page 8: Using Modbus Rtu

    Modbus RTU/TCP START GUIDE Using Modbus RTU The PFR power supply can use Modbus RTU Overview protocol via RS232 and RS485. RS232 and RS485 are using PSU-232 and PSU-485 to connect PC. The pin outs for the adapters are shown below. DB-9 Connector Remote IN Port(RJ-45) Remark PSU-232 RS232...
  • Page 9 Modbus RTU Diagram of End terminal connector End terminal connector End terminal connector from 8 Pin Connector PSU-232 or PSU- Pin No. Remarks 485 connection kit. Internal shorted Internal shorted 1. Connect the RS232 serial cable Operation RS 485 / 232 (include in the PSU-232 connection kit) or RS485 serial cable (include in the PSU-485...
  • Page 10: Multiple Unit Connection

    Modbus RTU/TCP START GUIDE F-72 UART Data 0 = 7 bits, 1 = 8 bits Bits F-73 UART Parity 0 = None, 1 = Odd, 2 = Even F-75 UART TCP 0 = SCPI, 1 = TDK (emulation mode) 2 = Modbus RTU F-76 UART Address 01 ~ 30 (Modbus Slave...
  • Page 11 Modbus RTU 5. Press the Function key to enter the Normal configuration settings (Please refer to Table UART Menu to set the UART related settings where the UART address must be unique). RS-485 slave serial link pin assignment Slave serial link cable with RJ-45 8 Pin Connector 8 Pin Connector...
  • Page 12: Function Check

    Modbus RTU/TCP START GUIDE Diagram of End terminal connector End terminal connector End terminal connector from 8 Pin Connector PSU-232 or PSU- Pin No. Remarks 485 connection kit. Internal shorted Internal shorted Function check Function check steps are as follows: 1.
  • Page 13 Modbus RTU Function Code: 0x03 Start Address: 0 Number of Register: 50 The request packet of ADU is as follows: Address Function Starting Number of code registers register Byte0 Byte1 Byte2,3 Byte4,5 Byte6,7 0x02 0x03 0x00 0x00 0x00 0x32 0xC4 0x2C Slave Read Registers...
  • Page 14: Modbus Tcp

    Modbus RTU/TCP START GUIDE Modbus TCP Introduction Modbus TCP messages consist of MBAP header Overview and PDU. Different from RTU, there is no Slave address and CRC. Modbus TCP is based on Ethernet. Modbus TCP socket port number is 502. MBAP header Transaction ID Protocol ID Length Unit ID...
  • Page 15 Modbus TCP Request: Write Multiple Registers MBAP Function Starting Number of Data Data (FC 0x10) header code registers register byte Byte 0~6 Byte7 Byte8,9 Byte10,11 Byte12 Byte13 ~259 Response: MBAP Function Starting Number of header code registers register Byte 0~6 Byte7 Byte8,9 Byte10,11...
  • Page 16: Using Modbus Tcp

    Modbus RTU/TCP START GUIDE Using Modbus TCP Modbus TCP is based on Ethernet. Modbus TCP Overview socket port number is 502. The Ethernet related configurations are shown as Table Ethernet Menu below. 1. Connect an Ethernet cable from the Operation network to the rear panel Ethernet port.
  • Page 17: Function Check

    Modbus TCP F-50 Gateway-4 0~255 F-51 DNS address-1 0~255 F-52 DNS address-2 0~255 F-53 DNS address-3 0~255 F-54 DNS address-4 0~255 Function check Function check steps are as follows: 1. Connect an Ethernet cable from the network to Functionality the rear panel Ethernet port. Check 2.
  • Page 18 Modbus RTU/TCP START GUIDE The request packets of MBAP header and ADU are as follows: MBAP header Function Starting Number of code registers register Byte 0~6 Byte7 Byte8,9 Byte10,11 0x00 0x18 0x03 0x00 0x00 0x00 0x32 (Transaction ID) 0x00 0x00 (Protocol ID) 0x00 0x06(Length) 0x00 (Unit ID)
  • Page 19: Data Type

    Data Type Data Type This chapter will introduce the data package Overview format of each data type and provide data type examples for reference. The following are the types of data provided: Char Uint16 Uint32 Float 1 Byte 2 Byte 4 Byte 4 Byte Char...
  • Page 20: Uint16

    Modbus RTU/TCP START GUIDE Uint16 There are two value types of Uint16: This example is to read/write the Buzzer control, Normal value refer to Register List as shown below: The starting register for read/write buzzer control is 801, and the number of registers is 1. Based on the above, the PDU is as follows: Request PDU: Write...
  • Page 21 Data Type The percent value conversion formula is as Percent value follows: Real value = Nominal value * percent value/ 52428 Percent value = 52428 * Nominal/Rated value This example is to read/write the Voltage Setting, refer to Register List as shown below: The starting register for read/write Voltage Setting is 3800, and the number of registers is 1.
  • Page 22: Uint32

    Modbus RTU/TCP START GUIDE Request PDU: Read Function code Starting registers Number of register 0x03 0x0E 0xD8 0x00 0x01 Read 3800(Voltage Setting) One register Response PDU: Function code Length of data Data 0x03 0x02 0x66 0x66 Read 2 byte 26214 (Percent value ) Uint32 Examples of Uint32 data types are as follows:...
  • Page 23: Float

    Data Type Response PDU: Function code Starting registers Number of register 0x10 0x10 0x68 0x00 0x02 Write 4200 2 register (Output on delay) Request PDU: Read Function code Starting registers Number of register 0x03 0x10 0x68 0x00 0x02 Read 4200 2 register (Output on delay) Response PDU:...
  • Page 24 Modbus RTU/TCP START GUIDE Request PDU: Write Function Starting Number Length of Data code registers of register data 0x10 0x0F 0x3D 0x00 0x02 0x04 0x3D 0xCC 0xCC 0xCD Write 3901 (Rising 2 register 4 byte 0.1 V/sec voltage slew rate) Response PDU: Function code Starting registers Number of register 0x10...
  • Page 25: Exception Code List

    Exception Code List Exception Code List List Exception Name Description Code 01 (0x01) Illegal function The function code received in the request is not an authorized action for the slave. The slave may be in the wrong state to process a specific request.
  • Page 26 Modbus RTU/TCP START GUIDE Suppose we want to read the data of Rising Example voltage slew rate, but the number of register is incorrectly. Request PDU: Function code Starting registers Number of register 0x03 0x0F 0x3D 0x00 0x01 Read 3901(Rising 2 register voltage slew rate) Then we will receive the following response:...
  • Page 27: Register List

    Register List Register List 0x01 0x03 0x05 0x06 0x10 Description Data Example or description Information Information Identification char 50 ASCII Nominal Voltage float 2 IEEE 754 PFR-100L:Nominal Voltage Value=50(V) Nominal Current float 2 IEEE 754 PFR-100L:Nominal Current Value=10(A) Nominal Power float 2 IEEE 754 PFR-100L:Nominal Power Value=100(W)

Table of Contents