Table of ContentsConnecting to the Wildcard Bus Sellecting the Wildcard Address C code to initialize the DC Relay Wildcard (pdf) Forth code to initialize the DC Relay Wildcard (pdf) C code to control the DC Relay Wildcard (pdf) |
DC Relay Wildcard Users GuideSoftwareThis section describes the software that enables you to control the DC Relay Wildcard. We first start with a description of how wildcards are addressed, then move on to how the relays are controlled, and finally present you with example software that initializes and controls the relays. Initializing the WildcardsSeveral bytes of memory on the Mosaic Controller starting at C000H are used to communicate with the DC Relay Wildcard. The page used for the memory’s extended address corresponds to the module address. For example, to communicate with wildcard 1 on the Mosaic Controller, use the 6 byte memory block starting at address C000H on page 1. The DC Relays on the DC Relay Wildcard are controlled by a Xilinx CPLD (Complex Programmable Logic Device). The DC Relay control lines on the CPLD must be configured as outputs for proper operation (on power up, the control lines are initialized as inputs). To initialize the module, simply create a function that is defined as follows. Both C and FORTH versions are presented.
Controlling A RelayOnce you have initialized the module, use Control_DC_Relay to turn on or off the relays and Read_DC_Relay_Status to read the status of all the relays. Note that the control lines are active low, which means that to turn a relay on, you have to write a 0 to the relay.ConclusionNow you are ready to start using your DC Relay Wildcard. All of the software routines listed in this document are also on the distribution diskette that accompanies each module.
|
Home|Site Map|Products|Manuals|Resources|Order|About Us
Copyright (c) 2006 Mosaic Industries, Inc.
Your source for single board computers, embedded controllers, and operator interfaces for instruments and automation