Download Single-Slot PC Interface Module (PCIM) User`s Manual

Transcript
5
PUTWORD CALL Statement
Syntax
CALL PUTWORD (STATUS, IMNUM, DEVICENUM, CIROFFSET, WORDDATA)
Action
Write Output Word Value
Description
A Put Word call allows you to write a single output word from the Host memory
WORDDATA parameter to the specified PCIMs Output Table. The WORDDATA
parameter is an integer which PUTWORD uses for the word to be transmitted.
IMNUM is the PCIM number configured during initialization. The DEVICENUM
parameter specifies the serial bus address of the device where the output word is to be
sent. The CIROFFSET parameter indicates which word of the specified device is to be
written. This value ranges from 1 through 64 (in word quantities).
When PUTWORD is called, it begins by “Locking–out” the PCIM from updating the
Shared RAM (ensures data coherency across bus scans). PUTWORD then transfers the
word data to the PCIM. Once the transfer is complete, the PCIM is ”unlocked”.
Parameters are summarized as follows:
Parameter
Function
IMNUM
1–64
Relative number of PCIM
DEVICENUM
0–31
Specifies device to which output word will be written
CIROFFSET
1–64
Output word offset in specified device, in words
WORDDATA
1 entry
Word requested
STATUS
5-42
Values
Success/Fail
Single-Slot PCIM User’s Manual – January 1994
GFK-0881