Contact Closure Input Quick Start Guide

Introduction

NCD Devices with Contact Closure Input monitoring capabilities will use this command set to read no less than 8 contact closure inputs with a single query.  This includes the ZSCAN series controllers and any NCD Devices equipped with a UXP Expansion Port (Fusion and ProXR UXP) and a USCS16, USCS32, or USCS48 contact closure input expansion board.

This SCAN Series command set allows the user to read anywhere from 1 to 32 banks of 8 inputs in a single query.  A single bank contains 8 inputs.  Reading 32 banks will report the status of 256 inputs.

This command has been enhanced to report more than one bank.  Original ProXR Standard controllers are only capable of reading one bank of 8 inputs per query.  The enhanced version allows you to include an optional parameter to read the selected bank plus 1 to 31 additional banks for a total of 32 banks per query.

Getting Started

Please refer to the hardware diagram for connecting your contact closure input device.

Notice:
All inputs labeled “A” are GROUND inputs, and all inputs labeled “B” are Contact Closure Inputs.  Never apply a Voltage to any contact closure input without consulting a NCD Engineer.

SCAN Series Hardware

Ultra Series ScanSwitch 16-Channel

Contact Closure Detector Expansion Module (USCS16)

Ultra Series ScanSwitch 32-Channel

Contact Closure Detector Expansion Module (USCS32)

Ultra Series ScanSwitch 48-Channel

Contact Closure Detector Expansion Module  (USCS48)

USB 16-Channel

Contact Closure Input Scanner Detector (ZSCAN16PROXR_USB)

USB 32-Channel

Contact Closure Input Scanner Detector (ZSCAN32PROXR_USB)

USB 48-Channel

Contact Closure Input Scanner Detector   (ZSCAN48PROXR_USB)

Base Station Software

Introduction

NCD Devices with Contact Closure Input monitoring will use this command set to read no less than 8 contact closure inputs with a single query.  This includes the ZSCAN series controllers and any NCD Devices equipped with a UXP Expansion Port and a USCS16, USCS32, USCS48 contact closure input expansion board.  A single bank contains 8 inputs.  All SCAN Series Devices are capable of Reading Banks 0 through 255 for a total of 256 firmware supported input banks (2048 total supported inputs).

This command has been enhanced to report more than one bank.  Original Pro XR Standard controllers are only capable of reading one bank of 8 inputs per query.  The enhanced version allows you to include an optional parameter to read the selected bank plus 1 to 31 additional banks for a total of 32 banks per query.

Getting Started

Run the NCD Base Station software to communicate with your SCAN Series controller. Base Station can be downloaded from ncd.io/start  After connecting the controller to your computer, select the correct port or IP Address for your controller. You will see the dialog box shown in the screen shot below.  SelectUXP SCAN Series Contact Closure Input Command Set’ as selected below.

This software will give you a binary representation of the status of the selected bank.

  • Use the scroll bar at the top left to select the desired starting Bank.
  • Click the ‘Read Individual Banks’ button at the bottom left to read the status of the selected Bank.

Standard Version Command Set

Read Single Bank

This command reads a single bank of inputs and reports a value from 0 to 255 indicating the status of 8 inputs in the selected bank.  An optional parameter may be included to read from 1 to 31 additional banks for a maximum of 32 banks per query.

Send Bytes: Byte 1, Byte 2, Byte 3,

Function: Header, Command, Bank

Decimal Values: 254, 175, 0-255

Hex Values 0xFE, 0xAF, 0x00-0xFF

Receive Byte:

Decimal: 0-255 (Up to 32 Bytes will be sent)

Hex: 0x00-0xFF

COMM Operator Examples

254 175 0 Device Reads the First 8 Contact Closure Inputs and Returns a Value of 0-255

The controller will report the status of 8 inputs as a single byte of data.  The following software method should be used to determine which inputs are actually high and low (Value = Byte Received from Controller; the “AND” function is a software function supported by most programming languages):

If Value AND 1 = 1 then Bit 0 is ON

If Value AND 2 = 2 then Bit 1 is ON

If Value AND 4 = 4 then Bit 2 is ON

If Value AND 8 = 8 then Bit 3 is ON

If Value AND 16 = 16 then Bit 4 is ON

If Value AND 32 = 32 then Bit 5 is ON

If Value AND 64 = 64 then Bit 6 is ON

If Value AND 128 = 128 then Bit 7 is ON

Or you can do combinations to test multiple bits:

If Value AND 3 = 3 then Bits 0 and 1 are ON

If Value AND 129 = 129 then Bits 0 and 7 are ON

If Value AND 7 = 7 then Bits 0, 1, and 2 are ON

If Value AND 255 = 255 then All Bits are ON

Command Set—Enhanced Version

Read Single Bank

This command reads a single bank of inputs and reports a value from 0 to 255 indicating the status of 8 inputs in the selected bank.  An optional parameter may be included to read from 1 to 31 additional banks for a maximum of 32 banks per query.

Send Bytes: Byte 1, Byte 2, Byte 3, Byte 4

Function: Header, Command, Bank, More Input Channels

Decimal Values: 254, 175, 0-255, 1-31

Hex Values 0xFE, 0xA,F 0x00-0xFF, 0x01-0x1F

Receive Byte:

Decimal: 0-255 (Up to 32 Bytes will be sent)

Hex: 0x00-0xFF

COMM Operator Examples

Read 1 Byte:

254 175 0 Device Reads the First 8 Contact Closure Inputs and Returns a Value of 0-255

Read 3 Bytes:

254 175 0 2 Device Read the First Bank Plus 2 More Banks and Returns 3 Bytes

Read 5 Bytes:

254 175 5 4 Device Reads Bank 5 Plus 4 More Banks (6, 7, 8, and 9) and Returns 5 Bytes

The controller will report the status of 8 inputs as a single byte of data.  The following software method should be used to determine which inputs are actually high and low (Value = Byte Received from Controller; the “AND” function is a software function supported by most programming languages):

If Value AND 1 = 1 then Bit 0 is ON

If Value AND 2 = 2 then Bit 1 is ON

If Value AND 4 = 4 then Bit 2 is ON

If Value AND 8 = 8 then Bit 3 is ON

If Value AND 16 = 16 then Bit 4 is ON

If Value AND 32 = 32 then Bit 5 is ON

If Value AND 64 = 64 then Bit 6 is ON

If Value AND 128 = 128 then Bit 7 is ON

Or you can do combinations to test multiple bits:

If Value AND 3 = 3 then Bits 0 and 1 are ON

If Value AND 129 = 129 then Bits 0 and 7 are ON

If Value AND 7 = 7 then Bits 0, 1, and 2 are ON

If Value AND 255 = 255 then All Bits are ON

Troubleshooting

Use the ‘UXP SCAN Quality Control and Diagnostics’ to help identify problems with the controller.

Select the appropriate number of inputs and begin testing by moving the program/run jumper to both positions.  Once this test has passed, communication speed will increase (which makes testing a little faster).  Next, connect a jumper wire to each input individually until you see PASS for each input.  If a failure is detected, the corresponding input failures will be identified.  If a failure is discovered, the device must be returned to NCD for repair services.