Validità: Rule, Task
Questa variabile permette di creare un file di report sulla compact flash.
Sintassi |
I32 sys_log |
---|---|
Attributi |
Accessibile a bit |
Il file generato ha il nome SYSTEM_LOG.TXT e viene inserito nella direttrice /LOG/.
NOTA: Nel caso la direttrice /log/ non dovesse esistere viene creata da RTE in modo automatico.
NOTA: Da RTE 33.21 il file viene auto-generato a cura di RTE nel caso di blocco del sistema (rule). Il parametro viene imposto uguale a 0xEF381.
NOTA: Nel caso in cui sia attivo warm_rst.8, tutte le operazioni per creare file di log sono abortite.
Bit |
Valore esadecimale |
Descrizione |
---|---|---|
BIT 0 |
0x1 |
Comando di creazione del LOG (gestito da utente): esso viene azzerato da RTE all'inizio della generazione del file |
BIT 1 |
0x2 |
Impostato a "vero" durante la scrittura del file (gestito da RTE) |
BIT 2 |
0x4 |
Impostato a "vero" se l'operazione è stata abortita (gestito da RTE) |
BIT 3 |
0x8 |
Se impostato a "vero" viene comandato un abort (gestito da utente) |
BIT 4 |
0x10 |
n.a. |
BIT 5 |
0x20 |
n.a. |
BIT 6 |
0x40 |
n.a. |
BIT 7 |
0x80 |
Segnala a RTE di conservare il file/files di LOG già presenti sulla CF. Il nuovo file verrà chiamato SYSTEM_LOG, mentre quello vecchio verrà rinominato SYSTEM_LOG_YY_MM_DD_HH_MM_SS.TXT (anno, mese, giorno, ora, minuti, secondi) |
BIT 8 |
0x100 |
Aggiungi l'informazione circa i software presenti (comando SYSINFO) |
BIT 9 |
0x200 |
Aggiungi l'informazione circa i task caricati in RAM (comando RDIR) |
BIT 10 |
0x400 |
Aggiungi il report di OS (comando shell REPORT -S) [tipo 2] |
BIT 11 |
0x800 |
Aggiungi il report di RTE (comando shell REPORT) [tipo 1] |
BIT 12 |
0x1000 |
Aggiungi il report di OS e di RTE (comando shell MREPORT -A) |
BIT 13 |
0x2000 |
Aggiungi l'informazione circa gli allarmi presenti nello stack allarmi (comando shell ALS) |
BIT 14 |
0x4000 |
Aggiungi l'informazione circa gli allarmi presenti nello storico allarmi (comando shell ALH) |
BIT 15 |
0x8000 |
Abilitazione all'esecuzione del file batch "USERLOG.STP" presente in /log/. Nel file di LOG verranno immessi solo i comandi dispositivo di visualizzazione (non sono possibili comandi di scrittura) |
BIT 16 |
0x10000 |
Abilitazione all'esecuzione di tutti i files batch presenti in /LOG/STP/ |
BIT 17 |
0x20000 |
Aggiungi l'informazione circa il controllo assi, part number, serial number, descrizione e mac, a partire da RTE 33.8.1 |
BIT 18 |
0x40000 |
Aggiungi l'informazione circa gli OB (Object Block) (comando OB), a partire da RTE 33.11.0 |
BIT 19 |
0x80000 |
Aggiungi l'informazione circa le funzioni attaccate agli agganci (comando AF), a partire da RTE 33.11.0 |
BIT 20 |
0x100000 |
Abilta visualizzazione tempo in report in formato YY/MM/DD HH:MIN:SEC.micro |
BIT 21 |
0x200000 |
Abilitazione all'uso di SYS_LOG_AUX come codice aggiuntivo da inserire nel nome del file di log tipo SYSTEM_LOG_nnn.TXT dove nnn é il contenuto di SYS_LOG_AUX. |
BIT 22 |
0x400000 |
Abilitazione all'uso di SYS_LOG_AUX come codice indice di SR in cui si trova il file name completo di path del file di log. (es . SR(6) = "/mylog/macchina1.txt" SYS_LOG_AUX = 6 ) |
BIT 23 |
0x800000 |
Aggiungi l'informazione circa i processi di sistema (comando PVIEW -F 0xFFF) |
Esempio
; Da SHELL RDE: ; tutti i bit in 1 sys_log 0xfff01 ; Da programma: ; tutti i bit in 1 if(rise(fineTurno)) sys_log = 0xfff01 ; oppure: ; tutti i bit in 1 if (richiestaLog) sys_log = 0xfff01 |
Il file generato SYSTEM_LOG.TXT sarà il seguente:
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 --- |
Presenza del file userlog.stp 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 ; lista dei power set installati ps_status sys ; status of the sys power set license ; kind of license present Da SHELL RDE SYS_LOG 0x3ff01 ; tutti i bit in 1 |
Il file generato SYSTEM_LOG.TXT sarà quello dell'esempio precedente più:
--- 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 --- |