Mt_Errwrite - Creates Error Log Message In Local Language - ABB FlexLoader SC 6000 Product Manual

Table of Contents

Advertisement

G FlexLoader Library Add-in reference
G.1.5 MT_ErrWrite - Creates error log message in local language
RobotWare - OS
G.1.5 MT_ErrWrite - Creates error log message in local language
Usage
MT_ErrWrite is used to write a message to the robot event log.
Basic examples
The following example illustrates the instruction MT_ErrWrite.
This will write the message which match to identifier "myAlarm" to the robot event
log. Depending on defined category it will show in event log with matching category.
If category is not used for the message it will appear in the event log as an error
type. The text will appear with wildcard {1} replaced with "AddText".
Example 1
Arguments
Message
Data type: mtmsgdata
The message data that should be used to write message to error log.
WildCardTexts{*}
Data type: string array
String array of wild card text to replace wild cards in message texts.
230
PROC ErrWriteExample()
VAR mtmsgdata Alarm;
Alarm:=MT_GetMessage("myAlarm");
MT_ErrWrite Alarm,\WildCardTexts:=["AddText"];
ENDPROC
MT_ErrWrite Message, [\WildCardTexts{*}]
© Copyright 2014-2020 ABB. All rights reserved.
Product manual - FlexLoader SC 6000
3HAC051768-001 Revision: D

Advertisement

Table of Contents
loading

Table of Contents