Validity: Rule, Task
Bit mask that enables the display of information in the report both those generated by RTE and those generated by the user using the INF_REPORT instruction (NON OS).
NOTE: Encoding is also used in the first parameter of the INF_REPORT instruction to indicate the source and type of message.
NOTE: It has no effect on reports read from VISPAN/DISPAN.
Syntax |
rep_mask_out |
---|---|
Notes |
Default: 0xFFFFFFFF |
Attributes |
Bit-accessible |
The default meaning of the rep_mask_out 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_out = 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_out = 0x240 sys_log_aux = 0x240 sys_log.20 = 1 sys_log.21 = 1 sys_log.0 = 1 createLog1= false endif |