Siemens SINUMERIK 840D sl Commissioning Manual page 236

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Configuring alarms
13.4 PLC alarms with parameters
%[i]b
%[i][.y]f
If the optional digit specification i is not specified, then only the number of digits is used
required to completely display the number. The same applies when the number of digits
specified by i is not sufficient to completely display the number including sign, i.e. i is then
ignored.
The number contained in the format statement does not relate to the position of the
associated value in the alarm PDU, but to the position of the parameter description in the
parameter statement. Any number of format statements can be present in an alarm text.
Examples
@1%b@
@2%8X@ →
@1%7.2f@ →
Example of an alarm text file (how you create alarm texts, see Creating in-house alarm texts
(Page 200)):
<!DOCTYPE TS>
<TS>
<context>
<name>my_oem_plc_alarms_context</name>
<message>
<source>700000/PLC/PMC</source>
<translation>Text with three BYTE parameters: @1%X@, @2%u@, @3%b@</translation>
</message>
<message>
<source>700001/PLC/PMC</source>
<translation>Text with three WORD parameters: @1%X@, @2%u@, @3%b@</translation>
</message>
230
::= Binary number with i digits
::= Fixed-point number: Signed value of the form [-]xxx.yyyy, where i
specifies the total number of digits including sign and decimal point
and y specifies the number of digits after the decimal point. Missing
digits both before and after the decimal point are filled with 0. If
there are more places after the decimal point than permitted by y,
this is rounded off.
Value from the first parameter description to be displayed as a binary
number, e.g. "1011011"
Value from the second parameter description to be displayed as a
hexadecimal number with eight digits, missing digits are filled with 0, e.g.
"00AF37FE"
Value from the first parameter description to be displayed as a fixed point
number with seven digits (incl. sign and decimal point) and two digits after
the decimal point, missing digits are filled with 0, e.g. "-012.34"
Commissioning Manual, 03/2013, 6FC5397-1DP40-3BA1
SINUMERIK Operate (IM9)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents