Category: Relay Control

Relay Toggle Commands

Toggle commands are used to toggle the state of a relay.  If a relay is off, the relay will activate when the toggle command is sent.  Similarly, if the toggle command is sent again, the relay turn off. Toggle commands will require ProXR V3.9 firmware or later.

Read More »

Relay Control Commands

This section will demonstrate basic relay control commands, reading the status of relays, controlling all relays at once, including reversing and inverting relay status.  The video above demonstrates ProXR commands on a 4-Channel USB relay board.  This particular controllers is a ProXR Lite series, which includes 8 analog to digital inputs and USB interface module that may be replaced by a WiFi, Bluetooth, RS-232, Dropnet, Ethernet, Ethernet web page, or industrial wireless (Digi 802.15.4 or 900HP series) communications module. Here, you will see the word “Bank”.  A bank is simply a group of 8 relays.  Bank 1 refers to the

Read More »

Set the Status of All Relays in Selected Bank

The following table shows a single command used with different parameters.  The purpose of this command is to set the status of 8 relays simultaneously.  The 5th byte of this command indicates the binary pattern for relay control.  The 6th byte of this command applies this value to a single bank (Bank Value of 1-32) or all banks simultaneously (Bank Value of 0). Commands Below are in Hex Format using API Mode. TX = Bytes Sent to the Controller RX = Bytes Received from the Controller.  Note Bytes Received May be Different for Some Commands.

Read More »

Controlling Individual Relays

Controlling individual relays refers to controlling relays by their designated numeric assignment rather than using the relay bank system we normally use.  These commands were included as an alternative method of controlling relays to help suit the preferences of a particular user.  Referring to relays by their numeric value may be easier for some users to comprehend, as relay 1 is the first relay on the board and relay 32 is the last relay on the board when working with a 32-channel relay controller.  This section also includes relay selector command, which can be used to select the activation of one

Read More »

Controlling Individual Relay Commands

The following commands make use of a RelayNumber parameter, which are always 16-bit values.  The RelayNumber is a the number of the relay you would like to control.  This RelayNumber variable is converted into LSB and MSB values, which is subsequently communicated to the controller. RelayNumber = The Relay Number you would like to control. LSB = ((RelayNumber) And 255) MSB = (((RelayNumber) And 65280) / 255) Since most users will be working with less than 256 relays, the following substitutions can be made to help simplify this process: LSB = Relay Number (0 to 255) MSB = 0 Should you need

Read More »