The #Message object is used to display messages in the form of text and image information.
Example

Parameters
Object
Column A
|
M/O
|
Default
|
Description
|
#Message
|
M
|
|
Output of messages in the form of text or image information
|
Text/File
Column B
|
M/O
|
Default
|
Description
|
<Message definition>.txt
|
O
|
|
Name of the Message definition.
The message list is specified in a separate worksheet.
|
Font
X, Y, DX, DY
Color
BackColor
Format
Action
Column K
|
M/O
|
Default
|
Description
|
SetVar=<constant>
SetVar=<variable>
|
O
|
|
The constant <constant> is assigned to the VarValue.
The value of <variable> is assigned to the VarValue.
<variable> must be of the same data type as VarValue, i.e. VarType!
|
VarValue
Column P
|
M/O
|
Default
|
Description
|
<variable>
|
O
|
|
Actual message number. If no message text is defined, an "empty message" is displayed, i.e. the background is deleted.
|
VarType
Column Q
|
M/O
|
Default
|
Description
|
BYTE
SINT
USINT
WORD
INT
UINT
DINT
|
O
|
|
See VarType column
|
VarState
Option
Column S
|
M/O
|
Default
|
Description
|
Pos=<Center¦Left¦Right>
|
O
|
Pos=Left
|
Positioning of the text:
|
|
|
|
Left = left-justified
|
|
|
|
Center = centered
|
|
|
|
Right = right-justified
|
Transparency=<color>
|
O
|
|
If an image file was configured, the specified color is interpreted as transparent.
|
PWL=<x>
|
O
|
|
Required password level for enabling (see #Password).
|
VarStateOnOffInverted
|
O
|
|
Inverts the On / Off functionality of the VarState Variable:
VarState = 0 -> Off
VarState = 1 -> On
|
Deleting messages from the PLC
For this define an empty message without text. In this case, only the rectangular area is deleted.
Difference to EPAM3
• | Messages with format placeholder and additional variable values are currently not supported. |
|