PCS7 Basic Lib
PCS7 Basic Lib
PCS7 Basic Lib
Family: CONTROL
Family: @System
Internal block
Appendix
Function Manual
07/2014
A5E32473002-AA
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified
personnel are those who, based on their training and experience, are capable of identifying risks and avoiding
potential hazards when working with these products/systems.
Trademarks
All names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in
this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
Siemens AG
Industry Sector
Postfach 48 48
90026 NRNBERG
GERMANY
A5E32473002-AA
07/2014 Subject to change
Table of contents
1
Family: CONTROL.....................................................................................................................................19
4.1
4.1.1
4.1.2
Family: @System.......................................................................................................................................23
5.1
5.1.1
5.1.2
5.1.3
5.2
5.2.1
5.2.2
5.3
5.3.1
5.3.2
5.4
5.4.1
5.4.2
5.4.3
5.5
5.5.1
5.5.2
5.6
5.6.1
5.6.2
5.7
5.7.1
5.7.2
DPDIAGV0: Monitoring the status of ET 200S modules acting as DPV0 slaves after the Y
link...............................................................................................................................................49
Description of DPDIAGV0...........................................................................................................49
I/Os of DPDIAGV0.......................................................................................................................51
5.8
5.8.1
5.8.2
5.8.3
5.9
5.9.1
5.9.2
Table of contents
5.9.3
5.10
5.10.1
5.10.2
5.10.3
5.11
5.11.1
5.11.2
5.12
5.12.1
5.12.2
5.12.3
5.13
5.13.1
5.13.2
5.13.3
5.14
5.14.1
5.14.2
5.14.3
5.15
5.15.1
5.15.2
5.15.3
5.16
5.16.1
5.16.2
5.16.3
5.17
5.17.1
5.17.2
5.17.3
5.18
5.18.1
5.18.2
5.18.3
5.19
5.19.1
5.19.2
5.19.3
5.20
5.20.1
5.20.2
5.20.3
Table of contents
5.21
5.21.1
5.21.2
5.21.3
5.22
5.22.1
5.22.2
5.22.3
5.23
5.23.1
5.23.2
5.23.3
5.24
5.24.1
5.24.2
5.24.3
5.25
5.25.1
5.25.2
5.25.3
5.26
5.26.1
5.26.2
5.26.3
5.27
5.27.1
5.27.2
5.27.3
5.28
5.28.1
5.28.2
5.28.3
5.29
5.29.1
5.29.2
5.29.3
5.30
5.30.1
5.30.2
5.30.3
5.31
5.31.1
Table of contents
5.31.2
5.31.3
I/Os of MOD_HA_PN.................................................................................................................195
Message texts and associated values of MOD_HA_PN............................................................198
5.32
5.32.1
5.32.2
5.32.3
5.33
5.33.1
5.33.2
5.33.3
5.34
MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link
DPV1)........................................................................................................................................211
Description of MOD_PAL0........................................................................................................211
I/Os of MOD_PAL0....................................................................................................................213
Message texts and associated values of MOD_PAL0...............................................................215
5.34.1
5.34.2
5.34.3
5.35
5.35.1
5.35.2
5.35.3
5.36
5.36.1
5.36.2
5.36.3
5.37
5.37.1
5.37.2
5.37.3
5.38
5.38.1
5.38.2
5.38.3
5.39
5.39.1
5.39.2
5.39.3
5.40
5.40.1
5.40.2
5.40.3
5.41
5.41.1
5.41.2
5.41.3
5.42
5.42.1
Table of contents
5.42.2
I/Os of OB_END........................................................................................................................259
5.43
5.43.1
5.43.2
5.44
5.44.1
5.44.2
5.44.3
5.45
5.45.1
5.45.2
5.45.3
5.46
5.46.1
5.46.2
5.46.3
5.47
5.47.1
5.47.2
5.47.3
5.48
5.48.1
5.48.2
5.48.3
5.48.4
5.48.5
5.48.6
5.48.7
5.49
5.49.1
5.49.2
5.50
5.50.1
5.50.2
5.51
5.51.1
5.51.2
5.51.3
5.52
5.52.1
5.53
5.53.1
Table of contents
5.53.2
5.53.3
I/Os of PS..................................................................................................................................316
Message texts and associated values of PS.............................................................................317
5.54
5.54.1
5.54.2
5.54.3
5.55
5.55.1
5.55.2
5.55.3
5.56
5.56.1
5.56.2
5.57
5.57.1
5.57.2
5.57.3
5.58
5.58.1
5.58.2
5.58.3
Internal block............................................................................................................................................339
6.1
6.2
Appendix...................................................................................................................................................341
7.1
7.2
7.3
7.4
7.5
7.6
7.7
Addressing................................................................................................................................353
7.8
Message Classes......................................................................................................................355
7.9
Dependencies...........................................................................................................................356
7.10
7.10.1
7.10.2
Status displays..........................................................................................................................356
Maintenance Status of MS........................................................................................................356
PA field device status and diagnostics information...................................................................357
7.11
7.11.1
7.11.2
7.11.3
7.11.4
Text libraries..............................................................................................................................360
Text Library for MOD_PAL0, MOD_PAX0.................................................................................360
Text Library for PADP_L00, PADP_L01, PADP_L02................................................................360
Text Library for DREP, DREP_L...............................................................................................360
Text library for MOD_1, MOD_2, MOD_3, MOD_64, MOD_D2, MOD_CP................................361
Table of contents
7.11.5
7.11.6
7.11.7
7.11.8
7.11.9
7.11.10
7.11.11
Index.........................................................................................................................................................373
The setup of the block description is always uniform and contains the following sections:
Function
Here, you will find a brief description of the block function.
You will find additional information about complex blocks in the "How it works" section.
How it works
Here, you will find more detailed information, for example about the function of specific inputs,
operating modes or time sequences. You must be familiar with these relationships in order to
use the block effectively.
11
Calling OBs
Here you will find information on the organization blocks (OBs), in which the described block
must be installed. If the CFC is used, the block is automatically installed in the cyclic OB (cyclic
interrupt) and in the OBs listed in the block's task list (for eample in restart OB100).
CFC generates the required OBs during compilation. If you use the blocks without CFC, you
will have to program these OBs and call their instance within the blocks.
Error handling
The ENO Boolean block output indicates the error in the CFC chart.
The value is equivalent to the BIE (binary result in STEP 7 STL, after completion of the block)
or OK bit (in SCL notation) and indicates:
ENO = BIE = OK = 1 (TRUE) -> The result of the block is free of errors.
ENO = BIE = OK = 0 (FALSE) -> Invalid result or constraints (for example, input values and
modes).
The FBs also return the inverted BIE at the QERR output of the instance DB.
QERR = NOT ENO
The error message is generated in two separate operations:
The operating system detects a processing error (e.g. value overflow, system functions
called return an error ID with BIE = 0).
This is a system function and is not specifically mentioned in the block description.
The block algorithm checks for functional invalidity of values and operating modes. These
error events are logged in the block description.
You can evaluate the error display, for example, to generate messages or use substitute values
for invalid results. You will find more information about messages in the "Message blocks"
section.
Startup characteristics
The different startup behaviors are as follows:
Initial start
The block is called for the first time from the OB in which it has been inserted. This is usually
the OB that performs the standard, process-specific operations (for example, the cyclic
interrupt OB).
The block adopts a status that conforms to its input parameters. These may be default
values (additional information in "I/Os" section) or values you have already configured, for
example, in CFC. The initial startup characteristics are not described separately unless the
block does not conform to this rule.
Startup
The block is executed once during CPU startup. The block is called in the startup OB (where
it is additionally installed either automatically in the ES or manually in STEP 7). In this case,
the startup characteristics are described.
Please note that the block outputs have default values and that these can take effect during
the CPU startup with other blocks, if these are processed first.
The correct startup behavior of the blocks is the responsibility of the configuration engineer.
12
Time response
A block assigned this function must be installed in a cyclic interrupt OB. It calculates its time
constants/parameters on the basis of its sampling time (the time which elapses between two
consecutive cyclic operations).
In a CFC configuration on ES, the sampling time is also determined by the segmentation of
the runtime group, which ensures that the block is not executed during every OB run.
This sampling time is entered at the I/Os, in the SAMPLE_T parameter.
When configuring with CFC, this occurs automatically once the block has been inserted in the
OB and the runtime group. For this reason, this input is set to invisible in CFC.
During the STEP 7 configuration, you set the time response manually.
Time response is mentioned only if the block has been assigned this feature.
Message response
A block with message response reports various events to the higher level OS. Existing
parameters required for the generation of messages are documented.
Blocks without message response can be expanded with additional message blocks. A
reference to the message response is found in the description of the individual message blocks.
I/Os
The I/Os of the block represent its data interface. These I/Os can be used either to transfer
data to the block or to fetch results from the block.
I/O
(parameter)
Meaning
Data type
Default
U1
Addend 1
REAL
.....
The "I/O" table lists all I/O parameters of the block type. You can access these lists using the
engineering tools. They are in alphabetical order. Elements accessible only via the block
algorithm (internal variables) are not listed.
The meaning of the columns is as follows:
I/O
Name of the parameter, derived from the English, e.g. PV_IN = Process Variable INput
(process variable, controlled variable).
The SIMATIC naming conventions have been applied.
The block representation in CFC as supplied is as follows:
I/O name in bold characters = I/O is visible, regular = I/O is invisible.
Meaning
Function (possibly also short description)
13
Data type
S7 data type of the parameter (BOOL, REAL, etc.)
Default (default value)
The value of the parameter before the block runs for the first time (unless changed in the
configuration)
14
Configuration
You configure a corresponding block icon for each AS. You then interconnect each block icon
with the corresponding structure variable.
To achieve all the required interconnections to the block icon, it is best to use the PCS 7 WinCC
Wizard for interconnecting faceplates to process tags. In the tag dialog "List of all structure
variables", you can select the relevant block instance.
15
For more information, refer to the manual SFC Visualization - Manual for S7 or in Simatic
Manager to the "SFC properties" dialog, "OS" tab or the "Properties for SFC type/SFC instance"
dialog, "Options" tab.
17
Family: CONTROL
4.1
4.1.1
Description of FM_CO
Function
The block coordinates the data record reading of the blocks
Block
Library
Module
FM_CNT
FM350-1, FM350-2
FMCS_PID
PCS 7 Library
FM355
FMT_PID
PCS 7 Library
FM355-2
REAS355P
PCS 7 Library
FM355, FM355-2
FmCont
PCS 7 APL
FM355
FmTemp
PCS 7 APL
FM355-2
The block is installed and the parameters interconnected by the driver generator.
Block
Configuration of the
coordination number
FM_CNT,
FMCS_PID
CO_NO
FM_PID,
READ355P
CO_NO
FmCont,
FmTemp
CoordNo
Where:
19
Family: CONTROL
4.1 FM_CO: Coordination of function blocks which read data records
How it works
The FM_CO block can start a maximum of 8 block sequences.
The blocks connected to the output structure EN_COx check whether the current coordination
number (EN_COx.CO_ACT) corresponds to their own coordination number (CO_NO/
CoordNo). If this is the case, they read their data records from the module and reduce the
coordination number EN_COx.CO_ACT by 1, so that the next block can read out its data
records.
If the current coordination number of a sequence (EN_COx.CO_ACT) has a value less than
1, the FM_CO block determines the highest number assigned in sequence x based on its inputs
ENCOx_yy. The data reading blocks supply the inputs ENCOx_yy with their respective
coordination number via an interconnection. The highest coordination number is the number
for which ENCOx_yy = yy still applies. The FM_CO module restarts the sequence in which it
sets EN_COx.CO_ACT to this value.
This algorithm ensures that no more than one read data record operation ever takes place at
any given time within the block sequence.
Calling OBs
The fastest cyclic interrupt OB of all OBs in which you have installed data reading block
instances and OB100 as well.
Use in CFC
When using the CFC function "Generate Module Drivers", the block is automatically installed
and the connections, such as those described under "Installation regulation" are made.
If you install, delete or move blocks of an existing block sequence in other OBs or runtime
groups, the driver generator must be called.
Should the sequence not start up as expected (after CPU restart) or not continue to run (after
downloading changes), you must set ACC_ID to 1.
Installation rules/capacity
One FM_CO is responsible for one DP master system and has 8 sequences with data record
reading block instances that are coordinated in parallel. The first block sequence contains
instances of the data recording reading blocks that relate to the DP slaves 1, 9, 17 and so on.
The second block sequence contains instances of the data recording reading blocks that relate
to the DP slaves 2, 10, 18 and so on. The same principle applies to the remainder of the eight
block sequences.
Note
When an instance is added to a sequence by a data recording reading block, the sampling
time of all instances in the sequence increases. If, for example, an instance from DP slave 9
is added to the sequence 1, then the sampling time of all instances of sequence 1 increases
including the instances from DP slave 1.
A sequence may contain up to 63 data recording reading instances of the following blocks:
20
Family: CONTROL
4.1 FM_CO: Coordination of function blocks which read data records
Block
Module
FM_CNT
FM350-1, FM350-2
FMCS_PID, FMT_PID,
FmCont, FmTemp
FM355, FM355-2
READ355P
FM355, FM355-2
The FM_CO must always be installed before the first data record reading instance in the fastest
cyclic interrupt OB. The output structure EN_COx for the DP slave is connected to the input
structures EN_COx or EnCoord of all data record reading instances that communicate with
the controller modules of rack x. The output ENCO or EnCoNum of each data record reading
instance is connected to an input ENCOx_yy (yy corresponds to the coordination number
CO_NO or CoordNo assigned to each data recording reading instance) of the FM_CO block.
The selection of the cyclic interrupt OB depends on the CPU load. Note that the CPU has no
reserves for other "Read data record" jobs if operating with eight or more DP slaves because
only eight jobs can be buffered per DP master system. Simply inserting a module would lead
to an overflow. It is advisable to operate only up to six DP slaves on a DP master system. The
remaining DP slaves must be distributed on other DP master systems with further FM_CO
blocks.
When selecting the cyclic OB, remember that the new data will be available at the earliest after
two cycles. Make sure that the maximum runtime of this OB does not have any negative impact
on overall system runtime as a result of the number of blocks installed. If the data recording
reading block instances to be processed exceed the runtime limit, group the DP slaves with
the FM350/FM355 modules in fast and slow control loops.
Startup characteristics
EN_CO_x.CO_ACT = 1 is set at all outputs during startup (restart).
Time response
Not available
Message functionality
Not available
4.1.2
I/Os of FM_CO
The factory setting of the block display in the CFC is identified in the "I/O" column: I/O name
bold = I/O visible, I/O name normal = I/O not visible.
21
Family: CONTROL
4.1 FM_CO: Coordination of function blocks which read data records
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DIAG_BUF
BOOL
ENCOx_yy
BYTE
I/O
(parameter)
Meaning
Data type
Default
EN_CO_x
Coordination number of the block that can read data records STRUCT
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
Output parameters
In/out parameters
22
Family: @System
5.1
5.1.1
Description of CONEC
Area of application
The CONEC block monitors the status of AS connections, and reports the associated error
events.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 100
Warm restart
Use in CFC
With the "Generate module drivers" CFC function, the CONEC block is automatically installed
in the OBs listed above.
23
Family: @System
5.1 CONEC: Monitoring the AS connection status
Error handling
Error handling for the block is limited to the evaluation of the error information of ALARM_8P.
You will find additional information in the
"Error Information of Output Parameter MSG_STAT" (Page 353) section.
Startup characteristics
The CONEC block initializes the messages of ALARM_8P.
If there is a CPU with SFC 87, connection diagnostics is initialized. After this, there is a wait
time of approx. 1 minute in the cyclic interrupt OB before the connection diagnostics messages
are generated.
Overload behavior
Not available
Time response
For additional information, refer to "Message response".
Message response
The block generates the following messages in the OBs listed below:
OB
Start Event
Message
OB 32
24
Family: @System
5.1 CONEC: Monitoring the AS connection status
Additional information
For additional information, refer to the sections:
Message texts and associated values of CONEC (Page 26)
Maintenance status MS (Page 356)
5.1.2
I/Os of CONEC
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
DWORD
Maintenance status
DWORD
SAMPLE_T
REAL
1.0
I/O
(parameter)
Meaning
Data type
Default
MSGSTAx
WORD
O_MS
Maintenance status
DWORD
QMSGERx
BOOL
Output parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of CONEC (Page 26)
Maintenance status MS (Page 356)
25
Family: @System
5.1 CONEC: Monitoring the AS connection status
5.1.3
Message
number
Message
class
(Page 355)
EV_ID1 to EV_ID16
EV_ID17 to EV_ID24 1
26
Message block
ALARM_8P
Associated
value
Block parameter
Data type
EV_ID1... EV_ID24
Connection_ID 1+x
WORD
Connection_ID 2+x
WORD
Connection_ID 3+x
WORD
Connection_ID 4+x
WORD
Connection_ID 5+x
WORD
Connection_ID 6+x
WORD
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
Message block
ALARM_8P
Associated
value
Block parameter
Data type
Connection_ID 7+x
WORD
Connection_ID 8+x
WORD
x = 0 for EV_ID1, x = 8 for EV_ID2, x = 16 for EV_ID3 etc. up to x = 120 for EV_ID16
x = 0 for EV_ID17, x = 8 for EV_ID18, x = 16 for EV_ID19 etc. up to x = 56 for EV_ID24
5.2
5.2.1
Description of CPU_RT
Area of application
The CPU_RT block is installed by the CFC in OB 100, OB 1, in all OB 3x as well as OB 8x, if
this is used by the user program.
The CPU_RT determines the runtime of the individual OBs and their participation in the cycle
time. If there is CPU overload (OB 80 cycle time exceeded), it instigates suitable actions
selected by the user in limits to ensure operability of the AS.
This situation is designated as emergency operation and is made clearly visible by a process
control message. Buffered start events (OB 3x still executing) are also detected and displayed.
The loss of start events is reported as error.
Use in CFC
During compilation of the CFC, a chart is automatically created with the name @CPU_RT. The
CPU_RT block is already included in it.
Note
Never attempt to insert the CPU_RT block in a different block because it is a system block.
27
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
In OB-BEGIN, if there are implausible settings, a message EV_ID2 signal 3 "Priorities of cyclic
OBs do not conform to PCS 7" is output and the maintenance status (MS is set to "Maintenance
demand" = 16#00000005).
SFC78 is used to determine the OB runtimes. If it is not present, no warning limit will be output
as a message.
Note
Older CPUs do not support SFC78. Use SSL112 to check whether SFC78 is available.
Note
The status of CPU_RT is reset when you download.
28
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
The maximum number of SFC43 calls can be set at the input MAX_RTRG. If the maximum
number x is exceeded, the CPU goes to stop.
The number x is reset when there is an OB 1 call again.
If you set MAX_RTRG = 0, then the function stop avoidance on overload function is deactivated.
If the measures are effective, in other words OB 1 is run through again, a calculation is made
at that point to determine whether canceling the measures would again result in overload. If
yes, the measures remain in effect. The measures are reduced step-by-step, when safe
operation is possible again.
29
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
30
OB3x_N_START
The start value for reduction ratio is specified by the input OB3x_N of CPU_RT
and also in OB3x_N_CNT
OB3x_N_CNT
The counter is decremented in the CFC at each OB call. For OB3x_N_CNT <= 0
there is complete OB processing and OB3x_N_START will be re-entered in
OB3x_N_CNT.
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
The CPU block is also called when reduction becomes necessary, so that in emergency
operation an evaluation of the averaged cycle time is possible.
Type of connection
31
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
4
T connection (UDP)
T connection (ISO-on-TCP)
Routed connection
PG connection
OP connection
OMS connection
10
Free connection
11
12
System connection
13
RPC7 connection
14
Identification / partner
You can use this to recognize the connection involved. This connection must be unique.
Depending on the connection type, the ID and the partner are determined as follows:
Connection type
Text
tag
1-2
Local ID: a
a = User ID (hex)
3-5
a = User ID (hex)
7-9
a..d = CONx_R_ADDR0..3*
10-11
12
a = UserId (hex),
b = rackNr
c = slotNr
13-14
a..d = CONx_R_ADDR0..3*
Error handling
If the read-out of data from the cyclic OB fails for the CPU_RT block, then ERR_NUM = 1 is
set and processing of the CPU_RT block is abandoned, because these data are the basic
prerequisite for useful processing.
Startup characteristics
Calculations with SFC78 are restarted only after a number of cycles (RunUpCyc) after restart.
The RunUpCyles are counted down in the slowest cyclic OB.
Time response
Not applicable.
32
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
Message response
The block reports via OB_BEGIN (Page 223)
Additional information
You can find additional information on this subject in the following sections:
Message texts and associated values of OB_BEGIN (Page 229)
Maintenance status MS (Page 356)
5.2.2
I/Os of CPU_RT
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
Meaning
Type
Defau
lt
DELTA_L
BOOL
DIAG_BUF
BOOL
HYS
INT
MAX_LIM
REAL
75
MAX_RTRG
INT
50
MAX_VAL
REAL
95
N_REQ_ERR
INT
OB3x_ATTN
BOOL
RESET
BOOL
RUNUPCYC
INT
SAMPLE_AV
INT
50
33
Family: @System
5.2 CPU_RT: Determination of the runtime of OBs
I/O
Meaning
Type
Defau
lt
SAMPLE_RE
INT
50
UNDO_CYC
INT
100
Output parameters
I/O
Meaning
Type
Defau
lt
CON_LOAD_ACT
BOOL
CONx_TYPE
(x = 1 - 5) I/O type
WORD
CONx_USER_ID
WORD
CONx_INT_CN_ID
WORD
CONx_DEVICE_ID
WORD
CONx_MAXP
INT
CONx_REM_ADDR_LEN
WORD
CONx_REM_ADDR0..7
(x = 1 - 5) I/O address 0 to 7
BYTE
CONx_LOAD
DINT
CONx_PER
INT
CPU_RT_DATA
STRUCT
DAT_PLAU
BOOL
ERR_NUM
1 = occurrence of an error
INT
EXC_FR3x
INT
GRO3xAV
REAL
GRO3xCUR
REAL
GRO3xMAX
REAL
GRO3xMIN
REAL
GRO3xPER
REAL
MAXCYCTI
INT
N_OB1_CYC
INT
NET01AV
REAL
NET01CUR
REAL
NET01MAX
REAL
NET01MIN
REAL
NET01PER
REAL
NET3xAV
REAL
NET3xCUR
REAL
NET3xMAX
REAL
NET3xMIN
DINT
NET3xPER
REAL
NET8xAV
REAL
NET8xCUR
REAL
34
Family: @System
5.3 DIAG_AB: Evaluation of statusword AB7000
I/O
Meaning
Type
Defau
lt
NET8xMAX
REAL
NET8xPER
REAL
OB3x_N_CNT
INT
OB3x_N_START
INT
REQ01ERR
BOOL
REQ3xERR
(x = 0 8) OB request errors
BOOL
SFC78_EX
BOOL
SL_OB
Slowest OB 3x
BYTE
SL_OB_EXC_FR
INT
TOTALAV
DINT
TOTALCUR
DINT
TOTALMAX
DINT
TOTALMIN
DINT
In/out parameters
I/O
Meaning
Type
Defau
lt
IDLE_CYC
INT
Additional information
You can find additional information on this subject in the following sections:
Message texts and associated values of OB_BEGIN (Page 229)
5.3
5.3.1
Description of DIAG_OB
Area of application
The DIAG_AB block evaluates the status word of an AB7000 slave and acknowledges newly
reported errors via the control word of the slave.
35
Family: @System
5.3 DIAG_AB: Evaluation of statusword AB7000
Calling OBs
The cyclic OB and OB 100.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed in the run sequence before the MOD_PAL0 or MOD_PAX0 block,
both of which are also installed by the driver generator. The install is executed in the same
cyclic OB as the associated signal processing blocks FF_A_xx.
Parameters are assigned to the LADDR_C input with the address of the control word of the
AB7000.
Parameters are assigned to the input LADDR_S with the address control word of the
AB7000.
The OUT structure CPU_DIAG of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of DIAG_AB.
The input mode of the DIAG_AB block is interconnected with the output OMODE_00 of the
PADP_L10 or PADP_L01 block.
The input PA_DIAG of the DIAG_AB block is interconnected with the output PA_DIAG of
the PADP_L10 or PADP_L01 block.
The output OMODE of the DIAG_AB block is interconnected with the input MODE_00 of
the MOD_PAL0 or MOD_PAX0 block.
The output ODIAG of the DIAG_AB block is interconnected with the input PA_DIAG of the
MOD_PAL0 or MOD_PAX0 block.
Value
Description
OMODE
16#40000001
ODIAG
16#00400000
After an error exiting state the outputs are set to the status "Good":
Parameters
Value
Description
OMODE
16#80000001
Valid value
ODIAG
PA_DIAG
The outputs SR_CODE and SR_DATA show the last values of a status tab sent by the AB7000.
The meaning of SR_DATA depends on SR_CODE:
36
Family: @System
5.3 DIAG_AB: Evaluation of statusword AB7000
SR_CODE
SR_DATA
Description
16#00
Number of retransmissions
16#01
16#03
Address of the FIM The FIM has sent more data than expected
16#04
16#13
16#1F
Error handling
The validity of input parameters is not checked.
Startup characteristics
Initialization of outputs OMODE with 16#80000001 ("valid value") and ODIAG with
16#00000000 ("no error")
Time response
Not available
Message response
Not available
5.3.2
I/Os of DIAG_AB
The factory setting of the block display in CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: General
Information About Block Description (Page 11).
Input parameters
I/O
Meaning
Type
Default
LADDR_C
INT
LADDR_S
INT
37
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
I/O
Meaning
Type
Default
MODE
Value status
DWORD
PA_DIAG
Diagnostic information
DWORD
I/O
Meaning
Type
Default
ODIAG
DWORD
Output parameters
OMODE
DWORD
SR_CODE
BYTE
SR_DATA
BYTE
I/O
Meaning
Type
Default
CPU_DIAG
STRUCT
In-out parameters
5.4
5.4.1
Description of DPAY_V0
Area of application
Block DPAY_V0 monitors the status of a DP/PA or Y-Link as a V0 slave (IM 157) and reports
the corresponding error events.
The DP/PA link operates as a PA master for the lower-level PA field devices and as a slave
on the DP bus.
The Y-Link operates as a DP master for the lower-level DP field devices and as a slave on the
higher-level DP bus.
38
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 70
OB 72
OB 82
Diagnostic interrupt
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence downstream from the SUBNET block and
upstream from the PADP_L0x block.
RACK_NO (rack/station number) is configured.
SUBN_TYP (internal/external PROFIBUS interface) is set.
SUBN1_ID (ID of the master systems) is set.
SUBN2_ID (ID of the redundant master system) is set.
DADDR (diagnostic address of the DP/PA or Y-Link) is set.
DPPA_xx (slave xx address), 1st module (slot) address of slave xx in the link, number of
slots of slave xx are set.
The CPU_DIAG of the OB_BEGIN block and SUB_DIAG of the SUBNET block OUT
structures are interconnected with the IN_OUT structures of the same name of DPAY_V0.
In the case of PA or DP field devices, they are interconnected with PADP_L0x.
39
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
can be operated downstream from a link. Each field device can use any number of virtual slots
at the link, up to 223 maximum.
In order to enable the assignment of diagnostic data to the field devices, the block provides
each field device a DPPA_xx input structure consisting of 3 bytes with the following contents:
Byte (SLAV_NO) = node number (address) of the field device at the PA/DP master system
of the LINK
Byte (SLOT_NO) = 1st module address of the field device in the link
Byte (SLAV_SL) = number of slots of the field device
The "Generate module drivers" CFC function fetches this data from HW Config.
The start information is read from the CPU_DIAG I/O structure. This structure must be
interconnected to the CPU_DIAG structure of the OB_BEGIN block (carried out by the CFC
function "Generate module drivers").
The block generates a corresponding message (see "Message Response") on the basis of
the startup information of calling OBs, if the current instance is affected.
When operating with redundant PROFIBUS DP interfaces, the block determines the currently
active preferred channel (SUBN1ACT, SUBN2ACT) by evaluating the error events as well as
via the diagnostic address DADDR of the link.
SFC 13 (DPNRM_DG, read diagnostic data consistently) reads the diagnostic data (OB 82).
The reading process can take several cycles (OB 1). It is therefore possible in a few rare cases
that the triggering diagnostic event cannot be recognized.
Diagnostic user data contains information about the status of the link, and of connected field
devices. The structure DPPA_ST indicates the link status.
The status of a field device is entered in the structure DPA_M_xx.
A field device can have a maximum of 32 slots (modules). Three block types are available,
according to the number of slots on the field device:
PADP_L00 (field device with max. 7 slots)
PADP_L01 (field device with max. 16 slots)
PADP_L02 (field device with max. 32 slots)
The structure DPA_M_xx is interconnected to the structure DPA_M and the output EN_Mx with
EN of one of the PADP_Lxx blocks (carried out by the CFC function "Generate module
drivers").
The DPA_M_xx structure consists of two DWORD value (S_01 for modules 1 to 16 and S_02
for modules 17 to 32) and one BOOL value (S_ERR = DP/PA field device faulty). Two bits of
the DWORD are assigned to each slot of the DP/PA field device, whereby bit 0 and bit 1 belong
to slot 1 (module 1) of the DP/PA field device, etc. These bits are defined as follows:
40
Status Bit 0
Status Bit 1
Meaning
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
If the diagnostics alarm applies to the entire DP/PA field device, then DPA_M_xx.S_ERR =
TRUE is set.
Note: If you want to change the SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection
to CPU 1) inputs online, you must set input ACC_ID = TRUE. This verifies the Link states and
updates output values.
Redundancy
The block supports redundant DP master systems in an H system (distributed I/Os only). The
SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection to CPU 1) inputs of the SUBNET
block are configured with the numbers of the redundant DP master systems. If the DP master
systems are not redundant, the remaining input is set to 16#FF (default).
Error handling
Error handling for the block is limited to the evaluation of the error information of ALARM_8P.
For additional information on this, refer to the section:
Error information of the MSG_STAT output parameter (Page 353)" section.
Startup characteristics
The block initializes the messages of ALARM_8P. Availability of the link is verified. In H
systems, determines the preferred channel of the link.
Overload behavior
The block counts OB 86 (no DP master system failure, see SUBNET block) and OB 82 calls.
Both counters are reset in OB 1. If more than five OB 86 events or more than five OB 82 events
in succession before the cycle control point is reached (OB 1), these events are discarded and
the message ""DP-Link DP-Master:x Rack:y: Multiple failure" or the message "DP-Link
Master:x Rack:y: Muktiple alarm (OB 82)" is output. 1 minute later the status of the link will be
re-checked.
Time response
Not available
Message response
After its call by OB 70, OB 72, OB 85 or OB 86, the block analyzes the status of its assigned
CPU, DP master and link. If the link loses redundancy or fails, the block outputs corresponding
messages via ALARM_8P.
The block generally reports only the events generated in the link that it monitors. Redundancy
loss and link failures which are caused by the failure of a DP masters or of a CPU, are initially
neither signaled nor indicated at the outputs SUBN1ERR and SUBN2ERR.
The DELAY input is used to delay the output of error messages for higher-priority outgoing
errors. This delay time is configurable. When the block recognizes an outgoing error at an
41
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
interconnected DP master, it initially assumes that there is a faulty assigned DP slave in the
link it monitors and sets the corresponding output SUBNxERR. The error status is not reset
until the DP slave returns (in this case: OB 86, OB 70). The blocks delay error messages
relevant to any slave failure states for a time in seconds as specified in DELAY, in order not
to trigger the output of surge of messages from DP slaves which are not yet synchronized after
the master has returned. An error message is only output to the OS when the DP slave has
not reported its return before this delay time has expired.
Do not set the value of DELAY too high, since messages reporting faulty DP slaves or their
removal during a master failure will be output too late to the OS after the DP master returns.
The block generates the following messages in the OBs listed below:
OB no.
Start Event
Message
OB 1
Cyclic processing
OB 70
Redundancy loss
OB 85
OB 86
Rack failure
OB 100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values of DPAY_V0 (Page 44)
Maintenance status MS (Page 356)
5.4.2
I/Os of DPAY_V0
I/Os
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: General
Information About Block Description (Page 11).
42
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DELAY
INT
15
DIAG_BUF
BOOL
DPPA_xx
STRUCT
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
MS
Maintenance status
DWORD
RACK_NO
Rack/station number
WORD
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
DPA_M_xx
STRUCT
DPPA_ST
DP/PA/Y-Link status
STRUCT
EN_Mxx
BOOL
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
RAC_DIAG
Rack diagnostics
BOOL
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN1ERR
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN2ERR
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG
STRUCT
SUB_DIAG
OB startup information
STRUCT
Output parameters
In/out parameters
Additional information
For additional information, refer to the sections:
43
Family: @System
5.4 DPAY_V0: Monitoring DP/PA and Y-Link operating as V0 slave
Message texts and associated values of DPAY_V0 (Page 44)
Maintenance status MS (Page 356)
5.4.3
Message class
Block parameter
See also
Message Classes (Page 355)
44
Family: @System
5.5 DPAY_V1: Enabling blocks downstream of a DP/PA and Y-Link operating as V1 slave
5.5
5.5.1
Description of DPAY_V1
Area of application
The DPAY_V1 block enables the field device-specific blocks downstream of the DP/PA or Y
links.
The DP/PA link acts as a PA master for the lower-level PA field devices, and as a slave on the
DP bus.
The Y link acts as a DP master for the lower-level DP field devices, and as a slave on the
higher-level DP bus.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 55
Status interrupt
OB 56
Update interrupt
OB 57
Vendor-specific interrupts
OB 70
OB 72
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence after the OB_DIAG1 block.
SUBN_1ID (ID of primary DP master system) is configured.
SUBN_2ID (ID of secondary DP master system) is configured.
45
Family: @System
5.5 DPAY_V1: Enabling blocks downstream of a DP/PA and Y-Link operating as V1 slave
RACK_NO (rack/station number) is configured.
The OUT structure CPU_DIAG of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of DPAY_V1.
The OUT structure CPU_OB_5X of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of DPAY_V1.
EN_Mxx are interconnected with EN of OB_DIAG1 and PADP_L10 for each field device.
OB 5x characteristics
Enables the output for the affected field device.
Redundancy
The redundancy is evaluated in OB_DIAG1.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
The block initializes its outputs.
Overload behavior
OB_DIAG1 disables the block in response to an overload.
Time response
Not available
Message response
Not available
46
Family: @System
5.6 DPAY_V1_PN: Enabling blocks downstream of a DP/PA and Y-link operating as a V1 Slave
5.5.2
I/Os of DPAY V1
The factory setting of the block display in CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CPU_DIAG
STRUCT
CPU_OB_5X
STRUCT
DPPA_xx
STRUCT
RACK_NO
Rack/station number
WORD
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
CPU_DIAG
STRUCT
CPU_OB_5X
STRUCT
EN_Mxx
BOOL
Output parameters
5.6
5.6.1
Description of DPAY_V1_PN
Area of application
The DPAY_V1_PN block releases the field device-specific blocks downstream of the IE/PB
link.
47
Family: @System
5.6 DPAY_V1_PN: Enabling blocks downstream of a DP/PA and Y-link operating as a V1 Slave
The IE/PB link operates as a PA master for the lower-level PA field devices and as a slave on
the IE bus.
See also
General Information About Block Description (Page 11)
5.6.2
I/Os of DPAY_V1_PN
The factory setting of the block display in CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
DPPA_00
STRUCT
RACK_NO
Rack number
BYTE
Default
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
EN_Mxx
BOOL
I/O (parameter)
Meaning
CPU_DIAG_PN
STRUCT
CPU_OB_5X
STRUCT
Output parameters
In-out parameters
48
Data type
Default
Family: @System
5.7 DPDIAGV0: Monitoring the status of ET 200S modules acting as DPV0 slaves after the Y link
5.7
5.7.1
Description of DPDIAGV0
Area of application
The DPDIAGV0 block monitors the status of the modules of an ET 200S acting as a DPV0
slave (IM 151-1 High Feature) after a Y link.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence after the OB_DIAG1 block.
The following inputs are configured:
SUBN_1ID (ID primary DP master system)
SUBN_2ID (ID secondary DP master system)
RACK_NO (rack/station number)
The following I/Os are interconnected:
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK
block with the DPDIAGV0-block IN_OUT structures of the same name
EN_Mxx with EN of the OB_DIAG1 block and the DPDIAGV0 block of each ET 200S
The DPA_M_xx outputs with the DPA_M input and EN_Mxx output with EN of a MOD_4
block.
49
Family: @System
5.7 DPDIAGV0: Monitoring the status of ET 200S modules acting as DPV0 slaves after the Y link
Status Bit 1
Status Bit 0
Meaning
Note: If you want to change the SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection
to CPU 1) inputs online, you must set input ACC_ID = TRUE. This verifies the Link states and
updates output values.
Redundancy
Only non-redundant devices may be used downstream of a Y link.
Error handling
The validity of input parameters is not checked.
Startup characteristics
The system verifies that the ET 200S is available.
50
Family: @System
5.7 DPDIAGV0: Monitoring the status of ET 200S modules acting as DPV0 slaves after the Y link
Overload behavior
The overload behavior takes place in the upstream OB_DIAG1 block.
Time response
Not available
Message response
Not available
5.7.2
I/Os of DPDIAGV0
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DIAG_BUF
BOOL
PADP_ADR
DP address ET 200S
BYTE
255
RACK_NO
Rack/station number
BYTE
SLAVE_NO
BYTE
SLAVE_SL
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
51
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Output parameters
I/O
(parameter)
Meaning
Data type
Default
DPA_M_xx
BYTE
EN_Mxx
BOOL
QRACKF
1 = ET 200S failure
BOOL
SUBNERR
1 = Y link failure
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
In/out parameters
5.8
5.8.1
Description of DREP
Area of application
The DREP block evaluates the diagnostic data from a SIMATIC diagnostic repeater for
PROFIBUS DP. This repeater must be connected to a DP master.
Calling OBs
52
OB 1
Cyclic processing
OB 82
Diagnostic interrupt
OB 86
Rack failure
OB 100
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Block OB_DIAG1 is installed in the run sequence upstream of the DREP block.
The following addresses are configured:
The diagnostic address DADDR of the diagnostics repeater
The geographic address (SUBN_ID and PADP_ADR)
The following I/Os are interconnected:
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the
OB_DIAG1 block with the IN_OUT structures of the same name of the DREP block.
The EN input with the output of an AND block.
The inputs of the AND block with the EN_SUBx outputs (x = number of the DP master
system) of the OB_BEGIN block, with EN_Rxxx (xxx = rack/station number) of the
SUBNET block and with EN_F of the OB_DIAG1 block.
EN_DIAG with the EN_DIAG output of the OB_DIAG1 block.
53
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Bit
Description
A.0
1: The location and cause of the error cannot be identified (possibly electromagnetic
interference)
A.1
A.2
1: - -
A.3
1: Further measurement circuits at the segment, the other diagnostic repeater is connected
to its segment DP2
A.4
1: Further measurement circuits at the segment, the other diagnostic repeater is connected
to its segment DP3
A.5
1: - -
A.6
A.7
B.0
1:- -.
B.1
1: - -
B.2
1: - -
B.3
1: - -
B.4
1: - -.
B.5
1: - -
B.6
1: - -.
B.7
1: - -
C.0
1: Segment automatically switched off due to continuous zero level on the line.
C.1
C.2
1: - -
C.3
1: - -
C.4
C.5
1: The distance between the node and the diagnostic repeater exceeds the permitted
line length.
C.6
1: The maximum permitted number of diagnostic repeaters connected in series has been
exceeded.
C.7
1: - -
The outgoing message will be generated when all segment bits are equal to zero.
Call HW Config to analyze details of events output by the diagnostic repeater.
An appropriate incoming/outgoing message will be generated for each segment (DP2 or DP3)
in response to the following events detected by a diagnostic repeater:
54
Bit
Description
A.0
1: -
A.1
1:-
A.2
1: -
A.3
1: -
A.4
1: -
A.5
1: -
A.6
1: -
A.7
1:
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Bit
Description
B.0
B.1
B.2
1: -
B.3
B.4
B.5
1: -
B.6
B.7
C.0
1: -
C.1
1: -
C.2
1: -
C.3
1: -
C.4
1: -
C.5
1: -.
C.6
1: -
C.7
1: -
Events detected by the diagnostics repeater are acquired synchronously in OB 82. Diagnostic
event data is fetched via SFB 54 in the OB_BEGIN block and written to the structure DINFO.
The function always sets just one bit to indicate the cause of an event-entering state. Bit C7
may also be set if the diagnostics repeater has detected further errors. In this case, all
previously reported events will be queued. DREP generates a corresponding group error
message via ALARM_8P. Flutter messages may occur, particularly in response to error causes
A.0.1 and A.6.1. They are suppressed as follows:
After an outgoing message, a new outgoing message will be delayed by the time in [s] set at
the DELAY parameter. If a further error is queued, the outgoing message will not be generated
until this error has been reported outgoing.
Error handling
The block evaluates the error information from ALARM_8P, and writes it to the corresponding
output parameters. You will find additional information about this in the "Error information of
output parameter MSG_STAT (Page 353)" section.
The block reports a diagnostic error if an error occurs while reading the diagnostic data, or if
any other fault corrupts diagnostic data.
Startup characteristics
ALARM_8P messages are initialized by the DREP block. This uses SFC13 (DPNRM_DG) to
read the latest diagnostic information from the diagnostic repeater.
Overload behavior
The interconnected OB_DIAG1 locks the call of DREP for diagnostics if an overload has
occurred.
55
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Dynamic response:
Not available
Message response:
The multiple instances ALARM_8P are only called if a message is to be output by this instance.
It is only at this point that previously acknowledged messages are updated by the
corresponding ALARM block. If the connection to WinCC is down, each ALARM_8P instance
can hold up to two message statuses of its event ID. (Usually two messages maximum). Flutter
messages can be suppressed via the DELAY input.
The block generates the messages listed below:
OB no.
Start Event
Message
Cyclic processing
82
Diagnostic interrupt
Group message
100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values of DREP (Page 58)
Maintenance status MS (Page 356)
5.8.2
I/Os of DREP
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
56
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
Input parameters
I/O
(parameter)
Meaning
Type
Default
DADDR
INT
DELAY
INT
DIAG_BUF
BOOL
EN_DIAG
BOOL
EN_MSG
1 = enable message
BOOL
EV_IDx
Message number
DWORD
MS
Maintenance status
DWORD
PADP_ADR
BYTE
255
SUBN_ID
DP master system ID
BYTE
255
I/O
(parameter)
Meaning
Type
Default
DINFO
STRUCT
MSG_ACKx
Message acknowledgment
WORD
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
QDREPF
BOOL
QERR
1 = program error
BOOL
I/O
(parameter)
Meaning
Type
Default
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
RAC_DIAG
OB_DIAG1 diagnostics
STRUCT
Output parameters
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of DREP (Page 58)
Maintenance status MS (Page 356)
57
Family: @System
5.8 DREP: Diagnostic Repeater in the DP master system
5.8.3
Message no.
Messag
e
class
EV_ID1
DR @1%d@/@2%d@/DP2: @5%d@.@6%d@m/wire
break A /@3%d@
@4%d@
DR @1%d@/@2%d@/DP2: @5%d@.@6%d@m/
short A/@3%d@
@4%d@
DR @1%d@/@2%d@/DP2: @5%d@.@6%d@m/wire
break B/@3%d@ @4%d@
DR @1%d@/@2%d@/DP2:
short B/@3%d@ @4%d@
DR @1%d@/@2%d@/DP2:
@5%d@.@6%d@m/
wire break AB or terminating resistor missing/@3%d@
@4%d@
@5%d@.@6%d@m/
DR @1%d@/@2%d@/DP2:
short AB or too many terminating resistors/@3%d@
@4%d@
DR @1%d@/@2%d@/DP3: @5%d@.@6%d@m/wire
break A /@3%d@
@4%d@
DR @1%d@/@2%d@/DP3: @5%d@.@6%d@m/
short A/@3%d@
@4%d@
DR @1%d@/@2%d@/DP3: @5%d@.@6%d@m/wire
break B/@3%d@ @4%d@
DR @1%d@/@2%d@/DP3:
short B/@3%d@ @4%d@
DR @1%d@/@2%d@/DP3:
@5%d@.@6%d@m/
wire break AB or terminating resistor missing/@3%d@
@4%d@
@5%d@.@6%d@m/
DR @1%d@/@2%d@/DP3:
short AB or too many terminating resistors/@3%d@
@4%d@
DR @1%d@/@2%d@: @7W%t#DREP_TXT@
EV_ID2
@5%d@.@6%d@m/
@5%d@.@6%d@m/
You will find the message texts and their text numbers in "Text library for DREP (Page 360)".
58
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Associat
ed
value
Block
parameter
Meaning
EV_ID1
SUBN_ID
PADP_ADR
EV_ID2
SUBN_ID
PADP_ADR
5.9
5.9.1
Description of DREP_L
Area of application
The DREP_L block evaluates diagnostic data from a SIMATIC diagnostic repeater for
PROFIBUS DP. The diagnostic repeater (after DPV0) must be connected downstream of a YLink (after DPV1).
Calling OBs
OB 1
Cyclic processing
OB 82
Diagnostic interrupt
OB 86
Rack failure
OB 100
59
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The OB_DIAG1 block is integrated into the run sequence upstream of DREP_L.
The following addresses are configured:
The diagnostic address of the DP/PA link (DADDR) is connected downstream of the
diagnostic repeater
The geographical address (SUBN1_ID, SUBN2_ID, RACK_NO and PADP_ADR)
The following I/Os are interconnected:
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the
OB_DIAG1 block with the DREP_L INOUT structures of the same name.
The EN input is interconnected with the output of an AND block.
The inputs of the AND block with the EN_SUBx outputs (x = number of the DP master
system) of the OB_BEGIN block, with EN_Rxxx (xxx = rack/station number) of the
SUBNET block and with EN_F of the OB_DIAG1 block.
EN_DIAG with the EN_DIAG output of the OB_DIAG1 block.
60
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Bit
Description
A.0
1: The location and cause of the error cannot be identified (possibly electromagnetic
interference)
A.1
A.2
1: - -
A.3
1: Further measurement circuits at the segment, the other diagnostic repeater is connected
to its segment DP2
A.4
1: Further measurement circuits at the segment, the other diagnostic repeater is connected
to its segment DP3
A.5
1: - -
A.6
A.7
B.0
1:
B.1
1:
B.2
1: - -
B.3
1:
B.4
1:
B.5
1: - -
B.6
1:
B.7
1:
C.0
1: Segment automatically switched off due to continuous zero level on the line.
C.1
C.2
1: - -
C.3
1: - -
C.4
C.5
1: The distance between the node and the diagnostic repeater exceeds the permitted
line length
C.6
1: The maximum permitted number of diagnostic repeaters connected in series has been
exceeded
C.7
1: - -
The outgoing message will be generated when all segment bits are equal to zero.
Call HW Config to analyze details of events output by the diagnostic repeater.
An appropriate incoming/outgoing message will be generated for each segment (DP2 or DP3)
in response to the following events detected by a diagnostic repeater:
Bit
Description
A.0
1: -
A.1
1:-
A.2
1: -
A.3
1: -
A.4
1: -
A.5
1: -
A.6
1: -
A.7
1:
61
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Bit
Description
B.0
B.1
B.2
1: -
B.3
B.4
B.5
1: -
B.6
B.7
1: Short-circuit between signal line A and/or B, or an additional terminating resistor has been
installed
C.0
1: -
C.1
1: -
C.2
1: -
C.3
1: -
C.4
1: -
C.5
1: -.
C.6
1: -
C.7
1: -
Events detected by the diagnostics repeater are acquired synchronously in OB 82. Diagnostic
event data is fetched via SFB 54 in the OB_BEGIN block and written to the structure DINFO.
The function always sets only one bit to indicate the cause of an incoming event. Bit C7 may
also be set if the diagnostics repeater has detected further errors. In this case, all previously
reported events will be queued. DREP_L generates a corresponding group error message via
ALARM_8P. Flutter messages may occur, particularly in response to error causes A.0.1 and
A.6.1. They are suppressed as follows:
After an outgoing message, a new outgoing message will be delayed by the time in [s] set at
the DELAY parameter. If a further fault is queued, the outgoing message will not be generated
until this fault is outgoing.
Error handling
The block evaluates the error information from ALARM_8P, and writes it to the corresponding
output parameters.
You will find additional information in the "Error information of output parameter MSG_STATx
(Page 353)" section.
The block reports a diagnostic error if an error occurs while reading the diagnostic data, or if
any other fault corrupts diagnostic data.
Startup characteristics
ALARM_8P messages are initialized by the DREP_L block The current diagnostics information
is read from the diagnostics repeater using SFB 52 (RDREC).
62
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Overload behavior
In the event of an overload, the upstream OB_DIAG1 block prevents DREP_L being called for
diagnostics.
Dynamic response:
Not available
Message response:
The multiple instances ALARM_8P are only called if a message is to be output by this instance.
It is only at this point that previously acknowledged messages are updated by the
corresponding ALARM block. If the connection to WinCC is down, each ALARM_8P instance
can hold up to two message statuses of its event ID. Flutter messages can be suppressed via
the DELAY input.
The block generates the messages listed below:
OB no.
Start event
Message
Cyclic processing
82
Diagnostic interrupt
Group message
100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message Texts and associated values of DREP_L (Page 65)
Maintenance status MS (Page 356)
5.9.2
I/Os of DREP_L
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
63
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
Input parameters
I/O
(parameter)
Meaning
Type
Defa
ult
DADDR
INT
DELAY
INT
DIAG_BUF
BOOL
EN_DIAG
BOOL
EN_MSG
1 = enable message
BOOL
EV_IDx
Message number
DWORD
MS
Maintenance status
DWORD
PADP_ADR
BYTE
255
RACK_NO
BYTE
255
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Type
Defa
ult
DINFO
STRUCT
MSG_ACKx
Message acknowledgment
WORD
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
QDREPF
BOOL
QERR
1 = program error
BOOL
I/O
(parameter)
Meaning
Type
Defa
ult
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
RAC_DIAG
OB_DIAG1 diagnostics
STRUCT
Output parameters
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of DREP_L (Page 65)
Maintenance status MS (Page 356)
64
Family: @System
5.9 DREP_L: Diagnostic Repeater downstream of a Y-Link
5.9.3
Messag
e
class
EV_ID1
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/wire break A/ @4%d@
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/short A/@4%d@
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/wire break B/@4%d@
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/short B/@4%d@
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/wire break AB or terminating resistor
missing/@4%d@
@5%d@
DR @1%d@/@2%d@/@3%d@/DP2:
@6%d@.@7%d@m/short AB or too many terminating
resistors/@4%d@
@5%d@
EV_ID2
@5%d@
@5%d@
@5%d@
@5%d@
S
S
S
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/wire break A/ @4%d@
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/short A/@4%d@
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/wire break B/@4%d@
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/short B/@4%d@
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/wire break AB or terminating resistor
missing/@4%d@
@5%d@
DR @1%d@/@2%d@/@3%d@/DP3:
@6%d@.@7%d@m/short AB or too many terminating
resistors/@4%d@
@5%d@
DR @1%d@/@2%d@/@3%d@: @8W
%t#DREP_L_TXT@
@5%d@
@5%d@
@5%d@
@5%d@
S
S
S
You will find the message texts and their text numbers in "Text library for DREP_L (Page 360)".
65
Family: @System
5.10 FFD_CIF: Monitoring FF slaves in CIF mode
Associated
value
Block
parameter
Meaning
EV_ID1
SUBN_ID1
RACK_NO
PADP_ADR
EV_ID2
SUBN_ID1
RACK_NO
PADP_ADR
See also
Message Classes (Page 355)
5.10
5.10.1
Description of FFD_CIF
66
Family: @System
5.10 FFD_CIF: Monitoring FF slaves in CIF mode
Byte 3 of the additional alarm information contains the slot number of the field device that
triggered the diagnostic interrupt. The corresponding slot is enabled.
The parameter EN_MSG_D = 1 is still set here. This means that the AS asset faceplate for the
FF device accesses this block; messages and maintenance state are generated here.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The FFD_CIF block is installed downstream from the DPAY_V1 block.
The RACK_NO, DADDR, EN_MSG_D, SUBN1_ID, SUBN2_ID, SLOT_NO and FFDP_ADR
inputs are configured.
The EN input is interconnected with the output of an AND block. These block inputs are
interconnected with the outputs EN_SUBx (x = number of the DP master system) of the
OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET block, with EN_Mx
(x= number of the FF device) of the DPAY_V1 block and EN_F of the OB_DIAGF block.
The CPU_DIAG OUT structure of the OB_BEGIN block and SUB_DIAG of the SUBNET
block are interconnected with the IN_OUT structures of the FFD_CIF block.
RAC_DIAG is interconnected with the OUT structure RAC_DIAG of OB_DIAGF block.
DINFO is interconnected with the OUT structure DINFO of the OB_DIAGF block.
The OUT structure FF_DIAG of OB_DIAGF is interconnected with the IN_OUT structure of
the same name of FFD_CIF.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 72
OB 70
Redundancy loss
OB 82
Diagnostic interrupt
OB 83
OB 86
Rack failure
OB 100
Restart
67
Family: @System
5.10 FFD_CIF: Monitoring FF slaves in CIF mode
Message response
The DELAY input is used to delay the outputting of error messages for an outgoing, higherpriority error. For example, if the FFD_CIF block recognizes an outgoing error at a DP master
connected to it, it initially assumes that there is a faulty assigned DP slave in the rack it
monitors, and sets the corresponding output SUBNxERR. The error status is not reset until
the DP slave returns (in this case: OB 86, OB 70). The FFD_CIF blocks suppress the potential
slave failure states for DELAY seconds so as not to trigger a surge of messages from DP
slaves which are not yet synchronized when the master returns. An error message is only
output to the OS when the DP slave has not reported its return before this delay time has
expired.
Note: Do not set the value of DELAY too high, otherwise DP slaves that were removed during
the master failure or are defective will be signaled to the OS too late after the DP master returns.
5.10.2
I/Os of FFD_CIF
I/Os of FFD_CIF
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
68
I/O (parameter)
Meaning
Data type
Default
DADDR
INT
DELAY
INT
15
DINFO
Diagnostic information
STRUCT
DIAG_BUF
BOOL
EN_MSG
1 = enable interrupt
BOOL
EN_MSG_D
BOOL
EV_ID
Message number
DWORD
FFDP_ADR
FF slave address
BYTE
16#FF
MS
Maintenance status
DWORD
RACK_NO
Rack number
BYTE
16#FF
SLOT_NO
Slot number
BYTE
16#FF
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
SUBN_TYP
1 = external DP interface
BOOL
Family: @System
5.10 FFD_CIF: Monitoring FF slaves in CIF mode
Output parameters
I/O (parameter)
Meaning
Data type
Default
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE
Channel 0 mode
DWORD
QMODF
1 = module removed/defective
BOOL
QRACKF
1 = Slave failure/faulty
BOOL
RETURN_CODE
INT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN1ERR
BOOL
SUBN2ERR
BOOL
V1_MODE
BOOL
I/O (parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG
STRUCT
FF_DIAG
STRUCT
RAC_DIAG
STRUCT
SUB_DIAG
STRUCT
In/out parameters
5.10.3
Message no.
Message class
EV_ID1
(ALARM_8P)
69
Family: @System
5.11 FFDP_L1: Monitoring FF slaves with maximum 32 values
Message block
Message no.
Message class
No message
Block parameters
5.11
5.11.1
Description of FFDP_L1
70
Family: @System
5.11 FFDP_L1: Monitoring FF slaves with maximum 32 values
information is relayed via the structure FF_DIAG to the FF_MOD32. This structure outputs the
message.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 72
OB 70
Redundancy loss
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The FFDP_L1 block is installed downstream from the DPAY_V1 block.
The CPU_DIAG OUT structure of the OB_BEGIN block and SUB_DIAG of the SUBNET
block are interconnected with the IN_OUT structures of the same name of block FFDP_L1.
RAC_DIAG is interconnected with the OUT structure RAC_DIAG of OB_DIAGF block.
The following will be configured:
Diagnostic address of the FF link DADDR
Geographical address (SUBN1_ID, SUBN2_ID, RACK_NO) of the FF device
SLOT_NO
FF address of the FF device (FFDP_ADR)
MODE_xy (mode of the FF device)
NUM_IODATA
The EN input is interconnected with the output of an AND block. These block inputs are
interconnected with the outputs EN_SUBx (x = number of the DP master system) of the
OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET block, with EN_Mx
(x= number of the FF device) of the DPAY_V1 block and EN_F of the OB_DIAGF block.
The QPERAF output is interconnected with the PERAF input of the FF_MOD32.
The QMODF output is interconnected with the MODF input of the FF_MOD32.
The FF_DIAG output is interconnected with the FF_DIAG input of the FF_MOD32.
DINFO is interconnected with the OUT structure DINFO of the OB_DIAGF block.
71
Family: @System
5.11 FFDP_L1: Monitoring FF slaves with maximum 32 values
Message response
The DELAY input is used to delay the outputting of error messages for an outgoing, higherpriority error. For example, if the FFDP_L1 block recognizes an outgoing error at a DP master
connected with it, it initially assumes that there is a faulty assigned DP slave in the rack it
monitors, and sets the corresponding output SUBNxERR. The error status is not reset until
the DP slave returns (in this case: OB 86, OB 70). The FFDP_L1 blocks suppress the potential
slave failure states for DELAY seconds so as not to trigger a surge of messages from DP
slaves which are not yet synchronized when the master returns. An error message is only
output to the OS when the DP slave has not reported its return before this delay time has
expired.
Note: Do not set the value of DELAY too high, otherwise DP slaves that were removed during
the master failure or are defective will be signaled to the OS too late after the DP master returns.
5.11.2
I/Os of FFDP_L1
I/Os of FFDP_L1
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
72
I/O (parameter)
Meaning
Data type
Default
DADDR
INT
DELAY
INT
15
DIAG_BUF
BOOL
FFDP_ADR
BYTE
MODE
Device status
WORD
NUM_IODATA
INT
RACK_NO
BYTE
SLOT_NO
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
Family: @System
5.12 FF_MOD32: Diagnostics of an FF slave (downstream from FF link DPV1)
Output parameters
I/O (parameter)
Meaning
Data type
Default
EN_D_Q
BOOL
FF_DIAG
FF device diagnostics
DWORD
OMODE
DWORD
QERR
1 = Error runtime
BOOL
QMODF
BOOL
QPERAF
BOOL
QRACKF
1 = Slave failure/faulty
BOOL
RAC_DIAG
STRUCT
RETURN_CODE_O
Return value
INT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN1ERR
BOOL
SUBN2ERR
BOOL
V1_MODE
BOOL
In/out parameters
I/O (parameter)
Meaning
Data type
Default
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
DINFO
Diagnostic information
STRUCT
FF_DIAG_I
STRUCT
SUB_DIAG
STRUCT
5.12
5.12.1
Description of FF_MOD32
73
Family: @System
5.12 FF_MOD32: Diagnostics of an FF slave (downstream from FF link DPV1)
worst will be assigned to the MS output. The channel blocks (FbAnIn, FbAnOu, FbDiIn,
FbDiOu) will be controlled by quality codes.
The block analyses cyclically all events that affect an FF device and reports the following
events:
Evaluation of the RAC_DIAG info (from FFDP_L1): Device failure
Evaluation of the FF_DIAG info (from FFDP_L1): Diagnostics
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence upstream of the FbAxXx, FbDxXx block.
The SUBN1_ID, SUBN2_ID, RACK_NO, SLOT_NO, FFDP_ADR and NUM_IODATA inputs
are configured.
The block inputs are interconnected with the following outputs:
FF_DIAG with FF_DIAG output of the FFDP_L1 block
MODE_xy with OMODE_xy outputs of the FFDP_L1 block
MODF, PERAF with QMODF and QPERAF outputs of the FFDP_L1 block
RAC_DIAG with output structure RAC_DIAG of the OB_DIAGF block
QC_x input with icon of the FF field device
EN_D_Q with EN_DQ output of the FFDP_L1 block
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
The output parameter of OMODE_xy is interconnected with the following channel block at
the OMODE_xy parameter.
The OUT structure CPU_DIAG of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of the FFDP_L1 block.
Calling OBs
OB no.
Start Event
OB 1
Cyclic program
OB 100
Warm restart
Message
The Alarm_8P is initialized at
startup (OB 100)
74
Family: @System
5.12 FF_MOD32: Diagnostics of an FF slave (downstream from FF link DPV1)
For additional information, refer to the "Process Control System PCS 7; Maintenance Station"
manual.
5.12.2
I/Os of FF_MOD32
I/Os of FF_MOD32
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O (parameter)
Meaning
Data type
Default
EN_D_Q
BOOL
EN_MSG
1 = enable interrupt
BOOL
EV_ID1
Message number 1
DWORD
EV_ID2
Message number 2
DWORD
FFDP_ADR
BYTE
FF_DIAG
DWORD
MODE_xx
DWORD
MODF
BOOL
MS
Maintenance status
DWORD
MS_REQ
BOOL
NUM_IODATA
INT
PERAF
BOOL
QC_xx
BYTE
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
Output parameter
I/O (parameter)
Meaning
Data type
B_QC
STRUCT
DXCHG_xx
DWORD
DWORD
DWORD
DXCHG1_xx
Default
(xx = 00 - 31)
DXCHG1
75
Family: @System
5.12 FF_MOD32: Diagnostics of an FF slave (downstream from FF link DPV1)
I/O (parameter)
Meaning
Data type
Default
EXT_STAT
DWORD
EXT_STAT_A
DWORD
Channel active
DWORD
16#00000000
IODATA_EXIST
DWORD
IODATA_OK
I/O data OK
DWORD
MS_XCHG_00
DWORD
MS_XCHG_xx
DWORD
(xx = 00 - 31)
MSGSTAT1
WORD
MSGSTAT2
WORD
MSG_ACK1
Message acknowledgment 1
WORD
OMODE_xx
DWORD
O_MS
Maintenance status
DWORD
QERR
1 = program error
BOOL
QMODF
BOOL
QPERAF
BOOL
QRACKF
1 = Slave failure/faulty
BOOL
I/O (parameter)
Meaning
Data type
CPU_DIAG
CPU diagnostics
STRUCT
RAC_DIAG
STRUCT
In/out parameters
5.12.3
Default
76
Message block
Message no.
Message class
EV_ID1
(ALARM_8P)
Family: @System
5.12 FF_MOD32: Diagnostics of an FF slave (downstream from FF link DPV1)
Message block
Message no.
Message class
8
EV_ID2
(NOTIFY_8P)
No message
SA
SA
SA
SA
SA
SA
SA
No message
Block parameters
77
Family: @System
5.13 FM_CNT: Programming and controlling FM 350 modules
5.13
5.13.1
Description of FM_CNT
Area of application
Block FM_CNT is used to configure and control FM 350-1 and FM 350-2 modules. It writes
the counter levels, limits and comparison values of the FM 350-2 module.
Calling OBs
OB 100 and the cyclic OB (100 ms recommended) used for transmitting data.
Also note the assignments (Page 356) to the FM_CO block.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed in the cyclic OB upstream of the CH_CNT blocks.
The block runtime group is installed in OB 100 downstream of MOD_D1.
The LADDR, FM_MODE, RACK_NO, SUBN1_ID, SUBN2_ID, and SLOT_NO inputs are
configured.
The MODEx inputs are interconnected with the OMODEx outputs of the MOD_D1 block.
The FM_DATA output structure is interconnected with the structure of the same name of
the CH_CNT block.
The OMODEx output is interconnected with the MODE input of the CH_CNT block.
The OUT structure CPU_DIAG of OB_BEGIN is interconnected with the IN_OUT structure
of the same name of FM_CNT.
The EN_CO input structure is interconnected with the EN_CO_x output structure of the
FM_CO block (x = number of the rack).
The output ENCO is connected to the input ENCOx_yy of the FM_CO block (x = number
of the rack, yy = coordination number).
Addressing
The logical base address of the module is entered in the LADDR I/O by the CFC driver
generator.
78
Family: @System
5.13 FM_CNT: Programming and controlling FM 350 modules
Redundancy
Higher-level block MOD_D1 evaluates the redundancy of DP master systems operating in an
H system. Redundancy for two FM 350-1 or FM 350-2 modules is not supported, and must be
controlled by the user outside the block.
MODE Setting
Signal states of the MODE_xx input, or QMODE_xx output of the FM_CNT block are described
under the MODE settings.
MODE_xx input parameters are available for up to 8 signal channels. Their default setting is
"0" (no signal). For each signal channel xx, the operating mode of the FM 350 module must
be set at the MODE_xx input (the CFC driver generator does this for you).
The module recognizes the following modes:
Term
Coding
MODE
Description
16#0000
Continuous counting
16#xx01
One-time counting
16#xx02
The FM 350 counts from the start value to the end value
when the internal gate opens.
Periodic counting
16#xx03
The FM 350 counts between the start value and the end
value when the internal gate opens.
Frequency measurement
16#xx04
Speed measurement
16#xx05
Period duration
measurement
16#xx06
Dosing
16#xx07
The count and measured values can be recorded with the FM 350-2 module, either via the
process image (fast update) or via "Read data record" (slower update).
If the count and measured values of a channel in the process image are made available, they
have to be in alignment in the process image. The following variants are possible.
Term
Coding
MODE
Description
16#Cxxx
16#4xxx
16#0xxx
16#x0xx
79
Family: @System
5.13 FM_CNT: Programming and controlling FM 350 modules
Term
Coding
MODE
Description
16#x1xx
16#x2xx
16#x3xx
16#x8xx
16#x9xx
16#xAxx
16#xBxx
MODE is formed by the linking the operating mode code, and the access type value.
Example: Count and measured value in "Dosing" mode of the the data type DWORD is not in
the process image MODE = 16#C007.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
Whenever the system or FM 350-1/FM 350-2 starts up, the block coordinates the restart with
the module. The CMP_VALx parameters are then loaded into the FM 350.
ALARM_8P is initialized.
Overload behavior
Not available
Time response
Not available
Message response
The block reports operating and data errors for the FM 350-1 module, and data errors for FM
350-2 using ALARM_8P. The message function can be disabled by setting EN_MSG = FALSE.
The MOD_D1 block reports diagnostic interrupts from the FM 350-1 or FM 350-2.
80
Family: @System
5.13 FM_CNT: Programming and controlling FM 350 modules
Additional information
For additional information, refer to the sections:
Message texts and associated values of FM_CNT (Page 82)
5.13.2
I/Os of FM_CNT
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
CO_NO
INT
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
FM_MODE
BYTE
LADDR
INT
MODEx
Mode channel (x = 0 to 7)
DWORD
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Defau
lt
FM_DATA
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
OMODEx
Mode channel (x = 0 to 7)
DWORD
QDATA_ERR
1 = Data error
BOOL
QDONE
BOOL
QDONE_RD
BOOL
QMODF
1 = Error FM 350
BOOL
QPARF
BOOL
Output parameters
81
Family: @System
5.13 FM_CNT: Programming and controlling FM 350 modules
I/O
(parameter)
Meaning
Data type
Defau
lt
QRD_ERR
BOOL
QWR_ERR
BOOL
STATUS_RD
DWORD
STATUS_WR
DWORD
I/O
(parameter)
Meaning
Data type
Defau
lt
ACC_MODE
BOOL
EN_CO
STRUCT
ENCO
Coordination number
BYTE
CPU_DIAG
STRUCT
In/out parameters
Additional information
Additional information is available in the section:
Message texts and associated values of FM_CNT (Page 82)
5.13.3
82
Message block
ALARM_8P
Message no.
Message class
EV_ID
FM 350 @1%d@/@2%d@/@3%d
@data error number@4%d@
FM 350 @1%d@/@2%d@/@3%d
@data error number @5%d@
No message
No message
No message
No message
No message
No message
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
Associat
ed
value
Block parameters
Meaning
EV_ID
SUBN_ID
RACK_NO
SLOT_NO
DA_ERR_W
OT_ERR_B
See also
Message Classes (Page 355)
5.14
5.14.1
Description of IMDRV_TS
Area of application
The IMDRV_TS block transfers time-stamped process signal changes to the MSG_TS blocks,
and messages from the interface module (IM) to the OS.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 40
Hardware interrupt
OB 100
Warm restart
83
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The IMDRV_TS block is copied from the library and instantiated in a system chart. The
block is installed in its runtime group after the RACK block runtime group in the abovementioned OBs.
OR_32_TS is always interconnected between MSG_TS and IMDRV_TS.
The logical address LADDR is configured with the logical address of the IM (diagnostics
address). If you operate the DP master system in DPV1 mode, the input address of the IM
is entered.
The RAC_DIAG structure of the RACK block is interconnected with the structure of the
same name of the IMDRV_TS block.
The S_CH_xxx and TINF_xxx inputs of the TRIG_INF structure are set.
Every signal that is time-stamped by the IM has a unique assignment identified by the slot
of the module combined with the corresponding channel number. There are 128 inputs of
the WORD data type for 128 signals. The slot number of the relevant digital input module
is entered in the more significant byte and the channel number (signal of the digital input
module) is entered into the less significant byte. The slot and channel number of the process
signals are entered in the block inputs S_CH_xxx.
Example:
In HW Config, you have activated time-stamping for the digital signal of channel 10 of a
digital input module that is inserted in slot 5 of an ET 200M. The number 16#050A is entered
at the first available input S_CH_xxx of the IM_DRV_TS.
The information about the edge evaluation for the event entering state is stored in the
TINF_xxx parameters of the TRIG_INF structure.
0 means: 0 -> 1 is event entering state
1 means: 1 -> 0 is event entering state.
84
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
How it works
Hardware interrupt (OB 40): The IM generates a hardware interrupt if there are new
messages. The time-stamp status, including the number of the IM data record to be fetched
and the number of messages in the data record, are fetched from the start information of
the process interrupt OB and stored for cyclic processing. The interrupt stack can hold up
to 17 process interrupts. If this maximum is exceeded, all new information will be lost. The
loss of information is indicated by the "Loss of message at IM (buffer overflow)" message.
Cyclic processing: If any messages are queued in the stack, SFB 52 (RDREC, read data
record) reads the relevant data record (message buffer). If there are several data records
to be fetched, it will fetch the record that contains the oldest messages (oldest hardware
interrupt). The block instance temporarily stores a maximum of 20 messages of a data
record.
The IM can enter new messages in a data record once it has been read. If all data records
are in use, the IM enters "Loss of message at IM (buffer overflow)" (incoming) as the last
message in the message buffer. "Loss of message at IM (buffer overflow)" (outgoing) is
then entered as the first message in the first free data record. Messages received within
the interval between a buffer overflow and the enabling of a record will be lost.
The slot number/channel number of the stored messages are compared with the input
parameters of the block for slot number/channel number (S_CH_xxx). If they match, the
message is written to the corresponding output (TS_xxx).
Errors occurring during data exchange between the block and IM are reported by the
ALARM_8P block (for example, an I/O access error).
Quality code
TS_xxx.QC_TS
Valid value
16#80
16#40
16##00
Addressing
For general information, see also Addressing (Page 353)
The logical address of the IM obtained in HW Config (corresponds to the diagnostic address,
or the input address of the IM for a DP master system in DPV1 mode) is entered at the driver's
block input (LADDR) by the "Generate module driver" CFC function. Any change to the LADDR
block input will initiate a single check of the logical address according to the startup
characteristics of the block.
Process signals that require a time stamp and are detected via an IM must be configured
accordingly in HW Config.
85
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
Error handling
I/O access error:
QPERAF
The block could not access the IM. A data record could not be read.
Faulty block configuration: The slot/channel number of an IM message does not match any
slot/channel number of the block input parameters.
Rack error:
QRACKF Failure of the rack containing the IM or IM failure.
IM Startup Characteristics
During startup/restart of the IM, the system will generate process interrupts once again for
those records which were occupied prior to restart but had not been fetched.
The message "Startup data (incoming)" is entered as the first message of the first free data
record. After restart, the system checks all monitored digital signals for changes, outputs a
message if appropriate. It finally generates the message "Startup data (outgoing)".
Redundancy
Time stamping in H systems equipped with two IM units is redundant under the following
conditions:
Both IM units communicate via the communication (K) bus.
No error has occurred during the update of the active and passive IM.
86
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
The SUBNET and RACK blocks report loss of redundancy (failure of an IM), separately from
the IMDRV_TS block.
Time stamping is interrupted for the duration of the changeover between the active and passive
IM. This period of interruption is indicated by the message "Redundant changeover" (incoming/
outgoing state).
The active IM usually reports the current I/O status to the redundant IM. If this communication
is disrupted, the message "Loss of information with redundancy" (entering state) is output.
When the I/O statuses of the active and redundant IM are synchronized, the message "Loss
of information with redundancy" (outgoing) is output.
Time response
Not available
Message response
The block signals system messages from the IM via the ALARM_8P block. The time-stamped
hardware interrupts are forwarded to the MSG_TS IM message block via OR_32_TS.
Additional information
You will find more information in:
Message texts of IMDRV_TS (Page 89)
5.14.2
I/Os of IMDRV_TS
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DIAG_BUF
BOOL
EV_ID
DWORD
EV_ID_00
DWORD
LADDR
Logic address IM
INT
87
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
I/O
(parameter)
Meaning
Data type
Default
S_CH_xxx
WORD
TRIG_INF
Edge evaluation:
STRUCT
Output parameters
I/O
(parameter)
Meaning
Data type
Default
M_ACK_00
Message acknowledgment
WORD
Q_ERR_00
Message error
BOOL
QERR
BOOL
QPARF
BOOL
QBPARF
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
QTS_NCON
BOOL
STAT_00
Status output
WORD
TS_xxx
STRUCT
BYTE
Default
In/out parameters
I/O
(parameter)
Meaning
Data type
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts of IMDRV_TS (Page 89)
88
Family: @System
5.14 IMDRV_TS: Transferring time-stamped process-signal changes
5.14.3
Message no.
Message class
EV_ID
(ALARM_8P)
Reserve5
No message
Reserve6
No message
Reserve7
No message
Reserve8
No message
EV_ID_00
(ALARM_8P)
S
No message
Note
The message "IM @1%d@@2%d@: Output TS_xxx of S_CHxx: Slot=@3%d@
Channel=@4%d@ is not interconnected" is generated when the time stamp of a signal could
not be forwarded. The reason for this could be configured but not interconnected time stamp
signals (e.g. missing channel block PCS7DiIT and missing message block EventTs).
89
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
5.15
5.15.1
Description of MOD_1
Area of application
The MOD_1 block monitors up to 16 channels on S7-300/400 SM modules without diagnostic
capability (no mixed modules). H systems support only the modules installed in switched racks.
The block can also be used to monitor the FM 350 counter module.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_1 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx inputs (mode of module channels xx) are configured.
The logical base address of the LADDR module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_1.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
90
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Function
The MOD_1 block analyzes all events that affect a module and its channels acyclically. It
generates a channel-specific MODE (Page 341) and value status for the signal processing
blocks. ALARM_8P reports the events.
The block is enabled by the higher-level RACK block at runtime. The event to be evaluated
can be found in the CPU_DIAG start information of the OB_DIAG block. There is a MODE_xx
input for each signal channel of the module. The module channel configuration data created
in HW Config is reported here. The function writes MODE_xx to the low word of the
OMODE_xx (Page 351) output parameter. This occurs only during startup or if you set
ACC_MODE = TRUE. The current channel value status is written to the most significant byte.
If the result is positive, the system sets OMODE_xx = 16#80xxxxxx.
The following events lead to the value status "invalid value due to higher-level error"
(OMODE_xx = 16#40xxxxxx):
Events that are evaluated by the RACK block:
Rack failure (OB 86) (output parameter QRACKF = TRUE)
Events that are evaluated by the MOD block:
Program execution error (OB 85) (output parameter QPERAF = TRUE)
Module removed (OB 83) (output parameter QMODF = TRUE)
"Module removed" and "I/O access error" events are reported to the OS by ALARM_8P. The
diagnostics interrupt function distinguishes between module and channel errors, whereby each
channel is assigned a message ID.
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
You will find additional information about faults in the System Software for S7-300/400 System
and Standard Functions reference manual.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
91
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you make changes to the MODE_xx input configurations at runtime, they are not accepted
at the outputs until you set the ACC_MODE input to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information in the System
Software for S7-300/400 System and Standard Functions; System Status List, Module Status
Information reference manual.
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
92
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
Time response
Not available
Message response
MOD_1 uses ALARM_8P to report module errors. The inputs DELAY1 and DELAY2 are used
to delay the output of I/O access error messages. DELAY1 allows you to enter a time in
seconds for which the block will wait for a higher-priority error (rack failure or removal/insertion)
following a program execution error (OB 85) before it outputs the message. The message is
output only under the condition that no higher-priority error is reported within this delay time.
DELAY2 determines the number of seconds the block waits after the higher-priority error has
been reported outgoing until it outputs the queued I/O access error as well. Both values are
set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_1 (Page 95)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.15.2
I/Os of MOD_1/MOD_2
The MOD_1 and MOD_2 block I/Os are identical with the exception of the number of MODE_xx
and OMODE_xx. The number of monitored channels determines the corresponding number
of I/O parameters (xx).
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
93
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DXCHG_xx
DWORD
DWORD
EXT_STAT
DWORD
EXT_STAT_A
DWORD
STRUCT
MS_XCHG_xx
DWORD
(xx = 00 - 63)
94
Family: @System
5.15 MOD_1: Monitoring up to 16 channels on S7-300/400 SM modules without diagnostic capability
I/O
(parameter)
Meaning
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack/station error
BOOL
In/out parameters
I/O
(parameter)
Meaning
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_1/MOD_2/MOD_3/MOD_64 (Page 95)
Maintenance status MS (Page 356)
5.15.3
Assignment of message text and message class to the block parameters of MOD_1/MOD_2/MOD_3/
MOD_64
Message
block
ALARM_8P
Message
number
EV_ID
Block
parameter
Messag
e
class
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
QMODF
QMODF
95
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
Meaning
EV_ID
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
You will find the message texts and their text numbers in the "Text library for MOD_1, MOD_2,
MOD_3, MOD_64 (Page 361)" section.
See also
Message Classes (Page 355)
5.16
5.16.1
Description of MOD_2
Area of application
The MOD_2 block monitors 32 channels on S7-300/400 SM modules without diagnostic
capability (no mixed modules). H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
96
OB 1
Cyclic program
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_2 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx inputs (mode of module channels xx) are configured.
The logical base address of the LADDR module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_2.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Function
Block MOD_2 analyzes all events affecting a module and its channels in non-cyclic mode. It
generates a channel-specific MODE (Page 341) and value status for the signal processing
blocks. ALARM_8P reports the events.
The block is enabled to run by the higher-level RACK block. The event to be evaluated can
be found in the CPU_DIAG start information of the OB_DIAG block. There is a MODE_xx input
for each signal channel of the module. The module channel configuration data created in HW
Config is reported here. The function writes MODE_xx to the low word of the OMODE_xx
(Page 351) output parameter. This occurs only during startup or if you set ACC_MODE =
TRUE. The current channel value status is written to the most significant byte. If the result is
positive, the system sets OMODE_xx = 16#80xxxxxx.
The following events lead to the value status "invalid value due to higher-level error"
(OMODE_xx = 16#40xxxxxx):
Events that are evaluated by the RACK block:
Rack failure (OB 86) (output parameter QRACKF = TRUE)
Events that are evaluated by the MOD block:
Program execution error (OB 85) (output parameter QPERAF = TRUE)
Module removed (OB 83) (output parameter QMODF = TRUE)
"Module removed" and "I/O access error" events are reported to the OS by ALARM_8P. The
diagnostics interrupt function distinguishes between module and channel errors, whereby each
channel is assigned a message ID.
97
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
You will find additional information about errors in the System Software for S7-300/400; System
and Standard Functions reference manual.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
98
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
Time response
Not available
Message response
MOD_2 uses ALARM_8P to report module errors. The inputs DELAY1 and DELAY2 are used
to delay the output of I/O access error messages. DELAY1 allows you to enter a time in
seconds for which the block will wait for a higher-priority error (rack failure or removal/insertion)
following a program execution error (OB 85) before it outputs the message. The message is
output only under the condition that no higher-priority error is reported within this delay time.
DELAY2 determines the number of seconds the block waits after the higher-priority error has
been reported outgoing until it outputs the queued I/O access error as well. Both values are
set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_2 (Page 102)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
99
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
5.16.2
I/Os of MOD_1/MOD_2
The MOD_1 and MOD_2 block I/Os are identical with the exception of the number of MODE_xx
and OMODE_xx. The number of monitored channels determines the corresponding number
of I/O parameters (xx).
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
100
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
I/O
(parameter)
Meaning
DXCHG_xx
DWORD
DWORD
EXT_STAT
DWORD
EXT_STAT_A
DWORD
STRUCT
MS_XCHG_xx
DWORD
(xx = 00 - 63)
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack/station error
BOOL
In/out parameters
I/O
(parameter)
Meaning
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_1/MOD_2/MOD_3/MOD_64 (Page 102)
Maintenance status MS (Page 356)
101
Family: @System
5.16 MOD_2: Monitoring 32 channels on S7-300/400 SM modules without diagnostic capability
5.16.3
Assignment of message text and message class to the block parameters of MOD_1/MOD_2/MOD_3/
MOD_64
Message
block
ALARM_8P
Message
number
EV_ID
Block
parameter
Messag
e
class
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
QMODF
QMODF
Meaning
EV_ID
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
You will find the message texts and their text numbers in the "Text library for MOD_1, MOD_2,
MOD_3, MOD_64 (Page 361)" section.
See also
Message Classes (Page 355)
102
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
5.17
5.17.1
Description of MOD_3
Area of application
The MOD_3 block monitors up to 16 channels on S7-300/400 SM mixed modules without
diagnostic capability (I/O modules). H systems support only the modules installed in switched
racks.
Supported are the ET 200M-HART modules:
6ES7331-7TB10-0AB0 -> AI2 HART
6ES7332-5TB10-0AB0 ->AO2 HART.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_3 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx inputs are configured.
The logical addresses LADDR and LADDR1 are configured.
The structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block are
interconnected with the MOD_3 structures of the same name.
103
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Function
The MOD_3 block cyclically analyzes all events that affect a module. It generates a channelspecific MODE (Page 341) and value status for the signal processing blocks. ALARM_8P
reports the events. The message function can be disabled.
The block is enabled to run by the higher-level RACK block. The diagnostic event is entered
in the CPU_DIAG start information of the OB_BEGIN block.
There is a MODE_xx input for each signal channel of the module. The module channel
configuration data created in HW Config is reported here. MODE_00 to MODE_15 inputs are
available for encoding up to 16 input channels, and MODE_16 MODE_31 for encoding up
to 16 output channels.
The function writes MODE_xx to the low word of the OMODE_xx (Page 351) output parameter.
This occurs only during startup or if you set ACC_MODE = TRUE. The current channel value
status is written to the most significant byte. If the result is positive, the system sets OMODE_xx
= 16#80xxxxxx.
The following events lead to the value status "invalid value due to higher-level error"
(OMODE_xx = 16#40xxxxxx):
Events that are evaluated by the RACK block:
Rack failure (OB 86) (output parameter QRACKF = TRUE)
Program execution error (OB 85) (output parameter QRACKF = TRUE)
Events that are evaluated by the MOD block:
I/O access error (OB 85) (output parameter QPERAF = TRUE)
Module removed (OB 83) (output parameter QMODF = TRUE)
"Module removed" and "I/O access error" events are reported to the OS by ALARM_8P. The
diagnostics interrupt function distinguishes between module and channel errors, whereby each
channel is assigned a message ID.
The system verifies during startup that the module is available (plugged in). The module status
information read here makes this data available in the form of service output parameters
(MOD_INF).
You can find additional information about faults in the System Software for S7-300/400 System
and Standard Functions reference manual.
Redundancy
Block MOD_3 supports segment redundancy of H systems operating with distributed I/Os. If
you want to use this function, you must configure the SUBN1_ID (connection to CPU 0) and
SUBN2_ID (connection to CPU 1) inputs of the SUBNET block with the numbers of the
redundant segments. If there is no segment redundancy, the remaining input must be set to
the (default) value 16#FF.
104
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
MODE setting
You can find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You can find additional information in the "OMODE (Page 351)" section.
Addressing
You can find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You can find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You can find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
105
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
Time response
Not available
Message response
Block MOD_3 uses ALARM_8P to report module errors. The inputs DELAY1 and DELAY2 are
used to delay the output of I/O access error messages. DELAY1 allows you to enter a time in
seconds for which the block will wait for a higher-priority error (rack failure or removal/insertion)
following a program execution error (OB 85) before it outputs the message. DELAY2
determines the number of seconds the block waits after the higher-priority error has been
reported outgoing until it outputs the queued I/O access error as well. Both values are set to
2 seconds by default. The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_3 (Page 108)
Maintenance status MS (Page 356)
You can find additional information on this in PCS 7 Advanced Process Library > Basics of
APL > General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.17.2
I/Os of MOD_3
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
106
I/O
(parameter)
Meaning
Data type
Defau
lt
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
I/O
(parameter)
Meaning
Data type
Defau
lt
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
LADDR1
INT
MODE_xx
Channel xx mode
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DXCHG_xx
DWORD
DXCHG1_XX
EXT_STAT
DWORD
EXT_STAT_A
DWORD
STRUCT
MS_XCHG_xx
DWORD
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
Channel xx mode
DWORD
QERR
1 = program error
BOOL
107
Family: @System
5.17 MOD_3: Monitoring up to 16 channels on S7-200/300/400 SM modules without diagnostic capability
I/O
(parameter)
Meaning
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
BOOL
In/out parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_1/MOD_2/MOD_3/MOD_64 (Page 108)
Maintenance status MS (Page 356)
5.17.3
Assignment of message text and message class to the block parameters of MOD_1/MOD_2/MOD_3/
MOD_64
108
Message
block
ALARM_8P
Message
number
EV_ID
Block
parameter
Messag
e
class
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
QMODF
QMODF
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
Meaning
EV_ID
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
You will find the message texts and their text numbers in the "Text library for MOD_1, MOD_2,
MOD_3, MOD_64 (Page 361)" section.
See also
Message Classes (Page 355)
5.18
5.18.1
Description of MOD_4
Area of application
Block MOD_4 monitors modules (up to 16 channels) of an ET 200S acting as a DPV0 slave
(IM 151 High Feature) downstream of a Y link.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
109
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Block MOD_4 is installed in its runtime group downstream of the OB_DIAG1 block, which
is used for the ET 200S downstream of a Y link, in the above-mentioned OBs.
The MODE_xx inputs (mode of module channels xx) are configured.
The logical base address of the LADDR module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the OB_DIAG1
blocks (for DP slave downstream of a Y link, and an OB_DIAG1 for each Y link) are
interconnected with the IN_OUT structures RAC_DIAG (DP slave) and RAC_DIAG_L (Y
link) of MOD_4.
The EN input is interconnected with the output of an AND block.
whose inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block, EN_F of the OB_DIAG1 block for the Y link, EN_F of the OB_DIAG1 block for the ET
200S downstream of the Y link, and EN_Mxx (xx = module slot number in the ET 200S) of
the DPDIAGV0 block.
The DPA_M input is interconnected with the DPA_Mxx (xx= module slot number in the ET
200S) output of the DPDIAGV0 block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Function
Block MOD_4 analyzes all events related to an ET 200S module acyclically. It generates a
channel-specific MODE (Page 341) and value status for the signal processing blocks.
ALARM_8P reports events separately for each module.
The block enabled to run by the higher-level DPDIAGV0 block. The event to be evaluated is
available at input DPA_M. Possible byte assignments:
0000000 = Module OK
0000001 = Module error
0000010 = Wrong module
0000011 = Module missing
00001xx = ET 200S failure; x = irrelevant
There is a MODE_xx input for each signal channel of the module. The module channel
configuration data created in HW Config is reported here. The function writes MODE_xx to the
low word of the OMODE_xx (Page 351) output parameter. This only occurs if the module status
changes during startup, or if you set ACC_MODE = TRUE. The current channel value status
is written to the most significant byte. If the result is positive, the system sets OMODE_xx =
16#80xxxxxx.
110
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
The following events lead to the value status "invalid value due to higher-level error"
(OMODE_xx = 16#40xxxxxx):
Events that are evaluated by the OB_DIAG1 block:
Rack failure (OB 86,OB 83) (output parameter QRACKF = TRUE)
Events that are evaluated by the MOD block:
Module diagnostics (OB 82) (output parameter QMODF = TRUE)
ALARM_8P is used to report "Module error ", "Wrong module " or "Module missing " events to
the OS.
Redundancy
You can not use redundant DP slaves downstream of a Y link.
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in
111
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
"Error information of output parameter MSG_STAT (Page 353)".
Startup characteristics
A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx (Page 351) outputs.
Time response
Not available
Message response
MOD_4 uses ALARM_8P to report module errors. The message function can be disabled by
setting EN_MSG = FALSE.
The block generates the maintenance status MS.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_4 (Page 114)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.18.2
I/Os of MOD_4
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
112
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
CHAN_NUM
INT
DPA_M
Module status
BYTE
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
PADP_ADR
DP address of ET 200S
BYTE
255
RACK_NO
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DXCHG_xx
DWORD
Byte 0:
Bit 0: Release for maintenance
Bit 1: Flutter suppression
Bit 2: Release for maintenance demanded
Bit 3 to bit 7 byte 0: Reserved
Byte 1: Reserved
Byte 2: Reserved
Byte 3: Fluttering time
EXT_STAT
DWORD
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QRACKF
1 = rack/station error
BOOL
113
Family: @System
5.18 MOD_4: Monitoring ET 200S modules downstream of a Y-Link
In/out parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
0
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
RAC_DIAG_L
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_4 (Page 114)
Maintenance status MS (Page 356)
5.18.3
Message
number
Message
class
EV_ID
Associa
ted
value
Block
parameter
Meaning
EV_ID
SUBN_ID
RACK_NO
PADP_ADR
DP address of ET 200S
SLOT_NO
See also
Message Classes (Page 355)
114
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
5.19
5.19.1
Description of MOD_64
Area of application
The MOD_64 block monitors 64 channels on S7-300 SM modules without diagnostic capability
(no mixed modules). H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_64 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx inputs (mode of module channels xx) are configured.
The logical base address of the LADDR module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_2.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
115
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Function
The MOD_64 block analyzes all events that affect a module and its channels acyclically. It
generates a channel-specific MODE (Page 341) and value status for the signal processing
blocks. ALARM_8P reports the events.
The block is enabled to run by the higher-level RACK block. The event to be evaluated can
be found in the CPU_DIAG start information of the OB_DIAG block. There is a MODE_xx input
for each signal channel of the module. The module channel configuration data created in HW
Config is reported here. The function writes MODE_xx to the low word of the OMODE_xx
(Page 351) output parameter. This occurs only during startup or if you set ACC_MODE =
TRUE. The current channel value status is written to the most significant byte. If the result is
positive, the system sets OMODE_xx = 16#80xxxxxx.
The following events lead to the value status "invalid value due to higher-level error"
(OMODE_xx = 16#40xxxxxx):
Events that are evaluated by the RACK block:
Rack failure (OB 86) (output parameter QRACKF = TRUE)
Events that are evaluated by the MOD block:
Program execution error (OB 85) (output parameter QPERAF = TRUE)
Module removed (OB 83) (output parameter QMODF = TRUE)
"Module removed" and "I/O access error" events are reported to the OS by ALARM_8P. The
diagnostics interrupt function distinguishes between module and channel errors, whereby each
channel is assigned a message ID.
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
You will find additional information about errors in the System Software for S7-300/400; System
and Standard Functions reference manual.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
116
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
117
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
Time response
Not available
Message response
MOD_64 uses ALARM_8P to report module errors. The inputs DELAY1 and DELAY2 are used
to delay the output of I/O access error messages. DELAY1 allows you to enter a time in
seconds for which the block will wait for a higher-priority error (rack failure or removal/insertion)
following a program execution error (OB 85) before it outputs the message. The message is
output only under the condition that no higher-priority error is reported within this delay time.
DELAY2 determines the number of seconds the block waits after the higher-priority error has
been reported outgoing until it outputs the queued I/O access error as well. Both values are
set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_64 (Page 121)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.19.2
I/Os of MOD_64
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
118
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_ACTIVE_2
Channel active
DWORD
16#00000000
CH_EXIST
DWORD
CH_EXIST_2
DWORD
CH_OK
Channel OK (0 to 31)
DWORD
CH_OK_2
DWORD
DXCHG_xx
DWORD
(xx = 00 - 15)
Byte 0:
Bit 0: Release for maintenance
Bit 1: Flutter suppression
Bit 2: Release for maintenance demanded
Bit 3 to bit 7 byte 0: Reserved
Byte 1: Reserved
Byte 2: Reserved
Byte 3: Fluttering time
DXCHG1_XX
DWORD
EXT_STAT
DWORD
119
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
I/O
(parameter)
Meaning
EXT_STAT_2
EXT_STAT_A
DWORD
STRUCT
MS_XCHG_xx
DWORD
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack/station error
BOOL
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_1/MOD_2/MOD_3/MOD_64 (Page 121)
Maintenance Status of MS (Page 356)
120
Family: @System
5.19 MOD_64: Monitoring 64 channels on S7-300 SM modules without diagnostic capability
5.19.3
Assignment of message text and message class to the block parameters of MOD_1/MOD_2/MOD_3/
MOD_64
Message
block
ALARM_8P
Message
number
EV_ID
Block
parameter
Messag
e
class
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
QMODF
QMODF
Meaning
EV_ID
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
You will find the message texts and their text numbers in the "Text library for MOD_1, MOD_2,
MOD_3, MOD_64 (Page 361)" section.
See also
Message Classes (Page 355)
121
Family: @System
5.20 MOD_CENTRAL: Monitoring CPUs which are not capable of diagnostics
5.20
5.20.1
Description of MOD_CENTRAL
Area of application
The block is used for the integration of CP 443-x external, PROFIBUS/PROFINET (external),
IM 460/461 in the SIMATIC PCS 7 Maintenance Station.
MODE Configuration
Input parameters
PROFINET (IE-CP-IO
nodes)
Central IM-46x-x /
CP(Gateway)
MODE
16#00000001
16#00000002
16#00000004
16#00000003
Additional information
For additional information, refer to the following sections:
Message texts and associated values of MOD_CENTRAL (Page 124)
Maintenance status MS (Page 356)
See also
OMODE settings for SM modules (Page 351)
5.20.2
I/Os of MOD_CENTRAL
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
122
Family: @System
5.20 MOD_CENTRAL: Monitoring CPUs which are not capable of diagnostics
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE
Operating mode
DWORD
MS
Maintenance status
DWORD
GBIT_ADR
INT
GBIT_PORT1_ADR
INT
PNIO_ADR
INT
PORT1_ADR
INT
PORT1_CONNECT
1=Port 1 connected
BYTE
PORT2_ADR
INT
PORT2_CONNECT
1=Port 2 connected
BYTE
PORT3_ADR
INT
PORT3_CONNECT
1=Port 3 connected
BYTE
PORT4_ADR
INT
PORT4_CONNECT
1=Port 4 connected
BYTE
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
0 = central / 1 = external
BOOL
SUBN1_ID
BYTE
16#FF
Meaning
Data type
Default
0
Output parameters
I/O
(parameter)
EXT_STAT
DWORD
MOD_INF
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
OMODE
Operating mode
DWORD
O_MS
Maintenance status
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QRACKF
1 = rack error
BOOL
123
Family: @System
5.20 MOD_CENTRAL: Monitoring CPUs which are not capable of diagnostics
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
0
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_CENTRAL (Page 124)
Maintenance status MS (Page 356)
5.20.3
Message
number
Message
class
EV_ID
Module @1%d@/@2%d@/@3%d@:
Maintenance demanded
Module @1%d@/@2%d@/@3%d@:
Maintenance alarm
Module @1%d@/@2%d@/@3%d@:
Maintenance required
No message
No message
No message
No message
Associat
ed
value
Block parameters
Meaning
EV_ID
SUBN_ID
RACK_NO
SLOT_NO
124
Family: @System
5.21 MOD_CP: CP 341 diagnostics
5.21
5.21.1
Description of MOD_CP
Area of application
Block MOD_CP monitors a CP 341 serial communication module. H systems only support
modules in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_CP block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The SUBN1_ID, SUBN2_ID, SUBN_TYP, RACK_NO, and SLOT_NO inputs are configured.
The logical base address LADDR of the module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_CP.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
125
Family: @System
5.21 MOD_CP: CP 341 diagnostics
The following events are module errors (QMODF = TRUE output parameter):
ALARM_8P is used to report "Module removed", "I/O access error" and "Diagnostic interrupt"
events to WinCC.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
Error handling
The plausibility of input parameters is not checked.
126
Family: @System
5.21 MOD_CP: CP 341 diagnostics
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
Overload behavior
The MOD_CP block counts the OB 82 calls. The counter is reset in OB1. If more than five OB
82 events occur in succession before the cycle control point is reached (OB 1), these events
are rejected and the message "OB 82 DP master failure: x Rack: y Slot: z" is output.
Time response
Not available
Message response
MOD_CP uses ALARM_8P to report module errors. The inputs DELAY1 and DELAY2 are
used to delay the output of I/O access error messages. DELAY1 allows you to enter a time in
seconds for which the block will wait for a higher-priority error (rack failure or removal/insertion)
following a program execution error (OB 85) before it outputs the message. The message is
output only under the condition that no higher-priority error is reported within this delay time.
DELAY2 determines the number of seconds the block waits after the higher-priority error has
been reported outgoing until it outputs the queued I/O access error as well. Both values are
set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_CP (Page 129)
Maintenance status MS (Page 356)
See also
MODE settings for SM modules (Page 341)
127
Family: @System
5.21 MOD_CP: CP 341 diagnostics
5.21.2
I/Os of MOD_CP
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE_00
Channel 1 mode
WORD
WORD
1: CP341
1: if the operating mode <> none
2: if the operating mode = none
MODE_01
Channel 2 mode
0: for CP341
1: if the operating mode <> none
2: if the operating mode = none
MS
Maintenance status
DWORD
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
128
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
MOD_INF
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
Family: @System
5.21 MOD_CP: CP 341 diagnostics
I/O
(parameter)
Meaning
Data type
Default
O_MS
Maintenance status
DWORD
OMODE_00
DWORD
OMODE_01
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_CP (Page 129)
Maintenance status MS (Page 356)
5.21.3
Message
number
Block
parameter
Messa
ge
class
EV_ID
QMODF
CP @1%d@/@2%d@/@3%d@: Removed
QPERAF
CP @1%d@/@2%d@/@3%d@: @4W
%t#MOD_CP_TXT@
CP @1%d@/@2%d@/@3%d@:
Wrong parameter
CP @1%d@/@2%d@/@3%d@:
Wire break
CP @1%d@/@2%d@/@3%d@/2:
Wrong parameter
129
Family: @System
5.22 MOD_CP_PN: Monitoring of serial communication modules
Message block
ALARM_8P
Message
number
Block
parameter
Messa
ge
class
CP @1%d@/@2%d@/@3%d@:
Multiple diagnostic interrupt
You will find the message texts and their text numbers in the "Text library for MOD_CP
(Page 361)" section.
Associat
ed
value
Block parameters
Meaning
EV_ID
SUBN_ID
RACK_NO
SLOT_NO
See also
Message Classes (Page 355)
5.22
5.22.1
Description of MOD_CP_PN
Area of application
The MOD_CP_PN block monitors a serial communication module CP 341.
130
Family: @System
5.22 MOD_CP_PN: Monitoring of serial communication modules
5.22.2
I/Os of MOD_CP_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
DWORD
LADDR
INT
MODE_00
Channel 1 mode
WORD
MODE_01
WORD
MS
Maintenance status
DWORD
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBSL_NO
Subslot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#000
00000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
MOD_INF
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
OMODE_00
DWORD
OMODE_01
DWORD
QERR
1 = program error
BOOL
Output parameters
131
Family: @System
5.22 MOD_CP_PN: Monitoring of serial communication modules
I/O
(parameter)
Meaning
Data type
Default
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_MODE
BOOL
CPU_DIAG_PN
STRUCT
RAC_DIAG
STRUCT
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_CP_PN (Page 132)
Maintenance Status of MS (Page 356)
5.22.3
132
Message block
ALARM_8P
Message
number
Message
class
EV_ID1
CP @1%d@/@2%d@/@3%d@: Withdrawn
CP @1%d@/@2%d@/@3%d@: @4W
%t#MOD_CP_TXT@
CP @1%d@/@2%d@/@3%d@:
Wrong parameter
CP @1%d@/@2%d@/@3%d@:
Wire break
CP @1%d@/@2%d@/@3%d@/2:
Wrong parameter
CP @1%d@/@2%d@/@3%d@:
Multiple diagnostic interrupt
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Associated values of ALARM_8P with EV_ID1
Associated
value
Block parameter
Meaning
SUBN_ID
RACK_NO
SLOT_NO
You will find the message texts and their text numbers in the section: "Text library for
MOD_CP_PN (FB201) (Page 367)"
For additional information, see chapter: Message Classes (Page 355).
5.23
5.23.1
Description of MOD_D1
Area of application
The MOD_D1 block can monitor the following modules:
Power modules
ET200S counter modules
FM350 counter modules
up to 16 channels on S7-300/400 SM modules with diagnostic functions (no mixed modules)
and the power supplies of an ET 200iSP in a redundant configuration.
H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
133
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_D1 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx (mode of the channels xx of the module), SUBN1_ID, SUBN2_ID, and
SUBN_TYP inputs are configured.
The logical base address LADDR of the module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_D1.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
134
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Events that are evaluated by the RACK block:
Rack failure (OB 86) (output parameter QPERAF = TRUE)
Events that are evaluated by the MOD block:
Program execution error (OB 85) (output parameter QPERAF = TRUE)
Module removed (OB 83) (output parameter QMODF = TRUE)
Diagnostic interrupt (OB 82) Distinguishing between module errors and channel errors
The following events are module errors (QMODF = TRUE output parameter):
External auxiliary voltage missing
Front connector missing
Module not configured
Wrong parameter in module
Wrong/missing module
Communication error at a CPU module
Timeout (watchdog)
Loss of internal power at a module
Rack failure
CPU failure
EPROM error
RAM error
ADC/DAC error
Fuse tripped
Power supply 1: Error
Power supply 2: Error
The following events are channel errors (value status "invalid value", OMODE_xx = 16#00xxxx):
Configuration/parameter assignment error
Common-mode errors (analog I/Os only)
Short-circuit to P
Short circuit to M
Interruption at the output transistor
Wire break
Reference channel error (analog inputs only)
Measuring range underflow (analog inputs only)
Measuring range overflow (analog inputs only)
135
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Missing load voltage (analog and digital outputs only)
Missing sensor power supply (digital outputs only)
Fuse tripped (digital outputs only)
Mass error (digital I/Os only)
Excess temperature (digital outputs only)
ALARM_8P is used to report "Module removed", "I/O access error", and "Diagnostic interrupt"
events to WinCC.
The diagnostics interrupt function distinguishes between module and channel errors, whereby
each channel is assigned a message ID. Only one incoming/outgoing event can be reported
for each channel. As long as an incoming message is queued at a channel, further messages
on new events at this channel will be lost.
If the event is defined uniquely in the diagnostic information, the corresponding text will be
entered in the message. If ambiguous entries exist, the text of the first set bit in the error byte
of the diagnostic information will be displayed. When using modules assigned diagnostic
functions and more than one error byte for diagnostic information, only the channel xx error
text will be output if the error information is not displayed in the first error byte.
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
Detailed information about the errors is entered in the DIAG_INF output parameter of data type
STRUCT. You will find additional information about this in the reference manual System
Software for S7-300/400 System and Standard Functions; Diagnostic Data, Byte 0 to Byte 8,
Structure of Channel-Specific Diagnostic Data.
Note
If you run a HART module in HART MODE (Page 341) =16#070C, any HART protocol errors/
configuration changes will be masked by the MOD_D1 driver block, and will not be signaled
as channel errors.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
136
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in "Addressing (Page 353)".
HART modules with read/write access to the process image are configured in the same way
as input modules. The set I/O range must always be identical.
Example: SM 332 AO 2x0/4..20mA HART 332-5TB00-0AB0:
Address input range
(HW Config)
LADDR
(decimal/hex)
544
544
544 / 16#0220
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Following a diagnostic interrupt, you will also find detailed module diagnostic information in
the MODDIAG0 to MODDIAG8 output parameters. You will find additional information in the
reference manual System Software for S7-300/400 System and Standard Functions;
Diagnostic Data, Byte 0 to Byte 8.
The CHDIAG00 to CHDIAG15 output parameters contain detailed channel-status information.
You will find additional information in the reference manual System Software for S7-300/400
System and Standard Functions; Structure of Channel-Specific Diagnostic Data.
The system resets this diagnostic information after a diagnostic interrupt has been reported
outgoing (no further channel or module errors are queued).
137
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
Overload behavior
The MOD_D1 block counts the OB82 calls. The counter is reset in OB1. If more than two OB82
events occur in succession before the cycle control point is reached (OB1), these events are
rejected and the message "OB82 DP master failure: x Rack: y Slot: z" is output.
Time response
Not available
Message response
MOD_D1 uses ALARM_8P_1 to report module errors. The function also calls ALARM_8P_2
and ALARM_8P_3 which are intended for channel errors. The inputs DELAY1 and DELAY2
are used to delay the output of I/O access error messages. DELAY1 allows you to enter a time
in seconds for which the block will wait for a higher-priority error (rack failure or removal/
insertion) following a program execution error (OB 85) before it outputs the message. The
message is output only under the condition that no higher-priority error is reported within this
delay time. DELAY2 determines the number of seconds the block waits after the higher-priority
error has been reported outgoing until it outputs the queued I/O access error as well. Both
values are set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Flutter suppression
The "Flutter suppression" function is used to delay the outgoing of a message by a configurable
period.
The flutter time is entered at the channel block at the FlutTmIn parameter. The high byte of
the DXCHG parameter of the channel blocks contains the flutter time.
Flutter suppression comes into effect when FlutEN = 1 or FlutTmIn > 0 is set at the channel
block.
There is only one flutter message per module. The delay times and fault messages are channelspecific. The fault messages are extended by at least the delay time. Flutter exists if the fault
messages "Outgoing" and then "Incoming" are present within the delay time.
The last fluttering channel and its set delay time deactivates the flutter message.
138
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D1 (Page 141)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.23.2
I/Os of MOD_D1/MOD_D2
The MOD_D1 and MOD_D2 block I/Os are identical, with the exception of the number of
MODE_xx and OMODE_xx. The number of monitored channels determines the corresponding
number of I/O parameters (xx).
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 - 3)
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
139
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#000
00000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
DM_ACTIVE
Fault delay
DWORD
16#0
DXCHG_xx
DWORD
DWORD
EXT_STAT
DWORD
EXT_STAT_A
DWORD
0
16#000
00000
Flutter suppression
DWORD
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
Message acknowledgment (x = 1 - 3)
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
Data type
Default
0
In/out parameters
I/O
(parameter)
140
Meaning
ACC_MODE
BOOL
CPU_DIAG
STRUCT
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
I/O
(parameter)
Meaning
Data type
Default
DataXchg
DWORD
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D1 (Page 141)
Message texts and associated values of MOD_D2 (Page 156)
Maintenance status MS (Page 356)
5.23.3
Message
number
Block
parameter
Messag
e
class
EV_ID1
QMODF
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
Module @1%d@/@2%d@/@3%d@:
Access error
QMODF
Module @1%d@/@2%d@/@3%d@:
@5W%t#MOD_D1_TXT@
Module @1%d@/@2%d@/@3%d@:
Multiple diagnostic interrupt
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D1_TXT@
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D1_TXT@
Module @1%d@/@2%d@/@3%d@:
@5W%t#MOD_D1_TXT@
8
EV_ID2
Module @1%d@/@2%d@/@3%d@:
Error channel 00 @4W%t#MOD_D1_TXT@
141
Family: @System
5.23 MOD_D1: Monitoring up to 16 channels on S7-300/400 SM modules with diagnostic functions
Message block
ALARM_8P
Message
number
Block
parameter
...
...
EV_ID3
Messag
e
class
...
...
...
...
Module @1%d@/@2%d@/@3%d@:
Error channel 07 @4W%t#MOD_D1_TXT@
Module @1%d@/@2%d@/@3%d@:
Error channel 08 @4W%t#MOD_D1_TXT@
...
...
...
...
Module @1%d@/@2%d@/@3%d@:
Error channel 15 @4W%t#MOD_D1_TXT@
...
...
8
You will find the message texts and their text numbers in "Text library for MOD_D1
(Page 362)".
Meaning
EV_ID1
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
EV_ID2
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
EV_ID3
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
See also
Message Classes (Page 355)
142
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
5.24
5.24.1
Description of MOD_D16_PN
Area of application
Block MOD_D16_PN monitors S7-300 SM modules with a maximum of 16 channels and with
diagnostics functions.
5.24.2
I/Os of MOD_D16_PN/MOD_D24_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
DWORD
FEATURE_xx
WORD
FEATURE_yy
DWORD
LADDR
INT
LADDR1
INT
143
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
I/O
(parameter)
Meaning
Data type
Default
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBSL_NO
Subslot number
BYTE
SUBN_TYP
1 = external PN interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#0000000
0
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INFx
STRUCT
DXCHG_xx
DWORD
DWORD
EXT_STATx
DWORD
EXT_STAT_A
DWORD
FS_ACTIVE
DWORD
16#0000000
0
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSGSTATx
WORD
144
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
I/O
(parameter)
Meaning
Data type
Default
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
DWORD
DataXchg
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D16_PN/MOD_D24_PN (Page 145)
Maintenance Status of MS (Page 356)
5.24.3
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@/@6%d@:
Withdrawn
145
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
Message block Message
ALARM_8P
number
Message
class
No
message
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
146
Message block
ALARM_8P
Message
number
Message
class
EV_ID2
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
Message block
ALARM_8P
Message
number
Message
class
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
Message block Message
ALARM_8P
number
Message
class
EV_ID3
147
Family: @System
5.24 MOD_D16_PN: Monitoring S7-300 SM modules with up to 16 channels and with diagnostics functions
Associated value
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
Process control messages for ALARM_8P with EV_ID4 are assigned as follows:
Message block Message
ALARM_8P
number
Message class
EV_ID_4
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 16 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 17 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 18 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 19 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 20 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 21 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 22 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 23 @4W%t# MOD_D24_PN_TXT @
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
You will find the message texts and their text numbers in the section Text library for
MOD_D8_PN (FB197) / MOD_D16_PN (FB198) / MOD_D24_PN (FB199) (Page 366).
For additional information, see chapter: Message Classes (Page 355).
148
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
5.25
5.25.1
Description of MOD_D2
Area of application
Block MOD_D2 monitors up to 32 channels on S7-300/400 SM modules with diagnostic
capability (no mixed modules). H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_D2 block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx (mode of the channels xx of the module), SUBN1_ID, SUBN2_ID, and
SUBN_TYP inputs are configured.
The logical base address LADDR of the module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_D2.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
149
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
The following events are module errors (QMODF = TRUE output parameter):
External auxiliary voltage missing
Front connector missing
Module not configured
Wrong parameter in module
Wrong/missing module
Communication error at a CPU module
Timeout (watchdog)
Loss of internal power at a module
Rack failure
CPU failure
EPROM error
RAM error
150
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
ADC/DAC error
Fuse tripped
The following events are channel errors (value status "invalid value", OMODE_xx = 16#00xxxx):
Configuration/parameter assignment error
Common-mode errors (analog I/Os only)
Short-circuit to P
Short circuit to M
Interruption at the output transistor
Wire break
Reference channel error (analog inputs only)
Measuring range underflow (analog inputs only)
Measuring range overflow (analog inputs only)
Missing load voltage (analog and digital outputs only)
Missing sensor power supply (digital outputs only)
Fuse tripped (digital outputs only)
Mass error (digital I/Os only)
Excess temperature (digital outputs only)
ALARM_8P is used to report "Module removed", "I/O access error", and "Diagnostic interrupt"
events to WinCC.
The diagnostics interrupt function distinguishes between module and channel errors, whereby
each channel is assigned a message ID. Only one incoming or outgoing event can be reported
for each channel. As long as an incoming message is queued at a channel, further messages
on new events at this channel will be lost.
If the event is defined uniquely in the diagnostic information, the corresponding text will be
entered in the message. If ambiguous entries exist, the text of the first set bit in the error byte
of the diagnostic information will be displayed. When using modules assigned diagnostic
functions and more than one error byte for diagnostic information, only the channel xx error
text will be output if the error information is not displayed in the first error byte.
The system verifies during startup that the module is available (plugged in). The module status
information read here makes this data available in the form of service output parameters
(MOD_INF).
Detailed information about the errors is entered in the DIAG_INF output parameter of data type
STRUCT. You will find additional information about this in the reference manual System
Software for S7-300/400 System and Standard Functions; Diagnostic Data, Byte 0 to Byte 8,
Structure of Channel-Specific Diagnostic Data.
Redundancy
The block supports segment redundancy of CPU 417H for distributed I/Os. The SUBN1_ID
(connection to CPU 0) and SUBN2_ID (connection to CPU 1) inputs are configured with the
151
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
numbers of the redundant segments. If there is no segment redundancy, the remaining input
must be set to the (default) value 16#FF.
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Following a diagnostic interrupt, you will also find detailed module diagnostic information in
the MODDIAG0 to MODDIAG10 output parameters. You will find additional information in the
reference manual System Software for S7-300/400 System and Standard Functions;
Diagnostic Data, Byte 0 to Byte 10.
152
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
The CHDIAG00 to CHDIAG31 output parameters contain detailed channel status information.
You will find additional information in the reference manual System Software for S7-300/400
System and Standard Functions; Structure of Channel-Specific Diagnostic Data.
The system resets this diagnostic information after a diagnostic interrupt has been reported
outgoing (no further channel or module errors are queued).
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
Time response
Not available
Message response
MOD_D2 uses ALARM_8P_1 to report module errors. In addition, the error blocks
ALARM_8P_2, ALARM_8P_3, ALARM_8P_4 and ALARM_8P_5 are called. The inputs
DELAY1 and DELAY2 are used to delay the output of I/O access error messages. DELAY1
allows you to enter a time in seconds for which the block will wait for a higher-priority error
(rack failure or removal/insertion) following a program execution error (OB 85) before it outputs
the message. The message is output only under the condition that no higher-priority error is
reported within this delay time. DELAY2 determines the number of seconds the block waits
after the higher-priority error has been reported outgoing until it outputs the queued I/O access
error as well. Both values are set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Flutter suppression
The "Flutter suppression" function is used to delay the outgoing of a message by a configurable
period.
The flutter time is entered at the channel block at the FlutTmIn parameter. The high byte of
the DXCHG parameter of the channel blocks contains the flutter time.
Flutter suppression comes into effect when FlutEN = 1 or FlutTmIn > 0 is set at the channel
block.
There is only one flutter message per module. The delay times and fault messages are channelspecific. The fault messages are extended by at least the delay time. Flutter exists if the fault
messages "Outgoing" and then "Incoming" are present within the delay time.
The last fluttering channel and its set delay time deactivates the flutter message.
153
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
For additional information, refer to the "Process Control System PCS 7; Maintenance Station"
manual.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D2 (Page 156)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.25.2
I/Os of MOD_D1/MOD_D2
The MOD_D1 and MOD_D2 block I/Os are identical, with the exception of the number of
MODE_xx and OMODE_xx. The number of monitored channels determines the corresponding
number of I/O parameters (xx).
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
154
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 - 3)
DWORD
LADDR
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#000
00000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
DM_ACTIVE
Fault delay
DWORD
16#0
DXCHG_xx
DWORD
DWORD
EXT_STAT
DWORD
EXT_STAT_A
DWORD
0
16#000
00000
Flutter suppression
DWORD
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
Message acknowledgment (x = 1 - 3)
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
Data type
Default
0
In/out parameters
I/O
(parameter)
Meaning
ACC_MODE
BOOL
CPU_DIAG
STRUCT
155
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
I/O
(parameter)
Meaning
Data type
Default
DataXchg
DWORD
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D1 (Page 141)
Message texts and associated values of MOD_D2 (Page 156)
Maintenance status MS (Page 356)
See also
MODE settings for SM modules (Page 341)
OMODE settings for SM modules (Page 351)
5.25.3
Message
number
Block
parameter
Messag
e
class
EV_ID1
QMODF
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
QMODF
Module @1%d@/@2%d@/@3%d@:
@5W%t#MOD_D2_TXT@
Module @1%d@/@2%d@/@3%d@:
Multiple diagnostic interrupt
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D2_TXT@
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D1_TXT@
156
Family: @System
5.25 MOD_D2: Monitoring up to 32 channels of S7-300/400 SM modules with diagnostic functions
Message block
ALARM_8P
EV_ID2
Message
number
Block
parameter
...
EV_ID3
S
S
Module @1%d@/@2%d@/@3%d@:
Error channel 00
@4W%t#MOD_D2_TXT@
Module @1%d@/@2%d@/@3%d@:
Error channel 07
@4W%t#MOD_D2_TXT@
...
Module @1%d@/@2%d@/@3%d@:
Error channel 15
@4W%t#MOD_D2_TXT@
Module @1%d@/@2%d@/@3%d@:
Error channel 16
@4W%t#MOD_D2_TXT@
...
EV_ID5
Messag
e
class
...
...
EV_ID4
...
Module @1%d@/@2%d@/@3%d@:
Error channel 23
@4W%t#MOD_D2_TXT@
Module @1%d@/@2%d@/@3%d@:
Error channel 24
@4W%t#MOD_D2_TXT@
...
...
Module @1%d@/@2%d@/@3%d@:
Error channel 31
@4W%t#MOD_D2_TXT@
You will find the message texts and their text numbers in "Text library for MOD_D2
(Page 361)".
Block parameters
Meaning
EV_ID1
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
MOD_INF.SUBN_ID
EV_ID2
157
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
Message block Associa
ALARM_8P
ted
value
EV_ID3
EV_ID4
EV_ID5
Block parameters
Meaning
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
See also
Message Classes (Page 355)
5.26
5.26.1
Description of MOD_D24_PN
Area of application
Block MOD_D24_PN monitors S7-300 SM modules with a maximum of 24 channels and with
diagnostics functions.
158
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
5.26.2
I/Os of MOD_D16_PN/MOD_D24_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
DWORD
FEATURE_xx
WORD
FEATURE_yy
DWORD
LADDR
INT
LADDR1
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBSL_NO
Subslot number
BYTE
SUBN_TYP
1 = external PN interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
159
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#0000000
0
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INFx
STRUCT
DXCHG_xx
DWORD
DWORD
EXT_STATx
DWORD
EXT_STAT_A
DWORD
0
16#0000000
0
DWORD
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
In/out parameters
160
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
I/O
(parameter)
Meaning
Data type
Default
DataXchg
DWORD
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D16_PN/MOD_D24_PN (Page 161)
Maintenance Status of MS (Page 356)
5.26.3
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@/@6%d@:
Withdrawn
161
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
Message block Message
ALARM_8P
number
7
Message
class
No
message
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
ALARM_8P
Message
number
Message
class
EV_ID2
162
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
Associated value
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
Message block Message
ALARM_8P
number
Message
class
EV_ID3
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
Process control messages for ALARM_8P with EV_ID4 are assigned as follows:
163
Family: @System
5.26 MOD_D24_PN: Monitoring S7-300 SM modules with up to 24 channels and with diagnostics functions
Message block Message
ALARM_8P
number
Message class
EV_ID_4
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 16 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 17 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 18 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 19 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 20 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 21 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 22 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 23 @4W%t# MOD_D24_PN_TXT @
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
You will find the message texts and their text numbers in the section Text library for
MOD_D8_PN (FB197) / MOD_D16_PN (FB198) / MOD_D24_PN (FB199) (Page 366).
For additional information, see chapter: Message Classes (Page 355).
164
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
5.27
5.27.1
Description of MOD_D3
Area of application
Block MOD_D3 monitors a maximum of up to 16 channels on S7-300 SM modules with
diagnostics functions. H systems support only the modules installed in switched racks.
MOD_D3 includes all the functionality of MOD_D1, plus additional functions for diagnostic
evaluation of multiple channel types in a diagnostic data record. The block also fully supports
4-byte channel-specific diagnostics.
Note: MOD_D1 only evaluated 8 selected bits of the 4-byte channel-specific diagnosis.
The modules supported are the ET 200PRO modules:
6ES7 148 4FC00 0AB0 -> 8DI/4DO
6ES7 148 4FA00 0AB0 -> 8/16 DI
and the ET 200M HART modules:
6ES7 331-7TF01-0AB0 -> AI8 HART
6ES7 332-8TF01-0AB0 -> AO8 HART
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_D3 block is installed in its runtime group downstream of the RACK-block runtime
group in the above-mentioned OBs.
The MODE_xx (mode of the channels xx of the module), SUBN1_ID, SUBN2_ID, and
SUBN_TYP inputs are configured.
165
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
The logical base address LADDR of the module is configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_D3.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block and EN_Mxx (xx = module number) of the RACK block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
The following events are module errors (QMODF = TRUE output parameter):
External auxiliary voltage missing
Front connector missing
Module not configured
Wrong parameter in module
Wrong/missing module
Communication error at a CPU module
Timeout (watchdog)
166
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
Loss of internal power at a module
Rack failure
CPU failure
EPROM error
RAM error
ADC/DAC error
Fuse tripped
Power supply 1: Error
Power supply 2: Error
The following events are channel errors (value status "invalid value", OMODE_xx = 16#00xxxx):
Configuration/parameter assignment error
Common-mode errors (analog I/Os only)
Short-circuit to P
Short circuit to M
Interruption at the output transistor
Wire break
Reference channel error (analog inputs only)
Measuring range underflow (analog inputs only)
Measuring range overflow (analog inputs only)
Missing load voltage (analog and digital outputs only)
Missing sensor power supply (digital outputs only)
Fuse tripped (digital outputs only)
Mass error (digital I/Os only)
Excess temperature (digital outputs only)
Undervoltage
Overvoltage
Overload
Hardware interrupt
Actuator warning
Safety shutdown
Ambiguous error
Error 1 in actuator/sensor
Error 2 in actuator/sensor
Channel temporarily not available
167
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
ALARM_8P is used to report "Module removed", "I/O access error" and "Diagnostics interrupt"
events to the OS.
The diagnostics interrupt function distinguishes between module and channel errors, whereby
each channel is assigned a message ID. Only one incoming/outgoing event can be reported
for each channel. As long as an incoming message is queued at a channel, further messages
on new events at this channel will be lost.
If the event is defined uniquely in the diagnostic information, the corresponding text will be
entered in the message. If ambiguous entries exist, the text of the first set bit in the error byte
of the diagnostic information will be displayed. When using modules assigned diagnostic
functions and more than one error byte for diagnostic information, only the channel xx error
text will be output if the error information is not displayed in the first error byte.
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
Detailed information about the errors is entered in the DIAG_INF output parameter of data type
STRUCT. You will find additional information about this in the reference manual System
Software for S7-300/400 System and Standard Functions; Diagnostic Data, Byte 0 to Byte 8,
Structure of Channel-Specific Diagnostic Data.
Note
Even if you run a HART module in HART MODE =16#070C, any HART protocol errors/
configuration changes that may occur will be masked by the MOD_D3 block, and not signaled
as channel errors.
Several channel types can occur in one diagnostic data record. If the "further channel types
exist" bit is set, MOD_D3 runs through the entire diagnostic evaluation and handles reporting
for each further channel type.
HART modules with the firmware update and the new additional channel type 16#66 for
measured value calibration are also supported.
The new HART channel type 66 can also occur in the diagnostic data record as a further
channel type.
The new diagnostic data ("channel being calibrated" and "channel temporarily not available")
are considered as channel errors and output. The detailed texts are output via the system text
library and a corresponding associated value.
Channel type 0x66:
1 byte channel diagnostics
Bit0 channel being calibrated
Bit1 channel temporarily not available
Firmware update
The firmware update for the listed HART modules is started by a diagnostic event "OB83
entering state" (remove module) followed directly by diagnostic event "OB83 exiting state"
(insert module). With "OB83 exiting state", byte 2 bit 2 is set in data record 0 (1 = STOP mode).
168
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
Once the firmware is completed, there is a repeated diagnostic event "OB83 entering state"
(remove module) followed directly by diagnostic event "OB83 exiting state" (insert module).
With "OB83 exiting state", byte 2 bit 2 is reset in data record 0 (0 = RUN mode).
In MOD_D3, after an "OB83 exiting state" (module removed) the data record 0 (DS0) is always
read extra in OB1 using SFC51 and SZL 00B1 to establish whether bit (1 = STOP mode) is
set. If this is the case, this is always recognized as a firmware update and the module continues
to be indicated as removed and not available. Only when there is an OB83 (module inserted)
with the information in DS0 (0 = RUN mode), is the module indicated as being inserted and
available again.
It is assumed that "Module change in run" is always set for the ET 200M head modules so that
a firmware update of the HART module always calls an OB83. This means that a firmware
update cannot trigger an OB86 diagnostic interrupt.
The "Generate module driver" function enters 16#0001 in the Feature01 parameter for both
HART modules. This means that DS0 is read extra when there is an OB 83 exiting state only
when Feature01 = 16#0001
The Feature parameters (FEATURE_01 .. FEATURE_10) are intended for future expansions
of the MOD_D3 block and for parameter settings for special module situations.
Currently only FEATURE_01 is used as an ID for HART module with a firmware update in RUN.
Redundancy
The higher-level RACK block monitors the redundancy of DP master systems operating in an
H system.
MODE Setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information about this in the "OMODE settings (Page 351)" section.
169
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
Addressing
You will find additional information about this in "Addressing (Page 353)".
HART modules with read/write access to the process image are configured in the same way
as input modules. The set I/O range must always be identical.
Example: SM 332 AO 2x0/4..20mA HART 332-5TB00-0AB0:
Address input range (HW Config)
LADDR (decimal/hex)
544
544
544 / 16#0220
Error handling
The plausibility of input parameters is not checked.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT" (Page 353) section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Following a diagnostic interrupt, you will also find detailed module diagnostic information in
the MODDIAG0 to MODDIAG8 output parameters. You will find additional information in the
reference manual System Software for S7-300/400 System and Standard Functions;
Diagnostic Data, Byte 0 to Byte 8.
The CHDIAG00 to CHDIAG15 output parameters contain detailed channel-status information.
You will find additional information in the reference manual System Software for S7-300/400
System and Standard Functions; Structure of Channel-Specific Diagnostic Data.
The system resets this diagnostic information after a diagnostic interrupt has been reported
outgoing (no further channel or module errors are queued).
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx outputs.
Overload Behavior
The MOD_D3 block counts the OB82 calls. The counter is reset in OB1. If more than two OB82
events occur in succession before the cycle control point is reached (OB1), these events are
rejected and the message "OB82 DP master failure: x Rack: y Slot: z" is output.
Time response
Not available
170
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
Message response
MOD_D3 uses ALARM_8P_1 to report module errors. The function also calls ALARM_8P_2
and ALARM_8P_3 which are intended for channel errors. The inputs DELAY1 and DELAY2
are used to delay the output of I/O access error messages. DELAY1 allows you to enter a time
in seconds for which the block will wait for a higher-priority error (rack failure or removal/
insertion) following a program execution error (OB 85) before it outputs the message. The
message is output only under the condition that no higher-priority error is reported within this
delay time. DELAY2 determines the number of seconds the block waits after the higher-priority
error has been reported outgoing until it outputs the queued I/O access error as well. Both
values are set to 2 seconds by default.
The message function can be disabled by setting EN_MSG = FALSE.
Flutter suppression
The "Flutter suppression" function is used to delay the outgoing of a message by a configurable
period.
The flutter time is entered at the channel block at the FlutTmIn parameter. The high byte of
the DXCHG parameter of the channel blocks contains the flutter time.
Flutter suppression comes into effect when FlutEN = 1 or FlutTmIn > 0 is set at the channel
block.
There is only one flutter message per module. The delay times and fault messages are channelspecific. The fault messages are extended by at least the delay time. Flutter exists if the fault
messages "Outgoing" and then "Incoming" are present within the delay time.
The last fluttering channel and its set delay time deactivates the flutter message.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D3 (Page 174)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
171
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
5.27.2
I/Os of MOD_D3
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Defa
ult
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 - 3)
DWORD
FEATURE_xx
WORD
FEATURE_yy
DWORD
LADDR
INT
LADDR1
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
2
0
Output parameters
172
I/O
(parameter)
Meaning
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
DM_ACTIVE
Fault delay
DWORD
16#0
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
I/O
(parameter)
Meaning
DXCHG_xx
DWORD
DWORD
EXT_STAT
DWORD
EXT_STAT_A
DWORD
0
16#00000000
Flutter suppression
DWORD
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
Message acknowledgment (x = 1 - 3)
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
I/O
(parameter)
Meaning
Data type
Defa
ult
ACC_MODE
BOOL
CPU_DIAG
STRUCT
DataXchg
DWORD
In/out parameters
STRUCT
173
Family: @System
5.27 MOD_D3: Monitoring of hybrid modules with diagnostic capability
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D3 (Page 174)
Maintenance status MS (Page 356)
5.27.3
Message
number
Block
parameter
Message
EV_ID1
QMODF
QPERAF
QMODF
Module @1%d@/@2%d@/@3%d@:
@5W%t#MOD_D3_TXT@
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D3_TXT@
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_D3_TXT@
Module @1%d@/@2%d@/@3%d@:
@5W%t#MOD_D3_TXT@
class
EV_ID2
...
...
EV_ID3
Module @1%d@/@2%d@/@3%d@:
Error channel 00 @4W%t#MOD_D3_TXT@
...
...
...
...
Module @1%d@/@2%d@/@3%d@:
Error channel 07 @4W%t#MOD_D3_TXT@
Module @1%d@/@2%d@/@3%d@:
Error channel 08 @4W%t#MOD_D3_TXT@
...
...
...
...
Module @1%d@/@2%d@/@3%d@:
Error channel 15 @4W%t#MOD_D3_TXT@
...
...
8
You will find the message texts and their text numbers in "Text library for MOD_D3"
(Page 364).
174
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
Associated
value
Block parameters
Meaning
EV_ID1
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
EV_ID2
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
4
EV_ID3
MOD_INF.SUBN_ID
MOD_INF.RACK_NO
MOD_INF.SLOT_NO
See also
Message Classes (Page 355)
5.28
5.28.1
Description of MOD_D8_PN
Area of application
Block MOD_D8_PN monitors S7-300 SM modules with a maximum of 8 channels and with
diagnostics functions.
175
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
5.28.2
I/Os of MOD_D8_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
DWORD
FEATURE_xx
WORD
FEATURE_yy
DWORD
LADDR
INT
LADDR1
INT
MODE_xx
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBSL_NO
Subslot number
BYTE
SUBN_TYP
1 = external PN interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
176
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#0000000
0
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INFx
STRUCT
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
I/O
(parameter)
Meaning
Data type
Default
DM_ACTIVE
Fault delay
DWORD
16#0
DXCHG_xx
DWORD
DWORD
EXT_STATx
DWORD
EXT_STAT_A
DWORD
0
16#0000000
0
DWORD
MOD_INF
STRUCT
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
1 = rack error
BOOL
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
DWORD
DataXchg
STRUCT
177
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_D8_PN (Page 178)
Maintenance Status of MS (Page 356)
5.28.3
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@/@6%d@:
Withdrawn
No
message
178
Associated value
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
Associated value
Block parameter
Data type
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
ALARM_8P
Message
number
Message
class
EV_ID2
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
179
Family: @System
5.28 MOD_D8_PN: Monitoring S7-300 SM modules with up to 8 channels and with diagnostics functions
Message block Message
ALARM_8P
number
Message
class
EV_ID3
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
Process control messages for ALARM_8P with EV_ID4 are assigned as follows:
180
Message class
EV_ID_4
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 16 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 17 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 18 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 19 @4W%t# MOD_D24_PN_TXT @
Family: @System
5.29 MOD_DRV: Monitoring of drive blocks with diagnostics functions
Message block Message
ALARM_8P
number
Message class
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 20 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 21 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 22 @4W%t# MOD_D24_PN_TXT @
Module @1%d@/@2%d@/@3%d@/@5%d@:
Error channel 23 @4W%t# MOD_D24_PN_TXT @
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
BYTE
Subslot number
BYTE
You will find the message texts and their text numbers in the section Text library for
MOD_D8_PN (FB197) / MOD_D16_PN (FB198) / MOD_D24_PN (FB199) (Page 366).
For additional information, see chapter: Message Classes (Page 355).
5.29
5.29.1
Description of MOD_DRV
Area of application
The MOD_DRV block creates a device-specific diagnostics function for blocks of the Drive
type.
The following events are processed in the MOD_DRV and the status messages reported in
WinCC:
181
Family: @System
5.29 MOD_DRV: Monitoring of drive blocks with diagnostics functions
SwitchType
Message text
Message class in
WinCC
Maintenance
State
SA
00
16#80
SA
00
16#80
Error active
07
16#00
Telegram1/
Telegram20
(NAMUR off and
on)
Ready to switch on
Warning active
06
16#68
Telegram20
(NAMUR on)
07
16#00
07
16#00
07
16#00
07
16#00
07
16#00
Grounding fault
07
16#00
Motor overload
07
16#00
07
16#00
06
16#68
07
16#00
07
16#00
07
16#00
07
16#00
Calling OBs
The cyclic OB 1 and OB 100.
In addition, the block is installed in the cyclic interrupt OB OB3x in which the following signal
processing driver block is installed.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed when the corresponding SlaveFamily 1 object exists
Further interconnection takes place in the same way as for the existing MODPAL/X0 blocks
of the PCS 7 Basis Library
The corresponding inputs are read out of HW Config and configured.
The block is interconnected with the corresponding Drive block through the DXCHG_00,
OMODE_00 and O_MS parameters.
Startup characteristics
Initialization of the ALARM_8P blocks and of the NOTIFY_8P blocks.
182
Family: @System
5.29 MOD_DRV: Monitoring of drive blocks with diagnostics functions
Message response
The block reports errors using ALARM_8P and NOTIFY_8P.
The block generates the following messages in the OBs listed below:
OB no.
Start event
Message
Cyclic processing
100
Restart
Initialization of ALARM_8P
MODE behavior
The block is informed by the MODE input about which function block or device type is involved.
A distinction is made between the device and type or profile respectively.
Only the Drive type is currently implemented. This has the mode XXXX0010.
5.29.2
I/Os of MOD_DRV
I/Os
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
Parameter
Description
Type
Defaul
t
EN_MSG
1 = Enable message
BOOL
EV_ID1
Message number 1
DWORD
16#00
EV_ID2
Message number 2
DWORD
16#00
LINK_ADR
Link address
BYTE
MS
Maintenance status
DWORD
16#00
MS_REQ
BOOL
PADP_ADR
BYTE
16#00
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
183
Family: @System
5.29 MOD_DRV: Monitoring of drive blocks with diagnostics functions
In/out parameters
Parameter
Description
Type
CPU_DIAG
Struct (see
OB_BEGIN)
RAC_DIAG
Struct (see
OB_DIAG1)
Output parameters
Parameter
Description
Type
Defaul
t
CH_ACTIVE
Channel active
DWORD
16#00
00000
0
CH_EXIST
Channel exists
DWORD
16#00
00000
0
CH_OK
Channel OK
DWORD
16#00
00000
0
DXCHG_00
DWORD
16#00
DXCHG1
DWORD
DXCHG1_00
DWORD
Error
BOOL
EXT_STAT
DWORD
16#00
EXT_STAT_A
DWORD
184
MS_XCHG_00
DWORD
MSG_ACK1
Message acknowledgment 1
WORD
16#00
MSG_ACK2
Message acknowledgment 2
WORD
16#00
MSGSTAT1
WORD
16#00
MSGSTAT2
WORD
16#00
Namur1
BOOL
Namur2
BOOL
Namur3
BOOL
Namur4
BOOL
Namur5
BOOL
Namur6
BOOL
Namur7
BOOL
Namur8
BOOL
Namur9
BOOL
Namur10
BOOL
Namur11
BOOL
Namur12
BOOL
Family: @System
5.29 MOD_DRV: Monitoring of drive blocks with diagnostics functions
5.29.3
Parameter
Description
Type
Defaul
t
Namur13
BOOL
Namur14
BOOL
Namur15
BOOL
Namur16
BOOL
O_MS
Maintenance status
DWORD
16#00
OMODE_00
DWORD
16#00
QERR
1 = program error
BOOL
QRACKF
BOOL
Warning
BOOL
Messaging
Message block
Class
Event
EV_ID1:SIG1
EV_ID1:SIG2
EV_ID1:SIG3
EV_ID1:SIG6
EV_ID2:SIG2
Status message - AS
EV_ID2:SIG3
Status message - AS
EV_ID2:SIG4
Status message - AS
EV_ID2:SIG5
Status message - AS
EV_ID2:SIG6
Status message - AS
Device @1%d@/@2%d@:
local operation/functional check
EV_ID2:SIG7
Status message - AS
Device @1%d@/@2%d@:
Device passivated
185
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
Block parameter
Subnet
Address
See also
Message Classes (Page 355)
5.30
5.30.1
Description of MOD_HA
Area of application
The MOD_HA module reports diagnostic events of an HART field device that is connected to
a channel of an ET 200M HART module or ET 200iSP HART module. HART modules of ET
200iS are not supported. H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
186
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed downstream of the diagnostic block that is responsible for the HART
module.
LADDR (logical base address of the HART module) is configured.
The geographic addresses SUBN1_ID, SUBN2_ID, RACK_NO, SLOT_NO, and CHAN_NO
(channel number of the HART module to which the HART field device is connected) are
configured.
The CPU_DIAG structures of the OB_BEGIN block are interconnected
The EN input is interconnected with the output of an AND block.
The block inputs are interconnected with the outputs EN_SUBx (x = number of the DP
master system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the
SUBNET block, and EN_Mxx (xx = module number) of the RACK block and MODE with
OMODE_xx of the diagnostic block.
The DXCHG output parameter is interconnected with the following channel block at the
DataXchg parameter.
The O_MS output parameter is interconnected with the following channel block at the MS
parameter.
Meaning
187
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
Bit
Meaning
For an ET 200M with two-channel HART modules, channel type 16#61 or 16#63 is generated
during diagnostics. Bit 5 in byte 8 for channel 0 and byte 9 for channel 1 in the additional alarm
information means "HART channel error". If bit 5 = TRUE, the additional diagnostic data is
read with SFB 52 (RDREC) as follows:
with data record 128 for channel 0
with data record 129 for channel 1
Diagnostic data records 128 (for channel 0) and 129 (for channel 1) have the same structure.
and return detailed HART diagnostic information on the previous transfer. The table below
shows the individual error messages/warnings.
Byte/Bit No.
0: general
1= Mod.
comm.
Channel
fault
HART
HART
HART
command
error
Comma
nd
rejected
0 = Not used
slave
communic
ation
device
status <> 0
(e.g.,
configuratio
n changed)
more status
channel
fault
2
parity
overrun
error in
response
error in
response
framing
error in
response
wrong
checksum
in response
Wrong char
timing
too
many
chars in
respons
e
wrong
telegram
timing
1: fault groups
= group error
then
bytes
(L+,
DrBr)
-
2: HART cf =
HART
"communicatio access
not
n faults"
possible
Field device
for module
3 to 6: time
stamp
Broadcast system time: Milliseconds (10s and 100s), seconds, minutes, and hours in two-digit BCD code.
If the timestamp function is not used: Content = 0
7: HART/
module
8: HART ce
9: HART ds
Two HART status bytes are reserved in the HART protocol to display errors and warnings.
These are entered in diagnostic data records 128 and 129 unchanged. The meaning of the
HART status bytes is defined in the HART Standard.
188
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
First HART status byte (meaning depends on bit 7):
Bit 7 = 1: Communication error during the transmission of a HART command to the field
device
Bit 7 = 0: Only warnings that the field device sends in response to a command
Bit 7/Bit No.
Either
parity error
overrun
in command error in
command
Bit 7 = 1:
HART
framing
error in
command
wrong
Reserved =
checksum
0
in command
too many
characters in
command
(undefin
ed)
(rx buffer
overflow)
"communication
error" from
module to field
device
or
Bit 7 = 0:
0: No command-specific error
HART
1: Undefined
"response to a
command"
2: Invalid section
3: Transferred parameter too large
4: Transferred parameter too small
5: Too few data bytes received
6: Device-specific command error (rarely used)
7: In write-protected mode
8-15: Various meanings (see code commands)
16: Restricted access
28: Various meanings (see code commands)
32: Device is busy
64: Command not implemented
Code
8 *)
Commands
Alternative meanings
1,2,3,33,60,61,62,
"Update" error
110,34,55,64,48
35,65,36,37,43,52,45,46,67,68
6,35,65,36,37,43,52
11
35,65,40,45,46,66,67,68,53
12
35,65,53,66,67,68
189
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
Code
Commands
Alternative meanings
13
35,65,69
14 *)
35,36,65,37
15
65,66,67,68,69
28
65
Second HART status byte: Device status of the HART field device in the event of a
communication error
(otherwise, byte = 0)
Bit No.
HART
device
status:
Malfunction
of the field
device
Reassignm
ent of
parameters:
Cold
restar
t
Further
status
available
Analog output
current
specified
Analog
output
saturated
Primary
variable
outside limits
"more
status"
("fixed)"
Nonprimary
variable
outside
limits
"field
device
status"
"configuratio
n changed
(CC)"
Process control messages are generated when "communication errors" and HART field device
errors (byte 9 <> 0) occur. Operating messages with acknowledgment are generated if bit 7 =
0 (byte 8) and the remaining bits <> 0. The last read data record 128 or 129 (depending on
the channel number) is written to the output structure DIAG_H.
Bytes 8 and 9 are evaluated and event messages generated in OB 1.
You will find additional information in "Message texts and associated values of MOD_HA
(Page 194)".
The MODE input is interconnected with the corresponding OMODE_xx output of the diagnostic
block. The module channel configurations set in HW Config are reported at these locations.
MODE (Page 341) is written to the low word of theOMODE (Page 351) output parameter. This
occurs only during startup or if you set ACC_MODE = TRUE. The current channel value status
is written to the most significant byte. If valid, OMODE = 16#80xxxxxx. The diagnostic block
contains the events that lead to a value status "invalid value due to higher-priority error"
(OMODE = 16#40xxxxxx), or to channel error (OMODE = 16#00xxxxxx).
Redundancy
The higher-level RACK block evaluates the redundancy of DP master systems operating in
an H system. Redundant HART field devices are not supported.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
A restart (OB 100) is reported via the LSB in byte 2 of the OMODE (Page 351) output.
190
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
ALARM_8P will be initialized.
Overload behavior
The MOD_HA block counts the OB 82 calls. The counter is reset in OB1. A diagnostic message
will not be generated if more than five OB 82 events occur before the cycle control point is
reached (OB 1). A "multiple diagnostic interrupt" message will not be generated, because the
diagnostic block performs this action.
Time response
Not available
Message response
MOD_HA reports diagnostic information from a HART field device by means of ALARM_8P or
NOTIFY_8P.
The message function can be disabled by setting EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_HA (Page 194)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.30.2
I/Os of MOD_HA
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
191
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
Input parameters
I/O
Meaning
Type
CHAN_NO
Channel number
BYTE
DIAG_BUF
EN_MSG
1 = Enable message
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MODE
DWORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
(parameter)
Default
Output parameters
I/O
Meaning
Type
(parameter)
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
16#00000000
CH_OK
Channel OK
DWORD
16#00000000
DIAG_H
STRUCT
DM_ACTIVE
Fault delay
DWORD
16#0
DXCHG
DWORD
DWORD
EXT_STAT
DWORD
FS_ACTIVE
Flutter suppression
DWORD
16#00000000
MS_XCHG
DWORD
MSG_ACK
Message acknowledgment
WORD
MSGSTAT
WORD
QERR
1 = program error
BOOL
O_MS
Maintenance status
DWORD
192
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
I/O
Meaning
Type
De-
(parameter)
fault
OMODE
DWORD
QPERAF
BOOL
QREC_ERR
BOOL
QREC_VAL
BOOL
STATUS
DWORD
I/O
Meaning
In/out parameters
Type
(parameter)
Default
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
DataXchg
DWORD
DWORD
MS_XCHG_IN
DWORD
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_HA (Page 194)
Maintenance status MS (Page 356)
193
Family: @System
5.30 MOD_HA: Monitoring device-specific diagnostics of HART field devices
5.30.3
Message no.
EV_ID
(ALARM_8P)
EV_ID1
(NOTIFY_8P)
194
Message
class
No message
No message
No message
No message
No message
No message
Family: @System
5.31 MOD_HA_PN: Monitoring Device-Specific Diagnostics of HART Field Devices
Associated
value
Block
parameter
Meaning
EV_ID
SUBN_ID
RACK_NO
SLOT_NO
CHAN_NO
SUBN_ID
RACK_NO
Rack/station number
SLOT_NO
CHAN_NO
EV_ID1
See also
Message Classes (Page 355)
5.31
5.31.1
Description of MOD_HA_PN
Area of application
The MOD_HA_PN module reports diagnostic events of an HART field device that is connected
to a channel of an ET 200M HART module. HART modules of ET 200iS are not supported. H
systems support only the modules installed in switched racks.
5.31.2
I/Os of MOD_HA_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
195
Family: @System
5.31 MOD_HA_PN: Monitoring Device-Specific Diagnostics of HART Field Devices
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
Meaning
Type
Default
CHAN_NO
Channel number
BYTE
DIAG_BUF
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
DWORD
LADDR
INT
(parameter)
MODE
WORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Meaning
Type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
16#00000000
CH_OK
Channel OK
DWORD
16#00000000
DIAG_H
STRUCT
DM_ACTIVE
Fault delay
DWORD
16#0
DXCHG
DWORD
Output parameters
I/O
(parameter)
196
DXCHG1
DWORD
EXT_STAT
DWORD
Family: @System
5.31 MOD_HA_PN: Monitoring Device-Specific Diagnostics of HART Field Devices
I/O
Meaning
Type
Default
FS_ACTIVE
Flutter suppression
DWORD
16#00000000
MS_XCHG
DWORD
MSG_ACK
Message acknowledgment
WORD
MSGSTAT
WORD
QERR
1 = program error
BOOL
O_MS
Maintenance status
DWORD
OMODE
DWORD
QPERAF
BOOL
QREC_ERR
BOOL
QREC_VAL
BOOL
STATUS
DWORD
(parameter)
In/out parameters
I/O
Meaning
Type
Default
ACC_MODE
BOOL
CPU_DIAG_PN
CPU diagnostics
STRUCT
DXCHG_IN
DWORD
MS_XCHG_IN
DWORD
(parameter)
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_HA_PN (Page 198)
Maintenance Status of MS (Page 356)
197
Family: @System
5.31 MOD_HA_PN: Monitoring Device-Specific Diagnostics of HART Field Devices
5.31.3
Message
class
EV_ID1
(ALARM_8P)
Block parameter
Data type
ID of the PN IO system
BYTE
Rack/station number
BYTE
Slot number
BYTE
Channel number
BYTE
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
Message class
EV_ID2
(ALARM_8P)
SA
SA
198
No message
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Message block
Message class
No message
No message
No message
Block parameter
Data type
BYTE
Rack/station number
BYTE
Slot number
BYTE
Channel number
BYTE
5.32
5.32.1
Description of MOD_MS
Area of application
The MOD_MS block the up to 16-channel motor starter modules with diagnostic capability (ET
200S). H systems support only the modules installed in switched racks.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
199
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The MOD_MS block is installed in its runtime group downstream of the RACK block runtime
group in the above-mentioned OBs.
The MODE_xx, SUBN1_ID, SUBN2_ID, and SUBN_TYP inputs are configured.
The logical addresses LADDR and LADDR1 are configured.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of MOD_MS.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
200
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Error
Actuator OFF
Wire break
Safety-related shutdown
High limit exceeded
Low limit undershot
Missing supply voltage
Switching element overload
External error
ALARM_8P is used to report "module removed", "I/O access error", and the above "OB 82
error" events to WinCC.
The system verifies during startup that the module is available (plugged in). The module status
information that is read here is then available in the form of service output parameters
(MOD_INF).
Detailed information about the errors is entered in the DIAG_INF output parameter of data type
STRUCT.
You will find additional information in the "Service Information" section, and in the System
Software for S7-300/400 System and Standard Functions; Diagnostic Data, Byte 0 to Byte 8,
Structure of Channel-Specific Diagnostic Data reference manual.
Redundancy
The block supports segment redundancy of CPU 417H for distributed I/Os. To use this function,
you must configure the SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection to CPU
1) inputs with the numbers of the redundant segments. If there is no segment redundancy, the
remaining input must be set to the (default) value 16#FF.
MODE setting
You will find additional information about this in the "MODE settings (Page 341)" section.
Note
If you change the parameter settings for the MODE_xx inputs at runtime, these changes will
not be accepted at the outputs until the ACC_MODE is set to 1.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
201
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Addressing
You will find additional information about this in the "Addressing (Page 353)" section.
Error handling
The plausibility of input parameters is not checked.
You will find additional information about this in the "Error information of output parameter
MSG_STAT (Page 353)" section.
Service Information
To analyze faults, the module status information entered during startup is read via the
MOD_INF structured output parameter. You will find additional information about this in the
reference manual System Software for S7-300/400 System and Standard Functions; System
Status List, Module Status Information.
Following a diagnostic interrupt, you will also find detailed module diagnostic information in
the MODDIAG0 to MODDIAG8 output parameters. You will find additional information in the
reference manual System Software for S7-300/400 System and Standard Functions;
Diagnostic Data, Byte 0 to Byte 10.
The CHDIAG00 to CHDIAG15 output parameters contain detailed channel-status information.
You will find additional information in the reference manual System Software for S7-300/400
System and Standard Functions; Structure of Channel-Specific Diagnostic Data.
Of the motor starter module channels, only channel 0 is assigned the diagnostic function. The
error code is stored in CHDIAG00 to CHDIAG03. You will find additional information about this
in the ET 200S, Motor Starter Safety Technology SIGUARD; Diagnostics and Monitoring via
the User Program reference manual.
The system resets this diagnostic information after a diagnostic interrupt has been reported
outgoing (no further channel or module errors are queued).
Startup characteristics
After a restart/initial startup, the system verifies that the module is available under its logical
base address. A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx
(Page 351) outputs.
Time response
Not available
202
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Message response
MOD_MS reports module and motor-starter errors by means of ALARM_8P_1 and
ALARM_8P_2. The DELAY1 and DELAY2 inputs are used to delay the I/O access error
message. DELAY1 allows you to enter a time in seconds for which the block will wait for a
higher-priority error (rack failure or removal/insertion) following a program execution error (OB
85) before it outputs the message. DELAY2 determines the number of seconds the block waits
after the higher-priority error has been reported outgoing until it outputs the queued I/O access
error as well. Both values are set to 2 seconds by default.
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_MS (Page 205)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.32.2
I/Os of MOD_MS
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DELAY1
INT
DELAY2
INT
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_IDx
Message number x
DWORD
LADDR
INT
LADDR1
INT
203
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
I/O
(parameter)
Meaning
Data type
Default
MODE_xx
WORD
MS
Maintenance status
DWORD
MS_REQ
BOOL
RACK_NO
Rack number
BYTE
SLOT_NO
Slot number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#000000
00
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DIAG_INF
STRUCT
DXCHG_xx
DWORD
Output parameters
Byte 0:
Bit 0: Release for maintenance
Bit 1: Flutter suppression
Bit 2: Release for maintenance demanded
Bit 3 to bit 7 byte 0: Reserved
Byte 1: Reserved
Byte 2: Reserved
Byte 3: Fluttering time
204
EXT_STAT
DWORD
MOD_INF
STRUCT
MSG_ACKx
Message acknowledgment x
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = module removed/defective
BOOL
QPERAF
BOOL
QRACKF
BOOL
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
ACC_MODE
BOOL
CPU_DIAG
STRUCT
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of MOD_MS (Page 205)
Maintenance status MS (Page 356)
5.32.3
Message
number
Block
parameter
Message class
EV_ID1
QMODF
Module @1%d@/@2%d@/@3%d@:
Removed
QPERAF
Module @1%d@/@2%d@/@3%d@:
Access error
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_MS_TXT@
EV_ID2
Module @1%d@/@2%d@/@3%d@:
Multiple diagnostic interrupt
Module @1%d@/@2%d@/@3%d@:
@4W%t#MOD_MS_TXT@
Module @1%d@/@2%d@/@3%d@:
Short-circuit
Module @1%d@/@2%d@/@3%d@:
Overload
Module @1%d@/@2%d@/@3%d@:
Error
Module @1%d@/@2%d@/@3%d@:
High limit exceeded
Module @1%d@/@2%d@/@3%d@:
Low limit undershot
Module @1%d@/@2%d@/@3%d@:
Parameter assignment error
Module @1%d@/@2%d@/@3%d@:
Actuator OFF
205
Family: @System
5.32 MOD_MS: Monitoring up to 16 channels on ET200S/X motor starter modules with diagnostic functions
Message block
ALARM_8P
Message
number
Block
parameter
Message class
Module @1%d@/@2%d@/@3%d@:
Safety-related shutdown
Module @1%d@/@2%d@/@3%d@:
External error
Module @1%d@/@2%d@/@3%d@:
Switching element overload
Module @1%d@/@2%d@/@3%d@:
Missing supply voltage
You will find the message texts and their text numbers in "Text library for MOD_MS
(Page 369)".
Block
parameter
Meaning
EV_ID1
SUBN_ID
RACK_NO
SLOT_NO
SUBN_ID
RACK_NO
SLOT_NO
EV_ID2
See also
Message Classes (Page 355)
206
Family: @System
5.33 MOD_SWT: Monitoring of Switch blocks with diagnostics functions
5.33
5.33.1
Description of MOD_SWT
Area of application
The MOD_SWT block creates the device-specific diagnostics function for blocks of the Switch
type.
The following events are processed in the MOD_SWT and the status messages reported in
WinCC:
SwitchType
FbSwtMMS
Message text
Message class in
WinCC
Maintenance
State
Backward
SA
00
16#80
Off
SA
00
16#80
Forward
SA
00
16#80
Overload warning
06
16#68
Error
07
16#00
Warning
06
16#68
Calling OBs
The cyclic OB 1 and OB 100.
In addition, the block is installed in the cyclic interrupt OB OB3x in which the following signal
processing driver block is installed.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed when the corresponding SlaveFamily 2 object exists
Further interconnection takes place in the same way as for the existing MODPAL/X0 blocks
of the PCS 7 Basis Library
The corresponding inputs are read out of HW Config and configured.
The block is interconnected with the corresponding Switch block through the DXCHG_00,
OMODE_00 and O_MS parameters.
207
Family: @System
5.33 MOD_SWT: Monitoring of Switch blocks with diagnostics functions
Startup characteristics
Initialization of the ALARM_8P blocks and of the NOTIFY_8P blocks.
Message response
The block reports errors using ALARM_8P and NOTIFY_8P.
The block generates the following messages in the OBs listed below:
OB no.
Start event
Message
Cyclic processing
100
Restart
Initialization of ALARM_8P
MODE behavior
The block is informed by the "MODE" input about which function block or device type is involved.
5.33.2
I/Os of MOD_SWT
I/Os
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
208
I/O (parameter)
Meaning
Type
Default
EN_MSG
1 = Enable message
BOOL
EV_ID1
Message number 1
DWORD
16#00
EV_ID2
Message number 2
DWORD
16#00
MS
Maintenance status
DWORD
16#00
MS_REQ
BOOL
LINK_ADR
Link address
BYTE
PADP_ADR
BYTE
16#00
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
Family: @System
5.33 MOD_SWT: Monitoring of Switch blocks with diagnostics functions
In/out parameters
I/O (parameter)
Meaning
Type
CPU_DIAG
Struct (see
OB_BEGIN)
RAC_DIAG
Struct (see
OB_DIAG1)
Output parameters
I/O (parameter)
Meaning
Type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_EXIST
Channel exists
DWORD
16#00000000
CH_OK
Channel OK
DWORD
16#00000000
DXCHG_00
DWORD
16#00
DXCHG1
DWORD
DXCHG1_00
DWORD
EXT_STAT
DWORD
16#00
EXT_STAT_A
DWORD
BOOL
MS_XCHG_00
DWORD
MSGSTAT1
WORD
16#00
MSGSTAT2
WORD
16#00
MSG_ACK1
Message acknowledgment 1
WORD
16#00
MSG_ACK2
Message acknowledgment 2
WORD
16#00
OMODE_00
DWORD
16#00
O_MS
Maintenance status
DWORD
16#00
Overload
BOOL
QERR
1 = program error
BOOL
QRACKF
BOOL
Warning
BOOL
209
Family: @System
5.33 MOD_SWT: Monitoring of Switch blocks with diagnostics functions
5.33.3
Messaging
Message block
Class
Event
EV_ID1:SIG1
EV_ID1:SIG2
EV_ID1:SIG3
EV_ID1:SIG6
EV_ID2:SIG2
Status message - AS
EV_ID2:SIG3
Status message - AS
EV_ID2:SIG6
Status message - AS
Device @1%d@/@2%d@:
local operation/functional check
EV_ID2:SIG7
Status message - AS
Device @1%d@/@2%d@:
Device passivated
EV_ID2:SIG8
Status message - AS
Block parameter
Subnet
Address
See also
Message Classes (Page 355)
210
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
5.34
5.34.1
Description of MOD_PAL0
Area of application
Block MOD_PAL0 reports the maintenance status of a PA field device that is used as a DPV0
slave downstream of a DP/PA link DPV1. The PA field devices must conform to the PROFIBUS
V3.0 profile.
Calling OBs
The cyclic OB and OB 100.
In addition, the block is installed in the cyclic interrupt OB OB3x in which the following signal
processing driver block is installed.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence upstream of block PA_x
The SUBN1_ID, SUBN2_ID, RACK_NO, SLOT_NO, PADP_ADR, PROF_V30 inputs are
configured.
The block inputs are interconnected with the following outputs:
Output PA_DIAG of block PADP_L10
OMODEx outputs of block PADP_L10
QMODF and QPERAF outputs of block PADP_L10
with output structure RAC_DIAG of block OB_DIAG1
input QC_x with PA field device icon
211
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
Note
The CFC function "Generate module drivers" can only be used if the PA field device
belongs to slave family 12.
Redundancy
The higher-level block evaluates the redundancy of DP master systems operating in an H
system.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
Initialization of ALARM_8P and NOTIFY_8P.
Time response
Not available
212
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
Message response
The block reports by means of ALARM_8P and NOTIFY_8P.
The block generates the following messages in the OBs listed below:
OB no.
Start Event
Message
Cyclic processing
100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values for MOD_PAL0 (Page 215)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.34.2
I/Os of MOD_PAL0
I/Os
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O (parameter)
Meaning
Type
Default
EN_DIAG
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number x
DWORD
MODE_xx
DWORD
213
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
I/O (parameter)
Meaning
Type
Default
MODF
1 = PA slave error
BOOL
MS
Maintenance status
DWORD
MS_REQ
BOOL
NUM_CHN
INT
PA_DIAG
DWORD
PADP_ADR
BYTE
PERAF
BOOL
PROF_V30
BOOL
QC_xx
BYTE
RACK_NO
BYTE
SLOT_NO
BYTE
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Default
Output parameters
I/O
Meaning
Type
B_QC
STRUCT
CH_ACTIVE
Channel active
DWORD
16#000
00000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DXCHG_xx
0
0
DWORD
DXCHG1_xx
DWORD
DWORD
DWORD
(xx = 00 - 31)
EXT_STAT
EXT_STAT_A
214
FS_ACTIVE
Flutter suppression
DWORD
16#000
00000
MS_XCHG_00
DWORD
MSG_ACKx
Message acknowledgment x
WORD
MSGSTATx
WORD
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
I/O
Meaning
Type
Default
MS_XCHG_xx
DWORD
(xx = 00 - 31)
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = PA slave error
BOOL
QPERAF
BOOL
QRACKF
BOOL
In/out parameters
I/O
Meaning
Type
Default
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values for MOD_PAL0 (Page 215)
Maintenance status MS (Page 356)
PA field device status and diagnostic information (Page 357)
5.34.3
Message class
EV_ID1
(ALARM_8P)
No message
No message
215
Family: @System
5.34 MOD_PAL0: Diagnosing a DPV0 PA slave (via DP/PA coupler downstream of a DP/PA link DPV1)
Message block Message no.
Message class
EV_ID2
(NOTIFY_8P)
SA
SA
SA
SA
SA
SA
SA
SA
Associated
value
Block
parameter
Meaning
EV_ID1
(ALARM_8P)
SUBN_ID
RACK_NO
PADPADR
SUBN_ID
RACK_NO
PADPADR
EV_ID2
(NOTIFY_8P)
If the PA field device is connected downstream from an inactive DP/PA-Link V1and SUBN1_ID
= 16#FF, the associated variable is substituted by SUBN2_ID.
You will find the message texts and their text numbers in
"Text library for MOD_PAL0 (Page 360)".
See also
Message Classes (Page 355)
216
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
5.35
5.35.1
Description of MOD_PAX0
Area of application
Block MOD_PAX0 reports the maintenance status of a PA field device that is used as a DPV0
slave in a DP master system. The PA field devices must conform to the PROFIBUS V3.0 profile.
Calling OBs
The cyclic OB and OB 100.
In addition, the block is installed in the cyclic interrupt OB OB3x in which the following signal
processing driver block is installed.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is integrated in the run sequence upstream of the PA_x block.
The inputs SUBN1_ID, SUBN2_ID, PADP_ADR and PROF_V30 have parameters
assigned.
The inputs are interconnected with the following outputs:
Output PA_DIAG of block PADP_L10
OMODEx outputs of block PADP_L10
QMODF and QPERAF outputs of block PADP_L10
with output structure RAC_DIAG of block OB_DIAG1
Input QC_x is interconnected with the PA field device status icon.
Output OMODExx is interconnected with the MODE input of the PA_x block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
217
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
Note
The CFC function "Generate module drivers" can only be used if the PA field device belongs
to slave family 12.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Redundancy
The higher-level block evaluates the redundancy of DP master systems operating in an H
system.
218
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
Initialization of ALARM_8P and NOTIFY_8P
Time response
Not available
Message response
The block uses ALARM_8P and NOTIFY_8P
The block generates the following messages in the OBs listed below:
OB no.
Start Event
Message
Cyclic processing
100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values for MOD_PAX0 (Page 222)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.35.2
I/Os of MOD_PAX0
I/Os
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
219
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Type
Default
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number x
DWORD
MODE_xx
DWORD
MODF
1 = PA slave error
BOOL
MS
Maintenance status
DWORD
MS_REQ
BOOL
NUM_CHN
INT
PA_DIAG
DWORD
PADP_ADR
BYTE
PERAF
BOOL
PROF_V30
BOOL
QC_xx
BYTE
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Default
Output parameters
I/O
(parameter)
Meaning
Type
B_QC
STRUCT
CH_ACTIVE
Channel active
DWORD
16#00000
000
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
DWORD
DWORD
DWORD
DWORD
DXCHG_xx
(xx = 00 - 31)
EXT_STAT
220
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
I/O
(parameter)
Meaning
Type
Default
EXT_STAT_A
DWORD
Flutter suppression
DWORD
16#00000
0000
MS_XCHG_00
DWORD
MS_XCHG_xx
DWORD
(xx = 00 - 31)
MSG_ACKx
Message acknowledgment x
WORD
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QERR
1 = program error
BOOL
QMODF
1 = PA slave error
BOOL
QPERAF
BOOL
QRACKF
BOOL
In/out parameters
I/O
(parameter)
Meaning
Type
Default
RAC_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values for MOD_PAX0 (Page 222)
Maintenance status MS (Page 356)
PA field device status and diagnostic information (Page 357)
221
Family: @System
5.35 MOD_PAX0: Diagnosing a DPV0 PA slave (via DP/PA coupler with connection to a DP master system)
5.35.3
Block
parameter
Message
class
EV_ID1
(ALARM_8P)
No
message
No
message
SA
SA
SA
SA
SA
SA
Device @1%d@/@2%d@:
Device passivated
SA
SA
EV_ID2
(NOTIFY_8P)
222
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
Associated
value
Block
parameter
Meaning
EV_ID1
(ALARM_8P)
SUBN_ID
PADPADR
SUBN_ID
PADPADR
EV_ID2
(NOTIFY_8P)
See also
Message Classes (Page 355)
5.36
5.36.1
Description of OB_BEGIN
Area of application
Block OB_BEGIN is used for CPU diagnostics of the automation system (AS). By installing the
block in CFC, the system creates all acyclic tasks (OBs) in which the driver blocks of PCS 7
Basis Library are executed.
223
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic processing
OB 55
OB 56
OB 57
OB 70
OB 72
OB 80
Timeout error
OB 81
OB 82
Diagnostic interrupt
OB 83
Remove/insert interrupt
OB 84
OB 85
OB 86
Rack failure
OB 88
Stop avoidance
OB 100
Restart
OB 121
Programming error
OB 122
Use in CFC
With the "Generate module drivers" CFC function, the OB_BEGIN block is automatically
installed in the OBs listed above.
224
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
System Software for S7-300/400 System and Standard Functions. The statuses of
SSL_71.MASTER_0/1 and SSL_71.CPU_ERR_0/1 are updated in OB 72.
OB_BEGIN provides the diagnostic information of OB 55, OB 56 and OB 57 to the downstream
blocks in its output structure CPU_OB_5X.
The block reports diagnostic events of an OB 88 block.
All OB 88 events are incoming events. OB 1 generates the relevant event message exiting
state after a delay of approximately 10 seconds in order to allow the reporting of a new OB 88
event.
Error handling
Block OB_BEGIN evaluates error information from ALARM_8P and writes it to the relevant
output parameters.
You will find additional information about this in the "Error information of output parameter
MSG_STAT (Page 353)" section.
If the block installation sequence OB_BEGIN, xx blocks, ..., OB_END is not observed in an
OB, the message "OB_END installation error, no OB 8x processing" will be output and QERR
= TRUE set. In this case, the acyclic OBs do not evaluate the data. The downstream blocks
will not be enabled.
Error information at output parameter STATUS of SFB 54 (RALRM) is handled as follows:
The values 16#8096, 16#80A7, 16#80C0, 16#80C2, 16#80C3 or 16#80C4 at STATUS[2]
and STATUS[3] indicate temporary errors. STATUS[3] of the corresponding OB will be set
in the structure CPU_DIAG = 16#C4. Downstream blocks can read access the diagnostic
data asynchronously.
After any other error event, SFC 6 (RD_SINFO) reads the startup information once again
and the message "OB_BEGIN diagnostic error RALRM STATUS = xxxxxxxx" is output.
OB 1 generates the message exiting state once a delay of approximately 10 seconds has
expired.
Startup characteristics
Block OB_BEGIN initializes the messages of ALARM_8P. In H systems (CPU_DIAG.H_MODE
= TRUE), the current status of the two H CPUs is determined by reading SSL71 (see "Function
and method of operation").
Overload Behavior
Messages exiting state associated with OB 121, OB 122 and OB 88 are generated subject to
a delay of approx. 10 seconds. This on the one hand prevents blocking of the WinCC
connection due to a high message transfer volume of these OBs. On the other hand, OB events
may be due to the delay.
Time response
Not available
225
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
Message response
ALARM_8P multiple instances are only called if OB_BEGIN is to output a message. It is only
at this point that previously acknowledged messages are updated by the corresponding
ALARM block. If the connection to WinCC is down, each ALARM_8P can hold up to two
message statuses of its event ID.
The CPU generates a programming error (OB 121) only as an incoming event. OB 1 resets
the relevant message to status exiting state. In order to avoid an excessive number of
programming error messages, these will not be reported as outgoing until a delay time of 10
seconds has expired. The same applies to I/O access errors (OB 122) and OB 88 events.
The block generates the following messages in the OBs listed below:
OB
Start Event
Message
OB 1
Cyclic processing
OB 72
OB 80
Timeout error
OB 84
OB 85
226
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
OB
Start Event
Message
OB 88
Stop avoidance
OB 100
Restart
Initialization of ALARM_8P
OB 121
Programming error
OB 122
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_BEGIN (Page 229)
Maintenance status MS (Page 356)
5.36.2
I/Os of OB_BEGIN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
227
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
DIAG_BUF
BOOL
EN_MSG
Reserve
BOOL
EV_IDx
DWORD
MS
Maintenance status
DWORD
SUB0IDxx
BYTE
255
SUB1IDxx
BYTE
255
I/O
(parameter)
Meaning
Data type
Defau
lt
Output parameters
CPU_DIAG
STRUCT
CPU_OB_4X
Start information OB 40 - OB 47
STRUCT
CPU_OB_5X
STRUCT
CPU_OB_6X
Start information OB 60 - OB 64
STRUCT
CPUERR_0
BOOL
CPUERR_1
BOOL
EN_SUBx
BOOL
MASTER_0
BOOL
MASTER_1
BOOL
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QERR
1 = processing error
BOOL
QMSGERx
BOOL
SZL_71
STRUCT
The structure of the CPU_DIAG is integrated as OUT in the OB_BEGIN block, and as IN_OUT
in all other blocks with this I/O.
*) You will find additional information about CPU errors in the CPU Manual.
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_BEGIN (Page 229)
Maintenance status MS (Page 356)
228
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
5.36.3
Message
number
OB no.
Message
class
EV_ID1
OB 85
No
message
OB 84
Interface error
OB 85
OB 122
OB 122
OB 84
Messages 1, 4, 5, 6, 7 and 8 are only incoming events. They are reset to "outgoing" status
during the normal run sequence (OB 1) of the block.
Data type
EV_ID1
CPU_DIAG.OB_S_NUM_CNT
BYTE
TINFO_TOP_SI_NUM
BYTE
OB 72_supp_info 1
WORD
OB 122_BLK_TYP
WORD
OB 122_BLK_NUM
WORD
OB 122_MEM_ADDR
WORD
OB 85_supp_info 1
WORD
OB 85_HW_supp_info 2_3
WORD
OB 85_LW_supp_info 2_3
WORD
10
OB 85_DKZ2_3
WORD
229
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
ALARM_8P
Message
number
OB no.
Message class
EV_ID2
OB 80
OB 80
OB 80
OB 84
OB 84
OB 84
OB 84
230
Message block
ALARM_8P
Associated
value
Block parameters
Data type
EV_ID2
OB 121_SW_FLT
BYTE
OB 121_BLK_TYP
WORD
OB 121_RESERVED_1
BYTE
OB 121_FLT_REG
WORD
OB 121_BLK_NUM
WORD
OB 121_PRG_ADDR
WORD
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
Message block Message
ALARM_8P
number
OB
no.
Messag
e
class
EV_ID3
Associated
value
Block parameters
Data type
EV_ID3
WORD
BYTE
WORD
WORD
BYTE
BYTE
BYTE
BYTE
BYTE
10
WORD
Process control messages for ALARM_8P with EV_ID4 are assigned as follows:
Message block
ALARM_8P
Message
number
Message class
EV_ID_4
OB 88(@6W%t#OB_BEGIN_TXT@):
OB@1%d@ PRIO@2%d@ @3%2s@@4%d@ /
@5%d@
No message
231
Family: @System
5.36 OB_BEGIN: CPU Diagnostics and AS Connection Diagnostics
Message block
ALARM_8P
Message
number
Message class
No message
No message
No message
No message
No message
No message
Associated
value
Meaning
EV_ID4
Status RALRM
You will find the message texts and their text numbers in "Text library for OB_BEGIN
(Page 371)".
See also
Message Classes (Page 355)
232
Family: @System
5.37 OB_BEGIN_PN: CPU diagnostics
5.37
5.37.1
Description of OB_BEGIN_PN
Area of application
Block OB_BEGIN_PN is used for CPU diagnostics of the automation system (AS). By installing
the block in CFC, the system creates all acyclic tasks (OBs) in which the driver blocks of PCS
7 Basis Library are executed.
5.37.2
I/Os of OB_BEGIN_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Defa
ult
DIAG_BUF
BOOL
EN_MSG
Reserve
BOOL
EV_IDx
DWORD
MS
Maintenance status
DWORD
SUB0IDxx
BYTE
255
SUB1IDxx
BYTE
255
233
Family: @System
5.37 OB_BEGIN_PN: CPU diagnostics
Output parameters
I/O
(parameter)
Meaning
Data type
CPU_DIAG
STRUCT
CPU_DIAG_PN
STRUCT
CPU_OB_4X
Start information OB 40 - OB 47
STRUCT
CPU_OB_5X
STRUCT
CPU_OB_5X_PN
STRUCT
CPU_OB_6X
Start information OB 60 - OB 64
STRUCT
CPUERR_0
BOOL
Defa
ult
CPUERR_1
BOOL
EN_SUBx
BOOL
MASTER_0
BOOL
MASTER_1
BOOL
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QERR
1 = processing error
BOOL
QMSGERx
BOOL
SZL_71
STRUCT
The structure of the CPU_DIAG is integrated as OUT in the OB_BEGIN block, and as IN_OUT
in all other blocks with this I/O.
*) You will find additional information about CPU errors in the CPU Manual.
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_BEGIN_PN (Page 234)
Maintenance Status of MS (Page 356)
5.37.3
Message
number
OB no.
Message
class
EV_ID1
OB 85
234
No
message
Family: @System
5.37 OB_BEGIN_PN: CPU diagnostics
Message block
ALARM_8P
Message
number
OB no.
Message
class
OB 84
Interface error
OB 85
OB 122
OB 122
No
message
Messages 1, 4, 5, 6, 7 and 8 are only incoming events. They are reset to "outgoing" status
during the normal run sequence (OB 1) of the block.
Data type
EV_ID1
CPU_DIAG_PN.OB_S_NUM_CNT
BYTE
TINFO_TOP_SI_NUM
BYTE
OB 72_supp_info 1
WORD
OB 122_BLK_TYP
WORD
OB 122_BLK_NUM
WORD
OB 122_MEM_ADDR
WORD
OB 85_supp_info 1
WORD
OB 85_HW_supp_info 2_3
WORD
OB 85_LW_supp_info 2_3
WORD
10
OB 85_DKZ2_3
WORD
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
ALARM_8P
Message
number
OB no.
Message class
EV_ID2
OB 80
OB 80
OB 80
OB 84
235
Family: @System
5.37 OB_BEGIN_PN: CPU diagnostics
Message block
ALARM_8P
Message
number
OB no.
Message class
OB 84
OB 84
OB 84
Associated
value
Block parameter
Data type
EV_ID2
OB 121_SW_FLT
BYTE
OB 121_BLK_TYP
WORD
OB 121_RESERVED_1
BYTE
OB 121_FLT_REG
WORD
OB 121_BLK_NUM
WORD
OB 121_PRG_ADDR
WORD
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
236
OB
no.
Messag
e
class
EV_ID3
Family: @System
5.37 OB_BEGIN_PN: CPU diagnostics
Message block Message
ALARM_8P
number
OB
no.
Messag
e
class
Associated
value
EV_ID3
Block parameter
Data type
OB 121_SW_FLT
BYTE
OB 121_BLK_TYP
WORD
OB 121_RESERVED_1
BYTE
OB 121_FLT_REG
WORD
OB 122_BLK_NUM
WORD
OB 121_PRG_ADDR
WORD
Process control messages for ALARM_8P with EV_ID4 are assigned as follows:
Message block
ALARM_8P
Message
number
Message class
EV_ID_4
OB 88(@6W%t#OB_BEGIN_PN_TXT@):
OB@1%d@ PRIO@2%d@ @3%2s@@4%d@ /
@5%d@
No message
No message
No message
No message
No message
No message
237
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
Associated
value
Meaning
EV_ID4
Status RALRM
You will find the message texts and their text numbers in the section "Text library for
OB_BEGIN_PN (FB130) / OB_BEGIN_HPN (FB205) (Page 371)"
For additional information, see chapter: Message Classes (Page 355).
5.38
5.38.1
Description of OB_BEGIN_HPN
Area of application
Block OB_BEGIN_HPN is used for H-CPU diagnostics of the automation system (AS). By
installing the block in CFC, the system creates all acyclic tasks (OBs) in which the driver blocks
of PCS 7 Basis Library are executed.
Additional information
For additional information, refer to the following sections:
Message texts and associated values of OB_BEGIN_HPN (Page 240)
Maintenance Status of MS (Page 356)
238
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
5.38.2
I/Os of OB_BEGIN_HPN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11) ".
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
CPU_RT_DATA
STRUCT
DIAG_BUF
BOOL
EN_MSG
Reserve
BOOL
EV_IDx
DWORD
MS
Maintenance status
DWORD
R0_PLUG_TRANS_0_ADDR
INT
R0_PLUG_TRANS_1_ADDR
INT
R1_PLUG_TRANS_0_ADDR
INT
R1_PLUG_TRANS_1_ADDR
INT
SUB0IDxx
BYTE
255
SUB1IDxx
BYTE
255
Output parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
CPU_DIAG
STRUCT
CPU_DIAG_PN
STRUCT
CPU_OB_4X
Start information OB 40 - OB 47
STRUCT
CPU_OB_5X
STRUCT
CPU_OB_5X_PN
STRUCT
CPU_OB_6X
Start information OB 60 - OB 64
STRUCT
CPUERR_0
BOOL
CPUERR_1
BOOL
DIAG_INF
STRUCT
EN_SUBx
BOOL
EXT_STAT
Extended Status
DWORD
EXT_STAT_1
Extended Status
DWORD
MASTER_0
BOOL
239
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
I/O
(parameter)
Meaning
Data type
Defau
lt
MASTER_1
BOOL
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QERR
1 = processing error
BOOL
QMSGERx
BOOL
SZL_71
STRUCT
The structures of the CPU_DIAG and CPU_DIAG_PN are integrated in the block
OB_BEGIN_HPN as OUT, and in all other blocks with this connection as IN_OUT .
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_BEGIN_HPN (Page 240)
Maintenance Status of MS (Page 356)
5.38.3
Message
number
OB no.
Message
class
EV_ID1
OB 85
OB @7%d@not loaded
No
message
OB 84
Interface error
OB 85
OB 122
OB 122
No
message
Messages 1, 4, 5, 6, 7 and 8 are only incoming events. They are reset to "outgoing" status
during the normal run sequence (OB 1) of the block.
240
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
Data type
EV_ID1
CPU_DIAG.OB_S_NUM_CNT
BYTE
TINFO_TOP_SI_NUM
BYTE
OB 72_supp_info 1
WORD
OB 122_BLK_TYP
WORD
OB 122_BLK_NUM
WORD
OB 122_MEM_ADDR
WORD
OB 85_supp_info 1
WORD
OB 85_HW_supp_info 2_3
WORD
OB 85_LW_supp_info 2_3
WORD
10
OB 85_DKZ2_3
WORD
The process control messages of ALARM_8P with EV_ID2 are assigned as follows:
Message block
ALARM_8P
Message
number
OB no.
Message class
EV_ID2
OB80
OB80
OB80
OB 84
OB 84
OB 84
OB 84
241
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
Associated
value
Block parameters
Data type
EV_ID2
OB 121_SW_FLT
BYTE
OB 121_BLK_TYP
WORD
OB 121_RESERVED_1
BYTE
OB 121_FLT_REG
WORD
OB 121_BLK_NUM
WORD
OB 121_PRG_ADDR
WORD
The process control messages of ALARM_8P with EV_ID3 are assigned as follows:
Message block Message
ALARM_8P
number
OB
no.
Messag
e
class
EV_ID3
242
Associated
value
Meaning
Cycle time
Originator OB
Cycle time
Cycle time
Priority class
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
Message block
ALARM_8P
Associated
value
Meaning
Originator OB
Priority class
Originator OB
Priority class
10
Cycle time
The process control messages of ALARM_8P with EV_ID4 are assigned as follows:
Message block
ALARM_8P
Message
number
Message class
EV_ID_4
OB 88(@6W%t#OB_BEGIN_HPN_TXT@):
OB@1%d@ PRIO@2%d@ @3%2s@@4%d@ /
@5%d@
No message
Associated
value
Meaning
EV_ID4
Status RALRM
243
Family: @System
5.38 OB_BEGIN_HPN: H-CPU diagnostics
The process control messages of ALARM_8P with EV_ID5 are assigned as follows:
Message block
ALARM_8P
Message
number
Message class
EV_ID_5
Associated
value
Meaning
EV_ID5
Status RALRM
You will find the message texts and their text numbers in the section "Text library for
OB_BEGIN_PN (FB130) / OB_BEGIN_HPN (FB205) (Page 371)".
For additional information, see chapter: Message Classes (Page 355).
244
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
5.39
5.39.1
Description of OB_DIAG1
Area of application
Block OB_DIAG1 monitors the failure and recovery of DP or PA slaves (referred to as slaves
below). The slaves can be connected to a DPV0 or DPV1 master system, or to a DPV1 DP/
PA link (Y link). OB_DIAG1 blocks further evaluation if a slave is defective (frequent producer)
to prevent the CPU stopping. It indicates the preferred channel of the active slave in an H
system. The indicated preferred channel 1 (SUBN1ACT ) is always TRUE, if the slave is
downstream of a DP/PA link (Y link) and is active.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 70
OB 72
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
OB 55
OB 56
OB 57
The driver generator only installs the block in OB 55, OB 56 and OB 57 if diagnostic messages
are to be expected from these locations; consequently OB 5x are not entered in this block's
task list.
245
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Block OB_DIAG1 is installed downstream of the SUBNET/DPAY_V1 block (when used
downstream of a DP/PA or Y link).
The RACK_NO, LADDR, DADDR, EN_MSG_D, SUBN1_ID, SUBN2_ID, and SUBN_TYP
inputs are configured.
The EN input is interconnected with the output of an AND block.
The block inputs will be interconnected with output EN_SUBx (x = DP master system ID)
of the OB_BEGIN block and with output EN_Rxxx (xxx = rack/station number) of the
SUBNET block.
The CPU_DIAG OUT structure of the OB_BEGIN block and SUB_DIAG of the SUBNET
block are interconnected with the IN_OUT structures of the same name of block OB_DIAG.
RAC_DIAG_I is interconnected with its own RAC_DIAG OUT structure when used in a DP
master system.
RAC_DIAG_I is interconnected with the RAC_DIAG OUT structure of the DPAY_V1 block
when used downstream of a Y link.
246
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
The Device failure message can be disabled with EM_MSG_D = FALSE (see Message
Response).
Overload behavior
Block OB_DIAG1 counts the frequency of the calls to the acyclic OB 55, OB 56, OB 57, OB
82, and OB 86 blocks (except in the case of a DP master system failure, see SUBNET block).
If the block is downstream of a DP/PA or Y link, the calls will be counted in OB 83, rather than
in OB 86. The following section deals only with OB 86.
Each OB is assigned a counter that is checked for the condition > 5. If this condition is fulfilled,
the block sets EN_F = FALSE (disable function block). The counters are reset in OB 1. The
output EN_F = TRUE (enable function block) is set in all other OBs.
OB_DIAG1 reports failure of the blocks mentioned above in OB 1, OB 82 or OB 86, including
the geographic address of the slave.
OB 55, OB 56, OB 57 and OB 82 are locked in the event of an overload, however, so the event
is not evaluated in the downstream blocks. The outputs cannot correspond to the current slave
status. If an OB is locked and no more slave events have been reported after a delay of around
1 minute, if it is OB 86 that is disabled, the slave status is checked, and the outputs are updated.
It may take several cycles to update the slave status.
If it is OB 82 that is disabled, rather than OB 86, the EN_DIAG variable is set to TRUE after
around 1 minute. The interconnected DP slave block can then fetch the current diagnostic data
for the slave, and update its own data. The same applies to OB 55, OB 56, and OB 57.
The outgoing message about the fault is generated when the OB lock is canceled, and either
a new event has occurred for this OB or the wait time has elapsed.
Redundancy
The block supports redundant DP master systems in an H system (distributed I/Os only). The
SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection to CPU 1) inputs of the
OB_DIAG1 block are configured with the numbers of the redundant DP master systems. If the
DP master systems are not redundant, the remaining input is set to 16#FF (default).
Startup characteristics
The availability of the slave is checked. In H systems the preferred channel of the slave is
determined (active slaves only).
Error handling
The block evaluates the error information from ALARM_8P, and writes it to the relevant output
parameter.
You will find additional information about this in the "Error information of output parameter
MSG_STAT (Page 353)" section.
247
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
Message response
The multiple instances ALARM_8P are only called if a message is to be output by this instance.
It is only at this point that previously acknowledged messages are updated by the
corresponding ALARM block. If the connection to WinCC is down, each ALARM_8P instance
can hold up to two message statuses of its event ID. (and generally no more than two
messages). The block generates the messages listed below:
OB no. Start Event
Message
Cyclic processing
72
70
Redundancy loss
83
Removal/insertion
86
Rack failure
100
Restart
Initialization of ALARM_8P
If the diagnostic blocks (e.g., MOD_PAL0) of a device also report the failure of a device, the
"Device failure message can be disabled with EN_MSG_D = FALSE (this is done automatically
by the driver generator).
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_DIAG1 (Page 250)
Maintenance status MS (Page 356)
5.39.2
I/Os of OB_DIAG1
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You can find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
248
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DIAG_BUF
BOOL
DPA_LINK
BOOL
EN_MSG
1 = enable message
BOOL
EN_MSG_D
BOOL
EV_ID
Message number
DWORD
LADDR
INT
MS
Maintenance status
DWORD
PADP_ADR
BYTE
255
RACK_NO
Rack number
BYTE
SLOT_NO
BYTE
255
SUBN_TYP
1 = External DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
Data type
Default
EN_DIAG
BOOL
EN_F
BOOL
MOD_INF
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
QRACKF
1 = Slave failure/faulty
BOOL
RAC_DIAG
STRUCT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN1ERR
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN2ERR
BOOL
V1_MODE
BOOL
249
Family: @System
5.39 OB_DIAG1: OB diagnostics for avoiding stoppages in DPV1 master systems
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
0
ACC_ID
BOOL
CPU_DIAG
STRUCT
CPU_OB_5X
STRUCT
RAC_DIAG_I
STRUCT
SUB_DIAG
STRUCT
Additional information
For additional information, refer to the sections:
Message texts and associated values of OB_DIAG1 (Page 250)
Maintenance status MS (Page 356)
5.39.3
Message
class
250
Associated value
Block parameters
Family: @System
5.40 OB_DIAG1_PN: OB diagnostics for avoiding stoppages in DPV1 master systems
See also
Message Classes (Page 355)
5.40
5.40.1
Description of OB_DIAG1_PN
Area of application
Block OB_DIAG1_PN monitors the failure and recovery of all Profinet standard slaves and the
IE/PB-Link. The slaves can be connected to an IE/PB. To prevent the CPU stopping,
OB_DIAG1_PN blocks further evaluation if a slave is defective.
5.40.2
I/Os of OB_DIAG1_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DIAG_BUF
BOOL
DPA_LINK
BOOL
EN_MSG
1 = enable message
BOOL
EN_MSG_D
BOOL
EV_ID
DWORD
LADDR
INT
MS
Maintenance status
DWORD
PADP_ADR
BYTE
255
251
Family: @System
5.40 OB_DIAG1_PN: OB diagnostics for avoiding stoppages in DPV1 master systems
I/O
(parameter)
Meaning
Data type
Default
RACK_NO
Rack number
BYTE
SLOT_NO
BYTE
255
SUBN_TYP
1 = external PN interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
EN_F
BOOL
MOD_INF
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STATx
WORD
Output parameters
O_MS
Maintenance status
DWORD
QRACKF
1 = Slave failure/faulty
BOOL
RAC_DIAG
STRUCT
SUBN1ACT
1 = PN IO device 1 active
BOOL
SUBN1ERR
BOOL
SUBN2ACT
1 = PN IO device 2 active
BOOL
SUBN2ERR
BOOL
I/O
(parameter)
Meaning
Data type
Default
0
In/out parameters
252
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
CPU_OB_5X
STRUCT
RAC_DIAG_I
STRUCT
SUB_DIAG
OB startup information
STRUCT
Family: @System
5.40 OB_DIAG1_PN: OB diagnostics for avoiding stoppages in DPV1 master systems
5.40.3
Message
number
EV_ID1
Message
class
No
message
Block parameter
Data type
BYTE
BYTE
BYTE
See also
Message Classes (Page 355)
253
Family: @System
5.41 OB_DIAGF: Monitoring of the FF link and coupler
5.41
5.41.1
Description of OB_DIAGF
Area of application
The OB_DIAGF block monitors the FF link and coupler for
Failure and return of FF link and coupler
Redundancy loss
diagnostic interrupts
and reports these events.
The OB_DIAGF block runs acyclically and is enabled to run by the higher-level SUBNET block.
Calling OBs
The block must be installed in the run sequence downstream from the SUBNET block in the
following OBs (this is done automatically in the CFC):
OB no.
Start Event
Cyclic processing
72
70
Redundancy loss
82
Diagnostic interrupt
83
Removal/insertion
85
86
100
Restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The OB_DIAGF block is installed downstream from the SUBNET block.
The DADDR, SUBN1_ID, SUBN2_ID, RACK_NO, COUP_RED, and SLOT_NO inputs are
assigned parameters.
254
Family: @System
5.41 OB_DIAGF: Monitoring of the FF link and coupler
The EN input is interconnected with the output of an AND block. The block inputs will be
interconnected with output EN_SUBx (x = DP master system ID) of the OB_BEGIN block
and with output EN_Rxxx (xxx = rack/station number) of the SUBNET block.
The CPU_DIAG OUT structure of the OB_BEGIN block and SUB_DIAG of the SUBNET
block are interconnected with the IN_OUT structures of the same name of block OB_DIAGF.
Message response
The DELAY input is used to delay the outputting of error messages for an outgoing, higherpriority error. For example, if the OB_DIAGF block recognizes an outgoing error at a DP master
connected with it, it initially assumes that there is a faulty assigned DP slave in the rack it
monitors, and sets the corresponding output SUBNxERR. The error status is not reset until
the DP slave returns (in this case: OB 86, OB 70). The OB_DIAGF blocks suppress the potential
slave failure for DELAY seconds so as not to trigger a surge of messages from DP slaves
which are not yet synchronized when the master returns. An error message is only output to
the OS when the DP slave has not reported its return before this delay time has expired.
Note: Do not set the value of DELAY too high, otherwise DP slaves that were removed during
the master failure or are defective will be signaled to the OS too late after the DP master returns.
5.41.2
I/Os of OB_DIAGF
I/Os of OB_DIAGF
The factory setting of the block display in the CFC is identified in the "I/O" column.
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
Meaning
Data type
Default
0 = No redundant structure
BYTE
16#FF
INT
(parameter)
COUP_RED
1 = Coupler redundancy
2 = Ring redundancy
DADDR
255
Family: @System
5.41 OB_DIAGF: Monitoring of the FF link and coupler
I/O
Meaning
Data type
Default
DIAG_BUF
BOOL
DELAY
INT
15
EN_MSG
1 = enable message
BOOL
EV_ID1
Message number
DWORD
EV_ID2
Message number
DWORD
MS
Maintenance status
DWORD
RACK_NO
BYTE
16#FF
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
16#FF
SUBN2_ID
BYTE
16#FF
Meaning
Data type
Default
DINFO
Diagnostic information
STRUCT
EN_F
BOOL
FF_DIAG
STRUCT
MSG_ACK
Message acknowledgment
WORD
MSG_STAT
Message error
WORD
O_MS
Maintenance status
DWORD
QRACKF
1 = Slave failure/faulty
BOOL
RAC_DIAG
RACK diagnostics
STRUCT
RETURN_CODE_
O
Return value
INT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN1ERR
BOOL
SUBN2ERR
BOOL
V1_MODE
BOOL
I/O
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG
STRUCT
SUB_DIAG
STRUCT
(parameter)
Output parameters
I/O
(parameter)
0
In/out parameters
(parameter)
256
Family: @System
5.41 OB_DIAGF: Monitoring of the FF link and coupler
5.41.3
ALARM_8P
Message
No.
EV_ID1
EV_ID2
Message
class
Block parameters
257
Family: @System
5.42 OB_END: Reset stack pointer of OB_BEGIN
5.42
5.42.1
Description of OB_END
Area of application
The OB_END block is used to reset the stack pointer of OB_BEGIN and OB_BEGIN_PN.
Calling OBs
The OB_END block is the final entry in the OB that contains an OB_BEGIN and/or an
OB_BEGIN_PN block.
OB 1
Cyclic processing
OB 55
OB 56
OB 57
OB 70
OB 72
OB 80
Timeout error
OB 81
OB 82
Diagnostic interrupt
OB 83
Remove/insert interrupt
OB 84
OB 85
OB 86
Rack failure
OB 88
Stop avoidance
OB 100
Restart
OB 121
Programming error
OB 122
Use in CFC
When the CFC function "Generate module drivers" is used, OB_END is automatically installed
in the above OBs of the run sequence.
258
Family: @System
5.42 OB_END: Reset stack pointer of OB_BEGIN
Function
The OB_END block decrements the stack pointer (NUM_CNT) of OB_BEGIN and
OB_BEGIN_PN. In the event of an interruption, it enters the last interrupted OB number read
from the CPU stack into the CPU_DIAG and CPU_DIAG_PN structure.
Error handling
Not available
Startup characteristics
Not available
Time response
Not available
Message response
Not available
5.42.2
I/Os of OB_END
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
In-out parameters
I/O
(parameter)
Meaning
Data type
CPU_DIAG
STRUCT
CPU_DIAG_PN
STRUCT
259
Family: @System
5.43 OR_32_TS: OR value status of two redundant time-stamped signal modules, max. 32 channels
5.43
5.43.1
Description of OR_32_TS
Area of application
The OR_32_TS block forms the resulting time stamp from two redundant time-stamped signal
modules.
Calling OBs
The block must be installed in OB 1.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The OR_32_TS block is installed in OB 1.
The TS1_xx inputs are interconnected with the TS_xx output of IMDRV_TS that is
responsible for the signal module with the lower address.
The TS2_xx inputs are interconnected with the TS_xx output of IMDRV_TS that is
responsible for the signal module with the higher address.
The TS_xx outputs are interconnected with the inputs of the MSG_TS channel blocks or
Pcs7InIT.
260
Family: @System
5.43 OR_32_TS: OR value status of two redundant time-stamped signal modules, max. 32 channels
Redundancy
Redundancy of the modules in an H system is monitored in the higher-level RED_STATUS
block.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
Not available
Message response
Not available
Additional information
You will find more information in Description of IMDRV_TS (Page 83)
5.43.2
I/Os of OR_32_TS
The factory setting of the block display in CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
Meaning
Type
Default
DWORD
DWORD
(parameter)
CH_INF_H
0 = passivated, 1 = operational
CH_INF_L
RED
BOOL
RED_STAT
INT
261
Family: @System
5.43 OR_32_TS: OR value status of two redundant time-stamped signal modules, max. 32 channels
I/O
Meaning
Type
Time stamp (xx = 00 - 31) from the module with the lower
address
STRUCT
Default
(parameter)
TS1_xx
Byte 0:
Bit 0: Message signal state (MsgSig)
Bit 1: Edge change information (TriInf)
Bit 2: Handshake (HdSh)
Byte 1:
Quality code of the time stamp (ST)
DWORD TS0:
Date/time stamp in ISP format (seconds)
DWORD TS1:
Date/time stamp in ISP format (fractions of seconds)
TS2_xx
Time stamp (xx = 00 - 31) from the module with the higher
address
STRUCT
Byte 0:
Bit 0: Message signal state (MsgSig)
Bit 1: Edge change information (TriInf)
Bit 2: Handshake (HdSh)
Byte 1:
Quality code of the time stamp (ST)
DWORD TS0:
Date/time stamp in ISP format (seconds)
DWORD TS1:
Date/time stamp in ISP format (fractions of seconds)
TS1_C_xx
BYTE
BYTE
Meaning
Type
Default
CH_ALM
DWORD
CH_WRN
DWORD
QERR
1 = program error
BOOL
Output parameters
I/O
(parameter)
262
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
I/O
Meaning
Type
STRUCT
Default
(parameter)
TS_xx
Byte 0:
Bit 0: Message signal state (MsgSig)
Bit 1: Edge change information (TriInf)
Bit 2: Handshake (HdSh)
Byte 1:
Quality code of the time stamp (ST)
DWORD TS0:
Date/time stamp in ISP format (seconds)
DWORD TS1:
Date/time stamp in ISP format (fractions of seconds)
TS_C_xx
BYTE
Additional information
For additional information, refer to the following sections:
Maintenance Status of MS (Page 356)
5.44
5.44.1
Description of OR_HA16C
Area of application
The OR_HA16C block is used to create a value status from two redundant signal modules,
and reports loss of redundancy for HART modules.
263
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
Calling OBs
The block must be installed in OB 100 and in the OB before the MOD_HA driver block that is
responsible for the relevant module.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The OR_HA16C block is installed before its interconnected MOD_HA driver block in its OB.
MODE1_xx inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the primary module.
MODE2_xx inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the redundant module.
The MOD_INF1 input structure is interconnected with the MOD_INF output structure of the
MOD_x block in the primary module.
The MOD_INF2 input structure is interconnected with the MOD_INF output structure of the
MOD_x block in the redundant module.
The ACTIV_H and ACTIV_L inputs are interconnected with the outputs of the same name
of the RED_STATUS block in the redundant module.
The OMODE_xx outputs are interconnected with the downstream MOD_HA.
The OUT structure CPU_DIAG of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of the OR_HA_16C block.
The inputs RACKF1 and RACKF2 are interconnected with the outputs QRACKF1 and
QRACKF2 of MOD_x.
The CH_INF_H and CH_INF_L inputs are interconnected with the outputs of the same name
of the RED_STATUS block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
264
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
Depassivation can be triggered for a passivated block or channel by setting the DEPASS input.
For this the function RED_DEPA (FC 451) is called internally.
For OR_M_xxC / OR_HA16C blocks:
With channel-granular redundancy, "Loss of redundancy channel x" is reported if one channel
fails. If both channels fail, "Redundancy pair failure channel x" is reported.
With OR_HA16C, the message "Redundancy pair failure HART variable 01" to "Redundancy
pair failure HART variable 08" is output for HART signals 01 to 08. The message function can
be disabled.
Redundancy
Redundancy of the modules is monitored in a higher-level RED_STATUS block (FB 453).
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
The OMODE_xx outputs are updated when the "Startup" bit is set. ALARM_8P will be initialized.
Time response
Not available
Message response
OR_HA16C uses ALARM_8P for reporting. The message function can be disabled by setting
EN_MSG = FALSE.
265
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
Additional information
For additional information, refer to the sections:
Message texts and associated values of OR_HA16C (Page 268)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.44.2
Input parameters
I/O
(parameter)
Meaning
Data type
Default
ACTIV_H
BOOL
ACTIV_L
BOOL
CHAN_NUM
INT
CH_INF_H
DWORD
CH_INF_L
DWORD
DEPASS
1 = depassivation
BOOL
DEPASS_EN
1 = enable depassivation
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 3 / 1 5 / 1 - 9 / 1 - 5)
DWORD
MOD_STAT
WORD
MODE1_xx
DWORD
DWORD
MS
Maintenance status
DWORD
RACKF1
1 = error rack 1
BOOL
266
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
I/O
(parameter)
Meaning
Data type
Default
RACKF2
1 = error rack 2
BOOL
RED_STAT
INT
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_ALM
DWORD
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
CH_WRN
DWORD
DXCHG_xx
DWORD
DXCHG_1_XX
DWORD
EXT_INFO
INT
EXT_STAT
DWORD
MS_REQ
BOOL
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QDISCREP
BOOL
QERR
1 = program error
(cannot determine module status)
BOOL
QMODF1
1 = error module 1
BOOL
QMODF2
1 = error module 2
BOOL
QPASS
BOOL
RETURN_VAL
INT
267
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
In/out parameters
I/O
(parameter)
Meaning
Data type
Default
CPU_DIAG
STRUCT
DXCHG1_xx
DWORD
DWORD
DWORD
DWORD
MOD_INF1
STRUCT
MOD_INF2
STRUCT
MS_XCHG1_xx
DWORD
MS_XCHG2_xx
DWORD
Additional information
For additional information, refer to the sections:
Maintenance Status of MS (Page 356)
Message texts and associated values of OR_M_8C (Page 287)
Message texts and associated values of OR_M_16C (Page 274)
Message texts and associated values of OR_HA16C (Page 268)
Message texts and associated values of OR_M_32C (Page 279)
General Information About Block Description (Page 11)
5.44.3
268
Message block
ALARM_8P
Message
number
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@:
Failure module redundancy pair
Module @1%d@/@2%d@/@3%d@:
Modules loss of redundancy
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
Message block
ALARM_8P
EV_ID2
EV_ID3
EV_ID4
Message
number
Message
class
Module @1%d@/@2%d@/@3%d@:
Cannot determine module status
Module @1%d@/@2%d@/@3%d@:
Discrepancy time has expired for at least one
channel pair
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 00
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 01
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 02
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 03
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 04
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 05
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 06
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 07
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 01
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 02
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 03
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 04
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 05
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 06
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 07
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair HART variable 08
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 00
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 01
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 02
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 03
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 04
269
Family: @System
5.44 OR_HA16C: OR value status of 2 redundant HART modules, max. 16 channels, module granular
Message block
ALARM_8P
EV_ID5
Message
number
Message
class
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 05
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 06
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 07
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 01
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 02
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 03
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 04
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 05
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 06
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 07
Module @1%d@/@2%d@/@3%d@:
Redundancy loss HART variable 08
Associat
ed
value
Block parameters
Meaning
EV_ID1 ... 5
SUBN_ID
RACK_NO
SLOT_NO
Redundancy loss causes the geographic address of the failed module to be entered
dynamically.
If both modules fail, the message text always contains the geographic address of the primary
module.
270
Family: @System
5.45 OR_M_16C: OR value status of 2 redundant signal modules, max. 16 channels, channel granular
5.45
5.45.1
Description of OR_M_16
Additional information
For further information, refer to the following sections:
Message texts and associated values of OR_M_16C (Page 274)
Maintenance status of MS (Page 356)
You will find more information on this in PCS 7 Advanced Process Library > Basics of APL >
General functions of the blocks > Operating, monitoring and reporting > Maintenance release
5.45.2
Input parameters
I/O
(parameter)
Meaning
Data type
Default
ACTIV_H
BOOL
ACTIV_L
BOOL
CHAN_NUM
INT
CH_INF_H
DWORD
271
Family: @System
5.45 OR_M_16C: OR value status of 2 redundant signal modules, max. 16 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
CH_INF_L
DWORD
DEPASS
1 = depassivation
BOOL
DEPASS_EN
1 = enable depassivation
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 3 / 1 5 / 1 - 9 / 1 - 5)
DWORD
MOD_STAT
WORD
MODE1_xx
DWORD
DWORD
MS
Maintenance status
DWORD
RACKF1
1 = error rack 1
BOOL
RACKF2
1 = error rack 2
BOOL
RED_STAT
INT
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_ALM
DWORD
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
CH_WRN
DWORD
DXCHG_xx
DWORD
DXCHG_1_XX
DWORD
EXT_INFO
INT
EXT_STAT
DWORD
MS_REQ
BOOL
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
272
Family: @System
5.45 OR_M_16C: OR value status of 2 redundant signal modules, max. 16 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
QDISCREP
BOOL
QERR
1 = program error
(cannot determine module status)
BOOL
QMODF1
1 = error module 1
BOOL
QMODF2
1 = error module 2
BOOL
QPASS
BOOL
RETURN_VAL
INT
Meaning
Data type
Default
In/out parameters
I/O
(parameter)
CPU_DIAG
STRUCT
DXCHG1_xx
DWORD
DWORD
DWORD
DWORD
MOD_INF1
STRUCT
MOD_INF2
STRUCT
MS_XCHG1_xx
DWORD
MS_XCHG2_xx
DWORD
Additional information
For additional information, refer to the sections:
Maintenance Status of MS (Page 356)
Message texts and associated values of OR_M_8C (Page 287)
Message texts and associated values of OR_M_16C (Page 274)
Message texts and associated values of OR_HA16C (Page 268)
Message texts and associated values of OR_M_32C (Page 279)
General Information About Block Description (Page 11)
273
Family: @System
5.45 OR_M_16C: OR value status of 2 redundant signal modules, max. 16 channels, channel granular
5.45.3
Message
number
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@:
Failure module redundancy pair
Module @1%d@/@2%d@/@3%d@:
Modules loss of redundancy
Module @1%d@/@2%d@/@3%d@:
Cannot determine module status
Module @1%d@/@2%d@/@3%d@:
Discrepancy time has expired for at least one
channel pair
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 00
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 01
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 02
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 03
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 04
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 05
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 06
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 07
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 08
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 09
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 10
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 11
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 12
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 13
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 14
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 15
EV_ID2
EV_ID3
274
Family: @System
5.45 OR_M_16C: OR value status of 2 redundant signal modules, max. 16 channels, channel granular
Message block
ALARM_8P
Message
number
Message
class
EV_ID4
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 00
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 01
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 02
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 03
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 04
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 05
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 06
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 07
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 08
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 09
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 10
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 11
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 12
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 13
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 14
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 15
EV_ID5
Associat
ed
value
Block parameters
Meaning
EV_ID1 ... 5
SUBN_ID
RACK_NO
SLOT_NO
Redundancy loss causes the geographic address of the failed module to be entered
dynamically.
If both modules fail, the message text always contains the geographic address of the primary
module.
275
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
See also
Message Classes (Page 355)
5.46
5.46.1
Description of OR_M_32C
Additional information
You will find more information in:
Message texts and associated values of OR_M_32C (Page 279)
Maintenance status of MS (Page 356)
You will find more information on this in PCS 7 Advanced Process Library > Basics of APL >
General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
5.46.2
Input parameters
I/O
(parameter)
Meaning
Data type
Default
ACTIV_H
BOOL
ACTIV_L
BOOL
276
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
CHAN_NUM
INT
CH_INF_H
DWORD
CH_INF_L
DWORD
DEPASS
1 = depassivation
BOOL
DEPASS_EN
1 = enable depassivation
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 3 / 1 5 / 1 - 9 / 1 - 5)
DWORD
MOD_STAT
WORD
MODE1_xx
DWORD
DWORD
MS
Maintenance status
DWORD
RACKF1
1 = error rack 1
BOOL
RACKF2
1 = error rack 2
BOOL
RED_STAT
INT
Output parameters
I/O
(parameter)
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_ALM
DWORD
CH_EXIST
Channel exists
DWORD
CH_OK
Channel OK
DWORD
CH_WRN
DWORD
DXCHG_xx
DWORD
DXCHG_1_XX
DWORD
EXT_INFO
INT
EXT_STAT
DWORD
MS_REQ
BOOL
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
277
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QDISCREP
BOOL
QERR
1 = program error
(cannot determine module status)
BOOL
QMODF1
1 = error module 1
BOOL
QMODF2
1 = error module 2
BOOL
QPASS
BOOL
RETURN_VAL
INT
Meaning
Data type
Default
In/out parameters
I/O
(parameter)
CPU_DIAG
STRUCT
DXCHG1_xx
DWORD
DWORD
DXCHG2_xx
DWORD
DWORD
MOD_INF1
STRUCT
MOD_INF2
STRUCT
MS_XCHG1_xx
DWORD
MS_XCHG2_xx
DWORD
Additional information
For additional information, refer to the sections:
Maintenance Status of MS (Page 356)
Message texts and associated values of OR_M_8C (Page 287)
Message texts and associated values of OR_M_16C (Page 274)
Message texts and associated values of OR_HA16C (Page 268)
Message texts and associated values of OR_M_32C (Page 279)
278
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
General Information About Block Description (Page 11)
5.46.3
Message
number
Message class
EV_ID1
Module @1%d@/@2%d@/@3%d@:
Failure module redundancy pair
Module @1%d@/@2%d@/@3%d@:
Modules loss of redundancy
Module @1%d@/@2%d@/@3%d@:
Cannot determine module status
Module @1%d@/@2%d@/@3%d@:
Discrepancy time has expired for at least one
channel pair
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 00
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 01
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 02
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 03
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 04
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 05
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 06
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 07
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 08
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 09
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 10
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 11
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 12
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 13
EV_ID2
EV_ID3
279
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
Message block
ALARM_8P
EV_ID4
EV_ID5
EV_ID6
280
Message
number
Message class
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 14
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 15
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 16
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 17
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 18
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 19
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 20
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 21
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 22
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 23
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 24
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 25
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 26
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 27
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 28
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 29
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 30
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 31
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 00
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 01
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 02
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 03
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 04
Family: @System
5.46 OR_M_32C: OR value status of 2 redundant signal modules, max. 32 channels, channel granular
Message block
ALARM_8P
EV_ID7
EV_ID8
EV_ID9
Message
number
Message class
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 05
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 06
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 07
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 08
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 09
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 10
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 11
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 12
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 13
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 14
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 15
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 16
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 17
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 18
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 19
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 20
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 21
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 22
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 23
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 24
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 25
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 26
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 27
281
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
Message block
ALARM_8P
Message
number
Message class
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 28
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 29
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 30
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 31
Associat
ed
value
Block parameters
Meaning
EV_ID1 ... 9
SUBN_ID
RACK_NO
SLOT_NO
Redundancy loss causes the geographic address of the failed module to be entered
dynamically.
If both modules fail, the message text always contains the geographic address of the primary
module.
See also
Message Classes (Page 355)
5.47
5.47.1
Description of OR_M_8C
Area of application
The OR_M_8C block generates a channel-granular value status from two redundant signal
modules.
282
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
Calling OBs
The block must be installed in OB 100 and in the fastest OB upstream of the CH_x block that
is interconnected with OR_M_8C.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The OR_M_8C block is installed upstream in the OBs of the CH_x channel blocks that are
interconnected with it.
MODE1_x inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the primary module.
MODE2_x inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the redundant module.
The MOD_INF1 input structure is interconnected with the MOD_INF output structure of the
MOD_x block in the primary module.
The MOD_INF2 input structure is interconnected with the MOD_INF output structure of the
MOD_x block in the redundant module.
The ACTIV_H and ACTIV_L inputs are interconnected with the outputs of the same name
of the RED_STATUS block in the redundant module.
The OMODE_xx outputs are interconnected with the relevant CH_x channel blocks.
The OUT structure CPU_DIAG of the OB_BEGIN block is interconnected with the IN_OUT
structures of the same name of the OR_M_8C block.
The RACKF1 and RACKF2 inputs are interconnected with the QRACKF1 and QRACKF2
outputs of MOD_xx.
The CH_INF_H and CH_INF_L inputs are interconnected with the outputs of the same name
of the RED_STATUS block.
The output parameter of DXCHG_xx is interconnected with the following channel block at
the DataXchg parameter.
The output parameter of O_MS is interconnected with the following channel block at the
MS parameter.
283
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
avoided by processing all channel blocks of a module in the OB 3x that also processes the
process image partition to which this module is assigned.
For OR_M_Cxx blocks:
With channel-granular redundancy, "Loss of redundancy channel x" is reported if one channel
fails. If both channels fail, "Redundancy pair failure channel x" is reported. The message
function can be disabled.
For all OR blocks:
Depassivation can be triggered for a passivated block or channel by setting the DEPASS input.
This is done by calling the RED_DEPA FC451 function internally.
Redundancy
Redundancy of the modules in an H system is monitored in the higher-level RED_STATUS
block.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
The OMODE_xx (Page 351) outputs are updated when the "Startup" bit is set.
ALARM_8P will be initialized.
Message response
OR_M_8C uses ALARM_8P for reporting. The message function can be disabled by setting
EN_MSG = FALSE.
Additional information
For additional information, refer to the sections:
Message texts and associated values of OR_M_8C (Page 287)
Maintenance status MS (Page 356)
You will find additional information on this in PCS 7 Advanced Process Library > Basics of APL
> General functions of the blocks > Operating, monitoring and reporting > Release for
maintenance
284
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
5.47.2
Input parameters
I/O
(parameter)
Meaning
Data type
Default
ACTIV_H
BOOL
ACTIV_L
BOOL
CHAN_NUM
INT
CH_INF_H
DWORD
CH_INF_L
DWORD
DEPASS
1 = depassivation
BOOL
DEPASS_EN
1 = enable depassivation
BOOL
EN_MSG
1 = Enable message
BOOL
EV_IDx
Message number (x = 1 3 / 1 5 / 1 - 9 / 1 - 5)
DWORD
MOD_STAT
WORD
MODE1_xx
DWORD
DWORD
MS
Maintenance status
DWORD
RACKF1
1 = error rack 1
BOOL
RACKF2
1 = error rack 2
BOOL
RED_STAT
INT
Meaning
Data type
Default
CH_ACTIVE
Channel active
DWORD
16#00000000
CH_ALM
DWORD
CH_EXIST
Channel exists
DWORD
Output parameters
I/O
(parameter)
285
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
CH_OK
Channel OK
DWORD
CH_WRN
DWORD
DXCHG_xx
DWORD
DXCHG_1_XX
DWORD
EXT_INFO
INT
EXT_STAT
DWORD
MS_REQ
BOOL
MS_XCHG_xx
DWORD
MSG_ACKx
WORD
MSG_STATx
WORD
O_MS
Maintenance status
DWORD
OMODE_xx
DWORD
QDISCREP
BOOL
QERR
1 = program error
(cannot determine module status)
BOOL
QMODF1
1 = error module 1
BOOL
QMODF2
1 = error module 2
BOOL
QPASS
BOOL
RETURN_VAL
INT
I/O
(parameter)
Meaning
Data type
Default
CPU_DIAG
STRUCT
DWORD
In/out parameters
DXCHG1_xx
DWORD
DXCHG2_xx
DWORD
DWORD
MOD_INF1
STRUCT
MOD_INF2
STRUCT
286
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
I/O
(parameter)
Meaning
Data type
Default
MS_XCHG1_xx
DWORD
MS_XCHG2_xx
DWORD
Additional information
For additional information, refer to the sections:
Maintenance Status of MS (Page 356)
Message texts and associated values of OR_M_8C (Page 287)
Message texts and associated values of OR_M_16C (Page 274)
Message texts and associated values of OR_HA16C (Page 268)
Message texts and associated values of OR_M_32C (Page 279)
General Information About Block Description (Page 11)
5.47.3
Message
number
Message
class
EV_ID1
Module @1%d@/@2%d@/@3%d@:
Failure module redundancy pair
Module @1%d@/@2%d@/@3%d@:
Modules loss of redundancy
Module @1%d@/@2%d@/@3%d@:
Cannot determine module status
Module @1%d@/@2%d@/@3%d@:
Discrepancy time has expired for at least one
channel pair
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 00
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 01
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 02
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 03
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 04
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 05
EV_ID2
287
Family: @System
5.47 OR_M_8C: OR value status of 2 redundant signal modules, max. 8 channels, channel granular
Message block
ALARM_8P
EV_ID3
Message
number
Message
class
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 06
Module @1%d@/@2%d@/@3%d@:
Failure redundancy pair channel 07
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 00
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 01
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 02
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 03
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 04
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 05
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 06
Module @1%d@/@2%d@/@3%d@:
Redundancy loss channel 07
Associat
ed
value
Block parameters
Meaning
EV_ID1 / 2 / 3
SUBN_ID
RACK_NO
SLOT_NO
Redundancy loss causes the geographic address of the failed module to be entered
dynamically.
If both modules fail, the message text always contains the geographic address of the primary
module.
See also
Message Classes (Page 355)
288
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
5.48
5.48.1
Description of PADP_L00
Area of application
Block PADP_L00 monitors DP/PA field devices operating as DPV0 or DPV1 slaves
downstream of a DP/PA or Y-Link that is operated as a DPV0 slave. The PA field devices must
conform to the PROFIBUS V3.0 profile. There must be individual blocks available for the
diagnostics and signal processing for DP field devices. H systems support only the PA field
devices at an active DP/PA-Link.
Calling OBs
The block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Block PADP_L00 is integrated in the run sequence downstream of block DPAY_V0.
Parameters are assigned to the MODE_xx input (mode of slot xx of a field device).
The PADP_ADR input (DP/PA slave address downstream of the DP/PA link or Y link) is
configured.
The DPA_M input is interconnected with the DPA_M_xx output of the DPAY_V0 block.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the DPAY_V0
block are interconnected with the IN_OUT structures of the same name of PADP_L00.
The QMODF and PA_DIAG outputs are interconnected with the MOD_PAL0 block.
289
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Note
The CFC function "Generate module drivers" can only be used if the PA field device belongs
to slave family 12.
Status Bit 1
Meaning
There is an input (MODE_xx) for each slot (module) on the DP/PA field device that is used to
read in configuration settings made for the PA field device slots (module) in HW Config.
For DP field devices, the user must do his own encoding at the MODE input.
The function writes MODE_xx to the low word of the OMODE_xx (Page 351) output parameter.
This occurs only during startup or if you set ACC_MODE = TRUE. The current slot value status
is written to the most significant byte. If the result is positive, the system sets OMODE_xx =
16#80xxxxxx. The following events are evaluated by block DPAY_V0 and lead to the value
status Invalid value due to a higher-level error (OMODE_xx = 16#40xxxxxx):
Rack failure (OB 86)
290
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
The Device failure message can be disabled with EM_MSG_D = FALSE.
Redundancy
The higher-level block DPAY_V0 evaluates the redundancy of the DP master systems used
in an H system.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
After a restart or an initial start, the system verifies that the PA field device is available under
its logical base address. A restart (OB100) is reported via the LSB in byte 2 of the
OMODE_xx (Page 351) outputs.
Time response
Not available
Message response
The block signals field device errors using ALARM_8P, and generates the following messages
in the OBs listed below:
OB no.
Start Event
Message
OB 1
Cyclic processing
OB 82
Diagnostic interrupt
OB 100
Restart
Initialization of ALARM_8P
291
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Additional information
For additional information, refer to the sections:
Message texts and associated values for PADP_L00 (Page 293)
5.48.2
I/Os of PADP_L00/PADP_L01/PADP_L02
I/Os
The I/Os of the PADP_L00, PADP_L01 and PADP_L02 blocks are identical save for the number
of MODE_xx and OMODE_xx. The number of monitored slots determines the number of
corresponding I/O parameters.
The default block view in the CFC is identified in the "I/O" column:
I/O name in bold = I/O is visible, standard I/O name = I/O is not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
DPA_M
STRUCT
EN_MSG
1 = enable message
BOOL
EN_MSG_D
BOOL
EV_ID
Message number
DWORD
MODE_xx
WORD
PADP_ADR
BYTE
I/O
(parameter)
Meaning
Data type
Defau
lt
MSG_ACK
Message acknowledgment
WORD
MSGSTAT
WORD
OMODE_xx
DWORD
Output parameters
292
PA_DIAG
DWORD
QERR
1 = program error
BOOL
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
I/O
(parameter)
Meaning
Data type
Defau
lt
QMODF
1 = module removed/defective
BOOL
QRACKF
1 = rack/station error
BOOL
I/O
(parameter)
Meaning
Data type
Defau
lt
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
RAC_DIAG
1 = DPV1 mode
STRUCT
In-out parameters
Additional information
For additional information, refer to the following sections:
Message texts and associated values for PADP_L00 (Page 293)
Message texts and associated values for PADP_L01 (Page 297)
Message texts and associated values for PADP_L02 (Page 301)
5.48.3
Message
number
Block
parameter
Message
class
EV_ID
QMODF
...
8
...
-
You will find the message texts and their text numbers in the
"Text library for PADP_L00 (Page 360)" section.
293
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Associated
value
Block
parameter
Meaning
EV_ID
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
If the PA field device is connected downstream from an inactive DP/PA-Link V0and SUBN1_ID
= 16#FF, the associated variable is substituted by SUBN2_ID.
See also
Message Classes (Page 355)
5.48.4
Description of PADP_L01
Area of application
The PADP_L01 monitors DP/PA field devices that are used as DPV0 or DPV1 slaves,
downstream of a DP/PA or Y link that is used as a DPV0 slave. The PA field devices must
conform to the PROFIBUS V3.0 profile. There must be individual blocks available for the
diagnostics and signal processing for DP field devices. H systems support only the PA field
devices at an active DP/PA-Link.
Calling OBs
The block must be installed in the run sequence in the following OBs (this is done automatically
in the CFC):
294
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 85
OB 86
Rack failure
OB 100
Warm restart
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The PADP_L01 block is integrated in the run sequence downstream of block DPAY_V0.
Parameters are assigned to the MODE_xx input (mode of slot xx of a field device).
The PADP_ADR input (DP/PA slave address downstream of the DP/PA link or Y link) is
configured.
The DPA_M input is interconnected with the DPA_M_xx output of the DPAY_V0 block.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the DPAY_V0
block are interconnected with the IN_OUT structures of the same name of PADP_L01.
The outputs QMODF and PA_DIAG are interconnected with the MOD_PAL0 block.
Note
The CFC function "Generate module drivers" can only be used if the PA field device belongs
to slave family 12.
Status Bit 1
Meaning
There is an input (MODE_xx (Page 341)) for each slot (module) on the DP/PA field device that
is used to read in configuration settings made for the PA field device slots (module) in HW
Config.
For DP field devices, the user must do his own encoding at the MODE input.
295
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
The function writes MODE_xx to the low word of the OMODE_xx (Page 351) output parameter.
This occurs only during startup or if you set ACC_MODE = TRUE. The current slot value status
is written to the most significant byte. If the result is positive, the system sets OMODE_xx =
16#80xxxxxx. The following events are evaluated by block DPAY_V0 and lead to the value
status Invalid value due to a higher-level error (OMODE_xx = 16#40xxxxxx):
Rack failure (OB 86)
The block reports a diagnostic interrupt to the OS for a specific field device using ALARM_8P.
We distinguish between the field device and its slots; each slot is assigned a message ID.
The Device failure message can be disabled with EM_MSG_D = FALSE.
Redundancy
The higher-level block DPAY_V0 evaluates the redundancy of the DP master systems used
in an H system.
OMODE structure
You will find additional information in the "OMODE (Page 351)" section.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
After a restart or an initial start, the system verifies that the PA field device is available under
its logical base address. A restart (OB100) is reported via the LSB in byte 2 of the
OMODE_xx (Page 351) outputs.
Time response
Not available
296
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Message response
The block signals field device errors using ALARM_8P, and generates the following messages
in the OBs listed below:
OB no.
Start Event
Message
OB 1
Cyclic processing
OB 82
Diagnostic interrupt
OB 100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values for PADP_L01 (Page 297)
5.48.5
Message
number
Block
parameter
Message
class
EV_ID1
QMODF
EV_ID2
...
EV_ID3
...
...
7
...
-
297
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
You will find the message texts and their text numbers in the "Text library for PADP_L01
(Page 360)" section.
Associated
value
Block
parameter
Meaning
EV_ID1
SUBN_ID
RACK_NO
PADP_ADR
4-5
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
EV_ID2
EV_ID3
If the PA field device is connected downstream from an inactive DP/PA-Link V0and SUBN1_ID
= 16#FF, the associated variable is substituted by SUBN2_ID.
See also
Message Classes (Page 355)
5.48.6
Description of PADP_L02
Area of application
The PADP_L02 monitors DP/PA field devices that are used as DPV0 or DPV1 slaves,
downstream of a DP/PA or Y link that is used as a DPV0 slave. The PA field devices must
conform to the PROFIBUS V3.0 profile. There must be individual blocks available for the
diagnostics and signal processing for DP field devices. H systems support only the PA field
devices at an active DP/PA-Link.
298
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Calling OBs
The PADP_L02 block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 82
Diagnostic interrupt
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The PADP_L02 block is integrated in the run sequence downstream of block DPAY_V0.
Parameters are assigned to the MODE_xx input (mode of slot xx of a field device).
The PADP_ADR input (DP/PA slave address downstream of the DP/PA link or Y link) is
configured.
The DPA_M input is interconnected with the DPA_M_xx output of the DPAY_V0 block.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the DPAY_V0
block are interconnected with the IN_OUT structures of the same name of PADP_L02.
The QMODF and PA_DIAG outputs are interconnected with the MOD_PAL0 block.
Status Bit 1
Meaning
299
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
There is an input (MODE_xx) for each slot (module) on the DP/PA field device that is used to
read in configuration settings made for the PA field device slots (module) in HW Config.
For DP field devices, the user must do his own encoding at the MODE input.
The function writes MODE_xx to the low word of the OMODE_xx (Page 351) output parameter.
This occurs only during startup or if you set ACC_MODE = TRUE. The current slot value status
is written to the most significant byte. If the result is positive, the system sets OMODE_xx =
16#80xxxxxx. The following events are evaluated by block DPAY_V0 and lead to the value
status Invalid value due to a higher-level error (OMODE_xx = 16#40xxxxxx):
Rack failure (OB 86)
The block reports a diagnostic interrupt to WinCC for a specific field device using ALARM_8P.
We distinguish between the field device and its slots; each slot is assigned a message ID.
The Device failure message can be disabled with EM_MSG_D = FALSE.
Redundancy
The higher-level block DPAY_V0 evaluates the redundancy of the DP master systems used
in an H system.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
After a restart or an initial start, the system verifies that the PA field device is available under
its logical base address. A restart (OB100) is reported via the LSB in byte 2 of the
OMODE_xx (Page 351) outputs.
300
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Time response
Not available
Message response
The block signals field device errors using ALARM_8P, and generates the following messages
in the OBs listed below:
OB no.
Start Event
Message
OB 1
Cyclic processing
OB 82
Diagnostic interrupt
OB 100
Restart
Initialization of ALARM_8P
Additional information
For additional information, refer to the sections:
Message texts and associated values for PADP_L02 (Page 301)
5.48.7
Message
number
Block
parameter
EV_ID1
QMODF
Message
class
301
Family: @System
5.48 PADP_L0x: Monitoring DP/PA slaves
Message block
ALARM_8P
Message
number
Block
parameter
EV_ID2
...
EV_ID3
...
...
EV_ID5
class
...
...
EV_ID4
Message
...
...
...
You will find the message texts and their text numbers in
"Text library for PADP_L02 (Page 360)".
Associated
value
Block
parameter
Meaning
EV_ID1
SUBN_ID
RACK_NO
PADP_ADR
4-7
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
SUBN_ID
RACK_NO
PADP_ADR
EV_ID2
EV_ID3
EV_ID4
302
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
Message block
ALARM_8P
EV_ID5
Associated
value
Block
parameter
Meaning
4 - 10
SUBN_ID
RACK_NO
PADP_ADR
4 - 10
If the PA field device is connected downstream from an inactive DP/PA-Link V0and SUBN1_ID
= 16#FF, the associated variable is substituted by SUBN2_ID.
See also
Message Classes (Page 355)
5.49
5.49.1
Description of PADP_L10
Area of application
Block PADP_L10 monitors DPV0 PA field devices with a maximum of 32 slots, which are
operated as DPV0 slaves on a DP master system, either directly or via a DP/PA coupler. The
DP/PA coupler is connected downstream of a DPV1 DP/PA link. The PA field devices must
conform to the PROFIBUS V3.0 profile. H systems support only the PA field devices at an
active DP/PA-Link.
Calling OBs
The block must be installed in the run sequence downstream from the OB_DIAG1 block in the
following OBs (this is done automatically in the CFC):
OB 1
Cyclic program
OB 55
OB 56
OB 57
OB 82
Diagnostic interrupt
303
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Block OB_DIAG1 is installed in the run sequence upstream of PADP_L10.
The following are configured, depending on whether the PA field device is connected
directly to a DP master system or downstream of a DP/PA link:
the diagnostic address of the PA field device or of the DADDR DP/PA link
the geographic address (SUBN1_ID, SUBN2_ID, RACK_NO of the PA address of the
PA field device or the DP/PA link)
SLOT_NO = 0 or the geographic address of the PA field device in the DP/PA link
(SLOT0_NO = Slot 0 no. for the PA field device, SLOTS_NO = number of slots of the
PA field device)
SLOTS_NO = number of slots of the PA field device
the PA address of the PA field device (PADP_ADR)
MODE_xx (mode of slot xx of a PA field device)
The CPU_DIAG and CPU_OB_5X OUT structures of OB_BEGIN and RAC_DIAG of
OB_DIAG1 are interconnected with the IN_OUT structures of the same name of PADP_L10.
The EN input is interconnected with the output of an AND block.
whose inputs are interconnected with the outputs EN_SUBx (x = number of the DP master
system) of the OB_BEGIN block, EN_Rxxx (xxx = rack/station number) of the SUBNET
block, EN_Mx (x= number of the PA device) of the DPAY_V1 block, and EN_F of the
OB_DIAG1 block.
EN_DIAG is interconnected with output EN_DIAG of OB_DIAG1.
Output QPERAF is interconnected with input PERAF of MOD_PAX0 or MOD_PAL0.
Output QMODF is interconnected with input MODF of MOD_PAX0 or MOD_PAL0.
Output PA_DIAG is interconnected with input PA_DIAG of MOD_PAX0 or MOD_PAL0.
Note
The CFC function "Generate module drivers" can only be used if the PA field device belongs
to slave family 12.
304
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
How it works
Block PADP_L10 is enabled to run by the higher-level OB_DIAG1 block. The event to be
evaluated is entered in the start information (CPU_DIAG) of OB_BEGIN. Block PADP_L10
checks the geographic address and the number of slots (SLOT_NO) of the PA field device to
determine whether it is responsible for this event.
For a diagnostic event (OB 82, OB 55, OB 56, OB 57), SFB 54 is used to synchronously read
the data from OB_BEGIN.
If diagnostic data could not be read synchronously from OB_BEGIN or when requested by
OB_DIAG1 (EN_DIAG = TRUE), SFB 52 (RDREC) is used to read the current diagnostic data
asynchronously.
Byte 9 of the additional alarm information contains the slot number of the field device that
triggered the diagnostic interrupt. The corresponding slot is enabled.
The following diagnostic data is interpreted as a higher-level error in the block:
Additional alarm information
Byte no.
DPV1 name
Bit no.
Byte 1 to 6
Byte 7
Byte 8
Value
Info
DDLM_SLAVE_DIAG
Header
Status_Type
Byte 9
Slot_number
Byte 10
Specifier
Bit 7
fixed
Bit 6
fixed
Bit 5 to bit 0
8 or optional
Bit 7
Status
Bit 6 to bit 0
126
Bit 7 to bit 2
Reserved
Bit 1 to bit 0
1: status is displayed
Diagnostics
optional
Bytes 11 to 20
With a DPV0 PA field device, the diagnostic data is always assigned to slot 0.
It is also possible to generate slot-specific diagnostics for DPV1 PA field devices. These have
not yet been defined. With a DPV1 field device, only the field-device slot that triggered the
diagnostics is enabled. Evaluation of the coding in the context of higher-level errors in the slotBasic Library (V8.1)
Function Manual, 07/2014, A5E32473002-AA
305
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
specific OMODE_xx (Page 351) outputs is based solely on the diagnostic information at slot
0.
12
306
Bit
Mnemonics
Description
Display
class
DIA_HW_ELECTR
DIA HW MECH
DIA_TEMP_MOTOR
Memory error
DIA_MEASUREMENT
Measurement failure
Auto-calibration error
DIA_SUPPLY
Invalid configuration
DIA_WARMSTART
DIA COLDSTART
DIA MAINTENANCE
Maintenance necessary
DIA_CHARACT
Invalid identifier
= 1, if the ID number of
the current cyclic data transfer
and the value of the IDENT NUMBER
parameter of the physical block are different
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
Byte
Bit
Mnemonics
Description
Display
class
13
DIA_MAINTENANCE_ALARM
Device error
DIA_MAINTENANCE_DEMANDED
Maintenance requested
DIA_FUNCTION_CHECK
DIA_INV_PRO_COND
4 to 7
Reserved
0 to 4
Reserved
PROFILE_SPECIFIC_EXTENSION
_AVAILABLE
MANUFACTURER_SPECIFIC
_EXTENSION_AVAILABLE
14
6
7
EXTENSION_AVAILABLE
Redundancy
The higher-level block evaluates the redundancy of DP master systems operating in an H
system.
OMODE Structure
You will find additional information in the "OMODE (Page 351)" section.
Addressing
You will find additional information in the "Addressing (Page 353)" section.
307
Family: @System
5.49 PADP_L10: Monitoring PA slaves downstream of DPV0 with up to 16 slots
Error handling
The plausibility of input parameters is not checked.
Startup characteristics
A restart (OB 100) is reported via the LSB in byte 2 of the OMODE_xx (Page 351) outputs.
Time response
Not available
Message response
Not available
5.49.2
I/Os of PADP_L10
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
308
I/O
Meaning
Type
Defa
ult
DADDR
INT
DIAG_BUF
BOOL
EN_DIAG
BOOL
MODE_xx
WORD
PADP_ADR
BYTE
PROF_V30
BOOL
RACK_NO
BYTE
255
SLOT0_NO
BYTE
SLOTS_NO
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Family: @System
5.50 PADP_L10_PN: Monitoring PA slaves downstream of DPV0 with up to 16 slots
Output parameters
I/O
Meaning
Type
Defa
ult
DINFO
STRUCT
EN_M_xx
BOOL
OMODE_xx
DWORD
PA_DIAG
DWORD
QERR
1 = program error
BOOL
QMODF
BOOL
QPERAF
BOOL
QRACKF
BOOL
In/out parameters
I/O
Meaning
Type
Defa
ult
ACC_MODE
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
CPU_OB_5X
STRUCT
RAC_DIAG
STRUCT
5.50
5.50.1
Description of PADP_L10_PN
Area of application
Block PADP_L10_PN monitors DPV0 PA field devices with a maximum of 16 slots which are
operated as DPV0 slaves on a DP master system, either directly or via a DP/PA coupler. The
DP/PA coupler is connected downstream of an IE/PB link. The PA field devices must conform
to the PROFIBUS V3.0 profile.
309
Family: @System
5.50 PADP_L10_PN: Monitoring PA slaves downstream of DPV0 with up to 16 slots
5.50.2
I/Os of PADP_L10_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
Meaning
Type
Defa
ult
DADDR
INT
DIAG_BUF
BOOL
EN_DIAG
BOOL
MODE_xx
WORD
PADP_ADR
BYTE
PROF_V30
BOOL
RACK_NO
Rack number
BYTE
255
SLOT0_NO
BYTE
SLOTS_NO
BYTE
SUBN_TYP
1 = external PN interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
310
I/O
Meaning
Type
Defa
ult
DINFO
STRUCT
EN_M_xx
BOOL
OMODE_xx
DWORD
PA_DIAG
DWORD
QERR
1 = program error
BOOL
QMODF
BOOL
QPERAF
BOOL
QRACKF
1 = Slave failure/faulty
BOOL
Family: @System
5.51 PDM_MS: Monitoring of the maintenance status
In/out parameters
I/O
Meaning
Type
Defa
ult
ACC_MODE
BOOL
CPU_DIAG_PN
STRUCT
CPU_OB_5X
STRUCT
RAC_DIAG
STRUCT
5.51
5.51.1
Description of PDM_MS
How it works
The block reports the Maintenance State supplied by PDM via the Maintenance Station.
Additional information
You will find more detailed information in the section Message texts and associated values of
PDM_MS (Page 312).
5.51.2
I/Os of PDM_MS
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: General
Information About Block Description (Page 11).
Input parameters
I/O (parameter)
Meaning
Type
Default
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
311
Family: @System
5.51 PDM_MS: Monitoring of the maintenance status
I/O (parameter)
Meaning
Type
Default
EV_IDx
Message number (x = 1, 2)
DWORD
MS
Maintenance status
DWORD
RUNUPCYC
INT
CYCL_UPD
BOOL
I/O (parameter)
Meaning
Type
Default
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QERR
1 = program error
BOOL
Output parameters
Additional information
Additional information is available in the section:
Message texts and associated values of PDM_MS (Page 312)
5.51.3
Messaging
The statuses are generated with ALARM_8P for messages requiring acknowledgment, and
with NOTIFY_8P for those not requiring acknowledgment. The message function can be
disabled by setting EN_MSG = 0. In this case MS = 8 is set.
Message number
Message class
Uncertain diagnostics
SA
No message
No message
No message
The process control messages of ALARM_8P with ED-ID2 are assigned as follows:
312
Family: @System
5.52 PO_UPDAT: Output Process Image
Message block
NOTIFY_8P
Message number
Message class
EV_ID2
Device passivated
SA
No message
SA
Simulation
SA
Configuration change
SA
No message
No message
No message
Additional information
Additional information is available in the section: Message Classes (Page 355)
5.52
5.52.1
Area of application
The PO_UPDAT block safeguards the output module functions "Hold last value" and "Apply
substitute value" when a CPU is restarted (OB 100).
Run Sequence
With the "Generate module drivers" CFC function, the PO_UPDAT block is automatically
installed in OB 100 at the end.
Description of Functions
On a CPU restart (OB 100), the CH_DO and CH_AO blocks write the start values to the process
image. The PO_UPDAT block sends all process images (partitions) to the modules at the end
of OB 100 in order for these values to be active immediately when the CPU goes into RUN.
Output PO_MAP indicates the process image partitions which have been updated or are used
in the system (BIT0: Process image 0, BIT15: Process image partition 15).
313
Family: @System
5.53 PS: Power supply monitoring
5.53
5.53.1
Description of PS
Area of application
The PS block monitors the status of a rack power supply, and reports the associated error
events.
Calling OBs
The PS block must be installed in the run sequence of the following OBs:
OB 1
Cyclic program
OB 81
OB 83
Remove/insert interrupt
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The block is installed in the run sequence downstream of the RACK block.
The SLOT_NO input (slot number of the power supply) is configured.
The EN input is interconnected with the output of an AND block.
Its inputs are interconnected with the output EN_SUBx of the OB_BEGIN block, the output
EN_Rxxx of the SUBNET block and the output EN_Mxx of the RACK block.
The OUT structures CPU_DIAG of the OB_BEGIN block and RAC_DIAG of the RACK block
are interconnected with the IN_OUT structures of the same name of the PS block.
314
Family: @System
5.53 PS: Power supply monitoring
Redundancy
In a redundant system, the block is also installed extra for the power supply of the redundant
rack.
Error handling
The error handling of the block is limited to the evaluation of the error information of ALARM_8P.
Refer to the section "Error information of output parameter MSG_STAT (Page 353)" for
additional information on error handling.
Startup characteristics
The PS block initializes the messages of the ALARM_8P.
Overload behavior
Not available
Time response
You will find additional information in the "Message response" section.
Message response
After OB 81 or OB 83 is called, the block analyzes the status of the power supply of the rack
assigned to it. It generates the "Backup battery failure", "Backup voltage failure" and "24 V
supply failure" or "Module removed" or "Wrong or faulty module" messages with ALARM_8P.
The message function can be disabled by setting EN_MSG = FALSE.
315
Family: @System
5.53 PS: Power supply monitoring
Additional information
For additional information, refer to the sections:
Message texts and associated values of PS (Page 317)
Maintenance status MS (Page 356)
5.53.2
I/Os of PS
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
MS
Maintenance status
DWORD
SLOT_NO
BYTE
I/O
(parameter)
Meaning
Data type
Default
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
Output parameters
316
Family: @System
5.53 PS: Power supply monitoring
In/out parameters
I/O
(parameter)
Meaning
Data type
CPU_DIAG
STRUCT
RAC_DIAG
System structure
STRUCT
Default
Additional information
For additional information, refer to the sections:
Message texts and associated values of PS (Page 317)
Maintenance status MS (Page 356)
5.53.3
Message class
No message
No message
No message
Block parameters
See also
Message Classes (Page 355)
317
Family: @System
5.54 RACK: Rack monitoring
5.54
5.54.1
Description of RACK
Area of application
The RACK block monitors the status of a rack, and reports the associated error events.
Calling OBs
The block is installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 70
OB 72
OB 81
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The RACK block is installed in the run sequence downstream of the SUBNET block.
The RACK_NO, DADDR, SUBN1_ID, SUBN2_ID, and SUBN_TYP inputs are configured.
The EN input is interconnected with the output of an AND block.
whose inputs are interconnected to the EN_SUBx output of the OB BEGIN block, and to
the EN_Rxxx output of the SUBNET block.
The CPU_DIAG OUT structure of the OB_BEGIN block and SUB_DIAG of the SUBNET
block are interconnected with the IN_OUT structures of the same name of the RACK block.
318
Family: @System
5.54 RACK: Rack monitoring
(SUBN1ERR, SUBN2ERR), and of the preferred channel (SUBN1ACT, SUBN2ACT) if there
are active DP slaves at its outputs. The output structure RAC_DIAG contains the geographic
address of the rack, and the group error information RACK_ERR.
If RACK_ERR = 1, the corresponding rack is not available.
The block is installed in the OBs listed above once at each station or local I/O device. The
SUBNET block enables the runtime group that contains the RACK block. Start and diagnostic
information is read from the CPU_DIAG IN_OUT structure, which is interconnected with the
CPU_DIAG structure of the OB_BEGIN block. The RACK block has one enable output for each
rack (station) slot.
The RACK block generates the number of a corresponding message (see "Message
Response") on the basis of the start information of the calling OBs if the current block is affected.
The block evaluates error events, and uses the diagnostic address DADDR of the DP slave
to determine the currently active preferred channel (SUBN1ACT, SUBN2ACT) of redundant
PROFIBUS DP interface circuits.
Note: If you want to change the SUBN1_ID (connection to CPU 0) and SUBN2_ID (connection
to CPU 1) inputs online, you must set input ACC_ID = TRUE. to update the output values.
Redundancy
In H systems with distributed I/Os, the RACK block supports redundancy of the DP Master
systems. If you want to use this function, you must configure the SUBN1_ID (connection to
CPU 0) and SUBN2_ID (connection to CPU 1) inputs of the RACK block with the numbers of
the redundant DP master systems. If there is no redundancy, the remaining input must be set
to the (default) value 16#FF.
Note
With redundant CPU racks, the two RACK blocks inserted in the system chart are only
responsible for enabling lower-level block chains. Their maintenance status MS is therefore
irrelevant. The "Good" and "Not redundant" state is always shown in the associated faceplate
and block icon because the bits 0 to 16 of the MS are always "0" in this case.
Error handling
Error handling for the block is limited to the evaluation of the error information of ALARM_8P.
You will find additional information about this in "Error information of output parameter
MSG_STAT (Page 353)".
Startup characteristics
The RACK block initializes ALARM_8P messages. It checks availability of the station and, in
H systems, determines the preferred channel of the station.
The SUB_DIAG.V1_MODE structure (0 = compatibility mode, 1 = DPV1 mode) is transferred
to the RAC_DIAG.V1_MODE structure.
319
Family: @System
5.54 RACK: Rack monitoring
Overload behavior
The RACK block counts the OB 86 calls (except in the case of a DP master system failure;
see SUBNET block). The counter is reset in OB1. If more than two OB 86 events occur in
succession before the cycle control point (OB 1) is reached, these will be rejected and the
message "Station...: Multiple failure" is output. When an OB 86 call is rejected, the rack (station)
is registered as having failed.
Time response
See "Message Response"
Message response
After it is called by OB 70, OB 72, OB 85 or OB 86, the block analyzes the status of its assigned
CPU, DP master and DP slave. If the rack (station) loses redundancy or fails, the block outputs
the corresponding messages by broadcasting an ALARM_8P. The message function can be
disabled by setting EN_MSG = FALSE.
The block generally reports only the events that were originally generated in the rack that it
monitors. Redundancy loss and station failures which are caused by the failure of a DP master
or CPU are initially neither signaled nor indicated at the SUBN1ERR and SUBN2ERR outputs.
The DELAY input is used to delay the outputting of error messages for an outgoing, higherpriority error. For example, if the RACK block recognizes an outgoing error at an interconnected
DP master, it initially assumes that there is a faulty assigned DP slave in the rack it monitors,
and sets the corresponding output SUBNxERR. The error status is not reset until the DP slave
returns (in this case: OB 86, OB 70). The RACK blocks suppress the potential slave failure
states for DELAY seconds so as not to trigger a surge of messages from DP slaves which are
not yet synchronized when the master returns. An error message is only output to the OS when
the DP slave has not reported its return before this delay time has expired.
Note: Do not set the value of DELAY too high, otherwise DP slaves that were removed during
the master failure or are defective will be signaled to the OS too late after the DP master returns.
The RACK block generates the following messages in the OBs listed below:
OB
Start event
Message
OB 1
Cyclic processing
OB 70
Redundancy loss
OB 81
OB 85
OB 86
Rack failure
OB 100
Restart
Initialization of ALARM_8P
320
Family: @System
5.54 RACK: Rack monitoring
For additional information, refer to the "Process Control System PCS 7; Maintenance Station"
manual.
Additional information
For additional information, refer to the sections:
Message texts and associated values of RACK (Page 322)
Maintenance status MS (Page 356)
5.54.2
I/Os of RACK
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DIAG_BUF
BOOL
DELAY
INT
15
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
MS
Maintenance status
DWORD
RACK_NO
Rack number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Default
EN_Mxx
BOOL
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
RAC_DIAG
System structure
STRUCT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN1ERR
1 = Error in slave 1
BOOL
Output parameters
321
Family: @System
5.54 RACK: Rack monitoring
I/O
(parameter)
Meaning
Data type
Default
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN2ERR
1 = Error in slave 2
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG
STRUCT
SUB_DIAG
OB start information
STRUCT
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of RACK (Page 322)
Maintenance status MS (Page 356)
5.54.3
Message class
No message
No message
No message
322
Associated value
Block parameters
Family: @System
5.55 RACK_PN: Rack monitoring
See also
Message Classes (Page 355)
5.55
5.55.1
Description of RACK_PN
Area of application
The RACK_PN block monitors the status of a rack, and reports the associated error events.
Additional information
For additional information, refer to the following sections:
Message texts and associated values of RACK_PN (Page 325)
Maintenance Status of MS (Page 356)
5.55.2
I/Os of RACK_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
DADDR
INT
DELAY
INT
15
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
DWORD
323
Family: @System
5.55 RACK_PN: Rack monitoring
I/O
(parameter)
Meaning
Data type
Default
EV_ID1
DWORD
FEATURE_01
WORD
IM_RED
1 = IM redundant
BYTE
MS
Maintenance status
DWORD
PNIO_ADR
INT
PORT1_ADR
INT
PORT1_CONNECT
BYTE
PORT2_ADR
INT
PORT2_CONNECT
BYTE
RACK_NO
Rack number
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Meaning
Data type
Default
EN_Mxx
BOOL
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QMSGERx
BOOL
RAC_DIAG
System structure
STRUCT
SUBN1ACT
1 = Slave 1 is active
BOOL
SUBN1ERR
1 = Error in slave 1
BOOL
SUBN2ACT
1 = Slave 2 is active
BOOL
SUBN2ERR
1 = Error in slave 2
BOOL
I/O
(parameter)
Meaning
Data type
Default
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
SUB_DIAG
OB start information
STRUCT
Output parameters
I/O
(parameter)
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of RACK_PN (Page 325)
324
Family: @System
5.55 RACK_PN: Rack monitoring
Maintenance Status of MS (Page 356)
5.55.3
Message class
No message
No message
7
8
No message
Station @1%d@/ @3%d@: Multiple failure
Block parameter
Data type
BYTE
BYTE
BYTE
The process control messages of ALARM_8P with EV_ID1 are assigned as follows:
Message no.
Message class
No message
No message
No message
No message
325
Family: @System
5.56 RED_F: Status processing of redundant F modules
Associated value
Block parameter
Data type
BYTE
BYTE
BYTE
ID of the PN IO system
WORD
5.56
5.56.1
Description of RED_F
Area of application
The RED_F block is used to set up redundant F modules in safety mode.
Calling OBs
The block must be installed in the same OB before the OR block. It is also installed in OB 100.
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
The RED_F block is installed before the OR block in its OB.
MODE1_xx inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the primary module.
MODE2_xx inputs are interconnected with the OMODE_xx outputs of the MOD_x block in
the redundant module.
The RACKF1 input is interconnected with the QRACKF output of the MOD_x block of the
primary module.
The RACKF2 input is interconnected with the QRACKF output of the MOD_x block of the
redundant module.
326
Family: @System
5.56 RED_F: Status processing of redundant F modules
The MS1 input is interconnected with the O_MS output of the MOD_x block of the primary
module.
The MS2 input is interconnected with the O_MS output of the MOD_x block of the redundant
module.
The ACTIV_H and ACTIV_L outputs are interconnected with the inputs with the same name
in the OR block.
The CH_INF_H and CH_INF_L outputs are interconnected with the inputs with the same
name in the OR block.
The RETURN_VAL output is interconnected with the RED_STAT input of the OR block.
The MODUL_STATUS_WORD output is interconnected with the MOD_STAT input of the
OR block.
Addressing
Not available
Error handling
Not available
Startup characteristics
Not available
Time response
Not available
Message response
Not available
327
Family: @System
5.56 RED_F: Status processing of redundant F modules
5.56.2
I/Os of RED_F
The factory setting of the block display in CFC is identified in the "I/O" column:
I/O name in bold characters = I/O is visible; I/O name in standard characters = I/O is
hidden.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Default
MODE1_xx
DWORD
MODE2_xx
DWORD
MS1
BOOL
MS2
BOOL
RACKF1
1 = error rack 1
BOOL
RACKF2
1 = error rack 2
BOOL
Meaning
Data type
Default
Output parameters
I/O
(parameter)
ACTIV_H
BOOL
ACTIV_L
BOOL
CH_INF_H
DWORD
CH_INF_L
DWORD
MODUL_STATUS_WORD
Status information
WORD
RETURN_ VAL
Error information
INT
Additional information
You will find more information in:
Maintenance status of MS (Page 356)
328
Family: @System
5.57 SUBNET: DP master system monitoring
5.57
5.57.1
Description of SUBNET
Area of application
The SUBNET block is used to shorten acyclic OB processing times. Only the blocks that are
actually affected can be called in the case of an acyclic event.
Calling OBs
The SUBNET block must be installed in the run sequence in the following OBs:
OB 1
Cyclic program
OB 55
OB 56
OB 57
OB 70
OB 72
OB 81
OB 82
Diagnostic interrupt
OB 83
OB 85
OB 86
Rack failure
OB 100
Warm restart
Use in CFC
The following actions are executed automatically with the "Generate module drivers" CFC
function:
Runtime groups with driver/system blocks are created and organized by rack.
The SUBN1_ID, SUBN2_ID and SUBN_TYP inputs are configured.
The EN_Rxxx outputs are interconnected with the relevant blocks (e.g., RACK).
The IN_OUT structure CPU_DIAG is interconnected with the OUT structure of the
OB_BEGIN block.
329
Family: @System
5.57 SUBNET: DP master system monitoring
The IN_OUT structure SZL_71 is interconnected with the OUT structure of the OB_BEGIN
block.
The OUT structure SUB_DIAG is interconnected with the IN_OUT structures of the affected
blocks (such as RACK).
Redundancy
The SUBNET block supports redundancy of DP master systems of the 414-H/417-H CPU if
distributed I/Os are used. To use this function, you must configure the SUBN1_ID (connection
to CPU 0) and SUBN2_ID (connection to CPU 1) inputs with the numbers of the redundant DP
master systems. If there is no redundancy, the remaining input must be assigned the value
16#FF (default).
330
Family: @System
5.57 SUBNET: DP master system monitoring
Error handling
Error handling for the block is limited to the evaluation of the error information of ALARM_8P.
You will find additional information about error handling in the "Error information of output
parameter MSG_STAT (Page 353)" section.
Overload behavior
The SUBNET block counts the OB 86 calls (failures only). The counter is reset in OB1. If more
than two OB 86 failure events occur in succession before the cycle control point (OB1) is
reached, these are rejected and a message "Failure OB 86 DP master system:x" is output. If
an OB 86 call is rejected, the DP master system is registered as having failed.
Time response
Not available
Message response
After being called by an OB 86, OB 70 and OB 72, the block analyzes the status of its assigned
DP master system, and generates the relevant messages for redundancy loss or DP master
system failure by broadcasting an ALARM_8P.
The message function can be disabled by setting EN_MSG = FALSE.
The SUBNET block generally reports only events triggered in the DP master system it monitors.
Exception: If a CPU fails in the H system, the following messages are generated:
in a non-redundant DP master system: DP master failure message
in a redundant DP master system: DP master redundancy loss message
Additional information
For additional information, refer to the sections:
Message Texts and associated values of SUBNET (Page 333)
331
Family: @System
5.57 SUBNET: DP master system monitoring
Maintenance status MS (Page 356)
5.57.2
I/Os of SUBNET
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
I/O
(parameter)
Meaning
Data type
Defau
lt
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
Message number
DWORD
MS
Maintenance status
DWORD
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
I/O
(parameter)
Meaning
Data type
Defau
lt
EN_Rxxx
BOOL
MASTER_0
BOOL
MASTER_1
BOOL
MSG_STAT
WORD
O_MS
Maintenance status
DWORD
SUB_DIAG
STRUCT
SUBN1ERR
BOOL
SUBN2ERR
BOOL
I/O
(parameter)
Meaning
Data type
Defau
lt
ACC_ID
BOOL
CPU_DIAG
CPU diagnostics
STRUCT
Output parameters
In/out parameters
332
Family: @System
5.57 SUBNET: DP master system monitoring
I/O
(parameter)
Meaning
Data type
CPU_OB_5X
STRUCT
SZL_71
STRUCT
Defau
lt
Note
The maximum number of racks is determined by the address volume of PROFIBUS. All
available CPUs can thus be used. The entire address volume is used by the CPU 417-4.
Additional information
For additional information, refer to the sections:
Message Texts and associated values of SUBNET (Page 333)
Maintenance status MS (Page 356)
5.57.3
Message class
Block parameters
See also
Message Classes (Page 355)
333
Family: @System
5.58 SUBNET_PN: Monitoring of the PN IO system
5.58
5.58.1
Description of SUBNET_PN
Area of application
The SUBNET_PN block is used to reduce acyclic OB processing times. Only the blocks that
are actually affected can be called in the case of an acyclic event.
5.58.2
I/Os of SUBNET_PN
The factory setting of the block display in the CFC is identified in the "I/O" column:
I/O name bold = I/O visible, I/O name normal = I/O not visible.
You will find explanations of and information on abbreviations in the section: "General
Information About Block Description (Page 11)".
Input parameters
334
I/O
(parameter)
Meaning
Data type
Defa
ult
DADDR
INT
DADDR_1
INT
DIAG_BUF
BOOL
EN_MSG
1 = enable message
BOOL
EV_ID
DWORD
EV_ID1
DWORD
MS
Maintenance status
DWORD
PNIO_ADR
PORT1_ADR
INT
PORT2_ADR
INT
PORT2_CONNECT
BYTE
PNIO_ADR_1
INT
PORT1_ADR_1
INT
Family: @System
5.58 SUBNET_PN: Monitoring of the PN IO system
I/O
(parameter)
Meaning
Data type
Defa
ult
PORT1_CONNECT_1
BYTE
PORT2_ADR_1
INT
PORT2_CONNECT_1
BYTE
SUBN_TYP
1 = external DP interface
BOOL
SUBN1_ID
BYTE
255
SUBN2_ID
BYTE
255
Output parameters
I/O
(parameter)
Meaning
Data type
Defa
ult
EN_Rxxx
BOOL
MASTER_0
BOOL
MASTER_1
BOOL
MSGSTATx
WORD
O_MS
Maintenance status
DWORD
QMSGERx
BOOL
SUB_DIAG
STRUCT
SUBN1ERR
BOOL
SUBN2ERR
BOOL
I/O
(parameter)
Meaning
Data type
Defa
ult
ACC_ID
BOOL
CPU_DIAG_PN
STRUCT
CPU_OB_5X_PN
STRUCT
SZL_71
STRUCT
In/out parameters
Additional information
For additional information, refer to the sections:
Message texts and associated values of SUBNET_PN (Page 336)
Maintenance Status of MS (Page 356)
335
Family: @System
5.58 SUBNET_PN: Monitoring of the PN IO system
5.58.3
Message class
No message
No message
Block parameter
Data type
BYTE
BYTE
BYTE
BYTE
The process control messages of ALARM_8P with EV_ID1 are assigned as follows:
Message no.
Message class
336
Family: @System
5.58 SUBNET_PN: Monitoring of the PN IO system
Associated value
Block parameter
Data type
BYTE
BYTE
ID of the PN IO system
WORD
337
Internal block
6.1
6.2
339
Appendix
7.1
7.2
Block
I/O (parameters)
(cyclic data)
permitted combinations
and sequence
MODE 16#xxyy
O=xx, I=yy
OUT
16#0001
SP
16#0100
OUT_D
16#0002
SP_D
16#0400
Coding
(A)
Measuring range
2#0001
25 mV
2#1010
16#010A
50 mV
2#1011
16#010B
80 mV
2#0001
16#0101
250 mV
2#0010
16#0102
500 mV
2#0011
16#0103
1V
2#0100
16#0104
2.5 V
2#0101
16#0105
5V
2#0110
16#0106
Deactivated
Voltage
16#0000
341
Appendix
7.2 MODE settings for SM modules
Measuring type
2#0010
Measuring range
1 to 5 V
2#0111
16#0107
0 to 10 V
2#1000
16#0108
10 V
2#1001
16#0109
100 mV
2#1100
16#010C
3.2 mA
2#0000
16#0200
5 mA
2#0101
16#0205
10 mA
2#0001
16#0201
0 to 20 mA
2#0010
16#0202
4 to 20 mA
2#0011
16#0203
20 mA
2#0100
16#0204
HART interface
2#0111
4 to 20 mA (variant 0) OMODE
settings for SM modules
(Page 351)
2#1100
16#070C
2#0011
0 to 20 mA
2#0010
16#0302
4 to 20 mA
2#0011
16#0303
20 mA
2#0100
16#0304
342
Coding
(A)
2#0100
2#0101
2#0110
2#1000
48
2#0000
16#0400
150
2#0010
16#0402
300
2#0100
16#0404
600
2#0110
16#0406
1000
2#0111
16#040E
3000
2#0111
16#0407
6000
2#1000
16#0408
PTC
2#1111
16#040F
48
2#0000
16#0500
150
2#0010
16#0502
300
2#0100
16#0504
600
2#0110
16#0506
1000
2#0111
16#050E
3000
2#0111
16#0507
6000
2#1000
16#0508
PTC
2#1111
16#050F
48
2#0000
16#0600
150
2#0010
16#0602
300
2#0100
16#0604
600
2#0110
16#0606
1000
2#0111
16#060E
3000
2#0111
16#0607
6000
2#1000
16#0608
PTC
2#1111
16#060F
2#0000
16#0800
2#0111
16#0807
Appendix
7.2 MODE settings for SM modules
Measuring type
Coding
(A)
Measuring range
2#1000
16#0808
2#1001
16#0809
2#0001
16#0801
2#1010
16#080A
2#0010
16#0802
2#0011
16#0803
2#0100
16#0804
2#0101
16#0805
2#1011
16#080B
2#0110
16#0806
2#1100
16#080C
2#1101
16#080D
Cu 10 climate range
2#1110
16#080E
Cu 10 standard range
2#1111
16#080F
2#10000 16#0810
2#10001 16#0811
2#10010 16#0812
2#10011 16#0813
Pt 10 GOST climatic
2#10100 16#0814
2#10101 16#0815
Pt 50 GOST climatic
2#10110 16#0816
2#10111 16#0817
2#11000 16#0818
2#11001 16#0819
2#11010 16#081A
2#11011 16#081B
Cu 10 GOST climatic
2#11100 16#081C
2#11101 16#081D
Cu 50 GOST climatic
2#11110 16#081E
2#11111 16#081F
2#10000 16#0820
0
2#10000 16#0821
1
2#10001 16#0822
0
343
Appendix
7.2 MODE settings for SM modules
Measuring type
Coding
(A)
2#1001
Measuring range
2#10001 16#0823
1
2#10101 16#0855
01
2#10101 16#0857
11
2#10110 16#0859
01
2#10110 16#085B
11
2#10011 16#089D
101
2#10011 16#089F
111
2#10100 16#08A1
001
2#0000
16#0900
2#0111
16#0907
2#1000
16#0908
2#1001
16#0909
2#0001
16#0901
2#1010
16#090A
2#0010
16#0902
2#0011
16#0903
2#0100
16#0904
2#0101
16#0905
2#1011
16#090B
2#0110
16#0906
2#1100
16#090C
16#090D
344
2#1110
16#090E
2#1111
16#090F
2#10000 16#0910
2#10001 16#0911
2#10010 16#0912
Appendix
7.2 MODE settings for SM modules
Measuring type
Coding
(A)
2#1111
Measuring range
2#10011 16#0913
Pt 10 GOST climatic
2#10100 16#0914
2#10101 16#0915
Pt 50 GOST climatic
2#10110 16#0916
2#10111 16#0917
2#11000 16#0918
2#11001 16#0919
2#11010 16#091A
2#11011 16#091B
Cu 10 GOST climatic
2#11100 16#091C
2#11101 16#091D
Cu 50 GOST climatic
2#11110 16#091E
2#11111 16#091F
2#10000 16#0920
0
2#10000 16#0921
1
2#10001 16#0922
0
2#10001 16#0923
1
2#10101 16#0955
01
2#10101 16#0957
11
2#10110 16#0959
01
2#10110 16#095B
11
2#10011 16#099D
101
2#10011 16#099F
111
2#10100 16#09A1
001
2#0000
16#0F00
2#0111
16#0F07
2#1000
16#0F08
2#1001
16#0F09
345
Appendix
7.2 MODE settings for SM modules
Measuring type
346
Coding
(A)
2#1010
2#1011
Measuring range
2#0001
16#0F01
2#1010
16#0F0A
2#0010
16#0F02
2#0011
16#0F03
2#0100
16#0F04
2#0101
16#0F05
2#1011
16#0F0B
2#0110
16#0F06
2#1100
16#0F0C
2#1101
16#0F0D
2#1110
16#0F0E
2#1111
16#0F0F
2#10000 16#0F10
2#10001 16#0F11
2#10010 16#0F12
2#10011 16#0F13
Type B [PtRh-PtRh]
2#0000
16#0A00
Type N [NiCrSi-NiSi]
2#0001
16#0A01
Type E [NiCr-CuNi]
2#0010
16#0A02
Type R [PtRh-Pt]
2#0011
16#0A03
Type S [PtRh-Pt]
2#0100
16#0A04
2#0101
16#0A05
2#0110
16#0A06
2#0111
16#0A07
Type K [NiCr-Ni]
2#1000
16#0A08
2#1001
16#0A09
Type C
2#1010
16#0A0A
Type TXK/XK(L)
2#1011
16#0A0B
Type B [PtRh-PtRh]
2#0000
16#0B00
Type N [NiCrSi-NiSi]
2#0001
16#0B01
Type E [NiCr-CuNi]
2#0010
16#0B02
Type R [PtRh-Pt]
2#0011
16#0B03
Type S [PtRh-Pt]
2#0100
16#0B04
2#0101
16#0B05
2#0110
16#0B06
2#0111
16#0B07
Type K [NiCr-Ni]
2#1000
16#0B08
2#1001
16#0B09
Appendix
7.2 MODE settings for SM modules
Measuring type
Coding
(A)
2#1100
2#1101
2#1110
Measuring range
Type C
2#1010
16#0B0A
Type TXK/XK(L)
2#1011
16#0B0B
Type B [PtRh-PtRh]
2#0000
16#0C00
Type N [NiCrSi-NiSi]
2#0001
16#0C01
Type E [NiCr-CuNi]
2#0010
16#0C02
Type R [PtRh-Pt]
2#0011
16#0C03
Type S [PtRh-Pt]
2#0100
16#0C04
2#0101
16#0C05
2#0110
16#0C06
2#0111
16#0C07
Type K [NiCr-Ni]
2#1000
16#0C08
2#1001
16#0C09
Type C
2#1010
16#0C0A
Type TXK/XK(L)
2#1011
16#0C0B
Type B [PtRh-PtRh]
2#0000
16#0D00
Type N [NiCrSi-NiSi]
2#0001
16#0D01
Type E [NiCr-CuNi]
2#0010
16#0D02
Type R [PtRh-Pt]
2#0011
16#0D03
Type S [PtRh-Pt]
2#0100
16#0D04
2#0101
16#0D05
2#0110
16#0D06
2#0111
16#0D07
Type K [NiCr-Ni]
2#1000
16#0D08
2#1001
16#0D09
Type C
2#1010
16#0D0A
Type TXK/XK(L)
2#1011
16#0D0B
Type B [PtRh-PtRh]
2#0000
16#0E00
Type N [NiCrSi-NiSi]
2#0001
16#0E01
Type E [NiCr-CuNi]
2#0010
16#0E02
Type R [PtRh-Pt]
2#0011
16#0E03
Type S [PtRh-Pt]
2#0100
16#0E04
2#0101
16#0E05
2#0110
16#0E06
2#0111
16#0E07
Type K [NiCr-Ni]
2#1000
16#0E08
2#1001
16#0E09
Type C
2#1010
16#0E0A
Type TXK/XK(L)
2#1011
16#0E0B
347
Appendix
7.2 MODE settings for SM modules
Measuring type
Coding
(A)
Measuring range
2#0111
2#0000
16#0700
2#0001
16#0701
2#0010
16#0702
2#0011
16#0703
2#0100
16#0704
16#0705
2#0110
16#0706
2#0111
16#0707
2#1000
16#0708
Measuring range
MODE
Voltage
5V
16#0106
1 to 5 V
16#0107
0 to 10 V
16#0108
10 V
16#0109
0 to 20 mA
16#0202
Current
348
Appendix
7.2 MODE settings for SM modules
Measuring type
HART interface
Measuring range
MODE
4 to 20 mA
16#0203
20 mA
16#0204
4 to 20 mA
16#070C
Measuring range
0, 1
(depending on
the other
variant IDs)
0,1,2,4
Celsius
8, 9
(depending on
the other
variant IDs)
0,1,2,4
Fahrenheit
Measuring range
0,1,2,4
0,1,2,4
KTY84/110
Measuring range
0,1,2,4
0,1,2,4
KTY84/130
Measuring range
0,1,2,4
HART interface
0,1,2,4
Variant
Measuring range
0,1,2,4
S7-300 module
0,1,2,4
349
Appendix
7.2 MODE settings for SM modules
Table 7-2
Variant
Mode
Measuring range
16#08, 16#0A,
S7-300 module
16#0B, 16#0D,
16#0E
1
16#18, 16#1A,
16#1B, 16#1D,
16#1E
Measuring range
0,1,2,4
0,1,2,4
350
Appendix
7.4 MODE settings for field devices
7.3
OMODE structure
The table below shows the structure and meaning of the outputs OMODE_xx of data type
DWORD:
Byte 3:
Byte 2:
(Channel error)
(Higher-level error)
(Channel-error diagnostics)
(Channel-error diagnostics)
Example:
16#80010203 = value status "valid value", restart has been carried out, current 4 mA to 20mA
7.4
I/O (parameters)
(cyclic data)
Input (I)/Output
(O)
(PLS view)
MODE
16#xxyy,
O=xx I=yy
Configuration
possible with
field device
permissible
combination
and sequence
Analog input (PA_AI/
FbAnIn)
OUT
16#0001
PA + FF
Totalizer (PA_TOT/
FbAnTot)
TOTAL
16#000F
PA
Totalizer (PA_TOT/
FbAnTot)
TOTAL
SET_TOT
I
O
16#070F
PA
Totalizer (PA_TOT/
FbAnTot)
TOTAL
SET_TOT
MODE_TOT
I
O
O
16#080F
PA
Analog output
(PA_AO/FbAnOu)
SP
16#0100
PA + FF
Analog output
(PA_AO/FbAnOu)
SP
READBACK
POS_D
O
I
I
16#0103
PA
351
Appendix
7.4 MODE settings for field devices
Block
I/O (parameters)
(cyclic data)
Input (I)/Output
(O)
MODE
16#xxyy,
O=xx I=yy
Configuration
possible with
field device
permissible
combination
and sequence
(PLS view)
Analog output
(PA_AO/FbAnOu)
SP
CHECK_BACK
O
I
16#0104
PA
Analog output
(PA_AO/FbAnOu)
SP
READBACK
POS_D
CHECK_BACK
O
I
I
I
16#0105
PA
Analog output
(PA_AO/FbAnOu)
RCAS_IN,
RCAS_OUT
O
I
16#0206
PA
Analog output
(PA_AO/FbAnOu)
RCAS_IN,
RCAS_OUT,
CHECK_BACK
O
I
I
16#0207
PA
Analog output
(PA_AO/FbAnOu)
SP
RCAS_IN
READBACK
RCAS_OUT
POS_D
CHECK_BACK
O
O
I
I
I
I
16#0308
PA
Discrete input
(PA_DI/FbDiIn)
OUT_D
16#0002
PA + FF
Discrete output
(PA_DO/FbDiOu)
SP_D
16#0400
PA + FF
Discrete output
(PA_DO/FbDiOu)
SP_D
READBACK_D
O
I
16#0409
PA
Discrete output
(PA_DO/FbDiOu)
SP_D
CHECKBACK_D
O
I
16#040A
PA
Discrete output
(PA_DO/FbDiOu)
SP_D
READBACK_D
CHECK_BACK_D
O
I
I
16#040B
PA
Discrete output
(PA_DO/FbDiOu)
RCAS_IN_D
RCAS_OUT_D
O
I
16#050C
PA
Discrete output
(PA_DO/FbDiOu)
RCAS_IN_D
RCAS_OUT_D
CHECK_BACK_D
O
I
I
16#050D
PA
Discrete output
(PA_DO/FbDiOu)
SP_D
RCAS_IN_D
READBACK_D
RCAS_OUT_D
CHECK_BACK_D
O
O
I
I
I
16#060E
PA
352
Variant
Field device
PA device
FF device
Appendix
7.7 Addressing
7.5
OMODE Structure
The table below shows the structure and meaning of the outputs OMODE_xx of data type
DWORD:
Byte 3:
(Channel error)
(Higher-level error)
Byte 2:
Example:
16#80000001 corresponds to the value status "valid value", analog input, whereby parameter
Out supplies the cyclic data.
7.6
7.7
Addressing
Rules
If you do not use the CFC function Generate module drivers, you must set the logical basic
address of the module created with HW Config at the LADDR input parameter. If input
SUBN_TYP = FALSE, the RACK of the module is connected to an integrated DP interface
(distributed I/O device interface) of the CPU module by means of a line. Otherwise, you must
set SUBN_TYP = TRUE.
The following points are generally to be observed for all SM, PA and FF blocks:
353
Appendix
7.7 Addressing
The basic address of modules equipped only with inputs, i.e., modules which only write
data to the input range of the CPU process image, can be fetched directly from HW Config;
for example: The module SM 331 AI 8x12Bit 6ES7 331-7KF01-0AB0:
Address input range
(HW Config)
LADDR
(decimal/hex)
512
512 / 16#0200
The MSB (most significant bit) must be set in the basic address fetched from HW Config
for modules equipped only with outputs, which means modules which only read data from
the output range of the CPU process image;
for example, module SM 332 AO 4x12Bit 6ES7 332-5HD01-0AB0:
Address input range
(HW Config)
LADDR
(decimal/hex)
512
-32256 / 16#8200
The basic address of the input range must be set at input LADDR and the basic address
of the output range from HW Config must be set at input LADDR1 for mixed modules, which
means modules that write data to the input range and read data from the output range of
the CPU process image;
for example, module SM 323 DI/O 8x24V/05A 6ES7 323-1BH81-0AA0:
Address input range
(HW Config)
LADDR
(decimal/hex)
LADDR1
(decimal/hex)
12
12
12 / 16# 000C
12 / 16# 000C
For FF devices which only write data to the input range of the CPU process image, the
lowest input address should be fetched from HW Config.
For FF devices which only write data to the output range of the CPU process image, the
lowest output address from HW Config should be set.
For FF devices which write the data in the input range of the CPU process image and read
from the output range of the CPU process image, you must set the lowest address of the
input/output range from HW Config at the DADDR input.
354
DADDR
(decimal/hex)
512
512
512
512
516
512
512
512
512
516
512
Appendix
7.8 Message Classes
7.8
Message Classes
Message classes
Message classes are used to group messages according to their cause. The following
message classes are used in the SIMATIC process control system:
Process messages triggered when process-specific monitoring values (for example,
alarms, warnings, high/low tolerances, general process messages) are reached or
exceeded.
Process control messages which are output by the control system (system messages) or
the I/O units (errors in the field), or for preventive maintenance.
Requests for operator input which, in the case of certain operation sequences, draw the
operator's attention to the necessity of an operator intervention (for example, request to
acknowledge a stepping operation manually in order to enable transition) or operation logs.
Table of message classes and their meaning
Message class
Meaning
With acknowledgment
AH
Yes
AL
Yes
WH
Yes
WL
Yes
TH
Yes
TL
Yes
Yes
Yes
S*
Yes
Yes
PM
Yes
PM
Operating message
No
OR
No
OM *1)
No
SA
Status AS
No
SO
Status OS
No
*1) If the block is used for operation messages, the inputs I_1, ... have to be supplied with
pulses. Assignment of the static value "1" would lead to multiple messages.
See also
Message texts and associated values of MOD_CENTRAL (Page 124)
355
Appendix
7.10 Status displays
7.9
Dependencies
7.10
Status displays
7.10.1
Maintenance Status of MS
356
Bit 0 to 7
Display of the MS
Bit 8 to 15
Bit 16
Bit 17
Bit 18
Appendix
7.10 Status displays
Bit 19 to 21
Reserve
Bit 22
Bit 23
Bit 24 to 27
OS operation
Bit 28 to 31
PDM-MS
7.10.2
PA-Field-Device Status
PA Status
Meaning of PA Status
Message
Coding MS
Substatus
(bits 5 2)
10
0000
M = Message
Q = Must be
acknowledged
Good
10
0001
10
0010
10
0011
10
0100
10
0101
10
0110
10
1000
10
1001
10
1010
10
1111
01
0000
0
Q
01
0001
01
0010
01
0011
01
0100
0
6
01
0101
01
0110
01
0111
01
1000
01
1001
357
Appendix
7.10 Status displays
PA Status
Meaning of PA Status
Message
Coding MS
1010
01
1100
01
1101
01
1110
00
0000
00
0001
00
0010
00
0011
00
0100
00
0101
00
0110
00
0111
00
1000
00
1001
00
1010
00
1111
You will find additional information about status icons for the maintenance status (MS) in the
"Maintenance status MS (Page 356)" section.
358
Appendix
7.10 Status displays
Diagnostic information
The structure of the PA_DIAG parameter is as follows:
Byte
Bit position
Message
MS
Memory error
Measurement failure
Auto-calibration error
Invalid configuration
Maintenance necessary
Invalid identifier
Invalid ID number
Device error
Maintenance requested
4-7
0
0
0-4
359
Appendix
7.11 Text libraries
7.11
Text libraries
7.11.1
7.11.2
Text no.
Message text
Warm restart
Cold restart
Memory error
7.11.3
Text No.
Message Text
Module error
Wrong module
Module missing
360
Text No.
Message Text
Failure
Diagnostics
Appendix
7.11 Text libraries
7.11.4
Message Text
Short-circuit to P
Short circuit to M
Wire break
10
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
No configuration
19
20
21
Communication error
22
23
Timeout
24
25
Battery depleted
26
27
CPU failure
28
EPROM error
29
RAM error
30
ADC/DAC error
31
Fuse tripped
32
33
Removed
34
Plugged
35
36
37
Remark
361
Appendix
7.11 Text libraries
7.11.5
Text
No.
Message Text
38
Chatter error
39
40
41
Remark
362
Text
no.
Message text
Short-circuit to P
Short circuit to M
Wire break
10
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
No configuration
19
20
21
Communication error
22
23
Timeout
24
25
Battery depleted
26
27
CPU failure
28
EPROM error
29
RAM error
Remark
Appendix
7.11 Text libraries
Text
no.
Message text
30
ADC/DAC error
31
Fuse tripped
32
33
Removed
34
Plugged
35
36
37
38
Chatter error
39
40
41
Faulty fuse
42
AI error hardware
43
AI wire break
44
45
46
AO wire break
47
AO short-circuit
48
49
50
Signal A faulty
51
Signal B faulty
52
Signal N faulty
53
54
55
56
57
Readback error
58
59
60
Actuator OFF
61
Discrepancy error
Remark
363
Appendix
7.11 Text libraries
7.11.6
364
Text
no.
Message text
Short-circuit to P
Short circuit to M
Wire break
10
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
No configuration
19
20
21
Communication error
22
23
Timeout
24
25
Battery depleted
26
27
CPU failure
28
EPROM error
29
RAM error
30
ADC/DAC error
31
Fuse tripped
32
33
Removed
34
Plugged
35
36
37
Remark
Appendix
7.11 Text libraries
Text
no.
Message text
38
Chatter error
39
40
41
Faulty fuse
42
AI error hardware
43
AI wire break
44
45
46
AO wire break
47
AO short-circuit
48
49
50
Signal A faulty
51
Signal B faulty
52
Signal N faulty
53
54
55
56
57
Readback error
58
59
60
Actuator OFF
61
Undervoltage
62
Overvoltage
63
Overload
64
Reserve
65
Hardware interrupt
66
Actuator warning
67
Safety shutdown
68
Ambiguous error
69
Error 1 in actuator/sensor
70
Error 2 in actuator/sensor
71
72
73
Discrepancy error
74
75
76
77
78
79
Remark
365
Appendix
7.11 Text libraries
7.11.7
Text
no.
Message text
80
81
Remark
366
Text
no.
Message text
Short circuit to P
Short circuit to M
Wire break
10
Ground error
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
Missing parameters
19
20
21
Communication error
22
23
24
25
Battery depleted
26
27
Processor failure
28
EPROM error
29
RAM error
30
ADC/DAC error
Remark
Appendix
7.11 Text libraries
7.11.8
Text
no.
Message text
31
Fuse blown
32
33
Withdrawn
34
Plugged
35
36
37
38
Chatter error
39
40
41
Fuse defective
42
AI hardware error
43
AI wire break
44
45
46
AO wire break
47
AO short-circuit
48
49
50
Signal A faulty
51
Signal B faulty
52
Signal N faulty
53
54
55
56
57
Readback error
58
59
60
61
Undervoltage
Remark
Message text
Remark
367
Appendix
7.11 Text libraries
368
Text
no.
Message text
Short circuit to P
Short circuit to M
Wire break
10
Ground error
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
No parameter assignment
19
20
21
Communication problem
22
23
24
25
Battery depleted
26
27
Processor failure
28
EPROM error
29
RAM error
30
ADC/DAC error
31
Fuse blown
32
33
Withdrawn
34
Plugged
35
36
37
38
Chatter error
39
40
41
42
Error
Remark
Appendix
7.11 Text libraries
7.11.9
Text
no.
Message text
Short circuit to P
Short circuit to M
Wire break
10
Ground error
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
16
17
18
No parameter assignment
19
20
Remark
Message Text
Short-circuit to P
Short circuit to M
Wire break
10
11
12
Excess temperature
13
Module OK
14
Internal error
15
External error
Remark
369
Appendix
7.11 Text libraries
370
Text
No.
Message Text
16
17
18
No configuration
19
20
21
Communication error
22
23
Timeout
24
25
Battery depleted
26
27
CPU failure
28
EPROM error
29
RAM error
30
ADC/DAC error
31
Fuse tripped
32
33
Removed
34
Plugged
35
36
37
38
Chatter error
39
40
41
Faulty fuse
42
Undervoltage
43
Overvoltage
44
Actuator warning
45
Actuator OFF
46
Safety-related shutdown
47
Unknown error
48
Short-circuit
49
Error
50
51
Remark
Appendix
7.11 Text libraries
7.11.10
7.11.11
Remark
Unknown opcode
Remark
Unknown opcode
371
Index
Description of
OB_BEGIN, 223
OB_BEGIN_HPN, 238
OB_BEGIN_PN, 233
I/Os of
IMDRV_TS, 87
OB_BEGIN
Description, 223
OB_BEGIN_HPN
Description, 238
OB_BEGIN_PN
Description, 233
Text library for
MOD_D3, 364
MOD_PAX0, 360
A
Addressing, 353
B
Block icons
OB_BEGIN_BASE, 15
OB_BEGIN_HPN_BASE , 15
OB_BEGIN_PN_BASE , 15
C
ChkREAL, 339
Description, 339
CONEC, 23, 25
Description, 23
I/Os, 25
Coordination of FMCS_PID/FMT_PID, 19
CPU_RT, 27, 33
Description, 27
I/Os, 33
D
Description
OR_32_TS, 260
Description of, 23, 27, 45, 49, 52, 59, 78, 90, 96, 103,
109, 115, 122, 125, 133, 149, 186, 199, 207, 211, 217,
245, 254, 258, 271, 282, 289, 294, 298, 303, 311, 313,
314, 318, 323, 329, 334
ChkREAL, 339
CONEC, 23
CPU_RT, 27
DIAG_AB, 35
DPAY_V0, 38
DPAY_V1, 45
DPDIAGV0, 49
DREP, 52
DREP_L, 59
FM_CNT, 78
FM_CO, 19
IMDRV_TS, 83
MOD_1, 90
MOD_2, 96
MOD_3, 103
MOD_4, 109
MOD_64, 115
MOD_CENTRAL, 122
MOD_CP, 125
MOD_D1, 133, 165
MOD_D2, 149
MOD_HA, 186
MOD_MS, 199
MOD_PAL0, 211
MOD_PAX0, 217
OB_DIAG1, 245, 254
OB_END, 258
OR_HA16C, 263
OR_M_16C, 271
OR_M_32C, 276
OR_M_8C, 282
PADP_L00, 289
PADP_L01, 294
PADP_L02, 298
PADP_L10, 303
PO_UPDAT, 313
PS, 314
QC_CHNG, 339
RACK, 318, 323
RED_F, 326
SUBNET, 329
SUBNET_PN, 334
Description of MOD_DRV, 181
Description of: MOD_SWT, 207
Description of: PDM_MS, 311
373
Index
DIAG_AB
Description, 35
I/Os, 37
DPAY V1, 47
I/Os, 47
DPAY V1_PN, 48
I/Os, 48
DPAY_V0, 42
Description, 38
I/Os, 42
DPAY_V1, 45
Description, 45
DPDIAGV0, 49, 51
Description, 49
I/Os, 51
DREP, 52, 56
Description, 52
I/Os, 56
DREP_L, 59, 63
Description, 59
I/Os, 63
E
Error Information of Output Parameter MSG_STAT,
353
F
FM_CNT, 78, 81
Description, 78
I/Os, 81
FM_CO
Description, 19
I/Os, 21
G
General information about the block description, 11
I
I/Os of, 25, 33, 42, 47, 48, 51, 56, 63, 81, 93, 100, 106,
112, 118, 122, 128, 131, 139, 154, 183, 191, 195, 203,
208, 213, 219, 227, 233, 239, 248, 251, 259, 292, 308,
310, 316, 321, 323, 332, 334
CPU_RT, 33
DIAG_AB, 37
DPAY V1, 47
DPAY V1_PN, 48
374
DPAY_V0, 42
DPDIAGV0, 51
DREP, 56
DREP_L, 63
FM_CNT, 81
FM_CO, 21
MOD_1, 93, 100
MOD_2, 93, 100
MOD_3, 106
MOD_4, 112
MOD_64, 118
MOD_CENTRAL , 122
MOD_CP, 128
MOD_CP_PN, 131
MOD_D1, 139, 154
MOD_D2, 139, 154
MOD_D3, 172
MOD_HA, 191
MOD_HA_PN, 195
MOD_MS, 203
MOD_PAL0, 213
MOD_PAX0, 219
OB_BEGIN, 227
OB_BEGIN_HPN, 239
OB_BEGIN_PN, 233
OB_DIAG1, 248
OB_DIAG1_PN, 251
OB_END, 259
OR_32_TS, 261
OR_HA16C, 266, 271, 276, 285
OR_M_16C, 266, 271, 276, 285
OR_M_32C, 266, 271, 276, 285
OR_M_8C, 266, 271, 276, 285
PADP_L00/L01/L02, 292
PADP_L10, 308
PADP_L10_PN, 310
PS, 316
RACK, 321
RACK_PN, 323
RED_F, 328
SUBNET, 332
SUBNET_PN, 334
I/Os of: MOD_DRV, 183
I/Os of: MOD_SWT, 208
IMDRV_TS
Description, 83
I/Os, 87
Message texts, 89
M
Maintenance status MS, 356
Index
O
OB_BEGIN, 227, 371
I/Os, 227
Text library, 371
OB_BEGIN_HPN, 239
I/Os, 239
OB_BEGIN_PN, 233, 371
I/Os, 233
Text library, 371
OB_DIAG1, 245, 248, 251, 254
Description, 245, 254
I/Os, 248
OB_DIAG1_PN
I/Os, 251
OB_END, 258, 259
Description, 258
I/Os, 259
OMODE settings for SM modules, 351
OR_32_TS
Description , 260
I/Os, 261
OR_HA16C
Description, 263
I/Os, 266, 271, 276, 285
OR_M_16C, 271
375
Index
Description, 271
I/Os, 266, 271, 276, 285
OR_M_32C
Description, 276
I/Os, 266, 271, 276, 285
OR_M_8C, 282
Description, 282
I/Os, 266, 271, 276, 285
P
PA field device status and diagnostics information,
357
PA/FF device
Variant identifier, 352
PA/FF field devices
Settings, 351
PADP_L00, 289, 360
Description, 289
Text library, 360
PADP_L00/L01/L02, 292
I/Os, 292
PADP_L01, 294, 360
Description, 294
Text library, 360
PADP_L02, 298, 360
Description, 298
Text library, 360
PADP_L10, 303, 308, 310
Description, 303
I/Os, 308
PADP_L10_PN
I/Os, 310
PDM_MS, 311
PDM_MS: Description, 311
PO_UPDAT, 313
Description, 313
PS, 314, 316
Description, 314
I/Os, 316
RACK_PN, 323
I/Os, 323
RED_F
Description, 326
I/Os, 328
S
SUBNET, 329, 332
Description, 329
I/Os, 332
SUBNET_PN, 334
Description, 334
I/Os, 334
T
Text library for, 360, 361, 362, 367, 369, 371
DREP, 360
DREP_L, 360
MOD_ CP_PN , 367
MOD_1, 361
MOD_2, 361
MOD_3, 361
MOD_64, 361
MOD_CP, 361
MOD_D1, 362
MOD_D16_PN, 366
MOD_D2, 361
MOD_D24_PN, 366
MOD_D8_PN, 366
MOD_MS, 369
MOD_PAL0, 360
OB_BEGIN, 371
OB_BEGIN_PN, 371
PADP_L00, 360
PADP_L01, 360
PADP_L02, 360
V
Q
QC_CHNG, 339
Description, 339
Variant identifier
PA/FF device, 352
R
RACK, 318, 321, 323
Description, 318, 323
I/Os, 321
376