Table of ContentsConnecting to the Wildcard Bus Sellecting the Wildcard Address C code to initialize the AC Relay Wildcard (pdf) Forth code to initialize the AC Relay Wildcard (pdf) C code to control the AC Relay Wildcard (pdf) |
AC Relay Wildcard Users GuideSoftwareThis section describes the software that enables you to control the AC 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 AC 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 AC Relays on the AC Relay Wildcard are controlled by a Xilinx CPLD (Complex Programmable Logic Device). The AC 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_AC_Relay to turn on or off the relays and Read_AC_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 AC 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