Configuration notes: In contrast to the bit alarm procedure, Alarm_S messages are based on the alarm-numbering procedure. As a general rule, Alarm_S messages are not configured in WinCC flexible. They are only ever configured or programmed in STEP 7 or in SIMOTION Scout. The advantage of this is that the alarm texts can be used on a variety of display devices, but only need to be entered once.
When messages are configured in STEP 7 or SIMOTION, you can either enter simple alarm texts without any further formatting or also make use of the possibilities of device-specific message configuration. Depending on the type of display device being used, you can also display flashing text, for instance, and configure additional info text.
Requirements:
- SIMOTION Scout Project
- WinCC flexible ES + RT (from WinCC flexible 2005)
- STEP 7 project with an integrated HMI and SIMOTION station
Note: There are only some versions of SIMOTION Scout software which are compatible with or released for use with WinCC flexible 2005. These versions are specified in Entry ID 22055368.
Configuring Alarm_S messages in SIMOTION SCOUT
| No. |
Procedure |
| 1 |
Adding Alarm_S messages
- Open the alarm-configuration editor in SIMOTION Scout via "Target system > Configure messages".
- Mark "Alarm_S" in the top left of the dialog box.
- Click the "New" button to insert an Alarm_S message.
  Fig. 01
|
| 2 |
Inserting the symbol, alarm text and format string
|
Symbol |
Meaning |
Value range |
Default |
| @ |
Start of the format string |
- |
- |
| Pvn |
Process value number (optional) |
1-4 |
1 |
| Type |
Type of process value (optional) |
See Table 02 |
I |
| %width |
Width of the display field on the
HMI device |
- |
- |
| .precision |
Number of places after the decimal point
(optional in format = "f" ) |
- |
- |
| format |
Process value display mode |
See Table 03 |
- |
| @ |
End of the format string |
- |
- |
Table 01 - Composition of the associated values
Permissible values for "type":
| Type |
Meaning |
| "b" or "B" |
BOOL |
| "y" or "Y" |
BYTE |
| "c" or "C" |
CHARACTER |
| "w" or "W" |
WORD |
| "i" or "I" |
INTEGER |
| "x" or "X" |
DWORD |
| "d" or "D" |
DINT |
| "r" or "R" |
REAL |
Table 02 - Type
Permissible values for "format":
| format |
Display |
| "d" |
decimal with a sign |
| "u" |
decimal without a sign |
| "X" |
hexadecimal |
| "f" |
fixed point number with a sign |
| "b" |
binary |
| "s" |
ANSI string |
Table 03 - Format |
| 3 |
Configuring Alarm_S messages
- Select the type of message, i.e. "Fault messages" or "Operating messages".
- Assign as Alarm_S display class to the message.
  Fig. 02
Note:
The "Printout (at HMI)" selection field allows you to log the messages in WinCC flexible Runtime. |
Triggering the Alarm_S message by calling the _alarmS (message not requiring acknowledgment) and _alarmSq (message requiring acknowledgment) system functions
| No. |
Procedure |
| 1 |
Adding system functions
- Add an ST program unit.
- Declare global variables and a program structure in the interface part.
- Add the call for the "_alarmS" or "_alarmSq" system function in the part of the program.
Parameters for the "_alarmS" and "_alarmSq" system function:
Return value (DWORD):= _alarmS (alarm signal (BOOL), Alarm_S symbol, associated value);
  Fig. 03
|
| 2 |
Inserting a program in the runtime system Insert the program into the background task in the CPU's runtime system. |
Displaying Alarm_S messages and TO alarms in WinCC flexible Runtime
Download: Attachment 1 contains the STEP 7 project described here with the integrated SIMOTION controller and the WinCC flexible HMI station.
Attachment 1:Alarm_S_SIMOTION.zip ( 3823 KB )
Runnability and test environment: The following table lists the components that have been used to create this entry and verify the functions described.
| Components |
Product and version designation |
| PC operating system |
Microsoft Windows XP SP2 |
| Standard tools |
SIMOTION Scout V4.0 |
| Engineering tool |
STEP 7 V5.4 SP1 |
| HMI software |
WinCC flexible 2005 SP1 |
| HMI system |
- |
Keywords:
SIMOTION TO, SIMOTION diagnostic messages, Diagnostic messages, Alarm procedure, System messages
|