Please enable JavaScript to view this site.

Validity: Rule, Task

This variable allows you to create a report file on the compact flash.

Syntax

I32 sys_log

Attributes

Bit-accessible

The generated file has the name SYSTEM_LOG.TXT and is placed in the /LOG/ director.

NOTE: In case the /log/ director does not exist it is created by RTE automatically.

NOTE: From RTE 33.21 the file is auto-generated by RTE in case of system lock (rule). The parameter is imposed equal to 0xEF381.

NOTE: In case warm_rst.8 is active, all operations to create log files are aborted.

Bit

Hexadecimal value

Description

BIT 0

0x1

LOG creation command (user-managed): it is reset by RTE at the beginning of file generation

BIT 1

0x2

Set to "true" when writing the file (managed by RTE)

BIT 2

0x4

Set to "true" if operation is aborted (managed by RTE)

BIT 3

0x8

If set to "true" an abort is commanded (managed by user)

BIT 4

0x10

n.a.

BIT 5

0x20

n.a.

BIT 6

0x40

n.a.

BIT 7

0x80

Report to RTE to keep the LOG file/files already on the CF. The new file will be named SYSTEM_LOG, while the old one will be renamed SYSTEM_LOG_YY_MM_DD_HH_MM_SS.TXT (year, month, day, hour, minute, second)

BIT 8

0x100

Add the information about the software present (SYSINFO command)

BIT 9

0x200

Add information about tasks loaded into RAM (RDIR command)

BIT 10

0x400

Add the report of OS (shell command REPORT -S) [type 2]

BIT 11

0x800

Add the report of RTE (shell command REPORT) [type 1]

BIT 12

0x1000

Add the report of OS and RTE (shell command MREPORT -A)

BIT 13

0x2000

Add information about the alarms present in the alarms stack (shell command ALS)

BIT 14

0x4000

Add information about the alarms present in the alarm history (shell command ALH)

BIT 15

0x8000

Enable execution of the batch file "USERLOG.STP" present in /log/. Only visualization device commands will be entered in the LOG file (no write commands are possible)

BIT 16

0x10000

Enable execution of all batch files present in /LOG/STP/

BIT 17

0x20000

Add information about axis control, part number, serial number, description and mac, starting with RTE 33.8.1

BIT 18

0x40000

Add information about OBs (Object Block) (OB command), starting with RTE 33.11.0

BIT 19

0x80000

Add information about functions attached to tracking (AF command), starting with RTE 33.11.0

BIT 20

0x100000

Enable visualization of time in report in YY/MM/DD format HH:MIN:SEC.micro

BIT 21

0x200000

Enable use of SYS_LOG_AUX as an additional code to be included in the log file name type SYSTEM_LOG_nnn.TXT where nnn is the contents of SYS_LOG_AUX

BIT 22

0x400000

Enabling the use of SYS_LOG_AUX as an index code of SR where the file name complete with log file path is located. (Ex . SR(6) = "/mylog/machine1.txt" SYS_LOG_AUX = 6)

BIT 23

0x800000

Add the information about the system processes (PVIEW -F 0xFFF command)

Example

The generated SYSTEM_LOG.TXT file will be as follows:

Presence of the userlog.stp file in /log/ :

The generated SYSTEM_LOG.TXT file will be the one from the previous example plus:

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC