Page 1
User’s Manual Model PR300 Power and Energy Meter Communication Interface (RS-485 and Ethernet Communications) IM 77C01E01-10E IM 77C01E01-10E 5th Edition...
I Intended Readers This manual is intended for people familiar with the functions of the PR300, control engi- neers and personnel in charge of maintaining instrumentation and control equipment. I Related Documents The following user's manuals all relate to the communication functions of the PR300.
(2) Figures and illustrations representing the PR300's displays may differ from the real displays in regard to the position and/or indicated characters (upper-case or lower- case, for example), the extent of difference does not impair a correct understanding of the functions and the proper operations and monitoring of the system.
(2) Read this manual carefully to gain a thorough understanding of how to operate this product before you start using it. (3) This manual is intended to describe the functions of this product. Yokogawa Electric Corporation (hereinafter simply referred to as Yokogawa) does not guarantee that these functions are suited to the particular purpose of the user.
Page 5
(1) Yokogawa does not make any warranties regarding the product except those men- tioned in the WARRANTY that is provided separately. (2) Yokogawa assumes no liability to any party for any loss or damage, direct or indirect, caused by the use or any unpredictable defect of the product.
Toc-1 <Int> <Ind> <Rev> Model PR300 Power and Energy Meter Communication Interface (RS-485 and Ethernet Communications) IM 77C01E01-10E CONTENTS Introduction......................i Documentation Conventions ................ii Notices .........................iii Communications Overview RS-485 Communication Specifications ............1-1 Ethernet Communication Specifications ............1-1 Setup Setup Procedure ..................... 2-1 2.1.1...
Page 7
Toc-2 <Int> <Ind> <Rev> 3.4.5 Demand Current Alarm Point ............3-14 3.4.6 Demand Alarm Release Function ........... 3-15 Communication Setting ................3-16 3.5.1 Protocol ..................3-16 3.5.2 Baud Rate ..................3-17 3.5.3 Parity ....................3-18 3.5.4 Stop Bit ................... 3-19 3.5.5 Data Length ..................
Page 8
Toc-3 <Int> <Ind> <Rev> Sample Program ................... 4-17 4.4.1 Example of BASIC Program for Send and Receive ......4-17 Modbus/RTU and ASCII Communication Protocols Overview ......................5-1 5.1.1 Configuration of Message ..............5-3 5.1.2 Specifying D Registers..............5-4 5.1.3 Checking Errors ................5-4 5.1.4 Configuration of Response ...............
<Toc> <Ind> <1. Communications Overview > Communications Overview RS-485 Communication Specifications Protocols available for RS-485 communication interfaces include the PC link com- munication protocol and the Modbus communication protocol. Table 1.1 RS-485 Communication Specifications Item Details Connected Device Communication Hardware 2-wire system RS-485 Compliant Standard EIA RS-485...
<Toc> <Ind> <2. Setup> Setup This chapter describes how to set up the PR300, which is equipped with RS-485 communication as a standard feature. When using an Ethernet-equipped model, either RS-485 or Ethernet can be selected by parameter setting for communications.
Communication parameters setting for PR300 Set up the communication function using the front panel keys. Subsection 2.2.1 “Conditions for RS-485 Communication” Connect a higher-level device with PR300 Subsection 2.3.1 “Wiring for RS-485 Communication” Create communication programs for the higher-level device to perform...
Communication parameters setting for PR300 Set up the communication function using the front panel keys. Subsection 2.2.2 “Conditions for Ethernet Communication” Connect a higher-level device with PR300 Subsection 2.3.2 “Wiring for Ethernet Communication” Create communication programs for the higher-level device to perform...
For communication protocol, see Chapter 6 “Modbus/TCP Communication Protocol” For data storage location, see Chapter 7 “Functions and Usage of D Registers” Note: It is recommended to use the Ethernet network as a dedicated one for the PR300. IM 77C01E01-10E...
Page 14
Station number 02 (arbitrary) Station number 20 (arbitrary) * The VJET is Yokogawa’s converter. For details of use of the VJET, refer to its user’s manual. Note: It is recommended to use the Ethernet network as a dedicated one for the PR300.
<2. Setup> Setting Communication Conditions This section describes the setting parameters for using the communication func- tions, and the setting ranges. For details of setting method, refer to the PR300 Power and Energy Meter User’s Manual (electronic manual). 2.2.1 Conditions for RS-485 Communication This subsection describes the setting parameters for using the RS-485 communication function, and the setting ranges.
Page 16
Set the communication protocol identical to that of the higher-level device to be connected. G Station number (ST-NO) Set the station number of the PR300 itself. A station number of 01 to 99 may be assigned in any order. However, the maximum number of PR300 to be connected to a single com- munication port is 31.
(DG-4) 502, 1024 to 65535 Port number (PORT) OFF, ON Ethernet setting switch (E-SW) Modbus/TCP can be selected for the PR300 with Ethernet communication function only. Ethernet communication menu is displayed when Modbus/TCP is selected for the protocol. IM 77C01E01-10E...
Page 18
DG-3 DG-4 NOTE Before performing setup of IP address, subnet mask, and default gateway, consult the administrator for the network to which the PR300 is to be connected. G Port number (PORT) Set the port number for the PR300. NOTE To activate the settings of IP address, subnet mask, default gateway, and port number, set the Ethernet setting switch to ‘ON’...
• If the Ethernet communication function is used, the RS-485 communication interface is used specifically for the Ethernet-serial gateway function. Therefore, it is not pos- sible for a higher-level device such as a PC to access the PR300 via the RS-485 communication interface.
Page 20
(DLN) When using the VJET Ethernet/RS-485 converter as an Ethernet-serial gateway function, the communication conditions of any slave PR300 must conform to those of the VJET at a higher level. The initial value of the VJET parity is EVEN. IM 77C01E01-10E...
Limited Power Source with input voltages less than 30 V AC or 60 V DC and which are separated from mains by double or reinforced insulation. Communication cable: Shielded twisted pair cable (AWG24-eqivalent size) Recommended terminals: See the PR300 Power and Energy Meter User’s Manual (electronic manual). IM 77C01E01-10E...
<2. Setup> 2.3.2 Wiring for Ethernet Communication To use the Ethernet communication function, connect a higher-level device with the PR300 with Ethernet communication function using 10BASE-T/100BASE-TX. 10BASE-T/ 100BASE-TX are Ethernet connection methods using twisted pair cables. The transmission rates are 10 Mbps/100 Mbps. In 10BASE-T/100BASE-TX networks, higher-level devices such as a PC are connected in a star pattern through a hub.
To avoid an electric shock, be sure to turn off the power supply source to the equipment involved before you start wiring. The figure below shows the example of wiring connection for the PR300 with Ethernet communication function. If other devices are used for connection, the names of communi- cation terminals and others may be different from those mentioned in the figure.
NOTE • The PR300 has data (D register) the unit of which is two words. When 2-word data need to be written or read, writing or reading operations must be performed for the 2- word data at the same time.
<Toc> <Ind> <3. Procedures for Setting PR300 Functions> Basic Setting 3.1.1 Setting of VT Ratio [Procedure] (1) Write a VT ratio to the two D registers in the table below. The data type is 4-byte floating point. (2) After writing that value, write 1 to the setup change status register, D0207.
<Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.1.2 Setting of CT Ratio [Procedure] (1) Write a CT ratio to the two D registers in the table below. The data type is 4-byte floating point. (2) After writing that value, write 1 to the setup change status register, D0207.
<Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.1.3 Setting of Integrated Low-cut Power [Procedure] (1) Write an integrated low-cut power value to the two D registers in the table below. The data type is 4-byte floating point. (2) After writing that value, write 1 to the setup change status register, D0207.
[Response] [STX] 0101OK [ETX] [CR] NOTE • A measurement item for pulse output value can be set for the PR300 with pulse output. • When the PR300 is the three-phase four-wire system (2.5 element), the following measurement items can be measured only when the current is in a state of equilib- rium: “2: LEAD reactive energy”, “3: LAG reactive energy”...
[STX]0101OK[ETX][CR] NOTE • A pulse unit value can be set for the PR300 with pulse output. • To set the pulse unit value via communication, set it to 1/100 the value of the displayed (true) value (e.g., set it to 5 when setting the pulse unit value to 500 Wh/pulse).
[STX] 0101OK [ETX] [CR] NOTE • An ON pulse width value can be set for the PR300 with pulse output. • To set the ON pulse width value via communication, set it to 1/10 the value of the displayed (true) value (e.g., set it to 5 when setting the ON pulse width value to 50 ms).
• Different types of the PR300 can measure different items, and so the values that can be set to the D register differ depending on the PR300 type. If a value that cannot be written to the D register is written, it will be invalid. The table below shows the values...
[STX] 0101OK [ETX] [CR] NOTE • An upper/lower limit of scaling value can be set for the PR300 with analog output. • Set an upper/lower limit of scaling so that [upper limit of scaling] – [lower limit of scaling] is 50% or greater. If it is smaller than 50%, writing to the D register will be invalid.
[Response] [STX] 0101OK [ETX] [CR] NOTE • A demand power/current value can be set for the PR300 with demand measuring function. • When the PR300 is the three-phase four-wire system (2.5 element), “1: Current” can be measured only when the current is in a state of equilibrium.
For station number 01, use PC link communication (without checksum) and the random write command as shown below: [Command] [STX] 01010WRW02D0219, 0014, D0226, 0001 [ETX] [CR] [Response] [STX] 0101OK [ETX] [CR] NOTE A demand period value can be set for the PR300 with demand measuring function. IM 77C01E01-10E...
For station number 01, use PC link communication (without checksum) and the random write command as shown below: [Command] [STX]01010WRW02D0220,0014,D0226,0001[ETX][CR] [Response] [STX]0101OK[ETX][CR] NOTE A demand alarm mask time value can be set for the PR300 with demand measuring function. IM 77C01E01-10E...
If 10.0 is converted into a 4-byte floating point value, the value is 4120 0000. [Command] [STX]01010WRW03D0221,0000,D0222,4120,D0226,0001[ETX][CR] [Response] [STX]0101OK[ETX][CR] NOTE A demand power alarm point value can be set for the PR300 with demand measuring function. IM 77C01E01-10E...
If 10.0 is converted into a 4-byte floating point value, the value is 4120 0000. [Command] [STX]01010WRW03D0223,0000,D0224,4120,D0226,0001[ETX][CR] [Response] [STX]0101OK[ETX][CR] NOTE A demand current alarm point value can be set for the PR300 with demand measuring function. IM 77C01E01-10E...
[Response] [STX]0101OK[ETX][CR] NOTE • A demand alarm release function value can be set for the PR300 with demand mea- suring function. • When the demand alarm release function is used by digital input, releasing via com- munication is not possible.
Initial value of protocol: 1 (PC link with checksum) *1: Modbus/TCP can be selected for the PR300 with Ethernet communication function only. NOTE • When Modbus/TCP is selected for the protocol, the baud rate, the stop bit, the data length and the station number are fixed and unchangeable.
3-17 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.5.2 Baud Rate [Procedure] (1) Write a baud rate value to the D register in the table below. The data type is integer. (2) After writing that value, write 1 to the RS-485 writing status register, D0277.
3-18 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.5.3 Parity [Procedure] (1) To set the parity, write data to the D register in the table below. The data type is integer. (2) After writing that value, write 1 to the RS-485 writing status register, D0277.
3-19 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.5.4 Stop Bit [Procedure] (1) To set the stop bit, write data to the D register in the table below. The data type is integer. (2) After writing that value, write 1 to the RS-485 writing status register, D0277.
3-20 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.5.5 Data Length [Procedure] (1) To set the data length, write data to the D register in the table below. The data type is integer. (2) After writing that value, write 1 to the RS-485 writing status register, D0277.
3-21 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.5.6 Station Number [Procedure] (1) To set the station number, write data to the D register in the table below. The data type is integer. (2) After writing that value, write 1 to the RS-485 writing status register, D0277.
IP-3 IP-4 NOTE • An IP address value can be set for the PR300 with Ethernet communication function. • IP address settings are only effective when the protocol is set to Modbus/TCP. [Example] To set the IP address to 192.168.1.3:...
SM-3 SM-4 NOTE • A subnet mask value can be set for the PR300 with Ethernet communication function. • Subnet mask settings are only effective when the protocol is set to Modbus/TCP. [Example] To set the subnet mask to 255. 255. 255. 0:...
DG-2 DG-3 DG-4 NOTE • A default gateway value can be set for the PR300 with Ethernet communication function. • Default gateway settings are only effective when the protocol is set to Modbus/TCP. [Example] To set the default gateway to 0. 0. 0. 0:...
Initial value of port number: 502 NOTE • A port number value can be set for the PR300 with Ethernet communication function. • Port number setting is only effective when the protocol is set to Modbus/TCP. [Example] To set the port number to 1024:...
[STX] 01010WRW03D0371, 9680, D0372, 0098, D0373, 0001 [ETX] [CR] [Response] [STX] 0101OK [ETX] [CR] NOTE The set active energy value range of the PR300 changes depending on the values of the VT and CT ratios. The table below shows the set value range. [Secondary Rated Power] [VT Ratio]...
[STX] 01010WRW03D0374, 9680, D0375, 0098, D0376, 0001 [ETX] [CR] [Response] [STX] 0101OK [ETX] [CR] NOTE The set regenerative energy value range of the PR300 changes depending on the values of the VT and CT ratios. The table below shows the set value range. [Secondary Rated Power] [VT Ratio]...
[Response] [STX] 0101OK [ETX] [CR] NOTE The set LEAD reactive energy value range of the PR300 changes depending on the values of the VT and CT ratios. The table below shows the set value range. [Secondary Rated Power] [VT Ratio]...
[Response] [STX] 0101OK [ETX] [CR] NOTE The set LAG reactive energy value range of the PR300 changes depending on the values of the VT and CT ratios. The table below shows the set value range. [Secondary Rated Power] [VT Ratio]...
[STX] 01010WRW03D0382, 9680, D0383, 0098, D0384, 0001 [ETX] [CR] [Response] [STX] 0101OK [ETX] [CR] NOTE The set apparent energy value range of the PR300 changes depending on the values of the VT and CT ratios. The table below shows the set value range. [Secondary Rated Power] [VT Ratio]...
After remote reset is executed, wait for 10 seconds or more before sending another com- mand. It takes about 10 seconds to reset. Even when PR300 was reset by power supply switch off/on, also wait for 10 seconds or more before sending another command.
3-32 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.7.2 Maximum/Minimum Values Reset [Procedure] (1) To execute maximum/minimum values reset, write data to the D register in the table below. The data type is integer. D Register Reference No. H No.
3-33 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.7.4 Active Energy Reset [Procedure] (1) To execute active energy reset, write data to the D register in the table below. The data type is integer. D Register Reference No. H No.
3-34 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> 3.7.6 Reactive Energy Reset [Procedure] (1) To execute reactive energy reset, write data to the D register in the table below. The data type is integer. D Register Reference No. H No.
3-35 <Toc> <Ind> <3. Procedures for Setting PR300 Functions> Setting Control States 3.8.1 Integration Start/Stop [Procedure] (1) To execute integration start/stop, write data to the D register in the table below. The data type is integer. D Register Reference No.
(see subsection 3.7.1). However, for the PR300 with demand measuring function, digital input is used to release the demand alarm. In this case, optional integration start/stop cannot be used.
For station number 01, use PC link communication (without checksum) and the random write command as shown below: <For start> [Command] [STX]01010WRW01D0311,0001[ETX][CR] [Response] [STX]0101OK[ETX][CR] <For stop> [Command] [STX]01010WRW01D0311,0000[ETX][CR] [Response] [STX]0101OK[ETX][CR] NOTE Demand measurement start/stop can be performed for the PR300 with demand measuring function. IM 77C01E01-10E...
For station number 01, use PC link communication (without checksum) and the word-basis read (write) command as shown below: <For read> [Command] [STX]01010WRDD0312,01[ETX][CR] [Response] [STX]0101OK0001[ETX][CR] <For write> [Command] [STX]01010WWRD0312,01,0000[ETX][CR] [Response] [STX]0101OK[ETX][CR] NOTE Confirmation and release of demand alarm state can be set for the PR300 with demand measuring function. IM 77C01E01-10E...
01 to 99. NOTE • The PR300 has data (D register) the unit of which is two words. When 2-word data need to be written or read, writing or reading operations must be performed for the 2- word data at the same time.
<Toc> <Ind> <4. PC Link Communication Protocol> 4.1.1 Configuration of Command Commands sent from a higher-level device to the PR300 consist of the following elements. Number Variable length of Bytes Element Station Time to wait Command Data Checksum number number...
• No response is made in case of an error in station number specification or CPU number specification. • If a PR300 cannot receive ETX in a command, response may not be made. Note: As a countermeasure, provide a timeout process in the communication functions of the higher-level device or in communication programs.
<Toc> <Ind> <4. PC Link Communication Protocol> 4.1.3 Response Error Codes See Also 4.1.2, “Configuration of Response”, for the configuration of response in the event of error. The error codes (EC1) and detailed error codes (EC2) of responses are as follows. Table 4.1 List of Error Codes EC1 Error Meaning...
(1) Specify “P1” for the station number in the command to execute it. (2) This command works independently of station numbers of slave stations (01 to 99). (3) This command is applicable for writing only. (4) No response is returned from the PR300 when communication is performed using this command. Broadcast data.
<Toc> <Ind> <4. PC Link Communication Protocol> Command and Response The following shows the lists of commands available in PC link communication. The details of them are explained in the description of each command. (1) Word-basis Access Commands Command Description Number of words to be handled Word-basis read 1 to 64 words...
= character string in hexadecimal n = 1 to 64 words G Example Read the active energy (register symbol: kWh L and kWh H) of the PR300 at station num- ber 01. The register numbers for active energy are D0001 and D0002.
Write the floating point data “00004120” into the VT ratio (register symbol: VT L and VT H) and CT ratio (register symbol: CT L and CT H) of the PR300 at station number 01. The register numbers for VT ratio are D0201 and D0202.
G Example Read the voltage-1 (register symbol: V1 L and V1 H) and current-1 (register symbol: A1 L and A1 H) of the PR300 at station number 01. The register numbers for voltage-1 are D0027 and D0028. The register numbers for current-1 are D0033 and D0034.
G Example Write 1 into the remote reset (register symbol: RMT RST) and active energy reset (register symbol: kWh RST) of the PR300 at station number 01. The register number for remote reset is D0400. The register number for active energy reset is D0353.
(ST-NO) G Example Specify that the active power (register symbol: W L and W H) of the PR300 at station number 01 is to be monitored. (This command simply specifies the registers.) The register numbers for active power are D0021 and D0022.
= 1 to 32 words G Example Monitor the active power (register symbol: W L and W H) of the PR300 at station number 01. (This command reads the status of the register specified by the WRS command.) [Command] [STX]01010WRME8[ETX][CR] The data 2500 will be returned in response to the command above.
Reads the model, suffix codes, and version information G Function This function code reads the model, suffix codes, and version number of the PR300. • For the format of response in the event of failure, see subsection 4.1.2. G Command/Response (for normal operation)
Note 1: The maximum value of CPU for power and energy meter is 1. G Example Read the maximum value of CPU number of the PR300 at station number 01. [Command] [STX]01010INF706[ETX][CR] The data 1 will be returned in response to the command above.
4.3.1 Communication with FA-M3 (UT Link Module) Communication with FA-M3 is achieved by simply connecting the PR300 to a UT link module using the PC link communication protocol. Set the communication condi- tions of the PR300 identical to those of the UT link module.
Page 77
Set the Communication Mode switch to 7 (Normal). (2) Setting Up the PR300 Set the communication conditions of the PR300 as shown below: For details on how to set the conditions, see the PR300 Power and Energy Meter Uuser's Manual (electronic manual). Parameter...
4-17 <Toc> <Ind> <4. PC Link Communication Protocol> Sample Program 4.4.1 Example of BASIC Program for Send and Receive This section shows an example of a command sending and response receiving program created with F-BASIC* for PC/AT* (or compatible machines). *1 PC/AT is the product of IBM Ltd.
Page 79
4-18 <Toc> <Ind> <4. PC Link Communication Protocol> ‘=== Subroutine === *RECEIVECHR ‘Interruption processing during receiving interval off ‘Start timer RCVCHR$=RCVCHR$+input$(lof(#1),#1) ‘Fetch character string from receive buffer. END$=mid$(RCVCHR$,len(RCVCHR$),1) select case END$ case LF$ ‘Echo-back-capable RCVCHR$=”” ‘Initialize receive character string case CR$ ‘Receiving end flag STOPFLAG=1 ‘Set receiving end flag...
The use of Modbus communication enables the PR300 to communicate with a device such as a PC or PLC (sequencer). Such a device can be used in communica- tion to read/write data from/to D registers which are internal registers of the PR300. Hereafter, PCs are generically called “higher-level devices.”...
Page 81
When message length in the RTU mode is assumed to be “N”, message length in ASCII mode is “2N+1”. LF is a synchronization character indicating that the PR300 is ready to accept the next signal. In the RTU mode, synchronization is achieved during the time interval between characters. If there is a period of time equivalent to 3.5 characters before the next character is received, the message being received next is recognized as a new frame.
<Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> 5.1.1 Configuration of Message Messages sent from the higher-level device to the PR300 consist of the following elements. Start of Station Function Data Error Check End of Element Message Mark Number Code...
<Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> 5.1.2 Specifying D Registers Specification of D registers using commercially available SCADA or other software and specification of D registers for messages used in a customer-created communi- cation program are different. Take note of this. For a customer-created communication program, specify a value in hexadecimal that is obtained by subtracting 40001 from a reference number.
Page 84
<Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> I RTU Mode In the RTU mode, errors are checked by means of a CRC-16 cyclic redundancy check. The CRC-16 value is the 16-bit remainder when the value obtained by concatenating the 8 bits of all blocks (from the station number to the last data item) of a message, excluding the start bit, stop bit and parity bit, is divided by a predetermined 17-bit binary number.
Page 85
<Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Table 5.2 Results of Performing CRC on 0th to 255th Values at “A001” Number 0000 C0C1 C181 0140 C301 03C0 0280 C241 Result Number C601 06C0 0780 C741 0500 C5C1 C481 0440 Result Number CC01...
I Responses to Normal Messages For a loop back function or a function for writing to a single register, the PR300 returns the received command message as a response message. For a function for writing to multiple D registers, the PR300 returns part of the received command message as the response message.
Page 87
Number of D registers out of the range is specified. The PR300 does not regard it as an error even if there is any unused register among those with consecutive register numbers specified by a readout function; rather, the PR300 returns a value of 0 in this case.
(1) Specify “00” for the station number in the command to execute it. (2) This command works independently of station numbers of slave stations. (3) This command is applicable for writing only. (4) No response is returned from the PR300 when communication is performed using this command. Broadcast data.
5-10 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Message and Response Function codes are command words used by the higher-level device to obtain the D registers information of PR300. Table 5.3 Function Codes Code Function Description Reads data from multiple D registers.
5-11 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Reads data from multiple D registers G Function This function code reads the contents of successive D registers by the specified number starting with a specified D registers number. • The maximum number of D registers to be read at a time is 64. •...
5-12 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Writes data into D register G Function This function code writes data into a specified D registers number. • The maximum number of D registers to be written into at a time is 1. •...
5-13 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Performs loop back test G Function This function code is used to check connection for communication. • For the format of response in the event of failure, see subsection 5.1.4. • The “00” shown below (marked with an asterisk *) are fixed. •...
5-14 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> Writes data into multiple D registers G Function This function code writes data into successive D registers by the number starting with a specified D registers number. • The maximum number of D registers to be written into at a time is 32. •...
Page 94
5-15 <Toc> <Ind> <5. Modbus/RTU and ASCII Communication Protocols> G Example (ASCII mode) Write 10 into a series of four D registers starting with the D0201 (VT ratio and CT ratio) at station number 11. [Message] [:]0B1000C800004120000041204F[CR][LF] “0B”: station number 11, “10”: function code 16, “00C8”: D register start number 201, “0004”: number of D registers 4, “08”: byte count (number of D registers ×...
The PR300 can be connected to IEEE802.3-compliant networks (10BASE-T/ 100BASE-TX). Generally, the Modbus/TCP protocol communicates through port 502. In addition, the PR300 operates as Ethernet-serial gateway. A higher-level device can exchange data with other serial communication devices using the Modbus/TCP protocol via the PR300.
Page 96
Maximum distance between hub and module: 100 m Maximum number of hubs connectable in cascade configuration: 4 levels for 10BASE-T 2 levels for 100BASE-TX connection PR300 as Ethernet-serial gateway function Station number 01 (fixed) Station number 01 (fixed) Station number 01 (fixed) Station number 01 (fixed) IP address [192.168.1.2]...
Response recv() send() Terminate connection close() close() Figure 6.3 TCP/IP Communication NOTE If no request is received from the higher-level device for more than 60 seconds after estab- lishing a connection, the PR300 will automatically terminate the connection. IM 77C01E01-10E...
Number of bytes: Number of bytes after the unit ID (byte number 6) Unit ID: For the communication with the PR300 itself, specify “01” for the higher-level device. The PR300 returns “01” as a response. For the communication with the device connected to the RS-485 communication terminals of the PR300 using the Ethernet-serial gateway function, specify its station number (02 to 99).
Communication with Higher-level Devices 6.4.1 List of Function Codes The codes in the following list are command words higher-level devices use to acquire information from the internal registers (D registers) of the PR300. Code Function Description Reads data from multiple D registers.
(1) “0001”: Arbitrary 2-byte data (2) “0000”: Protocol ID=0000 (fixed) (3) “0006”: Number of bytes (4) “01”: Unit ID = 01 indicating PR300 (5) “03”: Function code 03 (6) “00C8”: D register start number 201 (7) “0004”: Number of D registers = 4...
(4) (5) (1) “0001”: Arbitrary 2-byte data (2) “0000”: Protocol ID=0000 (fixed) (3) “0006”: Number of bytes (4) “01”: Unit ID=01 indicating PR300 (5) “06”: Function code=06 (6) “00D0”: D register number 209 (7) “0005”: Write data The following response will be returned to the request above.
0000 0006 01 to 99 0000 Arbitrary G Example Send “1234” in hex to the PR300 to check the communication connection. [Request] 000100000006010800001234 (4) (5) (1) “0001”: Arbitrary 2-byte data (2) “0000”: Protocol ID=0000 (fixed) (3) “0006”: Number of bytes (4) “01”: Unit ID=01 indicating PR300...
<Toc> <Ind> < 6. Modbus/TCP Communication Protocol> Writes data into multiple D registers G Function This function code writes data into successive D registers by the number starting with a specified D registers number. • The maximum number of D registers to be written into at a time is 32. •...
Page 104
(1) “0001”: Arbitrary 2-byte data (2) “0000”: Protocol ID = 0000 (fixed) (3) “000F”: Number of bytes (4) “01”: Unit ID = 01 indicating PR300 (5) “10”: Function code = 16 (6) “00C8”: D register start number 201 (7) “0004”: Number of registers = 4 (8) “08”: Byte count...
< 6. Modbus/TCP Communication Protocol> 6.4.4 Response Error Codes G When a response is returned If an inconsistency is found in a request’s PDU, the PR300 ignores the request and returns the following response. Element MBAP Header Number of bytes...
Maximum distance between hub and module: 100 m Maximum number of hubs connectable in cascade configuration: 4 levels for 10BASE-T 2 levels for 100BASE-TX connection connection PR300 as Ethernet-serial gateway function Station number 01 (fixed) IP address [192.168.1.2] (arbitrary) RS-485 connection...
Page 107
‘Binary data Dim iFlag As Integer ‘Flag of wait for completion ‘ ‘===================================================================== Private Sub cmdSend1() ‘Procedure to connect with PR300 by TCP/IP and to create/send data. ‘ ‘Variable declaration Dim iCount As Integer Dim strCher As String ‘ ‘Set properties of Winsock control Winsock1.Protocol = sckTCPProtocol...
Page 108
Winsock1.SendData binChrs ‘Send command ‘ End Sub ‘===================================================================== Private Sub cmdSend2() ‘Procedure to send command to PR300 connected to RS-485 line with PR300 as gateway. ‘ ‘Variable declaration Dim iCount As Integer Dim strCher As String ‘ ‘Set properties of Winsock control Winsock1.Protocol = sckTCPProtocol...
Page 109
Winsock1.SendData binChrs ‘Send command ‘ End Sub ‘===================================================================== Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long) ‘Receive data from PR300 and cut connection with PR300. ‘ Dim binData() As Byte Dim iCount As Integer Dim strCher As String ‘Receive data Winsock1.GetData binData ‘Receive command...
This section describes the functions and usage of D registers. The D registers store the input values, statuses, and others that are handled by the PR300. By connecting the PR300 to higher-level device capable of PC link commu- nication, Modbus communication, or Ethernet communication, you can readily use these internal data items by reading from or writing to the D registers.
<Toc> <Ind> <7. Functions and Usage of D Registers> D Register Map G Process Data (D0001 to D0146) D-Reg No. Ref No. H No. Register Symbol Register Name Effective Range Initial Value BackUp D0001 40001 0000 kWh L Active energy (uint 32, lower 2 bytes) –...
Page 112
<Toc> <Ind> <7. Functions and Usage of D Registers> D-Reg No. Ref No. H No. Register Symbol Register Name Effective Range Initial Value BackUp D0109 40109 006C VA MAX L Maximum apparent power (float, lower 2 bytes) 0.0 to 9,999,999.9 [VA] D0110 40110 006D...
Page 113
<Toc> <Ind> <7. Functions and Usage of D Registers> G Parameter/Control Data (D0201 to D0400) D-Reg Ref No. H No. Register Symbol Register Name Effective Range Initial Value BackUp D0201 40201 00C8 VT L VT ratio (float, lower 2 bytes) 1 to 6000 R/W* D0202...
Page 114
40400 018F RMT RST Remote reset If 1: PR300 is reset (the same effect as turning the power off and then on) * D register with a blank cannot be used. (Writing to this area is not guaranteed.) IM 77C01E01-10E...
Page 115
<Toc> <Ind> <7. Functions and Usage of D Registers> D0099 and D0100 are designed to represent two or more events, such as errors and status, using combinations of bits within the register. If any of the events shown in the following tables occur, the corresponding bit is set to 1.
One is used to read values individually and another to read them in batch mode (where only measurement items in the specified mode can be read). Communication Specifications PR300 Transmission distance Approximately 1.2 km maximum (Use of 24 AWG twisted pair cable)
<Toc> <Ind> <8. PR201 Original Communication Protocol> Command/Response Format Command components: Variable- 1 byte 2 bytes 1 byte 2 bytes 2 bytes 1 byte 1 byte length Station Command Parameter Data Checksum number Checksum range STX: Start of Text (hexadecimal: 02) Command: 2-byte ASCII code (DG or DP) Parameter:...
<Toc> <Ind> <8. PR201 Original Communication Protocol> List of Commands Parameters common for preceding styles (PR201S1.0, UZ005S2.0) Response data Parameter Meaning Format Range Resolution Size Read measured values in batch. Data of parameters 1 to 5 and 6 (power factor measurement) 46 bytes Read electric energy 00000 to 99999 [kWh]...
Page 119
Read setting value No data See *2 for response 16 byte ––– ––– ––– Set VT ratio Not available in PR300 00001 to 06000 5 bytes Set CT ratio Not available in PR300 00.05 to 32000 5 bytes ––– –––...
Response data is returned as a 46-byte ASCII character string. Continued: Checksum ETX (Voltage-1) (Current-1) (Power factor) • Example The PR300 measured values of station number 01 are read out in a batch. indicates the checksum value. [Command] [STX]DG001 [ETX][CR] The following response is returned for the above command.
Page 121
100 kW or more, 1 MW or less 999999 kWh 99999 kWh 1 MW or more, 10 MW or less 9999999 kWh 10 MW or more 99999999 kWh NOTE The secondary rated power of the PR300 changes depending on its model and suffix codes. IM 77C01E01-10E...
Page 122
(Current (ADR) value) value) Response data is returned as a 5-byte ASCII character string (00000 to 99999). • Example Reads the optional electric energy of PR300 with station number 01. indicates the checksum value. [Command] [STX]DG201 [ETX][CR] Returns 10000 Wh as optional electric energy (previous value) and 10000 Wh as optional electric energy (current value) for the above command.
Page 123
<Toc> <Ind> <8. PR201 Original Communication Protocol> • Example Reads the active power of PR300 with station number 01. indicates the checksum value. [Command] [STX]DG301 [ETX][CR] Returns a response of active power 1000 W (+1.000E+3 W) for the above command.
Page 124
(ADR) Response data is returned as an 8-byte ASCII character string (0.000E+0 to 9.999E+5) • Example Reads current-1 of PR300 with station number 01. indicates the checksum value. [Command] [STX]DG501 [ETX][CR] Returns a response of current-1: 1000 A (1.000E+3 A) for the above command.
Page 125
8-10 <Toc> <Ind> <8. PR201 Original Communication Protocol> • Example Reads a power factor of PR300 with station number 01. indicates the checksum value. [Command] [STX]DG601 [ETX][CR] Returns a response of power factor G0.8 for the above command. [Response] [STX]DG601G0.800...
Page 126
Station No data Checksum ETX element number (ADR) There is no response data. • Example Stops optional integration of PR300 with station number 01. indicates the checksum value. [Command] [STX]DG801 [ETX][CR] Returns the following response for the above command. [Response]...
Page 127
8-12 <Toc> <Ind> <8. PR201 Original Communication Protocol> • Example Initializes the maximum and minimum values of PR300 with station number 01. indi- cates the checksum value. [Command] [STX]DG901 [ETX][CR] Returns the following response for the above command. [Response] [STX]DG901...
Page 128
8-13 <Toc> <Ind> <8. PR201 Original Communication Protocol> • Example Reads in batch the measured values and maximum/minimum value of PR300 with station number 01. [Command] [STX]DGA01 [ETX][CR] Returns the following response for the above command. [Response] [STX]DGA01100001000010000+1.000E+31.000E+31.000E+3G0.8001.000E+31.000E+21.000E+3 [ETX][CR] (10)
Page 129
8-14 <Toc> <Ind> <8. PR201 Original Communication Protocol> • Example Reads the maximum voltage-1 of PR300 with station number 01. indicates the checksum value. [Command] [STX]DGB01 [ETX][CR] Returns a response of the maximum voltage-1: 1000 V (1.000E+3 V) for the above command.
Page 130
(Voltage-3) (Current-1) (Current-2) (Current-3) Continued Checksum ETX (Power factor) • Example Reads the measured values of PR300 with station number 01 in batch. indicates the checksum value. [Command] [STX]DGF01 [ETX][CR] Returns the following response for the above command. [Response] [STX]DGF0110000E+31000010000+1.000E+31.000E+31.000E+31.000E+3 1.000E+31.000E+31.000E+3G0.800...
Page 131
1 MW or more, 10 MW or less 9999999 kWh 9999900 kWh 99999E+5 Wh 10 MW or more 99999999 kWh 99999000 kWh 99999E+6 Wh NOTE The secondary rated power of the PR300 changes depending on its model and suffix codes. IM 77C01E01-10E...
Page 132
8-17 <Toc> <Ind> <8. PR201 Original Communication Protocol> G Parameter: M (Reads measured values and maximum/minimum values in batch) • Function Reads the active energy, optional electric energy (previous and current values), active power, voltage-1, voltage-2, voltage-3, current-1, current-2, current-3, power factor, maxi- mum voltage-1, minimum voltage-1, maximum current-1, maximum voltage-2, maximum voltage-3, minimum voltage-2, minimum voltage-3, maximum current-2 and maximum current-3.
Page 133
8-18 <Toc> <Ind> <8. PR201 Original Communication Protocol> G Example Reads the measured value and maximum/minimum values of PR300 with station number 01 in batch. indicates the checksum value. [Command] [STX]DGM01 [ETX][CR] Returns the following response for the above command.
Page 134
Communication: RS-485 communication, Measurement: Power factor measurement [Response] [STX]DGX01PR201-24011-20 [ETX][CR] NOTE When reading the model and suffix codes of PR300, “PR201” is returned as model name because of the compatibility with existing application for PR201. IM 77C01E01-10E...
Page 135
Checksum ETX element number (ADR) Response data is returned in a 2-byte ASCII character string. • Example Reads an error response of PR300 with station number 01. indicates the checksum value. [Command] [STX]DGZ01 [ETX][CR] Returns a checksum error response for the above command.
Page 136
Response data is returned in a 16-byte ASCII character string. Continued Checksum ETX (Integrated low-cut power) Response data to be returned for integrated low-cut power is always 0. • Example Reads the setting value of PR300 with station number 01. indicates the checksum value. [Command] [STX]DP001 [ETX][CR] Returns a VT ratio of 10, a CT ratio of 100 and an integrated low-cut power of 0 for the above command.
Page 137
[ETX][CR] Returns the following response for the above command. [Response] [STX]DPA01 [ETX][CR] Performs remote reset. NOTE Because the PR300 microcomputer is reset after remote reset takes place, wait for 5 seconds or more before transmitting the next command. IM 77C01E01-10E...
Page 138
Station Checksum ETX element number (ADR) There is no response data. • Example Resets the active energy of PR300 with station number 01. indicates the checksum value. [Command] [STX] DPG01 [ETX][CR] Returns the following response for the above command. [Response]...
App.-1 <Toc> <Ind> <Appendix. Table of ASCII Codes (Alphanumeric Codes) > Appendix Table of ASCII Codes (Alphanumeric Codes) In order to implement PC link communication, create a transmission/receiving program by referring to the Table of ASCII Codes below. Hex. Dec. Symbol Hex.
The PR201 original communication protocol is added. Feb. 2007/3rd Edition The note of the RS-232C/RS-485 converter is added. June 2008/4th Edition Error correction Sep. 2017/5th Edition Error correction Written by Yokogawa Electric Corporation Published by Yokogawa Electric Corporation 2-9-32 Nakacho, Musashino-shi, Tokyo 180-8750, JAPAN IM 77C01E01-10E...
Need help?
Do you have a question about the PR300 and is the answer not in the manual?
Questions and answers