lpszObjectName
Name of the object in the picture that connected with the tag that will be used for the entry
point for the hardware diagnostics
Since the name "lpszObjectName" stands for the current object entries are only required here
in cases where it is necessary to access a tag in a different object.
lpProperties
Name of the attribute that is connected with the tag that will be used for the entry point for the
hardware diagnostics
If multiple attribute are entered, they must be separated by semicolons (";").
Return value
TRUE
The function has been completed without any errors.
FALSE
An error has occurred.
3.2.5.3 GetHWDiagLevel
Function
Checks the logged-in user's authorization on the basis of the User Administrator function
number in dwLevel.
Then, diagnostics is started directly during runtime and is triggered by an event, which has to
be configured, occurring on an object.
If the event occurs, the hardware diagnostics function is started from STEP7 for the associated
PLC.
The following conditions must be fulfilled in order to use the function:
● The WinCC project, with the picture from which access should occur, and the STEP7 project
must be on the same computer.
● The WinCC project must be stored as a subdirectory of the STEP7 project (STEP7 Projekt
\wincproj\WinCC Projekt).
● The S7 tags have been mapped to WinCC.
● In order for the user logged into WinCC to edit the hardware diagnostics dialog, the user
must
have a WinCC user authorization matching the number passed by the function call in
the parameter "dwLevel".
ANSI-C function descriptions
3.2 Standard functions
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
851