The UXP expansion port found on ProXR series controllers (equipped with a UXP port) support contact closure inputs. These controllers allow you to connect buttons, switches, motion detectors, or any other type of contact closure input to your relay controller. UXP series controllers are able to be read the contact closure inputs based on a polled protocol. Polling is the process of asking the controller the current state of the contact closure inputs and receiving a reply. Push notification is not supported for any UXP expansions. Since inputs on this expansion will not accept voltages on the inputs, users should exercise caution when connecting external devices.
The following commands demonstrate how to read contact closure inputs from ProXR controllers equipped with UXP hardware and firmware. A Bank (B) of 8 inputs is read for each request. Each of 8 inputs is represented in standard byte format as part of the data returned (R) from the controller. The Most Significant Bit of the returned data (R) represents Input 8 while the Least Significant Bit of the returned data (R) represents input 1.
CK = Checksum (00-FF)B = Bank
R = Read Value from Controller
TX: | 2 | 3 | 4 | B | CK | Function: | RX: | 2 | R | CK |
---|---|---|---|---|---|---|---|---|---|---|
AA | 03 | FE | AF | 00 | 5A | Read Contact Closure Input Bank 1 | AA | 01 | 00 | AB |
AA | 03 | FE | AF | 01 | 5B | Read Contact Closure Input Bank 2 | AA | 01 | 00 | AB |
AA | 03 | FE | AF | 02 | 5C | Read Contact Closure Input Bank 3 | AA | 01 | 00 | AB |
AA | 03 | FE | AF | 03 | 5D | Read Contact Closure Input Bank 4 | AA | 01 | 00 | AB |
AA | 03 | FE | AF | 04 | 5E | Read Contact Closure Input Bank 5 | AA | 01 | 00 | AB |
Users may also request more than one bank at a time by specifying a start bank (S) and a count (C). The start (S) bank is a value from 0 to 255 and the count (C) bank is a value of 0 to 31. The Count (C) is added to the start bank, so the first example should be interpreted to mean: Read Contact Closure Inputs Starting (S) with Bank 0 and add a count (C) of 2 more banks for a total of 3 banks (24 total inputs).
CK = Checksum (00-FF)S = Start Bank
C = Count Banks Above Start
R = Read Value from Controller
-- = Skip
TX: | 2 | 3 | 4 | S | C | CK | FUNCTION: READ CONTACT CLOSURE BANKS | RX: | 2 | R | R | R | R | R | R | R | CK |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AA | 04 | FE | AF | 00 | 02 | 5D | Start at Bank 0 and Read 2 More Banks | AA | 03 | 00 | 00 | 00 | -- | -- | -- | -- | AD |
AA | 04 | FE | AF | 01 | 03 | 5F | Start at Bank 1 and Read 3 More Banks | AA | 04 | 00 | 00 | 00 | 00 | -- | -- | -- | AE |
AA | 04 | FE | AF | 02 | 04 | 61 | Start at Bank 2 and Read 4 More Banks | AA | 05 | 00 | 00 | 00 | 00 | 00 | -- | -- | AF |
AA | 04 | FE | AF | 03 | 05 | 63 | Start at Bank 3 and Read 5 More Banks | AA | 06 | 00 | 00 | 00 | 00 | 00 | 00 | -- | B0 |
AA | 04 | FE | AF | 04 | 06 | 65 | Start at Bank 4 and Read 6 More Banks | AA | 07 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | B1 |