Satec PM290 Reference Manual

Satec PM290 Reference Manual

Powermeter, communication protocols ascii & modbus
Hide thumbs Also See for PM290:

Advertisement

PM290
POWERMETER
Communication Protocols
ASCII & Modbus
Reference Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Satec PM290

  • Page 1 PM290 POWERMETER Communication Protocols ASCII & Modbus Reference Guide...
  • Page 2: Table Of Contents

    PM290 Communication Protocols Communication protocol is a method of transferring information between different devices (i.e., the Powermeter and a computer) where the protocol is a repertoire of computer commands and the Powermeter responses. For example, the computer will command a specific Powermeter to send to the computer all of its measured data.
  • Page 3: Ascii Protocol

    ASCII PROTOCOL Message Format Field #1 Field #2 Field #3 Field #4 Field #5 Field #6 Field #7 The following is a list of the possible characters and message characteristics appearing in the fields: Field #1 - Synchronization Character: One character '!', used for starting synchronization. Field #2 -Message Length: Length of the message including only number of bytes in fields #2, #3, #4 and #5.
  • Page 4 Table 1-1 Reply to Host Request Type '0' FIELD OFFSET LENGTH DESCRIPTION CONFIGURATION (BYTES) (BYTES) Voltage L1 NNN., Voltage L2 N.NN, NN.N, . Voltage L3 Current L1 Current L2 NNNN, NN.NN Current L3 Power L1 SNNNNN, Power L2 WNN.NN, WNNN.N Power L3 WNNNN.
  • Page 5 FIELD OFFSET LENGTH DESCRIPTION CONFIGURATION (BYTES) (BYTES) Max. Demand 0NNNNN, NNN.NN, NNNN.N, NNNNN. Accumulated Max. 0NNNNN, Demand NNN.NN, NNNN.N, NNNNN. Amp. Max. Demand L1 Amp. Max. Demand L2 0NNNN NN.NN Amp. Max. Demand L3 Contact Status (Option B only) Returned Energy -0NNNN, -NN.NN -NNN.N...
  • Page 6: Examine Set Point High Boundary

    Examine Set Point High Boundary HOST REQUEST Message Type - '1' Message Body: Sub field #1 Sub field #2 Sub field #1 - function of programming (length - 1 byte) See Table 1-2 Sub field 1 Sub field #2 - setpoint serial number (length - 2 bytes) See Table 1-2 Sub field 2 REPLY Message Type - '1'...
  • Page 7 SETPOINT NAME Sub field #1 Sub field #2 Sub field #4 Description (Setpoint #) (Limit) kWH- Pulsing 1 to 200 N,NN, SETPOINTS FOR CONFIGURATION Wiring Configuration 0. (3-OP) 1. (4L-n) 2. (3 dir) 3. (4L-L) PT Ratio 1.0 to 6500.0 N.N ...
  • Page 8: Change Setpoint High Boundary

    SETPOINT NAME Sub field #1 Sub field #2 Sub field #4 Description (Setpoint #) (Limit) Power Factor 0-14(CHAN.#) Reactive Power 0-14(CHAN.#) Active Power 0-14(CHAN.#) Accumulated Maximum 0-14(CHAN.#) Demand Frequency 0-14(CHAN.#) NOTES Two analog output set points cannot be assigned at the same time to the same analog channel. Channel 0 is the internal analog output channel and channels 1 to 14 are the Analog Expander channels.
  • Page 9: Dip Switches Status Request

    DIP Switches Status Request HOST REQUEST Message type - '3' Message Body - none REPLY Message type - '3' Message Body: Sub field #1 Sub field #2 Sub field #3 Sub field #1 - Status of the DIP Switch Block in ASCII (eight ASCII bytes, two bytes per block) where: 'XXXXNNXX' NN - DIP Switch Block Status...
  • Page 10: Send Printer String

    Send Printer String HOST REQUEST Message type - '5' Message Body - none REPLY Message Body - Printer String Examine Set Point Low Boundary HOST REQUEST Message Type - '6' Message Body - the same as in the request '1' in section 6.6.3 REPLY Message Type - '6' Message Body:...
  • Page 11: Receive Version Number

    1.11 Receive Version Number HOST REQUEST Message Type - '9' Message Body - none REPLY Message type - '9' Message Body: 'XXX' if checksum of ROM is OK. If the checksum is not OK, this field will be '000'. where: 'XXX' is the version number 1.12 Error Replies The instrument will send the following error messages in response to incorrect host requests:...
  • Page 12: Modbus Protocol

    MODBUS PROTOCOL Introduction This protocol provides data communication between a PC and multiple Powermeters and is a subset of Modicon's MODBUS protocol. The protocol provides for one master and up to 247 Powermeter slaves on a common line. Although the protocol supports up to 247 slaves, certain device restrictions may limit the number of slaves to less than 247*.
  • Page 13: Function Field

    2.3.2 Function Field The function field contains the function code that tells the Powermeter what action to perform. Function codes used in the protocol are shown below in Table 2-2. Table 2-2 Function Codes Used in PC - Powermeter Protocol Code Meaning in MODBUS Action...
  • Page 14: Detailed Command Description

    The step by step procedure to form the CRC-16 check bytes is as follows: Load a 16-bit register with all 1's. Exclusive OR the first 8-bit byte with the high order byte of the 16-bit register, putting the result in the 16-bit register. Shift the 16-bit register one bit to the right.
  • Page 15 Response One or several sub-requests result in one or more sub-responses. Powermeter Function Byte Sub- Sub- Error Address (20) Count Response Response check 1 byte 1 byte 1 byte 2 bytes Sub - Response Sub-response Ref Type (06) Data Word 1 Data Word N byte count 1 byte...
  • Page 16 Obtain data from Powermeter (Function Code 03) Powermeter Function Table Start Word Error Address Number Address Count Check (03) 1 byte 1 byte 1 byte 1 byte 2 bytes 2 bytes Meaning of message fields: Table Number Powermeter internal data table number Starting Address Address of the first word in the table to be read Word Count...
  • Page 17 Write Data to Powermeter (Function code 16) Powermeter Function Table Start Word Byte Address (16) Number Address Count Count 1 byte 1 byte 1 byte 1 byte 2 bytes 1 byte Data Word 1 Data Word N Error Check 2 bytes 2 bytes 2 bytes Meaning of message fields:...
  • Page 18 Loop Back Communication Test (Function Code 08) Powermeter Function Diagnostic Data Error Address (08) Code (0) Check 1 byte 1 byte 2 bytes 2 bytes 2 bytes The purpose of the Loop back test is to check the communication system between a specified Powermeter and the PC.
  • Page 19: Powermeter Internal Data Tables

    Powermeter Internal Data Tables 2.5.1 Data conversion There are 11 methods of data conversion in the MODBUS PLC. To define data conversion it is necessary to define HI Scale, LO Scale and Conversion. Any range between 0.01 and 99,999.00 can be entered in the HI and LO scales. Conversion is carried out by one of the following methods: NONE The data will be presented exactly as retrieved by the communication program from the Powermeter.
  • Page 20: Measured Data Table

    2.5.2 Measured Data Table Powermeter Internal Table #1 Parameter Add- Bytes Data Conversion HI Scale LO Scale ress Method Voltage A LIN3 Vmax Voltage B LIN3 Vmax Voltage C LIN3 Vmax Current A LIN3 Imax Current B LIN3 Imax Current C LIN3 Imax Power A...
  • Page 21 Parameter Add- Bytes Data Conversion HI Scale LO Scale ress Method Ampere Maximum LIN3 Imax Demand B Ampere Maximum LIN3 Imax Demand C Consumption NONE 9999 Consumption NONE 9999 10*MWH Returned Energy NONE 9999 Returned Energy NONE 9999 +Reactive Energy NONE 9999 kVARH...
  • Page 22: Setpoint Tables

    2.5.3 Setpoint Tables Table of Available Setpoints The following table contains bit flags of available setpoints for the relay. Bit meaning : 1 Set point exists 0 Set point does not exist Powermeter Internal Table #2 Setpoints Address Number of bytes Relay 1 Relay 2 Relay 3...
  • Page 23 Setpoint Bit Number Range Reserved 0 or 1 Reserved 0 or 1 Active Power 0 or 1 Reactive Power 0 or 1 Apparent Power 0 or 1 Accumulated Maximum Demand 0 or 1 Accumulated Apparent Maximum 0 or 1 Demand Power Factor 0 or 1 Frequency...
  • Page 24 Setpoint Data type Add- No. of Data ress Bytes Conversion Scale Scale Type High High Bound LIN3 Imax Unbalanced High Delay None 999 or Current Low Bound Line3 Imax Low Delay None 999 or Maximum High Bound LIN3 Pmax -Pmax Demand High Delay None...
  • Page 25: System Configuration Setpoint

    Analog Output Setpoint Table Powermeter Internal Table #8 Setpoint Address No. of Range bytes Voltage - A 0 to 14 or Voltage - B 0 to 14 or Voltage - C 0 to 14 or Current - A 0 to 14 or Current - B 0 to 14 or Current - C...
  • Page 26: Powermeter Status Table

    2.5.5 Powermeter Status Table Powermeter Internal Table #10 Parameter Address No. of Range Bytes State Flags 0 - 255 Keypad Status 0 - 15 Relay Status 0 - 15 DIP Switch 1 and 2 0 to 65535 Dry contacts status 0 to 255 Version Number 0 to 65000...

Table of Contents