Please enable JavaScript to view this site.

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

The generated DUMP.STP file will be as follows:

Example

The generated DUMP.STP file will be as follows:

The generated file DUMP.STP, with the addition of BIT14 - sys_dump = 0x6001- (Multi information per line) will be as follows:

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:

The generated file DUMP.STP as a result of sys_dump = 0x101- (Dump non-volatile parameter) will be as follows:

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:

 

  

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