Validity: Rule, Task
Bit-mask that enables the inclusion of messages in the system report. It enables both RTE-generated and user-generated messages using the INF_REPORT instruction.
This mask allows filtering of messages to be inserted into the report, if the num_ID (see INF_REPORT) of the message has at least one of the bits specified in rep_mask to 1, then the message is inserted.
In case a message was entered with num_ID equal to 0x0, it will not be possible to filter that message and therefore it will always be entered in the report.
The first 4 bits are used to define the origin of the message (RTE, OS, etc.), while bits 5, 6, and 7 are used to define the type of message (warning, error, etc.).
NOTE: Encoding is also used in the first parameter of the INF_REPORT instruction to indicate the source and type of message.
Syntax |
rep_mask |
---|---|
Notes |
Default: 0xFFFFFFFF (no filtering, all message types will be included in the report) |
Attributes |
Bit-accessible |
The default meaning of the rep_mask bits is as follows:
Code |
Description |
---|---|
0x00x0 |
Warning entered by RPE/user |
0x00x1 |
Warning entered by RTE |
0x00x2 |
Warning entered by OS |
0x00x4 |
Warning entered by fieldbus management |
0x00x8 |
Warning entered by BIOS |
0x000x |
Information (black text) |
0x002x |
Note (text in blue) |
0x004x |
Warning (text in amber) |
0x008x |
Error (text in red) |
NOTE: Bits 0xFF00 are available to the user.
Meaning of the first 4 bits:
Bit 3 |
Bit 2 |
Bit 1 |
Bit 0 |
Message origin |
---|---|---|---|---|
0 |
0 |
0 |
0 |
RPE/user |
0 |
0 |
0 |
1 |
RTE |
0 |
0 |
1 |
x |
OS |
0 |
1 |
x |
x |
FieldBus |
1 |
x |
x |
x |
BIOS |
Meaning of bits 5, 6 and 7:
Bit 7 |
Bit 6 |
Bit 5 |
Message types |
---|---|---|---|
0 |
0 |
0 |
Information (black text) |
0 |
0 |
1 |
Note (text in blue) |
0 |
1 |
0 |
Warning (text in amber) |
1 |
0 |
0 |
Error (text in red) |
NOTE: BITS 16 to 31 (0xFFFF0000) are not used.
Example
; you want to create system files generated via SYS_LOG ; from R3 via INF_REPORT differentiating them according to axes group
_if(eventAxesGroup1) inf_report(0x140,"deposited first") _if(eventAxesGroup2) inf_report(0x240,"deposited second")
if(createLog1) sys_log = 0x0 rep_mask = 0x140 sys_log_aux = 0x140 sys_log.20 = 1 sys_log.21 = 1 sys_log.0 = 1 createLog1= false endif
if(createLog2) sys_log = 0x0 rep_mask = 0x240 sys_log_aux = 0x240 sys_log.20 = 1 sys_log.21 = 1 sys_log.0 = 1 createLog1= false endif |