Hardware Manual

(John Hannent) #1

Hardware Manual PCD 1 / PCD 2 Series│Document 26 / 737│Edition EN 15│2008-07-22


Saia-Burgess Controls AG


Backup of the user program

CPUs and expansion housings

3


Diagnostics on  the flash   card,   SYSRD   K   9000

Instruction: SYSRD K 90001)
R_Diag ; Diagnostics register
1) Alternatively, the value 9000 can be passed in a register. On the PCD3, the instruction
SYSRD K 3000 is used for the same function. For reasons of compatibility, SYSRD
K 3000 can also be used on the PCD1/2, but this alternative was only integrated into the
firmware in the 2nd half of 2004

Accu status after execution:
low: The flash card is ready, and SYSWR 900x instructions
can be executed
high: The Flash card is not available or not ready; the
diagnostic register must be retrieved and the process
retried later
When using the instruction SYSRD K 9000, note the following:
 If errors occur during processing, e.g. because no flash card is plugged in, XOB 13
will be invoked (where present), or the Error LED will be set

Specification of diagnostic register
Bit Description
(if high)

Cause

0 (LSB) No flash card
1 Header not configured No application on the flash card
2 No SYSWR access to
flash card

The corresponding option has not been
activated in the hardware configuration
(reserved for text/DB etc.)
3 DB/text not present In the last instruction, an incorrect DB/text
number was used as a parameter
4 DB/text format invalid The length of the DB or the text has been
changed
5 Restored Text/DB on the flash card has been restored,
as an error occurred
6 Memory full Too many texts/DBs, no more free memory
space available
7 Already in progress The last SYSWR 900x instruction had not
yet been fully processed when the next was
started
8...31 Spare
Free download pdf