×
Siemens Industry Online Support
Siemens AG
  • Content
  • Search
  • Index
  • Analog input module AI Energy Meter 480VAC ST (6ES7134-6PA20-0BD0)
    • Measured value data records
      • Overview of all measured value data records
      • Measured value data record for base measurements (DS 142)
      • Structure for energy counters (DS 143)
      • Measured value data record for maximum values (DS 144)
      • Measured value data record for minimum values (DS 145)
      • Measured value data record for phase-based measured values L1 (DS 147)
      • Measured value data record for phase-based measured values L2 (DS 148)
      • Measured value data record for phase-based measured values L3 (DS 149)
      • Measured value data record for advanced measurement and status values (DS 150)
    (5)
    Rate

    Entry type: Manual, Entry ID: 109481117, Entry date: 09/27/2017

    SIMATIC ET 200SP Analog Input Module AI Energy Meter 480VAC ST

    Document: Analog input module AI Energy Meter 480VAC ST (6ES7134-6PA20-0BD0) (10/2017, English)
    Type of topic: Structure

    Structure for energy counters (DS 143)

    Energy meter data record 143 for different actions

    The energy meter data record 143 includes all energy meters available on the module phase-by-phase. The data record can be used for different actions:

    • Reset the energy counter to user-specific value (e.g. "0")
    • Reading the current values of the energy counters
    • Reading the overflow counters
    • Reading the operating hours

    Energy meter data record 143

    Table: Energy meter data record 143

    Byte

    Measured variable

    Data type

    Unit

    Value range

    Measured value ID

    0

    Version

    BYTE

    -

    1

    -

    1

    Reserved

    BYTE

    -

    0

    -

    2

    Status / control byte 1 - L1

    BYTE

    Bit string

    -

    -

    3

    Status / control byte 2 - L1

    BYTE

    Bit string

    4

    Status / control byte 1 - L2

    BYTE

    Bit string

    5

    Status / control byte 2 - L2

    BYTE

    Bit string

    6

    Status / control byte 1 - L3

    BYTE

    Bit string

    7

    Status / control byte 2 - L3

    BYTE

    Bit string

    8...15

    Active energy inflow (initial value) L1

    LREAL

    Wh

    During reading:

    0.0...1.8 x 10308

    During writing

    For continuous counting:

    0.0...3.4 x 1012

    During writing

    For periodic counting:

    0...configured full-scale value (103 ...1015)

    61180

    16...23

    Active energy outflow (initial value) L1

    LREAL

    Wh

    61181

    24...31

    Reactive energy inflow (initial value) L1

    LREAL

    varh

    61182

    32...39

    Reactive energy outflow (initial value) L1

    LREAL

    varh

    61183

    40...47

    Apparent energy (initial value) L1

    LREAL

    VAh

    61184

    48...55

    Active energy inflow (initial value) L2

    LREAL

    Wh

    61200

    56...63

    Active energy outflow (initial value) L2

    LREAL

    Wh

    61201

    64...61

    Reactive energy inflow (initial value) L2

    LREAL

    varh

    61202

    72...79

    Reactive energy outflow (initial value) L2

    LREAL

    varh

    61203

    80...87

    Apparent energy (initial value) L2

    LREAL

    VAh

    61204

    88...95

    Active energy inflow (initial value) L3

    LREAL

    Wh

    61220

    96...103

    Active energy outflow (initial value) L3

    LREAL

    Wh

    61221

    104...111

    Reactive energy inflow (initial value) L3

    LREAL

    varh

    61222

    112...119

    Reactive energy outflow (initial value) L3

    LREAL

    varh

    61223

    120...127

    Apparent energy (initial value) L3

    LREAL

    VAh

    61224

    128...129

    Overflow counter active energy inflow L1

    UINT

    -

    During reading:

    0...65535

    During writing for continuous counting:

    0

    During writing for periodic counting:

    0...65500

    61190

    130..131

    Overflow counter active energy outflow L1

    UINT

    -

    61191

    132...133

    Overflow counter reactive energy inflow L1

    UINT

    -

    61192

    134...135

    Overflow counter reactive energy outflow L1

    UINT

    -

    61193

    136...137

    Overflow counter apparent energy L1

    UINT

    -

    61194

    138...139

    Overflow counter active energy inflow L2

    UINT

    -

    61210

    140...141

    Overflow counter active energy outflow L2

    UINT

    -

    61211

    142...143

    Overflow counter reactive energy inflow L2

    UINT

    -

    61212

    144...145

    Overflow counter reactive energy outflow L2

    UINT

    -

    61213

    146...147

    Overflow counter apparent energy L2

    UINT

    -

    61214

    148...149

    Overflow counter active energy inflow L3

    UINT

    -

    61230

    150...151

    Overflow counter active energy outflow L3

    UINT

    -

    61231

    152...153

    Overflow counter reactive energy inflow L3

    UINT

    -

    61232

    154...155

    Overflow counter reactive energy outflow L3

    UINT

    -

    61233

    156...157

    Overflow counter apparent energy L3

    UINT

    -

    61234

    158...161

    Operating hours counter L1 (initial value)

    REAL

    h

    During reading:

    0...3.4x1038

    During writing:

    0...109

    65505

    162...165

    Operating hours counter L2 (initial value)

    REAL

    h

    65506

    166...169

    Operating hours counter L3 (initial value)

    REAL

    h

    65507

    Status information

    When data record 143 is read with the RDREC instruction, Bytes 2 to 7 supply phase-specific status information for energy counters, overflow counters and operating hours counters.

    The status information enables you can see which counters are returning their values in the data record 143. If energy counters return their values in the status byte 1, you can determine the type of energy counter with status byte 2.


    Figure: Status information DS 143 (read access)

    Control information

    When data record 143 is written with the WRREC instruction, Bytes 2 to 7 are used as phase-specific control information for energy counters, overflow counters and operating hours counter. The length of the control information amounts to 2 bytes for each phase:

    • In control byte 1 you determine which counter you want to reset and the time at which counters are reset.
    • In Control byte 2 you determine which energy counters and which overflow counters you want to reset.


    Figure: Control information DS 143 (write access)

    Error while transferring the data record

    The module always checks all the values of the transferred data record. Only if all the values were transferred without errors does the module apply the values from the data record.

    The WRREC instruction for writing data records returns corresponding error codes when errors occur in the STATUS parameter.

    The following table shows the module-specific error codes and their meaning for the measured value data record 143:

    Error code in STATUS parameter (hexadecimal)

    Meaning

    Solution

    Byte 0

    Byte 1

    Byte 2

    Byte 3

    DF

    80

    B0

    00

    Number of the data record unknown

    Enter a valid number for the data record.

    DF

    80

    B1

    00

    Length of the data record incorrect

    Enter a valid value for the data record length.

    DF

    80

    B2

    00

    Slot invalid or cannot be accessed.

    Check the station whether the module is plugged or drawn.

    Check the assigned values for the parameters of the WRREC instruction

    DF

    80

    E1

    01

    Reserved bits are not 0.

    Check Byte 2...7 and set the reserved bits back to 0.

    DF

    80

    E1

    39

    Incorrect version entered.

    Check Byte 0. Enter a valid version.

    DF

    80

    E1

    3A

    Incorrect data record length entered.

    Check the parameters of the WRREC instruction. Enter a valid length.

    DF

    80

    E1

    3C

    At least one start value is invalid.

    Check Bytes 8...103 and Bytes 158...169. The start values may not be negative.

    DF

    80

    E1

    3D

    At least one start value is too large

    Check Bytes 8...103 and Bytes 158...169. Observe the ranges of values for start values.



     

    Support to the statistics
    With this function the IDs found are listed according to number (format .txt).

    Generate list
    Copy URL
    Display page in new design
    mySupport Cockpit