DscSetRelayMulti

Universal Driver Documentation
Simultaneously sets the state of multiple relays on the board. A "relay group" is a batch of relays that reside on the same internal board register:

Pearl-MM: 2 relay groups consisting of 8 relays each
Opal-MM: 1 relay group consisting of 8 relays
IR104: 3 relay groups: 2 contain 8 relays, 1 contains 4 relays
Diamond-MM-48-AT: 1 relay group consisting of 8 relays

Function Definition

BYTE dscSetRelayMulti(DSCB board, BYTE relayGroup, BYTE value);

Function Parameters

NameDescription
boardThe handle of the board to operate on
relayGroupSelected relay group.
valueThis is an eight-bit value. Each relay of the group will be set to its corresponding bit (0 or 1) of this value. The least significant bit in the value represents the first relay of the group. Please consult the user manual for your particular product to determine the relationship between the bit value (0 or 1) and the relay state.

Return Value

Error code or 0.


This page was last modified 11:51, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.