PLC alarm message display: SEND_ALARM function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Annonce
Annonce
Appendices
PLC alarm message display: SEND_ALARM function
Introduction Alarm messages can be constructed from the PLC application by creating the send using internal words (%MWi) as intermediaries to display them on a CCX17 console screen. This is the role of the SEND_ALARM function.
TLX DS 37 PL7 xxE
341
Appendices
Data to send parameter coding
The table below shows the significance of the different words which constitute the following parameter: Data to send (37 words maximum).
3
4
1
2
Word number
Meaning
5 to P contain the message text to send, this being the characters that are underlined representing the characters expected during the display of a variable. The maximum length of this text is 40 characters.
If the text is composed of an odd number of characters, the last byte is worth 0, if the text is of even length and if it is less than 39 characters, the last byte must contain the value 0,
P +1 and 2 This two word zone (four characters) contains the message characteristics and is structured as follows:
P+3
P+4
Character 1
Character 2
This character (in capitals) corresponds to the character font size: l l
S = normal size,
D = double width or height.
corresponds to the printing option: l l
Y = yes,
N = no.
Characters 3 and
4 correspond to the overprinting option: l l
Y followed by a space = yes,
N followed by a space = no.
If you do not want to display a variable, the following word must be at 0 (in this instance, following parameters is ignored), otherwise the following parameters must be added: contains the position of the variable to display, counted in number of characters in relation to the start of the message.
P+5
P+6
P+7 and 8
P+9
P+10
P contains a marker of value 16#CC17, contains value 0 contains the length in bytes and the zone of the following words, contains the imaginary number given to the alarm message (this word is used after deactivating the alarm if necessary). The value of this word must be between 900 and 999.
contains the number of characters to display for the variable.
contains the value 16#0030.
contain the type of entry field: l l l
BIT +space = bit type,
ANA + space = word type,
LNG + space = double word type, contains value 0.
contains the type of variable to display: l l l
B +space = bit type,
W + space = word type,
DW = double word type,
Number of words containing the text of the message to send (see line 5 to P).
342
TLX DS 37 PL7 xxE
Appendices
Word number
Meaning
P+11 contains the address index of the variable to display.
P+12and 13 contain the display format for the variable and are structured in the following ways:
P
Byte 1
Bytes 2 and 3 specifies if the variable is signed (sign +), or not (space), specifies the display format:
Byte 2 Byte 3
ASCII or DIGITAL without decimal places the ASCII code for the space, that being 20
DIGITAL with less than ten decimal places
DIGITAL with at least ten decimal places the ASCII code for the space, that being 20 the ASCII code for the number of tens of decimal places the ASCII code for the number of decimal places the ASCII code for the number of decimal place units
Byte 4 specifies the display type: l l l
N = no format,
D = Digital,
A = ASCII
Number of words containing the text of the message to send (see line 5 to P).
Example of use The example below shows the values corresponding to the word table %MW0:29
(data to send) of the SEND_ALARM(ADR#0.0.4,%MW0:29,%MW100:4) function;
Value Comment Word number
%MW0
%MW1
%MW2
%MW3
%MW4
%MW5
%MW6
%MW7
%MW8
%MW9
%MW10
%MW11 fe sp f or r sp
Su rc ha uf
16#CC17
0
52
900
Marker
Imposed value
Byte size of the following zone which includes 26 word
Alarm message number
Message text
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
Message text (continued)
TLX DS 37 PL7 xxE
343
Appendices
%MW18
%MW19
%MW20
%MW21
%MW22
%MW23
%MW24
%MW25
%MW26
%MW27
Word number
%MW12
%MW13
%MW14
%MW15
%MW16
%MW17
Value
3
16#0030
AN
A sp
0
W sp
10 espesp
0
SY
Y sp
19
= sp
__
_ sp
°C
%MW28 sp D
Comment
Message text (continued)
Message text (continued)
Message text (continued)
Message text (end)
End of message mark
Message characteristic (Normal size, printing)
Message characteristic (overprinting)
Position of the variable from the start of the message
Number of characters to display
Reserved value
Type of entry field (AN = start of ANA)
Type of entry field (continued)
Reserved value
Type of variable to display (W = word type variable)
Address index for the variable to display (%MW10)
Display format (sp for a non signed variable, sp for the start of the decoding of decimal places after the point)
Display format continued (sp for the end of the coding of the number of digits after the point, D for the decimal format)
344
TLX DS 37 PL7 xxE
Download
Annonce