12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InstructionGetTrapDataAdvanced <strong>RAPID</strong>GetTrapData - Get interrupt data for current TRAPGetTrapData is used in a trap routine to obtain all information about the interrupt thatcaused the trap routine to be executed.To be used in trap routines generated by instruction IError, before use of the instructionReadErrData.ExampleVAR trapdata err_data;GetTrapData err_data;Store interrupt information in the non-value variable err_data.ArgumentsGetTrapDataTrapEventTrapEventData type: trapdataVariable for storage of the information about what caused the trap to be executed.LimitationThis instruction can only be used in a TRAP routine.ExampleVAR errdomain err_domain;VAR num err_number;VAR errtype err_type;VAR trapdata err_data;.TRAP trap_errGetTrapData err_data;ReadErrData err_data, err_domain, err_number, err_type;ENDTRAPWhen an error is trapped to the trap routine trap_err, the error domain, the errornumber, and the error type are saved into appropriate non-value variables of thetype trapdata.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 123

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

Saved successfully!

Ooh no, something went wrong!