12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionReadErrDataAdvanced <strong>RAPID</strong>ReadErrData - Gets information about an errorReadErrData is to be used in a trap routine, to get information (domain, type, numberand intermixed strings %s) about an error, a state change, or a warning, that caused thetrap routine to be executed.Refer to User Guide - Error Management, System and Error Messages for more information.ExampleVAR errdomain err_domain;VAR num err_number;VAR errtype err_type;VAR trapdata err_data;VAR string string1;VAR string string2;...TRAP trap_errGetTrapData err_data;ReadErrData err_data, err_domain, err_number,err_type \Str1:=string1 \Str2:=string2;ENDTRAPWhen an error is trapped to the trap routine trap_err, the error domain, the errornumber, the error type and the two first intermixed strings in the error messageare saved into appropriate variables.ArgumentsReadErrData[\Str1]TrapEventTrapEvent ErrorDomain ErrorId ErrorType[\Str2] [\Str3] [\Str4] [\Str5]Data type: trapdataVariable containing the information about what caused the trap to be executed.ErrorDomainData type: errdomainThe error domain to which the error, state change, or warning that occurredbelongs. Ref. to predefined data of type errdomain.ErrorIdData type: numThe number of the error that occurred.The error number is returned without the first digit (error domain) and withoutthe initial zeros of the complete error number.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 383

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!