47
Signametrics
Description
Set relay actuation time value
#include “SM4040.H”
int
SCANSetActuationTime
(
int
iScan,
double
dActuate
)
Remarks
This function sets the actuation time value to the scanner. The actuation time is the time
it takes the scanner to select and deselect all relays. The default actuation time is set to
10mS. The allowed range is from 0.25ms to 800ms. The resolution is about 0.25ms.
Parameter
Type/Description
iScan
int
Identifies the Scanner. Numbered starting with zero.
dActuate
double
Sets the actuation time. Allowed value is between 0.25ms to
800ms.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Function succeeded.
Negative Value
Error code
Example
status = SCANSetActuationTime(0, 0.05); // Set to 50ms
SCANSetChannelRelay
H/W access Command
;
Polled Command
Description
Close or open a channel relay.
#include “SM4040.H”
#include “ScanUser.H”
int
SCANSetChannelRelay(int
iScan
, int
iState
, int
iChan
)
Remarks
This function provides means to close or open individual channel relays while the
Scanner is in the
Universal
configuration. Issuing this command causes a single relay to
open or close, with an actuation time of tActuation. In the Universal configuration,
multiple channel relays can be closed. With
iState
set to
OPEN
, open the
iChan
relay.
Close it if iState is set to
CLOSE
. See ScanUser.H for definitions. See also
SCANSetConfigRelay
function.
Parameter
Type/Description
IScan
int
Identifies the Scanner. Numbered starting with zero.
IState
int
Closes a channel relay if equal to
CLOSE
, opens it if
OPEN
.
(
OPEN
= ‘O’ or 0X4F and
CLOSE
= ‘C’ or 0X43)
IChan
int
Channel number Range: 1 to 40 depending on Scanner type
Return Value
Integer error code.
Value
Meaning
Содержание SM4020
Страница 61: ...Signametrics 60...