NCD Essential Quick Start Guide For Fusion Series Controllers Digital IO
2014-10-27
: Controlanything Fusion Digital Io Quick Start Guide Fusion_Digital_IO_Quick_Start_Guide QSG
Open the PDF directly: View PDF
.
Page Count: 10
| Download | |
| Open PDF In Browser | View PDF |
NATIONAL CONTROL DEVICES Fusion Digital Input/Output Quick Start Guide NATIONAL CONTROL DEVICES Fusion Digital I/O Quick Start Guide National Control Devices, LLC PO Box 455 Osceola, MO 64776 Phone 417.646.5644 • Fax (866) 562-0406 IORelay.com © Copyright 2013 All Rights Reserved. Notice: Portions of this manual require internet access. Table of Contents Fusion Digital I/O Quick Start Guide ......................................... 1 Port Direction .................................................................................. 1 Port 1 Commands (Decimal Format)............................................... 4 Port 2 Commands (Decimal Format)............................................... 4 Port 1 Commands (Hexadecimal Format) ....................................... 4 Port 2 Commands (Hexadecimal Format) ....................................... 4 EEPROM Memory........................................................................... 5 EEPROM Memory Locations .......................................................... 5 Technical Support .................................................................... 6 Contact Information ......................................................................... 7 Notice: ....................................................................................................... 7 F U S I O N 1 Chapter S E R I E S Fusion Digital I/O Quick Start Guide The Fusion® Series is our fourth generation relay controller offering the ultimate relay control solution . . . without exception. 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 configured to read inputs, write outputs, or both in combination. When the port is set to all inputs, eight 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, eight LEDs can be controlled by software, allowing you to turn each LED on or off in any combination. It is easy to mix inputs and outputs, allowing users to read four switches and control four LEDs. Each I/O line on the Fusion controller may be configured to input or output, but you must set the status of all eight I/O lines at one time using a single command. Here’s an example: 236 236 236 2 2 2 255 0 15 Set I/O Lines 1 to 8 to Input Set I/O Lines 1 to 8 to Output Set I/O Lines 1-4 to Input, 5-8 to Output Rx: 255 Rx: 0 Rx: 15 The third byte in the Port Direction command is used to set the digital input or output state of all eight 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 Bit 7 IO 7 Bit 6 IO 6 Bit 5 IO 5 Bit 4 IO 4 Bit 3 1 IO 3 Bit 2 IO 2 Bit 1 IO 1 Bit 0 F U S I O N S E R I E S 128 64 32 16 8 4 2 1 IO 2 Bit 1 In 1 2 IO 1 Bit 0 Out 0 0 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 Bit 7 In 1 128 IO 7 Bit 6 Out 0 0 IO 6 Bit 5 In 1 32 IO 5 Bit 4 Out 0 0 IO 4 Bit 3 In 1 8 IO 3 Bit 2 Out 0 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: 2 Rx: 170 F U S I O N S E R I E S 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. 3 F U S I O N S E R I E S Port 1 Commands (Decimal Format) Value can be any number from 0 to 255, and follows the 8-bit binary standard. 236 236 236 0 1 2Write Output values to output bits of I/O port Read Input value from input bits of I/O Port Set Port Direction Command Rx: Rx: Rx: Port 2 Commands (Decimal Format) Value can be any number from 0 to 255, and follows the 8-bit binary standard. 236 236 236 0 1 2 2 2 2 Write Output values to output bits of I/O port Read Input value from input bits of I/O Port Set Port Direction Command Rx:
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 10 Language : en-US Tagged PDF : Yes Title : NCD Essential Quick Start Guide for Fusion Series Controllers Author : DeeAnn Creator : Microsoft® Word 2010 Create Date : 2014:10:27 14:33:35-05:00 Modify Date : 2014:10:27 14:33:35-05:00 Producer : Microsoft® Word 2010EXIF Metadata provided by EXIF.tools