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

Transcript
5
GETCIR CALL Statement
Syntax
CALL GETCIR (STATUS, IMNUM, DEVICENUM, CIROFFSET, STATE)
Action
Read Input Circuit Value
Description
A Get Circuit call allows the state of a single input circuit to be read from the specified
PCIMs Input Table and be placed into the Host memory “STATE” parameter.
IMnum is the PCIM number configured during initialization. The DEVICENUM
parameter specifies the serial bus address of the device which contains the input circuit.
The “CIROFFSET” parameter indicates which bit of DEVICENUM is to be read. This
value ranges from 1 through 1024 (in bits).
“STATE” is a variable in which GETCIR will store the value of the circuit as indicated by
the above parameters. The contents of STATE will be either a ‘1’ or ‘0’ (ON or OFF).
Parameters are summarized as follows:
Parameter
Values
IMNUM
1–64
Relative number of PCIM
DEVICENUM
0–31
DIROFFSET
1–1024
Input circuit offset in specified I/O device in bits
STATE
0/1
ON or OFF condition of circuit read from PCIM
STATUS
5-36
Function
Specifies I/O device from which input circuit will be read
Success/Fail
Single-Slot PCIM User’s Manual – January 1994
GFK-0881