Fusion Series controllers support up to two ports of 8-bit digital input/output, allowing users to read and control 5V digital signals using only a few simple commands. When used for digital input applications, Fusion controllers are capable of reading inputs such as switches, magnet sensors, and other contact closure devices. Digital output makes it easy to control LEDs and some logic circuits at very high speed.
Port Direction
The first step in using the Digital I/O features of Fusion series controllers is a complete understanding of port direction. Each 8-bit port may be configure to read inputs, write outputs, or both in combination. When the port is set to all inputs, 8 switches can be read as long as the input does not exceed 0 to 5 Volts DC. When the port is set to all outputs, 8 LEDs can be controlled by software, allowing you to turn each LED on or off in any combination. It’s easy to mix inputs and outputs, allowing users to read 4 switches and control 4 LEDs. Each I/O line on the Fusion controller may be configured to input or output, but you must set the status of all 8 I/O lines at one time using a single command. Here’s an example:
236 2 255 Set I/O Lines 1 to 8 to Input Rx: 255
236 2 0 Set I/O Lines 1 to 8 to Output Rx: 0
236 2 15 Set I/O Lines 1-4 to Input, 5-8 to Output Rx: 15
The third byte in the Port Direction command is used to set the Digital Input or Output state of all 8 data lines on the I/O port. Here’s how you decide what this value should be:
Each I/O bit has a value associated, as shown below:
IO 8 IO 7 IO 6 IO 5 IO 4 IO 3 IO 2 IO 1
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
128 64 32 16 8 4 2 1
Each of these 8 bits may be On or Off:
1 = On = Input
0 = Off = Output
If we turn on every other bit, we get this:
IO 8 IO 7 IO 6 IO 5 IO 4 IO 3 IO 2 IO 1
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
In Out In Out In Out In Out
1 0 1 0 1 0 1 0
128 0 32 0 8 0 2 0
Bits 8, 6, 4, and 2 will be turned On, setting them to Input, the other bits will remain off, setting them to output.
Now we add the bits together:
128 + 32 + 8 + 2 = 170
Now we send the command:
236 2 170 Sets I/O Line 0 to Output
Sets I/O Line 1 to Input
Sets I/O Line 2 to Output
Sets I/O Line 3 to Input
Sets I/O Line 4 to Output
Sets I/O Line 5 to Input
Sets I/O Line 6 to Output
Sets I/O Line 7 to Input
Controller responds with: Rx: 170
In the screen shot above, the 8-Bit I/O Port was configured for input and output. I/O Lines 1, 3, 5, 7 are Outputs while I/O Lines 2, 4, 6, 8 are set to Inputs. The value 85 was written to the port, turning on I/O Lines 1, 3, 5, and 7 (these lines can be used to drive LEDs). Inputs 2, 4, 6, and 8 can be used to read switches, and will light RED if the input is high and you click the “Read from Port” button.
Port 1 Commands
Value can be any number from 0 to 255, and follows the 8-Bit binary standard.
236 0 Write Output values to output bits of I/O port Rx: [Output Value]
236 1 Read Input value from input bits of I/O Port Rx: [Input Value]
236 2 Set Port Direction Command Rx: [Direction Value]
Port 2 Commands
Value can be any number from 0 to 255, and follows the 8-Bit binary standard.
236 0 [Value] 2 Write Output values to output bits of I/O port Rx: [Output Value]
236 1 2 Read Input value from input bits of I/O Port Rx: [Input Value]
236 2 [Value] 2 Set Port Direction Command Rx: [Direction Value]
EEPROM Memory
EEPROM Memory stores the state of each port when power is first applied to the controller.
Please review the Fusion EEPROM Quick Start Guide for complete details.
EEPROM Memory Locations
280 Stores the Direction of Port 1
281 Stores the On/Off Status of Each Bit of Port 1
282 Stores the Direction of Port 2
283 Stores the On/Off Status of Each Bit of Port 2
-
Fusion Override Controller Quick Start Guide
Jacob Youngblood, , Fusion Autonomous (Gen 2), Quick Start Guide, Fusion, Quick Start Guide, 0
Fusion Override Control Fusion series controllers have three possible ways to control relays. ProXR Advanced allows a computer to control relays. Reactor focuses on Sensor controlled relays. Taralist controls relays based on a time schedule. Since there are three distinctly different relay control technologies working together, it is essential to utilize a priority system for managing who has control of what relay. By default, the relay p...
-
EEPROM Memory Map Quick Start Guide
Jacob Youngblood, , ProXR & ProXR Lite, Pulsar AC Light Dimmers, Quick Start Guide, Fusion, ProXR, ProXR Lite, Pulsar, Quick Start Guide, 0
EEPROM Memory Commands EEPROM Memory is used to store important parameters within the controller. Many of the ProXR Standard commands have been removed and replaced with EEPROM Memory Commands. In the past, the controller had a separate command for each parameter. This consumed an excessive amount of space within the microprocessor firmware. To save space, we have consolidated all parameter read and write functions into two simple command...
-
WiFi Push Notification Quick Start Guide
Ryan, , Quick Start Guide, WiFi, 0
Introduction What is the Push Notification Series? The push notification series was designed for customers requiring contact closure input monitoring via push notification rather than a query based method. This means your application is free to process other tasks while listening for input status change. This opens the door to many new and exciting applications such as email/text message notification, data logging, security monitoring, and much m...
-
KFX Key Fob Communications Module Quick Start Guide
Jacob Youngblood, , Product Series, Quick Start Guide, Communications, KFX, Quick Start Guide, 1
Key Fob Communications Module Getting Started Step 1: Configuring Buttons Step 2: Connecting to a Computer Step 3: Pairing Key Fob with KFX Receiver Step 4: Module Setup Key Fob Range Common Commands Relay Grouping Relay Flashing Relay Timers Troubleshooting Key Fob Communications Module Our new generation of Key Fob control; the KFX Series, allows users to control any device from a hand-held remote. The KFX receiver module can be added to an...
-
Pulsar AC Light Dimmers Quick Start Guide
Jacob Youngblood, , Pulsar AC Light Dimmers, Quick Start Guide, Essential, Pulsar, Quick Start Guide, 0
Introduction Introducing the Pulsar Series Lighting controllers. The Pulsar Series controllers are designed to offer an industrial grade light dimming solution with a heavy emphasis of connectivity to computers using a wide array of interface technologies. Whether you need to control lights locally or from the other side of the planet, we have a solution available that offers flicker-free operation in an industrial design built to last many y...
-
WiFi Micro Gateway Setup for Microsoft Azure
Jacob Youngblood, , Product Manual, Quick Start Guide, Uncategorized, Wireless, Essential, 0
WiFi Micro Gateway for Microsoft® Azure® Setup Instructions Introduction The NCD WiFi Micro Gateway allows the complete line of NCD sensors to communicate over the internet to Microsoft Azure using a WiFi connection. The NCD Micro Gateway is very easy to use, as it only requires network connection credentials and an Azure Connection String. All sensors are fully encrypted using 128-bit AES encryption. WiFi communications is also fully enc...
-
Taralist Time Activated Relay Quick Start Guide
Ryan, , Quick Start Guide, Taralist Time Activated Relays, Essential, Quick Start Guide, Taralist, 2
Taralist Time Activated Relay Controllers Introduction Taralist time activated relay controllers offer a low-cost solution for controlling relays based on a time schedule that is loaded into the relay controller from a PC. Taralist series controllers use our Base Station software to manage all time scheduling operations. Taralist controllers allow you to build an event list, which is processed every second, as it looks for time schedule matc...
-
AD1216 Analog to Digital Converter Quick Start Guide
Ryan, , Fusion Autonomous (Gen 2), ProXR & ProXR Lite, Quick Start Guide, AD1216, Essential, Quick Start Guide, 0
AD1216 Analog to Digital Conversion Command Set WARNING: A/D Inputs can accept a voltage from 0 to 5VDC. You should NEVER exceed this voltage range. Negative voltages will damage the A/D inputs. Power the controller BEFORE applying voltages to these inputs. Applying voltages to these inputs while the controller is powered down may result in permanent damage to the CPU. USB ProXR Control with Analog to Digital Conversion 16-Channel USB 16-Channel ...