4 Block parameters
4.1 HW identifier - HW_ID
n The parameter HW_ID to preset the HW identifier is only available in S7-1500 CPUs
from Siemens.
n When configuring a hardware component, a hardware identifier is automatically
assigned as HW identifier for each object of the hardware configuration.
n The HW identifier is for modules, ports, interfaces and I/O areas of bus systems.
n The HW identifier is a decimal integer constant of data type HW_IO.
n The HW identifier does not distinguish between input and output ranges.
n You can use the HW identifier to address the corresponding hardware components.
You can determine the HW identifier for the respective component using the following
procedure:
1. Open in the Project tree the ‘Device configuration’ .
2. Select the desired hardware component whose HW identifier you want to deter-
mine.
3. Click in the Inspector window at ‘General’ .
ð
The ‘HW identifier’ is shown. These can be used for the parameter HW_ID
when the blocks are connected.
You can also determine the HW identifier using the ‘System constants’ . Via the ‘System
constants’ in the Inspector window all the HW identifiers of an object, which is selected in
the device view, are listed with Name and Type. Name and Type are automatically gener-
ated when assigning the HW identifier. Here Name has a hierarchical structure with a
maximum of 4 hierarchical levels, with each level separated by a "~". The name of the
component of the corresponding hierarchy level can be changed at any time via the prop-
erties.
n When creating your user program, you can assign the corresponding hardware com-
ponent from a list of all possible hardware components by double-clicking on the cor-
responding input or output parameter.
n In the case of a hardware interrupt, you can use the start information to determine the
HW identifier as the ‘ID’ of the hardware component that triggers the interrupt.
4.2 General and Specific Error Information RET_VAL
The return value RET_VAL of a system function provides one of the following types of
error codes:
n A general error code, that relates to errors that can occur in anyone SFC.
n A specific error code, that relates only to the particular SFC.
Although the data type of the output parameter RET_VAL is integer (INT), the error codes
for system functions are grouped according to hexadecimal values.
If you want to examine a return value and compare the value with the error codes, then
display the error code in hexadecimal format.
HW identifier
Determine HW identifier
HW identifier and system
constants
HW identifier in the user
program
Overview
VIPA SPEED7
Block parameters
General and Specific Error Information RET_VAL
HB00 | OPL_SP7 | Operation list | en | 18-30 66