Example For Energy Counters And Overflow Counters Via Data Record Ds 143 - Siemens simatic et200sp Manual

Modular i/o system with ip20 degree of protection
Hide thumbs Also See for simatic et200sp:
Table of Contents
Energy counters
7.4 Resetting energy counters and overflow counters
Start values
You specify the moment for the application of the start values in Control byte 1 via Bit 7.
After the reset the energy counters count with the specified start values (default = 0) and the
overflow counters begin again with 0. You can change the start values for the energy
counters via data record DS 143.
7.4.3

Example for energy counters and overflow counters via data record DS 143

Introduction
Before you can transfer the data record DS 143 to the CPU you have to create a user-
defined PLC data type in your user program that has an identical structure to data record DS
143.
Procedure
1. Create a PLC data type that has an identical structure to data record DS 143.
Detailed information on the structure of data record 143 is available in section Structure
for energy counters (DS 143) (Page 159).
52
Byte
Measured variable
0
Version
1
Reserved
2
Control byte 1 - L1
3
Control byte 2 - L1
4
Control byte 1 - L2
5
Control byte 2 - L2
6
Control byte 1 - L3
7
Control byte 2 - L3
8...15
Active energy inflow
(initial value) L1
16...23
Active energy outflow
(initial value) L1
:
:
162...165
Operating hours coun-
ter L2 (initial value)
166...169
Operating hours coun-
ter L3 (initial value)
Data type
Unit
BYTE
-
BYTE
-
BYTE
Bit string
BYTE
Bit string
BYTE
Bit string
BYTE
Bit string
BYTE
Bit string
BYTE
Bit string
LREAL
Wh
LREAL
Wh
:
:
REAL
h
REAL
h
Analog input module AI Energy Meter 480VAC ST (6ES7134-6PA20-0BD0)
Value range
Measured
value ID
1
-
0
-
-
-
See Section Struc-
61180
ture for energy
counters (DS 143)
61181
(Page 159)
:
:
See Section Struc-
65506
ture for energy
counters (DS 143)
65507
(Page 159)
Manual, 12/2015, A5E36061895-AA

Hide quick links:

Table of Contents
loading

Table of Contents