Download Single-Slot PC Interface Module (PCIM) User`s Manual
Transcript
5 GETIMSTATE CALL Statement Syntax CALL GETIMSTATE (STATUS, IMNUM, IMSTATE(0)) Action Get Configuration and Status Information Description The Get IM State call allows you to access configuration and status information about a specific PCIM by reading its Setup Table and Status Table into the “IMSTATE” parameter in Host memory. The format of IMSTATE is: IMSTATE(0) DipSwitch IMSTATE(1) IMRef IMSTATE(2) OutputLength IMSTATE(3) InputLength IMSTATE(4) Revision IMSTATE(5) PCIM OK IMSTATE(6) Fault IMSTATE(7) Active IMSTATE(8) SBerr IMSTATE(9) ScanTime – See page 4-9. – Reference Address – Output Control Data Length – Input Control Data Length – PCIM Firmware Revision Number – PCIM OK – every 200 ms, set to 1. If PCIM OK=0, board has failed. – Overall fault byte – any PCIM fault – Hand Held Monitor Present – Serial Bus error count – Bus Scan Time in ms Since the PCIM periodically sets its PCIM OK flag, this call allows the implementation of a PCIM OK heartbeat procedure. Parameters are summarized as follows: Parameter Function IMNUM 1–64 Relative number of PCIM IMSTATE varies PCIM Configuration and Status – see above STATUS 5-18 Values 0/1 Success/Fail Single-Slot PCIM User’s Manual – January 1994 GFK-0881