SN.SCT - system name to SCT address.

Usage:

sct_addr = sn.sct( devname [, err_func] );

Where:

sct_addr
is the SCT pointer corresponding to the given device name.
devname
is the right-justified, zero-filled, three-character BCD system name of the device desired.
err_func
is an optional argument of a function to call if the device is not found. "err_func" defaults to .ABORT and is called with PRINTF type arguments to output a message.

Description:

SN.SCT takes a BCD device name and maps it to the corresponding SCT entry. For those devices that do not have true SCTs in the system, a pseudo-SCT value (.CRCT1 + channel index) is returned. This is the same value as system stores in the system name table (SCN), and can be used for other enquiries like device type.

If the given device name is not found, "err_func" is called with an error message and a zero is returned (assuming that an "err_func" which does not terminate the program has been supplied by the caller).

Copyright © 2000, Thinkage Ltd.