cardGet

cardGet — gives read access to card buffers for low-level debugging.

Synopsis

       
(cardGet card_id page offset nbytes)
	

Parameters

card_id
The card ID associated with the card initialized by this command.
page
The page of card memory to access. The card contains 256 Kbytes of memory, mapped into the card buffer as 16Kbyte pages. Pages are numbered from 0 to 15. The Pfbprofi software module utilizes specific pages for its various functions, such as control structures, I/O data, DP Master control blocks, etc. To facilitate access, the page parameters can also be specified by name, as follows:
homeContains the PROFI_USR structure (status and control).
masContains the DP Master control blocks.
rxContains the DP Master input data.
txContains the DP Master output data.
binIs used to transfer binary configuration data.
offset
The starting byte offset into the card buffer, as a decimal or hex (0xnnnn) number.
nbytes
The number of bytes to be transmitted.

Returns

The list of bytes read, in ASCII BCD, formatted as:

(cardGet card_id card offset nbytes byte0 byte1 ... byteN)

otherwise (error).

Description

This command provides direct read access to the hardware card buffers (if available). It is intended for use only during very low-level debug.

Example

(cardGet 0 2 0x0E00 2 00 FF)
  

See the files in Appendix D, Support Files for more examples.