You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MsgFmtString : Tc2_System.T_MaxString; // Test instance path
11
-
StringArg : Tc2_System.T_MaxString; // Test message
10
+
MsgFmtString : T_MaxString; // Test instance path
11
+
StringArg : T_MaxString; // Test message
12
12
END_VAR
13
13
VAR_OUTPUT
14
-
MsgFmtStringProcessed : Tc2_System.T_MaxString;
15
-
StringArgProcessed : Tc2_System.T_MaxString;
14
+
MsgFmtStringProcessed : T_MaxString;
15
+
StringArgProcessed : T_MaxString;
16
16
END_VAR
17
17
VAR
18
-
MsgFmtStringTemp : Tc2_System.T_MaxString;
18
+
MsgFmtStringTemp : T_MaxString;
19
19
TestNameTooLong : STRING := '...TestName too long';
20
20
TestMsgTooLong : STRING := '...TestMsg too long';
21
21
END_VAR
@@ -26,24 +26,24 @@ END_VAR]]></Declaration>
26
26
<ST><![CDATA[// Check if any of the two strings are too long (or the combination of them)
27
27
28
28
// All OK
29
-
IF (Tc2_Standard.LEN(STR := MsgFmtString) + LEN(STR := StringArg)) <= MSG_FMT_STRING_MAX_NUMBER_OF_CHARACTERS THEN
29
+
IF (LEN(STR := MsgFmtString) + LEN(STR := StringArg)) <= MSG_FMT_STRING_MAX_NUMBER_OF_CHARACTERS THEN
30
30
MsgFmtStringProcessed := MsgFmtString;
31
31
StringArgProcessed := StringArg;
32
32
// If test instance path is longer than 253 chars, shorten it down to 253 characters and additionally with the length of the '...TestName too long'. Add the text '...TestName too long' to the test instance path. Leave no characters for the message.
33
-
ELSIF Tc2_Standard.LEN(STR := MsgFmtString) > MSG_FMT_STRING_MAX_NUMBER_OF_CHARACTERS THEN
// If test instance path is too long (length is between 233 and 253 characters long), shorten it and add the text '...TestName too long'. Leave no characters for the message
0 commit comments