manufacturer of I/O-rich SBCs, operator interfaces, handheld instruments, and development tools for embedded control low cost single board computers, embedded controllers, and operator interfaces for scientific instruments & industrial control development tools for embedded control order our low cost I/O-rich embedded control products embedded controller manufacturer profile single board computers & embedded controllers development tools & starter kits for your embedded design operator interfaces with touchscreens and graphical user interface plug-in expansion modules for digital & analog I/O C language & Forth language integrated development tools, IDE single board and embedded computer accessories embedded controller enclosures, bezels, environmental gaskets
Table of Contents

Introduction

Hardware

Connecting to the Wildcard Bus

Sellecting the Wildcard Address

Software

Initializing the Wildcards

C code to initialize the AC Relay Wildcard (pdf)

Forth code to initialize the AC Relay Wildcard (pdf)

Controlling a Relay

C code to control the AC Relay Wildcard (pdf)

Forth code to control the AC Relay Wildcard (pdf)

Schematic

AC Relay Wildcard Users Guide

<< Previous |

Software

This 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 Wildcards

Several 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 Relay
Once 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.
Conclusion

Now 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.

<< Previous |


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