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
; from SHELL RDE: ; all bits in 1 sys_log 0xfff01 ; from program: ; all bits in 1 if(rise(endTurn)) sys_log = 0xfff01 ; or: ; all bits in 1 if (requestLog) sys_log = 0xfff01 |
The generated SYSTEM_LOG.TXT file will be as follows:
System Log - created on(d/m/y) 28/1/2008 at 18:47:35 --- VERSION --- ROBOX ** RTE **<V 33.9.1> Jan 18 2008 11:44:23 RTE v33.9.1 OSF v13.10.115 Rlib v3.3.0 RPE v0.0.0 User v0.0.0 --- PRODUCT INFO --- AS1016.001 SN:060139 CPU PPC HI-DRIVE dram 64MB conf=0x00010000. mac(1)=00-0F-47-00-02-BD --- RAM DIR --- # Name Date Time Kind Mem.Len. Line ext/unr Rc Memory - total: 64462848 available: 39882400 used: 0 by 0 task(s) --- REPORT MIX --- OS 1 <7.175917> [2] 'FAT32 1-1 Free cluster : 115346(found 117091) Different Fat Sector : 0' OS 2 <7.526386> [2] ' Volume name : 'ROBOX_01_1 '' OS 3 <7.526411> [2] 'C.F. 1 Partition 1 type 0x0C (FAT32) supported' OS 4 <7.527197> [2] 'Found /F@/RHW.CFG config file' OS 5 <7.527668> [2] 'sbrslo.cpp Executed dispan_create(5)' OS 6 <7.527739> [2] 'ETH0 Init: mac=00-00-00-00-00-00,ip=127.0.0.1' OS 7 <7.527848> [2] 'ETH1 Init: mac=00-0F-47-00-02-BD,ip=0.0.0.0' OS 8 <7.541781> [2] 'Init ETRX task created!' OS 9 <7.541819> [2] 'Init ETRX task started!' OS 10 <7.542638> [2] 'Ethernet channel 1 enabled' OS 11 <7.546632> [2] 'Rack config file CfgOk' OS 12 <7.546721> [2] 'Slot 0 found CanBus Channel 0:06' OS 13 <7.546733> [2] 'Slot 0 found CanBus Channel 1:00' OS 14 <7.590446> [2] 'dispan.cpp serial channel 5 allocation error for DISPAN ' OS 15 <8.650569> [2] 'Found /F@/RSW.CFG config file' OS 16 <8.650594> [2] 'Software config file reading...' OS 17 <8.652784> [2] 'ETH1 ethernet interface configuration:' OS 18 <8.652803> [2] 'ETH1 not enabled by configurator /F@/RSW.CFG.' OS 19 <8.652836> [2] 'BCC3/TCP not enabled by configurator.' OS 20 <8.652860> [2] 'TFTP/UDP not enabled by configurator.' OS 21 <8.652877> [2] 'RAMDISK1 not enabled by configurator.' OS 22 <8.652891> [2] 'RAMDISK2 not enabled by configurator.' OS 23 <8.652906> [2] 'RAMDISK3 not enabled by configurator.' OS 24 <8.652922> [2] 'RAMDISK4 not enabled by configurator.' OS 25 <8.953080> [2] 'profibus.c:InitProfibus()' OS 26 <8.953140> [1] 'CAN Open (402)( 0) setting in progress ' OS 27 <8.953925> [1] 'Reading C402 configuration from file </FA/COC0.CFG>' OS 28 <8.967835> [2] 'Can(0): BaudRate(1000 KHz)' OS 29 <9.967907> [2] 'InitMSCAN(0): OK' OS 30 <9.982812> [2] 'Can(0)InitConn: All Ws found' OS 31 <9.984357> [1] 'Reading C402 command from file </FA/COC0.CFG>' OS 32 <13.296865> [1] 'Can Open (402) Devices started 0 ' RTE 1 <13.300424> [1] 'Report initialized with 2048 item' OS 33 <13.300438> [2] 'RTClock - ACKNOLEDGEMENT OK' RTE 2 <13.300463> [1] 'System Awakening Time:(dmy):28/01/2008 (hms):18:28:05' RTE 3 <13.300491> [1] 'Product: PNAS1016.001, SN060139, CPU PPC HI-DRIVE' RTE 4 <13.300502> [1] 'Product: dram 64MB conf=0x00010000.' RTE 5 <13.300511> [1] 'Product: mac(1)=00-0F-47-00-02-BD' RTE 6 <13.302374> [1] 'Reading '/key/AS3023_999_B6A9F602.LIC' ..........................' RTE 7 <13.306565> [1] 'LICENSED LIST ELEMENTS - CF signature <0xb6a9f602>' RTE 8 <13.306585> [1] ' PN<AS1016.001> has been qualified to operate' RTE 9 <13.306599> [1] ' LICENSE : TRANDUCER number ... <32>' RTE 10 <13.306614> [1] ' LICENSE : AXES number ........ <32> Any kind of axes' RTE 11 <13.306628> [1] ' LICENSE : LADDER ............. <ENABLED>' RTE 12 <13.306640> [1] ' LICENSE : PATH EXECUTOR ...... <ENABLED>' RTE 13 <13.306957> [1] 'NO RPE extension file found!' RTE 14 <13.309552> [1] 'Reading '/FA/rte.cfg' ..........................' RTE 15 <13.309564> [1] ' RTE.CFG analysis : Phase 0 in progress... ' RTE 16 <13.310074> [0] 'Installed POWER_SET 'sys' code<5462355> axP<0x0> axL<0x0>' RTE 17 <13.310089> [0] ' POWER_SET 'sys' POFFMA<0x0> CDMA<0x0> CDMI<0x0>' RTE 18 <13.317943> [1] 'USER REGISTERS succefully read : nvr[2500] nvrr[2500] nvsr[24] user[0]' RTE 19 <13.318504> [0] 'VOLATILE REGISTERS defined: r[5000] rr[5000] sr[10]' RTE 20 <13.319543> [0] 'PARAMETER REGISTERS succefully read:(area size [3012]) apr[10] api[3] pr[2] pi[7]' RTE 21 <14.328328> [1] 'RTE alarms default configuration - add 122 alarms' RTE 22 <14.328808> [0] 'Error opening </FA/S_AL.TXT> : (113) 'Not existing file'' RTE 23 <14.329064> [0] 'Error opening </FA/U_AL.TXT> : (113) 'Not existing file'' RTE 24 <14.329270> [0] 'Alarm History initialized : 24/100 item' RTE 25 <14.360999> [1] 'P.Ser1: DLE-BCC3 communication Baud:115200 Parity:N Bit:8 Stop:1' RTE 26 <14.361998> [1] 'P.Ser2: DLE-BCC3 communication Baud:115200 Parity:N Bit:8 Stop:1' RTE 27 <14.373625> [1] 'Watch Dog ON' OS 34 <14.375833> [2] 'AddNetInt(0,0), iNI=0' OS 35 <14.375866> [2] 'NETINT started into slot 0' RTE 28 <14.375924> [1] 'start_netint2srv partito' RTE 29 <14.377051> [ff00] 'EMCY on ws(1) ec:3220 'DC link under-voltage'' OS 36 <14.377418> [2] 'Can(0)TaskCanMain: Killed' RTE 30 <14.475981> [1] 'NET.INT.0: NULL-BCC3 communication <10.0.33.3 255.0.0.0 0.0.0.0>' RTE 31 <14.477176> [1] 'RHW.CFG Valid configuration found' RTE 32 <14.477199> [1] ' RTE.CFG analysis : Phase 1 in progress... ' RTE 33 <14.477674> [1] ' RTE.CFG analysis : Phase 10 in progress... ' RTE 34 <14.478795> [1] 'Can.Int.(ch0): CAN-402 successfully started' RTE 35 <14.482036> [ff00] 'EMCY on ws(1) ec:3220 'DC link under-voltage'' OS 37 <14.576033> [2] 'ETHP: Set IP 10.0.33.3 to eth1 interface.' OS 38 <14.576056> [2] 'ETHP: Set NETMASK 255.0.0.0 to eth1 interface.' OS 39 <14.576074> [2] 'ETHP: Set GATEWAY 0.0.0.0 to eth1 interface.' OS 40 <14.578603> [2] 'BCC3 server started on port 8000' RTE 36 <14.579653> [1] '** LOADING MODE selected' --- ALARMS STACK --- ALN( 1): 81 Can ws<1> Emcy <0x3220> --- ALARMS HISTORY (d/m/y h:m:s) --- 0- d(28) m( 1) y(2008) 17:34:49 9991 SYSTEM SWITCHED ON <10.0222> 1- d(28) m( 1) y(2008) 17:34:49 984#1 Illegal transducer definition in RTE.CFG 2- d(28) m( 1) y(2008) 17:34:49 984#2 Illegal transducer definition in RTE.CFG 3- d(28) m( 1) y(2008) 17:34:49 984#3 Illegal transducer definition in RTE.CFG 4- d(28) m( 1) y(2008) 17:34:49 9001 Different User Registers Definition 5- d(28) m( 1) y(2008) 17:34:49 3 Alarm History loss 6- d(28) m( 1) y(2008) 17:37:39 991 SYSTEM SWITCHED OFF in <NoId> 7- d(28) m( 1) y(2008) 17:37:51 9991 SYSTEM SWITCHED ON <10.0153> 8- d(28) m( 1) y(2008) 17:37:51 985 Error in RTE.CFG file 9- d(28) m( 1) y(2008) 17:37:51 9001 Different User Registers Definition 10- d(28) m( 1) y(2008) 17:38:40 9204 C402(0) configuration fault (1) 11- d(28) m( 1) y(2008) 17:40:10 991 SYSTEM SWITCHED OFF in <NoId> 12- d(28) m( 1) y(2008) 17:40:21 9991 SYSTEM SWITCHED ON <10.0195> 13- d(28) m( 1) y(2008) 17:40:21 9001 Different User Registers Definition 14- d(28) m( 1) y(2008) 17:40:44 9204 C402(0) configuration fault (1) 15- d(28) m( 1) y(2008) 17:42:14 991 SYSTEM SWITCHED OFF in <NoId> 16- d(28) m( 1) y(2008) 17:42:27 9991 SYSTEM SWITCHED ON <10.0187> 17- d(28) m( 1) y(2008) 17:42:27 9204 C402(0) configuration fault (1) 18- d(28) m( 1) y(2008) 17:45:48 991 SYSTEM SWITCHED OFF in <NoId> 19- d(28) m( 1) y(2008) 17:46:05 9991 SYSTEM SWITCHED ON <14.3608> 20- d(28) m( 1) y(2008) 17:46:05 81 Can ws<1> Emcy <0x3220> 21- d(28) m( 1) y(2008) 17:48:07 991 SYSTEM SWITCHED OFF in <MAIN> 22- d(28) m( 1) y(2008) 17:48:24 9991 SYSTEM SWITCHED ON <14.3609> 23- d(28) m( 1) y(2008) 17:57:54 991 SYSTEM SWITCHED OFF in <PWF> 24- d(28) m( 1) y(2008) 18:28:06 9991 SYSTEM SWITCHED ON <14.3635> 25- d(28) m( 1) y(2008) 18:28:06 81 Can ws<1> Emcy <0x3220> --- USER BATCH FILE --- '/LOG/userlog.stp' - Not existing file --- USER BATCH FILE(s) IN '/LOG/STP/' --- /LOG/STP/ - No such file or directory --- END OF LOG --- |
Presence of the userlog.stp file in /log/ :
file userlog.stp : d nvr 1,20 ; value of the first 20 non volatile integer register d nvsr 1 ; content of the sing register tfb ; value og the predefined variable time from begin ps_list ; list of power set installed ps_status sys ; status of the sys power set license ; kind of license present from SHELL RDE : SYS_LOG 0x3ff01 ; all bits in 1 |
The generated SYSTEM_LOG.TXT file will be the one from the previous example plus:
--- USER BATCH FILE --- execution of '/LOG/userlog.stp' >d nvr 1,20 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 0 0x00000000 >d nvsr 1 "" >ps_list 'sys' code <5462355> >ps_status sys Enable By Alarms<false> PowerAllowed<false> 'sys'.PowerEnable<TRUE > PowerRequest(E)<false> ST_power.enable<false> ST_power.q<false><100.000> G.P.Fb.(1)<false><0x0> G.P.Fb.CAN (PAM)<0x0> GlobalPower<false> POffOnNoFb(false)<0.000> POffOnAlarm(false)<0.000> Prog.Ch.Enab<0x0> Act.Ch.Enab<0x0> Ch.FeedBack<0x0> Channels in Reset(LAM)<0x0> Inihbit Time Active(LAM)<0x0> Channels in Fault(LAM)<0x0> Channel in Fault Reset(LAM)<0x0> >license LICENSED LIST ELEMENTS - CF signature <0xb6a9f602> PN<AS1016.001> has been qualified to operate LICENSE : TRANDUCER number ... <32> LICENSE : AXES number ........ <32> Any kind of axes LICENSE : LADDER ............. <ENABLED> LICENSE : PATH EXECUTOR ...... <ENABLED> --- USER BATCH FILE(s) IN '/LOG/STP/' --- no file STP found in '/LOG/STP/ --- END OF LOG --- |