DscGetRelayMulti

Universal Driver Documentation
Simultaneously gets 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 dscGetRelayMulti(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 that will store the current state of each relay in the group as one bit (0 or 1). 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:52, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.