Validity: Rule, Task
This variable allows you to create a custom memory dump ascii file on the compact flash.
Can be dumped: NVR, NVRR, NVSR, R, RR, SR, Volatile predefined variables, Retentive predefined variables.
Syntax |
I32 sys_dump |
---|---|
Attributes |
Bit-accessible |
The generated file has the name DUMP.STP and is placed in the /DUMP/ director.
NOTE: In case the /DUMP/ director does not exist it is created by RTE automatically.
NOTE: In case warm_rst.8 is active, all operations to create dump files are aborted.
Bit |
Hexadecimal value |
Description |
---|---|---|
BIT 0 |
0x1 |
Enables DUMP operation, is set to 0 when the operation starts |
BIT 1 |
0x2 |
DUMP operation in progress |
BIT 2 |
0x4 |
Dump Aborted |
BIT 3 |
0x8 |
User request to abort |
BIT 4 |
0x10 |
During dump the parameters to be saved should not be changed in the rules |
BIT 5 |
0x20 |
File name taken from SR(SYS_DUMP_AUX) e.g. R(5) = "/myFolderName/myDumpName.myFileExtension" |
BIT 6 |
0x40 |
Multiple files based on the type of registers. The filename will have NVR, NVRR ..., param |
BIT 7 |
0x80 |
Rename the previous DUMP file |
BIT 8 |
0x100 |
Dump of non-volatile parameters(predefined variables) |
BIT 9 |
0x200 |
Dump of volatile parameters(predefined variables) |
BIT 10 |
0x400 |
Dump of read-only parameters(predefined variables) |
BIT 11 |
0x800 |
Dump axis information (extends field to 32 axes, even if fewer are used) |
BIT 12 |
0x1000 |
Dump of organized axis information (first all parameters of the first axis, then all parameters of the second axis, and so on) |
BIT 13 |
0x2000 |
Enable dump of NVR Registers using SYS_DUMP_NVR |
BIT 14 |
0x4000 |
Multiple information per line |
BIT 15 |
0x8000 |
Hexadecimal format |
BIT 16 |
0x10000 |
Enables the dump of NVRR registers using SYS_DUMP_NVRR |
BIT 17 |
0x20000 |
Multiple information per line |
BIT 18 |
0x40000 |
Enable dump of NVSR registers using SYS_DUMP_NVSR |
BIT 19 |
0x80000 |
Enable dump for user area |
BIT 20 |
0x100000 |
Enable dump of R Registers using SYS_DUMP_R |
BIT 21 |
0x200000 |
Multiple information per line |
BIT 22 |
0x400000 |
Hexadecimal format |
BIT 23 |
0x800000 |
Enables the dump of RR registers using SYS_DUMP_RR |
BIT 24 |
0x1000000 |
Multiple information per line |
BIT 25 |
0x2000000 |
Enables dump of SR Registers using SYS_DUMP_SR |
BIT 26 |
0x4000000 |
Performs save to retentive zone file for RPL. The file is /DUMP/DUMP_RPLAREA.STB (unless modified) |
BIT 27 |
0x8000000 |
Performs restore from file in retentive zone for RPL. The file is /DUMP/DUMP_RPLAREA.STB (unless modified). The file will be restored only if the length of the file matches the size of the retentive zone |
BIT 28 |
0x10000000 |
Save in the file /DUMP/DUMP_RETPOS.STB the retentive information regarding the position (CP, RAWCP and C0_DONE) |
BIT 29 |
0x20000000 |
Restore retentive information regarding the location in the /DUMP/DUMP_RETPOS.STB file. This command is executed only if POWERED = 0 and the CPU can write to CF/SD . This command forces a SWRESET. This command can also be performed: •loading the (non-empty) file named RQ_RETPOS_RESTORE in the /DUMP/ directory at the first start of the control, loading the retentive quota information from the /DUMP/DUMP_RETPOS.STB file. The file /DUMP/R_RETPOS_RESTORE will be deleted . The result of the whole operation, both positive and negative, is entered into the report. •By writing BIT 9 of the predefined variable SYS_CFG |
BIT 30 |
0x40000000 |
|
BIT 31 |
0x80000000 |
|
Example
; From SHELL RDE: ; Dump non-volatile parameters sys_dump = 0x101 ; From program: if(rise(dumpVolatileParam)) sys_dump = 0x101 ... |
The generated DUMP.STP file will be as follows:
; System Dump - created on(d/m/y) 8/1/2015 at 22:4:39 ; ----------------------------- ; Axes parameters ; ----------------------------- KBIT2UNIT(1) = 0.00016646 KBIT2UNIT(2) = 0.00016646 KBIT2UNIT(3) = 0.00016646 KBIT2UNIT(4) = 0.000784738 KBIT2UNIT(5) = 1 IPP_IDX(1) = 1 IPP_IDX(2) = 1 IPP_IDX(3) = 1 IPP_IDX(4) = 1 IPP_IDX(5) = 1 PRO_GAI(1) = 500 PRO_GAI(2) = 250 PRO_GAI(3) = 250 PRO_GAI(4) = 0 PRO_GAI(5) = 0 KFF(1) = 0 KFF(2) = 0 KFF(3) = 0 KFF(4) = Inf KFF(5) = 0 POS_THR(1) = 0.01 POS_THR(2) = 0.01 POS_THR(3) = 0.01 POS_THR(4) = 0.01 POS_THR(5) = 0.01 MIN_STR(1) = -80 MIN_STR(2) = -80 MIN_STR(3) = -80 MIN_STR(4) = -1800 MIN_STR(5) = 0 MAX_STR(1) = 60 MAX_STR(2) = 60 MAX_STR(3) = 60 MAX_STR(4) = 1800 MAX_STR(5) = 0 MAX_SPE(1) = 500 MAX_SPE(2) = 500 MAX_SPE(3) = 500 MAX_SPE(4) = 2000 MAX_SPE(5) = Inf MAX_ACC(1) = 5000 MAX_ACC(2) = 5000 MAX_ACC(3) = 5000 MAX_ACC(4) = 40000 MAX_ACC(5) = Inf SER_THR(1) = 5 SER_THR(2) = 5 SER_THR(3) = 5 SER_THR(4) = 1 SER_THR(5) = 1 SER_GAI(1) = 1 SER_GAI(2) = 1 SER_GAI(3) = 1 SER_GAI(4) = 0 SER_GAI(5) = 0 SA_IP_IDX(1) = 1 SA_IP_IDX(2) = 1 SA_IP_IDX(3) = 1 SA_IP_IDX(4) = 1 SA_IP_IDX(5) = 1 SA_IV_IDX(1) = 0 SA_IV_IDX(2) = 0 SA_IV_IDX(3) = 0 SA_IV_IDX(4) = 0 SA_IV_IDX(5) = 0 ; ----------------------------- ; Axes mask ; ----------------------------- C0_DONE = 0x7 ; ----------------------------- ; Power Handling ; ----------------------------- ; ----------------------------- ; Program Handling ; ----------------------------- SAME_RULE = 0 ; ----------------------------- ; Miscellaneous ; ----------------------------- SEM_USER = 0x0 ; ----------------------------- ; Diagnostic ; ----------------------------- SYS_FLAG = 0x0 SYS_CFG = 0x0 REP_MASK = 0xffffffff ; ----------------------------- ; Alarms ; ----------------------------- AH_FILTER_TIME = 1 AH_FILTER = 0x0 ; ----------------------------- ; Wave Generator ; ----------------------------- ; ----------------------------- ; System Information ; ----------------------------- ; ----- End of DUMP ----- file written in 0.602 mSec |
Example
; Da SHELL RDE: ; Dump NVR from 100 to 149 and From 1000 to 1099 sys_dump_nvr = 456 ; command registers R(456) = 100 R(457) = 50 R(458) = 1000 R(459) = 100 sys_dump = 0x2001 |
The generated DUMP.STP file will be as follows:
; System Dump - created on(d/m/y) 8/1/2015 at 22:20:34 ;-------------------------------------------------------------- ; Dumping from NVR(100) to NVR(149) ;-------------------------------------------------------------- NVR(100) = 0 NVR(101) = 0 NVR(102) = 0 NVR(103) = 0 NVR(104) = 0 NVR(105) = 0 NVR(106) = 0 NVR(107) = 0 NVR(108) = 0 NVR(109) = 0 NVR(110) = 0 NVR(111) = 0 NVR(112) = 0 NVR(113) = 0 NVR(114) = 0 NVR(115) = 0 NVR(116) = 0 NVR(117) = 0 NVR(118) = 0 NVR(119) = 0 NVR(120) = 0 NVR(121) = 0 NVR(122) = 0 NVR(123) = 0 NVR(124) = 0 NVR(125) = 0 NVR(126) = 0 NVR(127) = 0 NVR(128) = 0 NVR(129) = 0 NVR(130) = 0 NVR(131) = 0 NVR(132) = 0 NVR(133) = 0 NVR(134) = 0 NVR(135) = 0 NVR(136) = 0 NVR(137) = 0 NVR(138) = 0 NVR(139) = 0 NVR(140) = 0 NVR(141) = 0 NVR(142) = 0 NVR(143) = 0 NVR(144) = 0 NVR(145) = 0 NVR(146) = 0 NVR(147) = 0 NVR(148) = 0 NVR(149) = 0 ;-------------------------------------------------------------- ; Dumping from NVR(1000) to NVR(1099) ;-------------------------------------------------------------- NVR(1000) = 0 NVR(1001) = 0 NVR(1002) = 0 NVR(1003) = 0 NVR(1004) = 0 NVR(1005) = 0 NVR(1006) = 0 NVR(1007) = 0 NVR(1008) = 0 NVR(1009) = 0 NVR(1010) = 0 NVR(1011) = 0 NVR(1012) = 0 NVR(1013) = 0 NVR(1014) = 0 NVR(1015) = 0 NVR(1016) = 0 NVR(1017) = 0 NVR(1018) = 0 NVR(1019) = 0 NVR(1020) = 0 NVR(1021) = 0 NVR(1022) = 0 NVR(1023) = 0 NVR(1024) = 0 NVR(1025) = 0 NVR(1026) = 0 NVR(1027) = 0 NVR(1028) = 0 NVR(1029) = 0 NVR(1030) = 0 NVR(1031) = 0 NVR(1032) = 0 NVR(1033) = 0 NVR(1034) = 0 NVR(1035) = 0 NVR(1036) = 0 NVR(1037) = 0 NVR(1038) = 0 NVR(1039) = 0 NVR(1040) = 0 NVR(1041) = 0 NVR(1042) = 0 NVR(1043) = 0 NVR(1044) = 0 NVR(1045) = 0 NVR(1046) = 0 NVR(1047) = 0 NVR(1048) = 0 NVR(1049) = 0 NVR(1050) = 0 NVR(1051) = 0 NVR(1052) = 0 NVR(1053) = 0 NVR(1054) = 0 NVR(1055) = 0 NVR(1056) = 0 NVR(1057) = 0 NVR(1058) = 0 NVR(1059) = 0 NVR(1060) = 0 NVR(1061) = 0 NVR(1062) = 0 NVR(1063) = 0 NVR(1064) = 0 NVR(1065) = 0 NVR(1066) = 0 NVR(1067) = 0 NVR(1068) = 0 NVR(1069) = 0 NVR(1070) = 0 NVR(1071) = 0 NVR(1072) = 0 NVR(1073) = 0 NVR(1074) = 0 NVR(1075) = 0 NVR(1076) = 0 NVR(1077) = 0 NVR(1078) = 0 NVR(1079) = 0 NVR(1080) = 0 NVR(1081) = 0 NVR(1082) = 0 NVR(1083) = 0 NVR(1084) = 0 NVR(1085) = 0 NVR(1086) = 0 NVR(1087) = 0 NVR(1088) = 0 NVR(1089) = 0 NVR(1090) = 0 NVR(1091) = 0 NVR(1092) = 0 NVR(1093) = 0 NVR(1094) = 0 NVR(1095) = 0 NVR(1096) = 0 NVR(1097) = 0 NVR(1098) = 0 NVR(1099) = 0 ; ----- End of DUMP ----- file written in 21.752 mSec |
The generated file DUMP.STP, with the addition of BIT14 - sys_dump = 0x6001- (Multi information per line) will be as follows:
; System Dump - created on(d/m/y) 8/1/2015 at 22:24:36 ;-------------------------------------------------------------- ; Dumping from NVR(100) to NVR(149) ;-------------------------------------------------------------- NVR(100) = 0 0 0 0 0 -m NVR(105) = 0 0 0 0 0 -m NVR(110) = 0 0 0 0 0 -m NVR(115) = 0 0 0 0 0 -m NVR(120) = 0 0 0 0 0 -m NVR(125) = 0 0 0 0 0 -m NVR(130) = 0 0 0 0 0 -m NVR(135) = 0 0 0 0 0 -m NVR(140) = 0 0 0 0 0 -m NVR(145) = 0 0 0 0 0 -m ;-------------------------------------------------------------- ; Dumping from NVR(1000) to NVR(1099) ;-------------------------------------------------------------- NVR(1000) = 0 0 0 0 0 -m NVR(1005) = 0 0 0 0 0 -m NVR(1010) = 0 0 0 0 0 -m NVR(1015) = 0 0 0 0 0 -m NVR(1020) = 0 0 0 0 0 -m NVR(1025) = 0 0 0 0 0 -m NVR(1030) = 0 0 0 0 0 -m NVR(1035) = 0 0 0 0 0 -m NVR(1040) = 0 0 0 0 0 -m NVR(1045) = 0 0 0 0 0 -m NVR(1050) = 0 0 0 0 0 -m NVR(1055) = 0 0 0 0 0 -m NVR(1060) = 0 0 0 0 0 -m NVR(1065) = 0 0 0 0 0 -m NVR(1070) = 0 0 0 0 0 -m NVR(1075) = 0 0 0 0 0 -m NVR(1080) = 0 0 0 0 0 -m NVR(1085) = 0 0 0 0 0 -m NVR(1090) = 0 0 0 0 0 -m NVR(1095) = 0 0 0 0 0 -m ; ----- End of DUMP ----- file written in 0.334 mSec |
The generated file DUMP.STP, with the addition of BIT14 and 15- sys_dump = 0xE001- (Multi information per line and Hexadecimal data format) will be as follows:
; System Dump - created on(d/m/y) 8/1/2015 at 22:27:0 ;-------------------------------------------------------------- ; Dumping from NVR(100) to NVR(149) ;-------------------------------------------------------------- NVR(100) = 0x0 0x0 0x0 0x0 0x0 -m NVR(105) = 0x0 0x0 0x0 0x0 0x0 -m NVR(110) = 0x0 0x0 0x0 0x0 0x0 -m NVR(115) = 0x0 0x0 0x0 0x0 0x0 -m NVR(120) = 0x0 0x0 0x0 0x0 0x0 -m NVR(125) = 0x0 0x0 0x0 0x0 0x0 -m NVR(130) = 0x0 0x0 0x0 0x0 0x0 -m NVR(135) = 0x0 0x0 0x0 0x0 0x0 -m NVR(140) = 0x0 0x0 0x0 0x0 0x0 -m NVR(145) = 0x0 0x0 0x0 0x0 0x0 -m ;-------------------------------------------------------------- ; Dumping from NVR(1000) to NVR(1099) ;-------------------------------------------------------------- NVR(1000) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1005) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1010) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1015) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1020) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1025) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1030) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1035) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1040) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1045) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1050) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1055) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1060) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1065) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1070) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1075) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1080) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1085) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1090) = 0x0 0x0 0x0 0x0 0x0 -m NVR(1095) = 0x0 0x0 0x0 0x0 0x0 -m ; ----- End of DUMP ----- file written in 0.392 mSec |
The generated file DUMP.STP as a result of sys_dump = 0x101- (Dump non-volatile parameter) will be as follows:
[>] sys_dump 0x101 Device command SYS_DUMP 0X101 [>] fview /dump/dump.stp File content /dump/dump.stp: 100%, completed (2196 bytes). ; System Dump - created on(d/m/y) 13/9/2165 at 15:38:6 ; ----------------------------- ; Axes parameters ; ----------------------------- KBIT2UNIT(1) = 0.00016646 KBIT2UNIT(2) = 0.00016646 KBIT2UNIT(3) = 0.00016646 KBIT2UNIT(4) = 0.000784738 KBIT2UNIT(5) = 1 IPP_IDX(1) = 1 IPP_IDX(2) = 1 IPP_IDX(3) = 1 IPP_IDX(4) = 1 IPP_IDX(5) = 1 PRO_GAI(1) = 500 PRO_GAI(2) = 250 PRO_GAI(3) = 250 PRO_GAI(4) = 0 PRO_GAI(5) = 0 KFF(1) = 0 KFF(2) = 0 KFF(3) = 0 KFF(4) = Inf KFF(5) = 0 POS_THR(1) = 0.01 POS_THR(2) = 0.01 POS_THR(3) = 0.01 POS_THR(4) = 0.01 POS_THR(5) = 0.01 MIN_STR(1) = -80 MIN_STR(2) = -80 MIN_STR(3) = -80 MIN_STR(4) = -1800 MIN_STR(5) = 0 MAX_STR(1) = 60 MAX_STR(2) = 60 MAX_STR(3) = 60 MAX_STR(4) = 1800 MAX_STR(3) = 60 |
The generated file DUMP.STP as a result of sys_dump = 0x1101- (Dump non-volatile parameter with Information organized by axis) will be as follows:
[>] sys_dump 0x1101 Command device SYS_DUMP 0X1101 [>] fview /dump/dump.stp File content /dump/dump.stp: 100%, completed (2198 bytes). ; System Dump - created on(d/m/y) 13/9/2165 at 15:38:17 ; ----------------------------- ; Axes parameters ; ----------------------------- KBIT2UNIT(1) = 0.00016646 IPP_IDX(1) = 1 PRO_GAI(1) = 500 KFF(1) = 0 POS_THR(1) = 0.01 MIN_STR(1) = -80 MAX_STR(1) = 60 MAX_SPE(1) = 500 MAX_ACC(1) = 5000 SER_THR(1) = 5 SER_GAI(1) = 1 SA_IP_IDX(1) = 1 SA_IV_IDX(1) = 0 KBIT2UNIT(2) = 0.00016646 IPP_IDX(2) = 1 PRO_GAI(2) = 250 KFF(2) = 0 POS_THR(2) = 0.01 MIN_STR(2) = -80 MAX_STR(2) = 60 MAX_SPE(2) = 500 MAX_ACC(2) = 5000 SER_THR(2) = 5 SER_GAI(2) = 1 SA_IP_IDX(2) = 1 SA_IV_IDX(2) = 0 KBIT2UNIT(3) = 0.00016646 IPP_IDX(3) = 1 PRO_GAI(3) = 250 KFF(3) = 0 POS_THR(3) = 0.01 MIN_STR(3) = -80 |