Home

Smart Star (SR9000) - Mouser Electronics

image

Contents

1. 1 38 Six 2 43 S 35 0 61 7 A SRVSKEVO Er 37 J z K 800002 Or gt Kul lesa O E E u14 Oa NA cs SL cl ei E mm OSA Ce 3 a O a Bo Battery ei lt Y H Y Lo d 3 53 1 se 89 7 Le 4 00 gt 102 Figure 20 CPU Card Dimensions 62 Smart Star SR9000 Table 6 lists the electrical mechanical and environmental specifications for the CPU Table 6 CPU Card Specifications Parameter Specification Board Size with optional 4 00 x 3 12 x 1 00 backup battery board 102 mm x 79 2 mm x 25 4 mm one RJ 45 Ethernet SR9150 only necia one 2 x 5 2 mm pitch serial programming port one 0 9 mm x 0 5 screw terminal connector strips accept 14 30 AWG or 0 05 1 5 mm wire Ethernet Interface Direct connection to 10 100 compatible Ethernet networks SR9150 only with 10Base T interface via RJ 45 connection Temperature 40 C to 70
2. a og c2 4 QQ z 8 5 T 800002 E 5 ml Us i O l 2 eet O aT O Ol E O RS gt ZC an Battery oC ii O Figure 16 CPU Card Connectors J4 and J5 User s Manual 39 Jumpers across pins 9 10 and 13 14 on header JP1 on the backplane are used to bring out the ACT and LNK LED signals to header J6 which is used to connect the optional LCD key pad module Remove these jumpers you may park them across pins 7 8 and 11 12 on header JP1 if you do not wish to use the ACT and LNK signals on the LCD keypad module ie HO 20 100001010 ol D TVS1 U2 a SR9010 H 3 o G PROCESSOR SLOT E T O SLOT 6 mo00000000000 000000000000
3. Battery Figure 22 CPU Card Areas Receiving Conformal Coating Any components in the conformally coated area may be replaced using standard soldering procedures for surface mounted components A new conformal coating should then be applied to offer continuing protection against the effects of moisture and contaminants NOTE For more information on conformal coatings refer to Rabbit Technical Note TN303 Conformal Coatings 66 Smart Star SR9000 6 4 Use of Rabbit 2000 Parallel Ports Figure 23 shows the Rabbit 2000 parallel ports Serial Port PCO PC2 PC4 Serial Ports CPU Control Port C RABBIT 2000 Port D PC1 PC3 PC5 Z Bus Reset i Real Ti lock A PC6 PC7 Programming Address Lines Watchdog S i UO Control EN a Y Clock Doubler RESET Backup Battery Support Figure 23 Smart Star CPU Card Rabbit 2000 Systems User s Manual 67 6 5 Exclusion Zone It is recommended that you allow for an exclusion zone of 3 80 mm around the Smart Star in all directions when the Smart Star is incorporated into an assembly that includes other components This exclusion zone that you keep free of other components and boards will all
4. R26 Om ON ON ON OM OM ei Part No 101 0541 Figure B 3 LCD Keypad Module Voltage Settings and Contrast Adjustment You can set the contrast on the LCD display of pre 2005 LCD keypad modules by adjust ing the potentiometer at R2 or by setting the voltage for 5 V by removing the jumper that was installed at the factory across pins 1 2 on header J5 as shown in Figure B 3 Only one of these two options is available on these older LCD keypad modules NOTE Older LCD keypad modules that do not have a header at J5 or a contrast adjust ment potentiometer at R2 are limited to operate only at 5 V and will work with the Smart Star The older LCD keypad modules are no longer being sold User s Manual 133 B 3 Keypad Labeling The keypad may be labeled according to your needs A template is provided in Figure B 4 to allow you to design your own keypad label insert L 2 35 gt 60 Figure B 4 Keypad Template To replace the keypad legend remove the old legend and insert your new legend prepared according to the template in Figure B 4 The keypad legend is located under the blue key pad matte and is accessible from the lef
5. Battery Figure 4 Programming Cable Connections NOTE Never disconnect the programming cable by pulling on the ribbon cable Carefully pull on the connector to remove it from the header NOTE Some PCs now come equipped only with a USB port It may be possible to use an RS 232 USB converter Part No 20 151 0178 with the programming cable sup plied with the Tool Kit Note that not all RS 232 USB converters work with Dynamic C 20 Smart Star SR9000 2 Apply power Plug the power supply in to a nearby outlet The CPU Card is now ready to be used NOTE A hardware RESET is accomplished by unplugging the power supply then plug ging it back in To power down the SmartStar unplug the power supply You should disconnect power before making any circuit adjustments or changing any connections to the SmartStar User s Manual 21 2 4 Installing Dynamic C If you have not yet installed Dynamic C version 7 06P3 or a later version do so now by inserting the Dynamic C CD from the Smart Star Tool Kit in your PC s CD ROM drive The CD will auto install unless you have disabled auto install on your PC If the CD does not auto install click Start gt Run from the Windows Start button and browse for the setup exe file on your CD drive Click OK to begin the installation once you have selected the setup exe file The online
6. Place tabs on card into alignment slot HTI L07S CO EE EE Flash EPROM 000000000000000 000000000000000 ECEE Note The plastic brackets Kine Forson on the CPU card are attached on the opposite side of the board relative To to the I O cards Y power supply Figure 5 Installing I O Cards on the Backplane 2 Position the new I O card above the backplane over any unused slot position SLOT 0 to SLOT 6 as shown in Figure 5 Note the slot number and the type of I O card since Dynamic C addresses the I O cards by slot number 3 Carefully insert the I O card header into the slot on the backplane and line up the tabs on the I O cards with the slots on the backplane as shown in Figure 5 4 Use the two 4 40 screws supplied with the I O card to anchor the plastic brackets on the CPU Card or the I O card firmly on the backplane Tighten the screws as needed using a Phillips screwdriver whose shaft is at least 3 7 cm long but is no thicker than 0 16 4 mm User s Manual 25 2 8 Where Do I Go From Here NOTE If you purchased your Smart Star through a distributor or Rabbit partner contact the distributor or partner first for technical support If there
7. This bit mapping of the external register address provides the register addresses for each slot as listed in Table D 2 Table D 2 Slot External Register Addresses Slot Number Address Range 0 0x6000 0x600F 1 0x6040 0x604F 2 0x6080 0x608F 3 0x60CO 0x60CF 4 0x6100 0x610F 5 0x6140 0x614F 6 0x6180 0x618F 174 Smart Star SR9000 D 1 Digital UO Card Channel Layout The Digital I O Card layout is complicated by the standard Rabbit method of minimizing chip layout while adding channel arrangement flexibility In particular the nibble wise layout of digital input channels requires fewer chips if fewer channels are desired This is a common feature on Rabbit products and should not surprise most users The digital out put channel layout is straightforward It is also possible to access the digital I O channels in banks of eight channels This method is significantly faster than reading eight channels one at a time and so was included in the function call Table D 3 Digital I O Card Bank Channel Mapping Local Board Address Input Bank Output Bank Input Channels Output Channels 0x00 0 0 3 8 11 0x01 2 4 7 12 15 0x02 0x03 User s Manual 175 D 2 A D Converter Card Channel Layout The A D Converter Card contains a single 11 input 12 bit A D converter TLC2543 The method of interfacin
8. 000000000000 Moooo0o0000000 000000000000 000000000000 000000000000 mooo000000000 000000000000 mooo000000000 000000000000 HoOoo000000000 mooo0o00000000 00000000000000000000000000 N a Moo0o00000000000000000000000 c mo00000000000 O Figure 17 Header JP1 Configurations for ACT and LNK Signals NOTE The RCM positions for pins 1 2 and 5 6 on header JP1 are reserved for future use and should not be used in customer applications at this time 40 Smart Star SR9000 3 4 Other Hardware 3 4 1 Clock Doubler The Smart Star CPU cards take advantage of the Rabbit 2000 microprocessor s internal clock doubler A built in clock doubler allows half frequency crystals to be used to reduce radiated emissions The 22 1 MHz frequency is generated using an 11 0592 MHz crystal The clock doubler is disabled automatically in the BIOS for crystals with a frequency above 12 9 MHz The clock doubler may be disabled if 22 1 MHz clock speeds are not required Disabling the Rabbit 2000 microprocessor s internal clock doubler will reduce power consumption and further reduce radiated emissions The clock doubler is disabled with a simple config uration macro as shown below 1 Select the Defines tab from the Dynamic C Options gt Project Options menu 2 Add the line CLOCK_DOUBLED 0 to always disable the clock doubler The clock doubler is en
9. Current Consumption UO Cards 5 V Supply V_USER Supply Digital I O SR9200 series 65 mA up to 200 mA output A D Converter SR9300 series D A Converter SR9400 BEE SE series Relay SR9500 series 10 mA 75 mA CPU Card 190 mA Maximum current 2 0 A per I O card 7 0 A for Smart Star system C 2 Batteries and External Battery Connections An onboard 265 mA h lithium coin cell on the CPU Card provides power to the real time clock and SRAM when external power is removed from the Smart Star control system This allows the CPU Card to continue to keep track of time and preserves the SRAM memory contents while the power is off The drain on the battery is typically less than 20 uA when there is no external power applied The battery can last 265 mA h 10 pA The drain on the battery is typically less than 4 uA when external power is applied The battery can last for 3 0 years 265 mA h E 7 5 years Since the shelf life of the battery is 10 years the battery can last for most of its shelf life when external power is applied most of the time 166 Smart Star SR9000 C 2 1 Replacing the Backup Battery The battery is user replaceable and is fitted in a battery holder To replace the battery lift up on the spring clip and slide out the old battery Use only a Panasonic CR2330 or equiv alent replacement battery and insert it into the battery holder with the side facing up NO
10. Crp 1 1 nF Rg e gy e Input Rin gt NAN 4 To ADC 100 kO ED VREF RBoTTOM A Rtop ST oe 100 nF HE Figure 33 Analog Input Amplifier Circuit The TLC2543 A D converter chip on the A D Converter Card uses synchronous Serial Port B and Timer AS on the Rabbit 2000 to do the A D conversions Figure 34 shows the complete pinout for the user interface on header J2 Note that pin 1 is indicated by a small arrow on the ribbon cable connector a N AIN1 AIN2 GND AIN5 AING AIN7 GND AIN10 5 V ADC 2 5 V oo 0 0 0 00 0 0 w8 D D o Oo D D D D D D Figure 34 A D Converter Card User Interface Pinout 88 Smart Star A D Converter Cards SR9300 8 3 User FWT Connections Connections to the A D Converter Cards are made via a ribbon cable connector or optional field wiring terminals that are either pluggable or have screw terminals Table 15 lists the Rabbit part numbers for the FWTs Table 15 Guide to FWT Selection Rabbit Part Number Pluggable Terminals Screw Terminals FWT Description 1 0 Cards te j FWT18 A D Converter 101 0421 101 0515 f 8 3 1 Pinouts Figure 35 shows the pinout for the FWTs used on the A D Converter Cards AINO AIN1 GND AIN2 AIN3 GND AIN4 AIN5 GND AING GND AIN7 AIN8 GND AIN9 AIN10 5 V ADC 2 5 V ADC 110 2119 310 4110 510
11. 73 Relay Cards oocncocn 119 LCD keypad module 135 Relay Cards 0 0 0 118 power distribution A D Converter Card 90 backplane oe 29 CPU Card zemren 29 D A Converter Card 105 Digital I O Card onneen 77 Relay Cards ee 120 Smart Star system o 30 power management 165 power supplies backup battery circuit 167 battery backup 166 battery backup circuit 167 battery life oe 166 chip select circuit 171 VRAM switch oe 168 power supply coccococcnccccccnccnncnno 12 programming flash vs RAM oo 43 programming cable 12 20 programming port 35 programming cable 12 20 37 PROG connector 20 37 switching between Program Mode and Run Mode 37 programming port 35 R Relay Cards function calls 122 relayQUt oseese 122 sample programs 121 relay circuit configurations 118 diodes rieni 118 SNUDDETS cocococcccccoccnconcnonoss 118 TOS OR 21 reset generator 169 UE 32 RS 485 network 33 termination and bias resis TOTS ise 34 S sample programs oooococccconccno 46 A D Converter Card 91 SSTARADL C 91 SSTARAD2 ue 91 SSTARAD3 C oe 91 D A Converter Card 106 ANAVOUT C 106 SSDACIC sucios 106 SSDAC2 C ais 106 SSDAC3 C wee 106 SSDAC4 C wee 106 Digital VO Card 719 SSTARIO
12. Smart Star SR9000 APPENDIX A FIELD WIRING TERMINALS Appendix A explains how to prepare the connector on an I O card to accept a field wiring terminal and how to secure the field wiring terminal to the I O card The dimensions for the field wiring terminals are included User s Manual 127 A 1 Selecting and Installing a Field Wiring Terminal Connections to the I O cards are made via a ribbon cable connector or optional field wiring terminals that are either pluggable or have screw terminals Three different Field Wiring Terminals FWTs are available Table A 1 lists the I O cards and the Rabbit part numbers for the corresponding FWTs Table A 1 Guide to FWT Selection Rabbit Part Number Pluggable Terminals Screw Terminals FWT Description UO Cards e e Digital I O SR9200 series FWT27 Relay SR9510 101 0420 101 0514 A D Converter SR9300 series a D A Converter SR9400 series nes 201 0919 FWT18R Relay SR9500 101 0422 101 0516 Before you can install the FWT you selected for your I O card you must remove the tabs from the connector on the I O card To do so move the tab inwards as far as possible as shown in Figure A 1 Then insert a screw driver into the space below the tab on the side of the connector and gently nudge the tab up and out If you are careful the tab will remain intact to be saved and snapped back in place should you need to use a ribbon cable conn
13. LEDs Seven user programmable LEDs The backlight adds approximately 650 mW to the power consumption The LCD keypad module has 0 1 IDC headers at J1 J2 and J3 for 0 100 physical connection to other boards or ES ribbon cables Figure B 2 shows the LCD keypad module footprint These Se values are relative to one of the 7 E E Fb mounting holes an or NOTE All measurements are in Y inches followed by millimeters Qe enclosed in parentheses All dimen se sions have a manufacturing toler SS y ance of 0 01 0 25 mm vl 0 200 _ _ 0 500 5 1 12 7 L 1 450 R 36 8 p 2 200 e 55 9 Figure B 2 User Board Footprint for LCD Keypad Module 132 Smart Star SR9000 B 2 Contrast Adjustments for All Boards Starting in 2005 LCD keypad modules were factory configured to optimize their contrast based on the voltage of the system they would be used in Be sure to select a KDUSV LCD keypad module for use with the Smart Star these modules operate at 5 V You may adjust the contrast using the potentiometer at R2 as shown in Figure B 3 LCD keypad modules configured for 3 3 V should not be used with the 5 V Smart Star because the higher voltage will reduce the backlight service life dramatically LCD Keypad Module Jumper Configurations SC Pins Factory ao e ox s a pap Contrast Adjustment
14. Smart Star SR9000 Modular C Programmable Control System User s Manual 019 0107 090519 L Smart Star SR9000 User s Manual Part Number 019 0107 090519 L e Printed in U S A 2002 2009 Digi International Inc All rights reserved No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permission of Digi International Permission is granted to make one or more copies as long as the copyright page contained therein is included These copies of the manuals may not be let or sold for any reason without the express written permission of Digi International Digi International reserves the right to make changes and improvements to its products without providing notice Trademarks Rabbit and Dynamic C are registered trademarks of Digi International Inc The latest revision of this manual is available on the Rabbit Web site www rabbit com for free unregistered download Digi International Inc www rabbit com Smart Star SR9000 TABLE OF CONTENTS Part I CPU Backplane Chapter 1 Introduction 9 LI EN 9 LZ User CONNECTIONS Usina aca 11 1 3 Optional Add Ons irritada e Ee Eea NEEE E E EE iA AE Ea eE AERA ES ES one 11 1 4 Development and Evaluation Tools 12 IS Net 12 ADS OM Ware ia do as 12 ERA E 13 Lat Design Guidelines 15 1 5 2 Interfacing the Smart Star to Other Devices cocooccnoccnococonnconononnnonnnconcconnncnn conc nonnn
15. 1 Ze Leave sufficient ventilation space Do not install the LCD keypad module directly above machinery that radiates a lot of heat for example heaters transformers and high power resistors Leave at least 8 20 cm distance from electric power lines and even more from high voltage devices When installing the LCD keypad module near devices with strong electrical or mag netic fields such as solenoids allow a least 3 8 cm more if necessary The LCD keypad module has strong environmental resistance and high reliability but you can maximize system reliability by avoiding or eliminating the following conditions at the installation site Abrupt temperature changes and condensation Ambient temperatures exceeding a range of 0 C to 50 C Relative humidity exceeding a range of 5 to 95 Strong magnetism or high voltage Corrosive gases Direct vibration or shock Excessive iron dust or salt Spray from harsh chemicals 136 Smart Star SR9000 B 5 2 Mounting Instructions A bezel and a gasket are included with the LCD keypad module When properly mounted in a panel the LCD keypad module bezel is designed to meet NEMA 4 specifications for water resistance Since the LCD keypad module employs an LCD display the viewing angle must be con sidered when mounting the display Install the LCD keypad module at a height and angle that makes it easy for the operator to see the screen B 5 2 1 Bezel Mount Instal
16. tors on any intervening Smart Star units in the network by removing both jumpers from header JP1 TIP Save the jumpers for possible future use by parking them across pins 1 3 and 4 6 of header JP1 Pins 3 and 4 are not otherwise connected to the CPU Card 34 Smart Star SR9000 3 2 1 3 Programming Port The CPU Card has a 10 pin programming header labeled J2 The programming port uses the Rabbit 2000 s Serial Port A for communication Dynamic C uses the programming port to download and debug programs The programming port is also used for the following operations e Cold boot the Rabbit 2000 on the RabbitCore module after a reset e Remotely download and debug a program over an Ethernet connection using the RabbitLink EG2110 e Fast copy designated portions of flash memory from one Rabbit based board the master to another the slave using the Rabbit Cloning Board Alternate Uses of the Serial Programming Port All three clocked Serial Port A signals are available as e asynchronous serial port e an asynchronous serial port with the clock line usable as a general CMOS input The serial programming port may also be used as a serial port via the DIAG connector on the serial programming cable In addition to Serial Port A the Rabbit 2000 startup mode SMODEO SMODE1 status and reset pins are available on the serial programming port The two startup mode pins determine what happens after a reset the Rabbit 2000
17. 148 mounting instructions field wiring terminals 128 glFillPolygon ec LCD keypad module 136 UO cards EE 25 ee Wee EE glFillVPolygon 147 O HOW tO S t coocoioccnincnarannonaons 53 SE SSC e options glGetBrushType EEN glGetPfStep E J glHScroll 155 P eliit sesane 144 jumper configurations 65 Les eae ee 154 pinout JP1 RS 485 bias and termina elPlotCircle 148 A D Converter Card user tion resistors 34 65 gIPlotDot 0 153 interface iris 88 JP2 flash memory bank glPlotLine 153 backplane SLOT 0 SLOT 6 select siveesssesesavsesnsivonnven 38 glPlotPolygon EEN sc ig Sees ARA 31 JPS flash memory bank elPlotVPolygon 146 CPU Card serial communica select eegenen 65 glPrintf scinsiasSescseneoctes 151 EE ER jumper locations 64 glPutChar conocio 151 D A Converter Card user jumper settings glPutFont coccion 150 interface io 103 digital inputs glRightl socios 154 Digital I O Card uu 72 pullup pulldown 76 glSetBrushType 152 digital inputs occ 75 digital outputs glSetContrast 145 digital outputs coo 77 sinking or sourcing 78 glSetPfStep 150 user interface oo 72 Ethernet port ee 36 180 Smart Star SR9000 pinout continued FWT A D Converter Card 89 D A Converter Card 104 Digital I O Card
18. An 8 bit value is returned when a key is pressed 0 Unused See keypadDef for default press codes cRelease is a key release code An 8 bit value is returned when a key is pressed 0 Unused cCntHoldis a hold tick which is approximately one debounce period or 5 us How long to hold before repeating 0 No Repeat cSpdLo is a low speed repeat tick which is approximately one debounce period or 5 us How many times to repeat 0 None cCntLo is a low speed hold tick which is approximately one debounce period or 5 us How long to hold before going to high speed repeat 0 Slow Only 160 Smart Star SR9000 cSpdHi is a high speed repeat tick which is approximately one debounce period or 5 us How many times to repeat after low speed repeat 0 None RETURN VALUE None SEE ALSO keyProcess keyGet keypadDef Scans and processes keypad data for key assignment debouncing press and release and repeat NOTE This function is also able to process an 8 x 8 matrix keypad RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef Get next keypress RETURN VALUE The next keypress or 0 if none SEE ALSO keyConfig keyProcess keypadDef Pushes the value of cKey to the top of the input queue which is 16 bytes deep PARAMETER cKey RETURN VALUE None SEE ALSO keyGet User s Manual 161 Configures the physical layout of the keypad with the default ASCH return key codes Keypad
19. One function is available to control the LEDs and can be found in the LIB SMRTSTAR SMRTSTAR LIB library LED on off control This function will only work when the LCD keypad module is installed on the Smart Star PARAMETERS led is the LED to control 0 LED DS1 1 LED DS2 2 LED DS3 3 LED DS4 4 LED DS5 5 LED DS6 6 LED DS7 value is the value used to control whether the LED is on or off 0 or 1 0 off l on RETURN VALUE None SEE ALSO brdInit User s Manual 143 B 8 2 LCD Display The functions used to control the LCD display are contained in the Dynamic C LIB DIS PLAYS GRAPHIC GRAPHIC LIB library When x and y coordinates on the display screen are specified x can range from 0 to 121 and y can range from 0 to 31 These numbers rep resent pixels from the top left corner of the display Initializes the display devices clears the screen RETURN VALUE None SEE ALSO glDispOnOFF glBacklight glSetContrast glPlotDot glBlock glPlotDot glPlotPolygon glPlotCircle glHScroll glVScroll glXFontInit glPrintf glPutChar glSetBrushType glBuffLock glBuffUnlock glPlotLine Turns the display backlight on or off PARAMETER onOf E turns the backlight on or off 1 turn the backlight on 0 turn the backlight off RETURN VALUE None SEE ALSO glInit glDispOnoff glSetContrast Sets the LCD screen on or off Data will not be cleared from the screen PARAMETER onOff turns the LCD screen on o
20. where slotnumber is 0 6 and channelnumber is 0 7 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 RETURN VALUE 0 if successful 1 control command unacceptable 2 EEPROM address unacceptable SEE ALSO anaOutEEWr User s Manual 107 Calibrates the response of the desired D A converter channel as a linear function using the two conver sion points provided Gain and offset constants are calculated and placed into global table dacCalib PARAMETERS channel is the D A converter output channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 7 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 valuel is the first D A conversion data point Use a value near 4095 to produce a lower output mea surement voltampl is the voltage current measurement corresponding to the first D A converter value Current values entered as milliamps will produce milliamp values and amp values entered will produce amp values value2 is the second D A conversion data point Use a value near 0 to produce a higher output mea surement voltamp2 is the voltage current measurement corresponding to the second D A converter value Current values entered as milliamps will produce milliamp values and amp values entered will produce amp valu
21. 4 20 mA or 0 004 0 020 A desired on the output channel RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaOut anaOutVolts anaOutCalib User s Manual 111 Writes the calibration constants gain and offset to the upper half of the EEPROM on the D A Converter Card PARAMETERS channel is the D A converter output channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 7 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 voltage is the voltage desired on the output channel RETURN VALUE 0 if successful 1 control command unacceptable 2 EEPROM address unacceptable 3 data value unacceptable SEE ALSO anaOutEERd 112 Smart Star D A Converter Cards SR9400 9 6 Electrical and Mechanical Specifications Figure 44 shows the mechanical dimensions for the D A Converter Card A A Sa Co O o ae KS CN Tm wm l Dalle SCH D3 Figure 44 D A Converter Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses User
22. channelnumber where slotnumber is 0 6 and channelnumber is 0 10 valuel is the first A D converter value volt1 is the voltage current corresponding to the first A D converter value Current values entered as milliamps will produce milliamp values and amp values entered will produce amp values value2 is the second A D converter value volt2 is the voltage current corresponding to the second A D converter value Current values entered as milliamps will produce milliamp values and amp values entered will produce amp values RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaIn analnVolts Writes the calibration constants gain and offset to the upper half of the EEPROM on the A D Converter Card PARAMETERS channel is the analog input channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 10 RETURN VALUE 0 if successful 1 control command unacceptable 2 EEPROM address unacceptable 3 data value unacceptable SEE ALSO anaInEERd _anaInEEWr User s Manual 93 Reads the state of an analog input channel and converts it to a digital value A timeout occurs causing the function to exit if the end of the conversion is not detected within 13 us PARAMETERS channel is the analog input chann
23. gle board computers to demonstrate how the two boards communicate with each other Use PCSEND EXE on the PC console side at the command prompt if you do not have a second board PCSEND EXE is located with source code in the SAMPLES LCD Keypad Windows directory TCP _RESPOND C waits for a message from another single board computer The mes sage received is displayed on the LCD and you may respond by pressing a key on the keypad The response is then sent to the remote single board computer e TCPSEND C This program and TCP_RESPOND C are executed on two separate sin gle board computers to demonstrate how the two boards communicate with each other Use PCRESPOND EXE on the PC console side at the command prompt if you do not have a second board PCRESPOND EXE is located with source code in the SAMPLES LCD Keypad Windows directory When a key on the keypad is pressed a message associated with that key is sent to a specified destination address and port The destination then responds to that message The response is displayed on the LCD Note that only the LEFT and UP scroll keys are set up to cause a message to be sent When using TCPSEND C and TCP_RESPOND C connect the CPU Card and the other single board computer to an Ethernet If you connect the them directly be sure to use a crossover Ethernet cable straight through Ethernet cables and a hub may be used instead 56 Smart Star SR9000 5 3 Where Do I Go From Here NOTE
24. s Manual Table 19 lists the electrical mechanical and environmental specifications for the D A Converter Card Table 19 D A Converter Card Specifications Parameter Specification a 2 73 x 3 00 x 0 44 EES 70 mm x 76 mm x 11 mm Connectors one 2 x 10 latch eject ribbon connector 0 1 inch pitch Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Power Requirements 5 V DC at 50 mA typical from backplane 5 V supply 15 V to 30 V DC 30 mA at 24 V DC RAW V_USER from backplane Number of Outputs 8 channels SR9400 0 V to 10 V 20 mA channel maximum Analog Output Ranges SR9410 10 V to 10 V 20 mA channel maximum SR9420 4 mA to 20 mA 10 V maximum Resolution 12 bits 0 4095 Conversion Time 0 2 ms channel including Dynamic C Output Stability 1 count SR9400 lt 1 Q Output Impedance SR9410 lt 1 Q SR9420 gt 100 KQ 114 Smart Star D A Converter Cards SR9400 PART V RELAY CARDS 115 User s Manual Smart Star Relay Cards SR9500 10 RELAY CARDS Chapter 10 describes the features of the Relay Card one of the I O cards designed for the Smart Star embedded control system The Smart Star is a modular and expandable embedded control system whose configura tion of I O A D Converter D A Converter and Relay Cards can be tailored to a large variety of demanding real time control and dat
25. 14 digBankOut 81 Ethernet cables 2 00 0 eee 51 CE compliant backplanes and digOut PO 81 Ethernet connections 51 CALS aoon 13 function calls 81 10Base T Ethernet card 51 design guidelines 15 function calls eee 80 Ethernet hub ee 51 LCD keypad module 13 digBankIn 0 0 eee 80 SEPS ci secccicoveleseedunseneercdeoae 51 chip select circuit 171 A erere steerer 80 Ethernet port clock doubler o 41 locations of I O banks 74 handling EMI and noise 36 conformal coating 0 0 0 0 64 sample programs 79 PINOUT cera 36 connections digital inputs eee eeeeeeee 76 exclusion ZONE sses 68 ETC 51 pulldown configuration 76 power supply 0 19 pullup configuration 76 programming cable 20 pullup pulldown jumper set A Ee 76 User s Manual 179 F K GIS Wap oo eee 152 SIU PT uerge 154 PEATULES divina 9 keypad template 134 elV Scroll ceeeceeecee 156 A D Converter Card 87 removing and inserting la glXFontInit 149 163 D A Converter Card 101 LEE 134 glXPutBitmap 156 163 Digital VO Card 1 0 71 L glXPutFastmap 157 Relay Cards 0 0 0 117 TextCursorLocation 158 field wiring terminals 11 1281 Cp keypad module 11 TextGotoXY cacon 158 guide to EWT selection contrast adjustment 133 TextPrintf coin 159 Se
26. ACT light flashes on the CPU Card while the ping is taking place and indicates the transfer of data The ping routine will ping the board four times and write a summary message on the screen describing the operation 5 2 4 Additional Demo Programs The program SMTP C SAMPLES SMRTSTAR TCPIP demonstrates a basic Smart Star system using the SMTP library to send an e mail when a keypress is detected on an LCD keypad module In order to run this sample program edit the IP address as for the pingme program edit the mail to e mail address compile the program and start it exe cuting An e mail corresponding to the keypad button that was pressed is sent The program SSI C SAMPLES SMRTSTAR TCPIP demonstrates how to make the Smart Star CPU Card a Web server This program allows you to turn the LEDs on an attached LCD keypad module on and off from a remote Web browser In order to run these sample programs edit the IP address as for the pingme program compile the program and start it executing Then bring up your Web browser and enter the following server address http 10 1 1 2 This should bring up the Web page served by the sample program The program SSI2 C SAMPLES SMRTSTAR TCPIP demonstrates the use of I O cards via instructions sent from a Web browser You will need an A D Converter Card a D A Converter Card or a relay card installed on the backplane in order for the Web browser to be able to initiate changes on one or more of th
27. A_SEN 0 7 DA_DATA 165 ku U10 DA_CLK d i S 100 Q 3 og L D A_OUT 0 7 33 pF SR9420 100 ANA D A_OUT 0 7 8 25 KQ Figure 38 D A Converter Card Circuit NOTE The D A_SEN 0 7 sensing inputs are not used when using the current source version model SR9420 of the D A Converter Card 102 Smart Star D A Converter Cards SR9400 Figure 39 shows the complete pinout for the user interface on header J1 Note that pin 1 is indicated by a small arrow on the ribbon cable connector Q D A_SENO D A_SEN1 D A_SEN2 D A_SEN3 D A_SEN4 AGND D A_SEN5 D A_SENG AGND AGND D A_OUTO D A_OUT1 GND D A_OUT2 D A_OUT3 D A_OUT4 D A_OUT5 D A_OUT6 D A_OUT7 D A_SEN7 ee H UO D o Db HDH ap Figure 39 D A Converter Card User Interface Pinout The D A Converter Card has eight analog output channels D A_OUT 0 7 and is also equipped with a remote sensing capability through sensing inputs D A_SEN 0 7 for the voltage amplifier versions of the D A Converter Card models SR9400 and SR9410 These sensing inputs compensate for the voltage drop across the wire leads of low impedance loads to provide a more precise output across the load Let s look at Figure 40 to see how this happens Assume the load is 500 Q If the imped ance of the wire used to connect the load to the output terminal on the D A Converter Card is 5 Q there will be a voltage drop of abou
28. BIG 7110 811 9110 0116 1119 2110 3112 4110 5112 61D 7112 DUR ne ee 0 0 ee eo ee CET eo eo eo ee eo ee eo 001 eo 0 01 Figure 35 FWT Pinout for A D Converter Cards User s Manual 89 8 4 Power Distribution Figure 36 shows the power distribution on the A D Converter Card BACKPLANE SLOT 0 6 Multiplexer Latch 5 V VccADC Precision 2 5 V reference Figure 36 A D Converter Card Power Distribution 90 Smart Star A D Converter Cards SR9300 8 5 Software 8 5 1 Sample Programs e SSTARAD1 C Demonstrates how to calibrate an A D converter channel using two known voltages and defines the two coefficients gain and offset These coefficients are then read back to compute the equivalent voltage e SSTARAD2 C Reads and displays voltage and equivalent values of each A D converter channel Calibrations must have been previously stored into flash memory before run ning this program See sample program SSTARAD3 C e SSTARAD3 cC Demonstrates how to calibrate all A D converter channels using two known voltages and defines the two coefficients gain and offset These coefficients are then read back to compute the equivalent voltage and are saved to flash memory 8 5 1 1 Running Sample Programs To run a sample program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run men
29. Before proceeding you will need to have the following items e If you don t have an Ethernet connection you will need to install a 10Base T Ethernet card available from your favorite computer supplier in your PC e Two RJ 45 straight through Ethernet cables and a hub or an RJ 45 crossover Ethernet cable The Ethernet cables and Ethernet hub are available from Rabbit in a TCP IP tool kit More information is available at www rabbit com 1 Install the CPU Card on the backplane and connect the power supply and the programming cable as shown in Chapter 2 Getting Started 2 Ethernet Connections e If you do not have access to an Ethernet network use a crossover Ethernet cable to con nect the installed CPU Card to a PC that at least has a 10Base T Ethernet card e If you have an Ethernet connection use a straight through Ethernet cable to establish an Ethernet connection to the installed CPU Card from an Ethernet hub These connec tions are shown in Figure 18 SR9150 SR9150 CPU Card CPU Card ZN User s PC Ethernet Ethernet cables o crossover aren To additional cable H network ub Direct Connection Le elements network of 2 computers Direct Connection Using a Hub Figure 18 Ethernet Connections User s Manual 51 3 Apply Power Plug in the powe
30. C ee 79 how to set IP address 53 LCD keypad module 141 ALPHANUNCC 141 COFTERMAC 141 DISPPONG C 141 DKADEMOL C 141 FUN Ciud cios 141 KEYBASIC C 134 141 KEYMENU C 141 LEED e 141 SCROLLING C 141 TEXT Ea iia 141 LCD keypad module with TCP IP MBOXDEMO C 56 142 TCP_RESPOND C 56 142 TCPSEND C 56 142 PONG idad 24 Relay Cards ee 121 SSTARRLY C 121 serial communication MASTER C 0 eee 46 SLAVE G sainan 46 SSTAR232 C nacie 46 SSTARSWC eee 46 TCP IP ta eS See 53 PINOGME Ce 55 SMTP eege 55 SOLE aa 55 A AA 55 serial communication function calls 49 serDRS485RxX 0 50 serDRS485Tx ee 49 SerMode ccceeseceeeees 49 programming port 35 RS 232 description 32 RS 485 description 33 RS 485 network 33 RS 485 termination and bias TESISCOLS nees 34 slot address layout 173 A D Converter Card 176 D A Converter Card 177 Digital VO Card 175 Relay Cards o ooonccnnnnicnccncn 178 Smart Star bus reset function calls 48 Smart Star initialization function calls 48 SMRTSTAR LIB function calls A Bede 48 brdResetBus 48 software 47 79 91 106 121 libraries
31. E EE E E E E 41 AS gi E 41 User s Manual 3 Chapter 4 Software 43 4 T Kummme Dynamic Erre ie 43 4 1 1 Upgrading Dynamic Guiana pie ti 45 4 1 1 1 Patchesand Bus Fixes cia a ia 45 A A oR as Ree AA A ON 45 4 27 Sample Pro Srams EE 46 43 Dynamic E Libraries ege ENEE EEN 47 4 4 Smart Star Backplane Function Calls ona n ran cnn nrn nono con corn con ano nncn nos 48 4 41 Board Resta tte 48 4 4 2 Board Ina aa 48 4 5 Serial Communication Calle iieis esnin eene Se Eskian eoe aor e ae siea 49 Chapter 5 Using the TCP IP Features 51 a Ethernet Conectate 51 5 2 TCP IP Sample Programs eu egene REENEN eg ee EEN ee 53 5 2 1 How to Set IP Addresses in the Sample Drograms cono nancnncrnncn 53 5 2 2 How to Set Up Your Computer for Direct Connect 54 3 23 Run the PINGME C Demo srta dia 33 5 2 4 Additional Demo Programs ooooccconncnnonnnononononnconccnnocnncn E o oE E SE rE rest KEKET aE ERE SEE 55 5 2 5 LCD Keypad Sample Programs Showing TCP IP Features oooooocnnonocnnonnnonconnnnnonnnonnconccnncnnoconons 56 3 3 Where Do IT Go From Here tuo ias 57 Chapter 6 Smart Star Specifications 59 6 1 Electrical and Mechanical Specifications esesseseeeessereseseeeesrestrrrseerssesresrsresteesreserrrnreersreeresrsreersre 60 6 1 1 Smart Star Backplane nirna e e E E A A E E E R 60 BE CRU e EE 62 6 2 Jumper Copttgeuta fong aseene E A dees sis EIS EEE TEEN AAE ORE TEN eee nets VEIN TASE 64 6 3 Conformal Coating cistitis 66 6 4 Use of Rabbit
32. Ground recommended ara Fa gt a leese ELENEN SL OSS J E S i d S ZC Ka W p j Ne L UU NR U Figure 11 Multidrop Smart Star Network User s Manual 33 The CPU Card comes with a 220 2 termination resistor and 681 bias resistors already installed and enabled with jumpers across pins 1 2 and 5 6 on header JP1 as shown in Figure 12 Factory Default SNENA i i een 8900002 8 bias 2 termi nation 6 bias Figure 12 RS 485 Termination and Bias Resistors For best performance the bias and termination resistors in a multidrop network should only be enabled on both end nodes of the network Disable the termination and bias resis
33. If you purchased your Smart Star through a distributor or Rabbit partner contact the distributor or partner first for technical support If there are any problems at this point e Use the Dynamic C Help menu to get further assistance with Dynamic C e Check the Rabbit Technical Bulletin Board at www rabbit com support bb e Use the Technical Support e mail form at www rabbit com support If the sample programs ran fine you are now ready to go on Additional sample programs are described in the Dynamic C TCP IP User s Manual Refer to the Dynamic C TCP IP User s Manual to develop your own applications An Introduction to TCP IP provides background information on TCP IP and is available on our Web site User s Manual 57 58 Smart Star SR9000 6 SMART STAR SPECIFICATIONS This chapter provides the specifications for the Smart Star back plane and CPU Card and describes the conformal coating User s Manual 59 6 1 Electrical and Mechanical Specifications 6 1 1 Smart Star Backplane Figure 19 shows the mechanical dimensions for the two Smart Star backplanes L3 Racal eet u2 1 Da Ln T m G O SOS NI VIMOS ce k H H gs Wu Lo a Q So E 20 9 39 2 1136 oz Of 5 asi ES Na q A ao y Je 42 J7 J8 Gol Yo i Jao os EI En Bo Ed mg E ct 8 Be es as E
34. Load to the High Current Outputs Each high current output is able to sink or source up to 200 mA continuously with a load limit of 40 V Each high current output may be switched independently or a whole bank may be switched at once The total current draw should be kept below 2 0 A when all high current outputs on one Digital I O Card are operating simultaneously and the total current draw from your V_USER RAW supply for all the 1 O cards should be kept below 7 0 A NOTE Note that the power supply provided in the Smart Star Tool Kit has a maxi mum output of 1 1 A 78 Smart Star Digital UO Cards SR9200 7 5 Software 7 5 1 Sample Programs e SSTARIO C Demonstrates digital I O using individual channels and whole banks The sample program is set up for 8 inputs and 16 outputs If necessary you may change the macros in the sample program to match your Digital I O Card 7 5 1 1 Running Sample Programs To run a sample program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The CPU Card must be connected to a PC using the programming cable as described in Section 2 3 Programming Cable Connections More complete information on Dynamic C is provided in the Dynamic C User s Manual 7 5 2 Dynamic C Libraries The SMRTSTAR directory contains libraries required to operate the Smart Star control system e SMRTSTAR LIB This library s
35. O and 1 D3 0 D A converter chip select channels 2 and 3 dd D4 0 D A converter chip select channels 4 and 5 D5 0 D A converter chip select channels 6 and 7 0 EEPROM clock line low p 1 EEPROM clock line high D7 X EEPROM data line External reads and writes IORD and IOWR control the data direction User s Manual 177 D 4 Relay Card Channel Layout The Relay Card layout is complemented by the standard Rabbit method of minimizing chip layout while adding channel arrangement flexibility In particular the nibble wise layout of the relay channels requires fewer chips if fewer channels are desired This is a common feature on Rabbit products and should not surprise most users The relay channel layout is straightforward Table D 6 Relay Card Channel Mapping Local Board SR9500 SR9510 Address Relay Channels Relay Channels 0x00 RELO RELO 0x01 RELI RELI 0x02 REL2 REL2 0x03 REL3 REL3 0x04 REL4 REL4 0x05 RELS RELS 0x06 REL6 0x07 REL7 178 Smart Star SR9000 INDEX A CPU Card digital outputs attaching to backplane 18 connecting a load 78 A D Converter Card dimensions a sscssnininissscosvns 62 sinking or sourcing function calls 0 eee 92 D jumper settings 78 see e EEN e dimensions analInCalib HERA ns D A Converter Card A D Converter Card 96 A E SE ER backplane nn 60 analnEEWrT eee 93 E OUP blin S
36. Screw Terminals FWT Description 1 0 Cards FWT18R Relay SR9500 101 0422 101 0516 FWT27 Relay SR9510 101 0420 101 0514 10 3 1 Pinouts Figure 47 shows the pinout for the FWT18R FWT27 FWTs used on the Relay Cards SR9500 6 relay card R9510 8 relay card Mo GND 2 Q RELONO 3 RELocom 4 Q RELONC 5 REL1NO 11 0 ello llreL1com 2119 7 REL1NC 3110 8 REL2NO SIS 9 IREL2com ao K a 610 REL2NC Y 11 a REL3NO I 9912 7 ren3com 9913 llo lreL3nc O Silo reLano SS 315 REL4com SS 16 REL4NC Se o 17 REL5NO ee e s18 D REL5COM 1410 19 REL5NC 15110 20llo reLeno 16110 21 lo reLecom 172 22 O REL6NC 180 23 REL7NO 24 llo reL7com 25 REL7NC 261 27llo ll eno Figure 47 FWT Pinouts for Relay Cards User s Manual 119 10 4 Power Distribution Figure 48 shows the power distribution on the Relay Card BACKPLANE SLOT 0 6 Multiplexer Latch 12 V linear 12 V coil actuation voltage Comparator Figure 48 Relay Card Power Distribution The relay coil actuation voltage is 12 V and so V_USER should be 12 V to 30 V DC The V_USER supply passes through a linear regulator and comparator which are in parallel The comparator is set for approximately 13 9 V and as long as V_USER is more than 13 9 V the 12 V from the linear regulator will pro
37. Users can write compile and test C and assembly code without leaving the Dynamic C development environment Debugging occurs while the application runs on the target Alternatively users can compile a program to an image file for later loading Dynamic C runs on PCs under Windows 95 or later Pro grams can be downloaded at baud rates of up to 460 800 bps after the program compiles User s Manual 43 Dynamic C has a number of standard features e Full feature source and or assembly level debugger no in circuit emulator required e Royalty free TCP IP stack with source code and most common protocols e Hundreds of functions in source code libraries and sample programs gt Exceptionally fast support for floating point arithmetic and transcendental functions gt RS 232 and RS 485 serial communication gt Analog and digital I O drivers gt 1 C SPI GPS encryption file system gt LCD display and keypad drivers e Powerful language extensions for cooperative or preemptive multitasking e Loader utility program to load binary images into Rabbit targets in the absence of Dynamic C e Provision for customers to create their own source code libraries and augment on line help by creating function description block comments using a special format for library functions e Standard debugging features gt Breakpoints Set breakpoints that can disable interrupts gt Single stepping Step into or over functions at a source o
38. and data acquisition applications The typical Smart Star system consists of a rugged backplane with a power supply a CPU card and one or more I O cards The CPU card plugs into a designated slot on the back plane chassis which has seven additional slots available for I O cards to be used in any combination A high performance Rabbit 2000 microprocessor on the CPU card provides fast data processing 9 1 D A Converter Card Features Three models of D A Converter Cards are available as shown in Table 17 Table 17 Smart Star D A Converter Cards UO Card Model Features SR9400 12 bit D A converter 8 channels 0 V 10 V D A Converter SR9410 12 bit D A converter 8 channels 10 V 10 V SR9420 12 bit D A converter 8 channels 4 mA 20 mA User s Manual 101 9 2 User Interface Figure 38 shows the D A converter circuit A buffer U6 buffers the data signals DO D7 from the Smart Star backplane and sends them to the D A converter U2 U5 Signals D2 D5 are used to switch the chip select line to identify which D A converter will perform the conversion The model of D A Converter Card determines the analog output ranges 0 V to 10 V 10 V to 10 V or 4 20 mA The different voltage or current ranges are handled with different feedback resistors as shown in Figure 38 A switching regulator provides a regu lated power supply for the op amps 33 pF SR9400 SR9410 SV 825 kQ D
39. and the programming cable User s Manual 37 3 3 2 Memory 3 3 2 1 SRAM The Smart Star CPU Cards are designed to accept 128K or 512K of static RAM packaged in an SOIC case Standard CPU Cards come with 128K of SRAM 3 3 2 2 Flash EPROM The Smart Star CPU Card are also designed to accept 128K to a total of 512K of flash memory packaged in a TSOP case The CPU cards come with two 256K flash memory chips NOTE Rabbit recommends that any customer applications should not be constrained by the sector size of the flash memory since it may be necessary to change the sector size in the future A Flash Memory Bank Select jumper configuration option based on O Q surface mounted resistors exists at header JP5 on the CPU Card This option used in conjunction with some configuration macros allows Dynamic C to compile two different co resident programs for the upper and lower halves of the 256K flash in such a way that both programs start at logical address 0000 This is useful for applications that require a resident download man ager and a separate downloaded program See Technical Note 218 Implementing a Serial Download Manager for a 256K Flash for details 38 Smart Star SR9000 3 3 3 Other Connectors The connectors labeled J4 and J5 in Figure 16 are reserved for future use and should not be used in customer applications at this time
40. brackets to secure the LCD keypad module to the panel using the four 4 40 screws and washers included with the LCD keypad module The four screw positions are indi cated with the number 1 in Figure B 10 If your panel is thick use a 4 40 screw that is approximately 3 16 5 mm longer than the thickness of the panel 3 Use a ribbon cable to connect header J6 on the backplane to header J1 on the LCD key pad module Note the pin 1 positions reflected by the red colored line in the ribbon cable shown in Figure B 10 Bezel Gasket jogoo oa oflo o o o Panel 5 E my DE orm 00000000000000000 00000000000000000 00000000000000000 00000000000000000 00000000000000000 00000000000000000 OTE AS en Der Figure B 10 Install Smart Star Backplane Behind LCD Keypad Module 4 Secure the Smart Star backplane using four 4 40 x 1 2 or 6 32 x 12 screws at the screw positions indicated with the number 2 in Figure B 10 Brackets and ribbon cables are sold separately Note that only a Smart Star assembly using the SR9050 backplane can be panel mounted 140 Smart Star SR9000 B 7 Sample Programs The following sample programs are found in the SAMPLES LCD Keypad 122x32_1x7 folder ALPHANUM C Demonstrates how
41. carriage return 4 Creating 2 different TEXT windows for display 5 Displaying different FONT sizes User s Manual 141 The following sample programs found in the SAMPLES LCD Keypad 122x32_1x7 TCPIP folder are targeted at the Ethernet enabled versions of the Smart Star and the BL2110 Remember to configure the IP address netmask and gateway as indicated in the sample programs e MBOXDEMO C This program implements a web server that allows e mail messages to be entered that are then shown on the LCD display The keypad allows you to scroll within messages flip to other e mails mark messages as read and delete e mails When a new e mail arrives an LED turns on and turns off once the message has been marked as read A log of all e mail actions is kept and can be displayed in the Web browser All current e mails can also be read with the Web browser When using MBOXDEMO C connect the Smart Star and a PC or other device with a Web Browser to an Ethernet If you connect the PC and the Smart Star directly be sure to use a crossover Ethernet cable strait through Ethernet cables and a hub may be used instead e TCP_RESPOND C This program and TCP_SEND C are executed on two separate sin gle board computers to demonstrate how the two boards communicate with each other Use PCSEND EXE on the PC console side at the command prompt if you do not have a second board PCSEND EXE is located with source code in the SAMPLES LCD K
42. chkWDTO nosses 182 Smart Star SR9000 SCHEMATICS 090 0129 CPU Card SR9150 Schematic www rabbit com documentation schemat 090 0129 pdf 090 0143 Backplane SR9010 Schematic www rabbit com documentation schemat 090 0143 pdf 090 0130 Backplane SR9050 Schematic www rabbit com documentation schemat 090 0130 pdf 090 0101 Digital I O Card Sinking SR9200 Schematic www rabbit com documentation schemat 090 0101 pdf 090 0118 Digital UO Card Sourcing SR92x5 Schematic www rabbit com documentation schemat 090 0118 pdf 090 0086 A D Converter Card SR9300 Schematic www rabbit com documentation schemat 090 086 pdf 090 0121 D A Converter Card SR9400 Schematic www rabbit com documentation schemat 090 0121 pdf 090 0098 6 Relay Card SR9500 Schematic www rabbit com documentation schemat 090 0098 pdf 090 0108 8 Relay Card SR9510 Schematic www rabbit com documentation schemat 090 0108 pdf 090 0102 FWT18 Schematic www rabbit com documentation schemat 090 0102 pdf 090 0106 FWT18R Schematic www rabbit com documentation schemat 090 0106 pdf 090 0103 FWT27 Schematic www rabbit com documentation schemat 090 0103 pdf User s Manual 183 090 0125 LCD Keypad Module Schematic www rabbit com documentation schemat 090 0125 pdf 090 0128 Programming Cable Schematic www rabbit com documentation schemat 090 0128 pdf You may use the URL information provided above to access the latest schematics
43. directly Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information Rabbit Semiconductor 20 101 0390 20 101 0512 20 101 0738 20 101 0487 20 101 0486 20 101 0506 20 101 0423 20 101 0504 20 101 0391 20 101 0775
44. documentation is installed along with Dynamic C and an icon for the docu mentation menu is placed on the workstation s desktop Double click this icon to reach the menu If the icon is missing create a new desktop icon that points to default htm in the docs folder found in the Dynamic C installation folder The latest versions of all documents are always available for free unregistered download from our Web sites as well The Dynamic C User s Manual provides detailed instructions for the installation of Dynamic C and any future upgrades NOTE If you have an earlier version of Dynamic C already installed the default instal lation of the later version will be in a different folder and a separate icon will appear on your desktop 22 Smart Star SR9000 2 5 Starting Dynamic C Once the CPU Card is installed and connected as described above start Dynamic C by double clicking on the Dynamic C icon or by double clicking on dcrab_XXXX exe in the Dynamic C root directory where XXXX are version specific characters Dynamic C defaults to using the serial port on your PC that you specified during installa tion If the port setting is correct Dynamic C should detect the CPU Card and go through a sequence of steps to cold boot the CPU Card and to compile the BIOS Some versions of Dynamic C will not do the initial BIOS compile and load until the first time you com pile a program If you receive the message No Rabbit Processor Det
45. exist in the font set are printed all others are skipped For example Wal WM n and r ASCII backspace tab new line and carriage return respectively will be printed if they exist in the font set but will not have any effect as control characters Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the top left corner of the text y is the y coordinate row of the top left corner of the text pInfois a font descriptor pointer fmt is a formatted string are formatted string conversion parameter s EXAMPLE glprintf 0 0 fi12x16 Test d n count RETURN VALUE None SEE ALSO glXFontInit User s Manual 151 Increments LCD screen locking counter Graphic calls are recorded in the LCD memory buffer and are not transferred to the LCD if the counter is non zero NOTE glBuffLock and gl1BuffUnlock can be nested up to a level of 255 but be sure to balance the calls It is not a requirement to use these procedures but a set of glBuff Lock and glBuffUnlock bracketing a set of related graphic calls speeds up the rendering significantly RETURN VALUE None SEE ALSO glBuffUnlock glSwap Decrements the LCD screen locking counter The contents of the LCD buffer are transferred to the LCD 1f the counter goes to zero RETURN VALUE None SEE ALSO glBuffLock glSwap Checks the LCD screen locking counter The cont
46. in xmem PARAMETERS pInfois a pointer to the font descriptor to be initialized pixWidth is the width in pixels of each font item pixHeight is the height in pixels of each font item startChar is the value of the first printable character in the font character set endChar is the value of the last printable character in the font character set xmemBuf fer is the xmem pointer to a linear array of font bitmaps RETURN VALUE None SEE ALSO glPrinf Returns the xmem address of the character from the specified font set PARAMETERS pInfo is the mem address of the bitmap font set letter is an ASCII character RETURN VALUE xmem address of bitmap character font column major and byte aligned SEE ALSO glPutFont glPrintf User s Manual 149 Puts an entry from the font table to the page buffer and on the LCD if the buffer is unlocked Each font character s bitmap is column major and byte aligned Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate column of the top left corner of the text y is the y coordinate row of the top left corner of the text pInfo is a pointer to the font descriptor code is the ASCII character to display RETURN VALUE None SEE ALSO glFontCharAddr glPrintf Sets the glPrintf printing step direction The x and y step directions are independent signed values The actual step increments depend on the height a
47. is either cold booted or the program begins executing at address 0x0000 The status pin is used by Dynamic C to determine whether a Rabbit microprocessor is present The status output has three different programmable functions 1 It can be driven low on the first op code fetch cycle 2 It can be driven low during an interrupt acknowledge cycle 3 It can also serve as a general purpose CMOS output The RESET_IN pin is an external input that is used to reset the Rabbit 2000 and the onboard peripheral circuits on the Smart Star The serial programming port can be used to force a hard reset on the Smart Star by asserting the RESET_IN signal Refer to the Rabbit 2000 Microprocessor User s Manual for more information User s Manual 35 3 2 1 4 Ethernet Port SR9150 only Figure 13 shows the pinout for the Ethernet port J2 on the CPU Card Note that there are two standards for numbering the pins on this connector the convention used here and numbering in reverse to that shown Regardless of the numbering convention followed the pin positions relative to the spring tab position located at the bottom of the RJ 45 jack in Figure 13 are always absolute and the RJ 45 connector will work properly with off the shelf Ethernet cables ETHERNET RJ 45 Plug Figure 13 RJ 45 Ethernet Port Pinout RJ 45 pinouts are sometimes numbered opposite to the way shown in Figure 13 Two LEDs are placed behind the RJ 45 Ethernet jack on
48. onboard snubbers Relay SR9510 8 SPDT relays no snubbers 10 Smart Star SR9000 1 2 User Connections Connections to the I O cards are made via a ribbon cable connector or optional field wir ing terminals that are either pluggable or have screw terminals Three different Field Wir ing Terminals FWTs are available Table 2 lists the I O cards and the Rabbit part numbers for the corresponding FWTs Table 2 Guide to FWT Selection Rabbit Part Number Pluggable Terminals Screw Terminals FWT Description 1 0 Cards BE Digital I O FWT27 Relay SR9510 101 0420 101 0514 A D Converter FWT18 D A Converter 101 0421 101 0515 FWTI8R Relay SR9500 101 0422 101 0516 NOTE Appendix A Field Wiring Terminals provides further information on FWTs including their dimensions 1 3 Optional Add Ons The LCD keypad module is the only available optional add on Further details on the LCD keypad module are provided in Appendix B Visit our Web site for up to date information about additional add ons and features as they become available The Web site also has the latest revision of this user s manual User s Manual 11 1 4 Development and Evaluation Tools 1 4 1 Tool Kit The Tool Kit has the hardware essentials that you need to create and use your own Smart Star control system The items in the Tool Kit and their use are as follows e Smart Star SR9000
49. or on 122 Smart Star Relay Cards SR9500 10 6 Electrical and Mechanical Specifications Figure 49 shows the mechanical dimensions for the Relay Card NOTE All diagram and graphic measurements are in inches followed by millimeters a O a a Aa a a a o E 3 00 76 1 88 DUUUUSUUUUU 48 aoaaaninanoa E UUUUUTUDUUUU 2 49 63 Figure 49 Relay Card Dimensions enclosed in parentheses 2 73 70 User s Manual 123 Table 22 lists the electrical mechanical and environmental specifications for the Relay Card Table 22 Relay Card Specifications Parameter Specification Board Size Conia etm st Connectors one 2 x 17 latch eject ribbon connector 0 1 inch pitch Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing 5 V DC at 10 mA from backplane 5 V supply Power Requirements 12 V to 30 V DC 10 mA at 24 V DC RAW V_USER from backplane Relay Switching Contacts 30 V DC at 1 Aor 48 V AC at 0 5 A SR9500 1 SPDT 5 SPST N O COM with snubbers Relays SR9510 8 SPDT N O N C COM no snubbers 124 Smart Star Relay Cards SR9500 PART VI APPENDICES
50. physical mapping 1 x 7 0 4 1 5 2 6 3 E ITU KR R Ka l E where D represents Down Scroll U represents Up Scroll R represents Right Scroll L represents Left Scroll represents Page Down represents Page Up E represents the ENTER key Example Do the followingfor the above physical vs ASCII return key codes keyConfig 3 R 0 0 0 0 O keyConfig 6 E 0 0 0 0 0 keyConfig 2 D 0 0 0 0 O keyConfig 4 0 0 0 0 O keyConfig 1 U 0 0 0 0 0 keyConfig 5 0 0 0 0 O keyConfig 0 L 0 0 0 0 O Characters are returned upon keypress with no repeat RETURN VALUE None SEE ALSO keyConfig keyGet keyProcess Writes 1 to each row and reads the value The position of a keypress is indicated by a zero value in a bit position PARAMETER pcKeys is a pointer to the address of the value read RETURN VALUE None SEE ALSO keyConfig keyGet keypadDef keyProcess 162 Smart Star SR9000 B 9 Font and Bitmap Converter A Font and Bitmap Converter tool is available to convert Windows fonts and mono chrome bitmaps to a library file format compatible with Rabbit s Dynamic C applications and graphical displays Non Roman characters can also be converted by applying the monochrome bitmap converter to their bitmaps Start the Font and Bitmap Converter tool by double clicking on the fbmenvtr exe file in the Dynamic C dire
51. the Digital I O Card PARAMETERS channel is the digital output channel to write channel should be passed as channel slotnumber 128 channelnumber channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 15 value is the output value 0 or 1 RETURN VALUE None SEE ALSO digBankOut digIn digBankin Writes a byte value to Bank 1 or Bank 2 if installed digital output channels Bank 1 consists of OUTO OUT7 and Bank 2 consists of OUT8 OUT15 PARAMETER bank is the bank of digital output channels to write bank should be passed as bank slotnumber 16 banknumber bank BankAddr slotnumber banknumber where SLotnumber is 0 6 and banknumber is or 2 value is the output value where each bit corresponds to one channel RETURN VALUE An input value in the lower byte where each bit corresponds to one channel SEE ALSO digOut digIn digBankIn User s Manual 81 7 6 Electrical and Mechanical Specifications Figure 32 shows the mechanical dimensions for the Digital I O Card A A om aka Se CN Figure 32 Digital I O Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses Smart Star Digital UO Cards SR9200 82 Table 13 lists the electrical mechanical and en
52. the functions needed by the Smart Star sys tems including Digital I O Cards Relay Cards A D Converter and D A Converter Cards and serial communication Other functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C Function Reference Manual 106 Smart Star D A Converter Cards SR9400 9 5 3 Smart Star D A Converter Card Function Calls Turns off disables voltage regulator for output channel op amps on all D A Converter Cards leaving all output channels in a high impedance state RETURN VALUE None See Also anaOutEnable anaOut anaOutVolts anaOutmAmps Turns on enables voltage regulator for output channel op amps on all D A Converter Cards NOTE The voltage regulator on off is disabled off at power up or reset All output channels must be configured to the required voltage or current outputs before calling the ana0utEnable function since unconfigured channels will be set automatically to the maximum output RETURN VALUE l None SEE ALSO anaOutDisable anaOut anaOutVolts anaOutmAmps The D A Converter Card calibration constants gain and offset are stored in the factory in the upper half of the EEPROM on the D A Converter Card Use this function to read the D A Converter Card calibra tion constants into the global table dacCalib PARAMETERS channel is the D A converter output channel channel should be passed as channel slotnumber 128 channelnumber
53. to recalibrate a D A converter channel using two known voltages and shows how to define the two coefficients gain and offset that will be rewritten into the D A Converter Card s EEPROM e SsDAC2 C Demonstrates how to recalibrate a D A converter channel using an A D Converter Card andtwo known voltages Shows how to define the two coefficients gain and offset that will be rewritten into the D A Converter Card s EEPROM e SSDAC3 c Demonstrates how to recalibrate a D A converter channel using two known currents and shows how to define the two coefficients gain and offset that will be rewritten into the D A Converter Card s EEPROM e sspac4 c Demonstrates how to recalibrate a D A converter channel using an A D Converter Card two known currents Shows how to define the two coefficients gain and offset that will be rewritten into the D A Converter Card s EEPROM 9 5 1 1 Running Sample Programs To run a sample program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The CPU Card must be connected to a PC using the programming cable as described in Section 2 3 Programming Cable Connections More complete information on Dynamic C is provided in the Dynamic C User s Manual 9 5 2 Dynamic C Libraries The SMRTSTAR directory contains libraries required to operate the Smart Star control system e SMRTSTAR LIB This library supports all
54. when power is supplied to the CPU Card User s Manual 167 C 2 3 Power to VRAM Switch The VRAM switch shown in Figure C 2 allows the battery backup to provide power when the external power goes off The switch provides an isolation between 5 V and the battery when 5 V goes low This prevents the 5 V line from draining the battery 5 V R38 VRAM not installed A DO A kd oe Lt FDV302P R37 10 kQ Q7 MMBT3904 Figure C 2 VRAM Switch Transistor Q6 is needed to provide a very small voltage drop between 5 V and VRAM lt 100 mV typically 10 mV so that the processor lines powered by 5 V will not have a significantly different voltage than VRAM When the CPU Card is not resetting pin 2 on U4 is high the RES line will be high This turns on Q6 causing its collector to go low This turns on Q7 allowing VRAM to nearly equal 5 V When the CPU Card is resetting the RES line will go low This turns off Q6 and Q7 pro viding an isolation between 5 V and VRAM The battery backup circuit keeps VRAM from dropping below 2 V 168 Smart Star SR9000 C 2 4 Reset Generator The CPU Card uses a reset generator U4 to reset the Rabbit 2000 microprocessor when the voltage drops below the voltage necessary for reliable operation The reset occurs between 4 50 V and 4 75 V typically 4 63 V The reset can be initiated either externally or by a watchdog timeout WDTOUT on the Ra
55. will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 X3 y3 RETURN VALUE None SEE ALSO glPlotPolygon glFillPolygon gl1FillVPolygon Plots the outline of a polygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices y1 is the y coordinate of the first vertex x1 is the x coordinate of the first vertex y2 is the y coordinate of the second vertex x2 is the x coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glPlotVPolygon glFillPolygon glFillVPolygon 146 Smart Star SR9000 Fills a polygon in the LCD page buffer and on the LCD screen if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices pFirstCoord is a pointer to array of vertex coordinates x1 y1 x2 y2 x3 y3 RETURN VALUE None SEE ALSO glFillPolygon glPlotPolygon glPlotVPolygon Fills a polygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon tha
56. 0 R39 R3 RI a D27 GKR RES D35 D34 D33 D32 D31 D30 D29 D28 D26 Ge 00000000000 00000000000 R67 C51 C43 R59 R51 Bank 0 inputs Bank 2 inputs IA Bank 1 Bank 2 outputs outputs SOURCING OUTPUTS DEE DCH a 28882 Bank 2 inputs o00000000000000000 0000000000000000Nn Quo Bus ES em EE OC Hr BERSCHENS SEH Ba E EMR E EEE eh EE 0000000000000 000000000000Nn Figure 26 Locations of Banks Bank 2 outputs 74 Smart Star Digital UO Cards SR9200 The I O points on Bank 0 are always inputs and the I O points on Bank are always out puts The I O points on Bank 2 were configured at the factory as either inputs or outputs depending on the model of the Digital I O Card Table 10 lists the factory configurations Table 10 Digital I O Card Bank 2 Factory Configurations Model Bank 2 Configured As SR9200 Inputs SR9210 Sinking outputs SR9220 SR9205 Inputs SR9215 Sourcing outputs SR9225 The operation of Bank 2 is determined by the components on the Digital I O Card There 1s no jumper setting to select between inputs and outputs for
57. 11 128 dimensions 131 TextPutChar 159 A D Converter Card 89 header pinout coccion 135 TextWindowFrame 157 D A Converter Card 104 T O address assignments 135 LEDs Digital I O Card 73 keypad function calls 143 Relay Cards coca 119 Tinci n calls CA 143 installation we 128 KeyConfig occ 160 mounting instructions 136 positioning on T O card 128 keyGet issn rue 161 removing and inserting keypad flash memory keylnit coccion 160 label accionista 134 lifetime write cycles 43 keypadDef 162 sample programs 141 font and bitmap COVELL gt 163 keyProcess oo 161 VETSIONS ie ie niii 131 FWT See field wiring terminals Keygen geed 162 M H keyUnget oe 161 keypad template 134 memory sesser 38 headers LCD display flash EPROM configuration Iliana 34 function calls for different sizes 38 glBackLight 144 SRAM configuration for glBlankScreen 145 different sizes 38 V O address assignments gIBlock we 145 models LCD keypad module 135 glBuffLock 152 A D Converter Card 87 VO cards glBuffUnlock 152 D A Converter Card 101 attaching to backplane 25 glDispOnOff 144 Digital UO Card 71 installation SIDOWNI 1 155 Relay Cards cececeee 117 CPU Card o 18 glFillCircle 04s
58. 11 conditioned channels 0 V to 10 V max 22 V DC Analog Input Ranges 10 V to 10 V max 40 V DC 4 mA to 20 mA max 30 mA Resolution 12 bits 0 4095 Conversion Time 0 13 ms channel includes 0 08 ms channel for raw count including Dynamic C KO Typical 4 count maximum 1 count E 20 C to 70 C Repeatability Typical 1 count maximum 2 counts 40 C to 20 C Typical 1 count maximum 2 counts 25 C Accuracy 4 counts 40 C and 70 C Input Impedance SR9300 0 V to 10 V 100 kQ min SR9310 10 V to 10 V 100 kQ min SR9320 4 mA to 20 mA 249 Q 1 Linearity Error end to end 1 count The A D Converter Card is protected against transients that might exceed the maxi mum ratings Accuracy at temperature extremes can be improved by recalibrating the A D Converter Card at the temperature it will be used at User s Manual 97 98 Smart Star A D Converter Cards SR9300 PART IV D A CONVERTER CARDS User s Manual 99 Smart Star D A Converter Cards SR9400 9 D A CONVERTER CARDS Chapter 9 describes the features of the D A Converter Card one of the I O cards designed for the Smart Star embedded control system The Smart Star is a modular and expandable embedded control system whose configura tion of I O A D Converter D A Converter and Relay Cards can be tailored to a large variety of demanding real time control
59. 2000 Parallel Porte 67 E Te EE 68 Part II Digital VO Cards Chapter 7 Digital UO Cards 71 MEV VE 71 D2 User Interface nino ca a ay 72 72 Heer FWT Connections veia e 73 IS A NON 73 7 4 Digital Inputs and Outputs ocooconccnocnnonnonncononononnconnonnconncnnoonnonnonnn ono none non e EEE EEK EEE ra EE EES Es rosi eet 74 K EREECHEN 75 74 2 Digital Outputs ciedad ice 77 MOS O EE 79 15 1 SAM ple Pro SLAMS eege ge ai iia 79 7 5 1 1 Running Sample Program 79 EDD Dynamic tege A iS 79 7 5 3 Smart Star Digital I O Card Function Calls ooonnnnnocnnnnionnnonconconocononnnoncnon cnn nonn con non nc ono cn nonnnnnnonos 80 7 6 Electrical and Mechanical Specifications oooocnccnnocnononononnconnconocnncnocononnonn non crac non nran cnn non corn con necnnnnnanos 82 4 Smart Star SR9000 Part III A D Converter Cards Chapter 8 A D Converter Cards 87 8 1 A D Converter Card Features cccccccssccccecssssccceecsessececesessecececesssceeecesesaaeececesaaeeeececsaaseceeeneeeeees 87 8 2 User Interface rota at nr SE 88 3 3 User E WT Conecta Eed AE 89 SiS A NS A 89 8 4 a ns NN 90 O 91 8 5 l Sample Pro srams ia d heaton 91 8 5 1 1 Running Sample Programs csccciccescssessssesssessoesesecessoesssvnsesnesvcessbevssuseesssesdbstenbeosiveceneeesese 91 5 2 Dynamic C Libraries aturdido 91 8 5 3 Smart Star A D Converter Card Function Call 92 8 6 Electrical and Mechanical Specifications 0 0 ee eee eeeeseeseecsecese
60. 47 79 91 106 121 PACKET LIB 49 RS232 LIB oo 49 SMRTSTAR LIB ege 47 79 91 106 121 Specifications 0 0 eee 59 A D Converter Card dimensions ccc0e 96 electrical wo eee 97 temperature oo 97 backplane dimensions ceceee 60 electrical wo eee 61 temperature oo 61 CPU Card dimensions cmomccocnnnncnnnn 62 electrical wo eee 63 mechanical 0 63 temperature oo 63 D A Converter Card dimensions 006 113 electrical eee 114 temperature 114 Digital I O Card dimensions cceeee 82 electrical nenian 83 temperature 0 83 exclusion ZONE cceeee 68 field wiring terminals dimensions 0 129 LCD keypad module dimensions 0 66 131 electrical o 132 header footprint 132 mechanical 132 relative pin 1 locations 132 temperature 0 132 User s Manual 181 specifications continued Relay Cards dimensions s ee eeee electrical temperature spectrum spreader subsystems coccccoccccnccccnnnonoss T TCP IP connections additional resources Tool Kit soenen DC power supply Dynamic C software field wiring terminal programming cable software coccoocccncccconannnnnnno User s Manual a0e W watchdog timeout function calls
61. A D Converter D A Converter and Relay Cards can be tailored to a large variety of demanding real time control and data acquisition applications The typical Smart Star system consists of a rugged backplane with a power supply a CPU card and one or more I O cards The CPU card plugs into a designated slot on the back plane chassis which has seven additional slots available for I O cards to be used in any combination A high performance Rabbit 2000 microprocessor on the CPU card provides fast data processing 8 1 A D Converter Card Features Three models of A D Converter Cards are available as shown in Table 14 Table 14 Smart Star A D Converter Cards UO Card Model Features SR9300 12 bit A D converter 11 channels 0 V 10 V A D Converter SR9310 12 bit A D converter 11 channels 10 V 10 V SR9320 12 bit A D converter 11 channels 4 mA 20 mA User s Manual 87 8 2 User Interface Figure 33 shows the circuit used to condition the analog signal before it goes to the A D converter chip Depending on the model of A D Converter Card you have it is designed to handle analog inputs of 0 V to 10 V 10 V to 10 V or 4 20 mA The two different volt age ranges are handled with different gain resistors Rg 23 7 kQ for the SR9300 and 12 1 kQ for the SR9310 The input shown in Figure 33 is configured differently for the SR9320 which handles analog inputs of 4 20 mA
62. ADDRESS LAYOUT Appendix D provides information about the register addresses for the various I O card slots on the backplane The information in this appendix will be of interest to more advanced users User s Manual 173 The slots on the Smart Star backplane are accessed as external registers via the Rabbit 2000 s assembly IOE prefix or via standard Rabbit BIOS functions More convenient functions specific to the Smart Star control system have been written to provide more flex ibility for example there is now a provision for the automatic update of shadow registers for each slot and for each register The Smart Star design routes four address bits to each slot providing 16 register addresses for each slot These bits are passed through as bits 0 3 of the register address The slot number itself is assigned to bits 6 8 of the address In addition the backplane design requires that bits 13 and 14 be high and that bit 9 be low The simplest way to enforce this is to use a base address of 0x6000 Table D 1 provides the address layout for accessing the Smart Star slots where Sn is the binary representation of the slot number 0 6 Rn is the binary representation of the register numbers 0 15 and X means the value does not matter Table D 1 Smart Star External Register Address Bitmap A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 AO 0 1 1 0 X X 0 S2 SI SO X X R3 Ri RI RO
63. ALSO glPlotDot glPlotPolygon glPlotCircle User s Manual 153 Scrolls byte aligned window left one pixel right column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glHScroll glRightl Scrolls byte aligned window right one pixel left column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glHScroll glLeft1 Scrolls byte aligned window up one pixel bottom column is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glVScroll glDownl 154 Smart Star SR9000 Scrolls byte aligned window down one pixel top col
64. B 8 2 ECD Display ui si sossx Gh oes cttiss ices b Sestele Nevroawovdateeeaaraueet nae aed ene menses levees reunts 144 BIO EE 160 B 9 Font and Bitmap Converter s cscse csscsvecsecessesseduscetscessaessazesaseess de scteess ERENNERT 163 Appendix C Power Management 165 C 1 Current Requirements ss jet sgheck ip een dencia 166 C 2 Batteries and External Battery Connectnons nono non nc canon non n conc conocen 166 C 2 1 Replacing the Backup Battery oooonocnnocinonionoonconnconnconccnnconocnnon conan conc nn non crono nn ncn nono non nc onn cn kiet 167 CUA o A eteeni oeei Eei a kee Ee des sdeteviee Sn eeri e SISESE ea i EES S 167 C 2 3 Power to VRAM Switch rete aiae roere e R A e E EER 168 C24 Reset Generador EE 169 C 2 3 Extemal Battery sininen eseria ito ETEN 170 AAA es ope sone betes votes EEE Ap EEEE EEEE S EEE E r A ETES E 171 Appendix D Smart Star Slot Address Layout 173 DL Digital J O Card Channel Layout sssisiressse onsi osese eese e k rE r rE rE EE ES Eas 175 D 2 A D Converter Card Channel Layout 176 D 3 D A Converter Card Channel Layout 177 DA Relay Card Channel Layout 178 Index 179 Schematics 183 6 Smart Star SR9000 PART I CPU BACKPLANE Smart Star SR9000 1 INTRODUCTION Chapter 1 introduces the Smart Star embedded control system and describes the features associated with the backplane chassis and the CPU Card The Tool Kit containing the hardware essen tials to begin using the Smart Sta
65. Bank 2 7 4 1 Digital Inputs Table 11 provides the pinout configuration for the input points Table 11 Digital Inputs Pinout DIGINO DIGIN1 DIGIN2 DIGIN3 DIGIN4 DIGINS DIGIN6 DIGIN7 User s Manual 75 The protected digital inputs shown in Figure 27 are factory configured with 10 kQ pull up resistors Digital I O cards are also available in quantity with the protected digital inputs pulled down as shown in Figure 27 INPUT PULLED UP Ca Vcc 74HC257 MULTIPLEXER 10 nF INPUT PULLED DOWN 22 kQ 74HC257 DIGIN MULTIPLEXER 10 nF Figure 27 Protected Digital Inputs A 0 Q surface mount resistor is used as a jumper to select whether the inputs are pulled up or down as shown in Figure 28 SINKING OUTPUTS SOURCING OUTPUTS INPUTS INPUTS J3 _ INPUTS E INPUTS PULLED UP PULLED PULLEDUP PULLED 3 DOWN DOWN O a Factory E Factory Default Default C20 R20 COEN gee J2 III EJ ras TO E E R67 C51 C43 R59 R51 E R R74 R75 D35
66. C Humidity 5 to 95 noncondensing Input Voltage 5 V DC at 190 mA typical Microprocessor Rabbit 2000 Clock 22 1 MHz SRAM 128K surface mounted 512K option Flash EPROM 2 x 256K surface mounted Timers Five 8 bit timers cascadable in pairs one 10 bit timer with 2 match registers that each have an interrupt Serial Ports Three serial ports e one CMOS compatible programming port e remaining ports software configurable as two 3 wire RS 232 one 5 wire RS 232 or one 3 wire RS 232 one RS 485 Selected baud rates up to 115 200 bps Serial Rate CMOS compatible port supports up to 6 45 Mbps synchronous Watchdog Supervisor Yes Time Date Clock Yes Expansion Port Supports up to 7 I O cards Backup Battery Yes Panasonic CR2330 or equivalent 3 V lithium coin type 265 mA h standard using onboard battery holder provision for external battery User s Manual 63 6 2 Jumper Configurations Figure 21 shows the header locations used to configure the various CPU Card options via jumpers CH Mi 0000 Battery HOO 0000 000 00000 JP2 mm 00000000000000000000000000 0000000000000000000000000NH Figure 21 Location of Smart Star CPU Card Configurable Positions 64 Smart Star SR9000 Table 7 lists the configuration options Table 7 Smart Star CPU Card Jumper Configurations Header Description P
67. D34 D33 D32 D31 D30 DZ 00 R72 OO oo A elen re Y 00 RO Figure 28 Selecting Pulled Up or Pulled Down Digital Inputs The digital inputs are able to operate continuously from 30 V to 30 V and have a logic threshold of 2 5 V They are protected against spikes up to 48 V 76 Smart Star Digital UO Cards SR9200 7 4 2 Digital Outputs The high current digital outputs are either sinking or sourcing depending on the model of the Digital I O Card Table 12 provides the pinout configuration for the output points Table 12 Digital Outputs Pinout HVOUTO HVOUT1 HVOUT2 HVOUT3 HVOUT4 HVOUTS HVOUT6 HVOUT7 Figure 29 shows the power distribution on the Digital I O Card BACKPLANE USER INTER SLOT 0 6 FACE J2 JP1 or JP3 1 6 12 17 25 33 Figure 29 Digital LO Card Power Distribution When designing your interface with the Smart Star system you need to establish whether you will use the V_USER RAW supply on the backplane or your own independent K supply to drive the high current outputs The selection of this FPWR power supply is implemented via a O 2 surface mount resistor on header JP1 sinking outputs or header JP3 sourcing outputs as shown in Figure 30 The factory default is to use V_USER RAW but Digital I O Cards are available in quantity w
68. E 105 CPU Card AS 62 analnmAmps 95 ES A o DA Converter ee analnVolts eee 94 ivi function calls 107 Digital VO Card 82 aLoadCalib A re ee bet an anaL adCalib 109 field wiring terminals 129 SaveCalib OF O ee ana anaOut 110 LCD keypad module 131 Fpodelg ee ete rege eege SF are EE anaOutCalib 108 LCD keypad template pore 134 sample programs 91 A a epee a anaOutDisable 105 107 Relay Cards EE 123 GE op anaQutEERd 107 Dynamic C oooocccoccconcnonnncnanc nne 12 IA anaOutEEWr tee 112 add on modules e 45 B anaOutEnable rer 1 05 1 07 COM port TTT 23 anaOutmAnpps 111 libraries 47 79 91 106 121 backplane anaOutVolts cuco 111 running sample programs dimensions cocooccccncnnnnnnnnnrars 60 albina IT 91 106 121 battery models ssscsssssssesessensee 101 prame SEATED ts be replacing the backup bat sample programs 106 debugging E 44 tery EEN 1 67 digital UO starting EE 5 eee 23 battery backup circuit 167 SMODEO coccion 35 telephone Pasei EE battery connections 166 SMODEL oo ssessssesseesseese 35 Se 149 battery life eee 166 Digital I O Card oo 71 upgrades and patches 45 CG banks E Bank 2 configurations 75 CE compliance Ek 13 14 locations cooooccccoccncnonccnnnns 74 EMI backplanes and cards not CE digital outputs spectrum spreader feature 41 complaint 0
69. External Backup Battery Connection The external battery connection is useful if the SRAM and real time clock data need to be preserved while the backup battery is being changed This way power can continue to be applied to the CPU Card from the backplane if the external backup battery is being replaced or from the external battery if the onboard backup battery needs to be changed since this requires removing the CPU Card from the backplane in order to access the onboard backup battery 170 Smart Star SR9000 C 3 Chip Select Circuit Figure C 5 shows a schematic of the chip select circuit for the RAM VRAM A R31 CSRAM TY v Lor RES Figure C 5 Chip Select Circuit The current drain on the battery in a battery backed circuit must be kept to a minimum When the CPU Card is not powered the battery keeps the SRAM memory contents and the real time clock RTC going The SRAM has a powerdown mode that greatly reduces power consumption This powerdown mode is activated by raising the chip select CS signal line Normally the SRAM requires 5 V to operate However only 2 V is required for data retention in powerdown mode Thus when power is removed from the circuit the battery voltage needs to be provided to both the SRAM power pin and to the CS signal line The CS control circuit accomplishes this task for the CS signal line In a powered up condition the CS control ci
70. Getting Started instructions e Dynamic C CD ROM with complete product documentation on disk e Programming cable used to connect your PC serial port to the Smart Star CPU Card to write and debug C programs that run on the Smart Star control system e FWT27 pluggable field wiring terminal e Screwdriver e DC power supply used to power the backplane which in turn supplies power to the CPU card and the I O cards The DC power supply accepts an AC input of 100 V to 240 V at up to 0 6 A and delivers a DC output up to 1 1 A at 24 V e Rabbit 2000 Processor Easy Reference poster e Registration card 1 4 2 Software The Smart Star control system is programmed using Rabbit s Dynamic C A compatible version is included on the Tool Kit CD ROM Rabbit also offers add on Dynamic C modules containing the popular uC OS IT real time operating system as well as PPP Advanced Encryption Standard AES and other select libraries In addition to the Web based technical support included at no extra charge a one year telephone based technical support module is also available for purchase Visit our Web site at www rabbit com or contact your Rabbit sales representative or authorized distributor for further information 12 Smart Star SR9000 1 5 CE Compliance Equipment is generally divided into two classes CLASS A CLASS B Digital equipment meant for light industrial use Digital equipment meant for home use Less res
71. N terminals 3 Attach the line cord that you obtained locally to the power supply Be sure to follow any color coding conventions for example green yellow to ground brown to L and blue to N terminals 4 Ensure that the wires are attached securely and are not touching each other Snap on the plastic insulating cover NOTE The power supply included with the Smart Star Tool Kit is intended for development purposes only User s Manual 19 2 3 Programming Cable Connections 1 Connect the programming cable to the CPU Card Connect the 10 pin PROG connector of the programming cable to header J2 on the CPU Card as shown in Figure 4 Connect the other end of the programming cable to a COM port on your PC Note that COM1 on the PC is the default COM port in the Dynamic C installation NOTE Be sure to use the programming cable Part No 101 0513 supplied with the Smart Star Tool Kit the programming cable has red shrink wrap around the RS 232 converter section located in the middle of the cable Programming cables from other Rabbit kits are not designed to work with the Smart Star Diagnostic connector shrink Rb ca PC COM port Colored side towards pin 1 Programming connector Pin 1 Ge 10 cor En mar mMm m DOME OO 4 J Rz z cas cia 38 A a val
72. Number Pluggable Terminals Screw Terminals FWT Description 1 0 Cards FWT27 Digital I O 101 0420 101 0514 7 3 1 Pinouts Figure 25 shows the pinout for FWT27s used on 1Tolleno Digital I O Cards Note that only 23 of the I O 2 DIGINO points are available on the FWT27 the HVOUT7 iy O DIGIN1 digital output is not available on the FWT27 e aia 6 QIK 7 0 DiGIN4 8 Q DIGINS 9 D DIGIN6 m 010 DIGIN7 9011 Q 1 08 3812 llo vos 3813 lla l1o010 9914 Ollvor1 0015 19 1 012 oo 9916 O 1 013 9917 9 1014 0018 D 1 015 19 12 HvouTo 20 0 HvouT 1 21 9 HvouT2 22 D HvouT3 23 9 HvouTa 24 D k 25 9 HVOUTS 26 0 HvouT6 27 GND Figure 25 FWT Pinout for Digital I O Cards User s Manual 7 4 Digital Inputs and Outputs The Digital I O Card has 24 I O points that are factory configured as either inputs or outputs in banks of eight depending on the model Figure 26 shows the locations of the I O banks Bank 0 inputs Bank 1 outputs SINKING OUTPUTS 820 R44 JP2 D23 D22 D21 p20 H EN Em EE Ese D 3 Reo c44 cas rs P A mi P R4
73. O or analog cables that are 3 m or longer in a metal conduit to assist in maintaining CE compliance and to conform to good cable design practices When installing or servicing the Smart Star embedded control system it is the responsi bility of the end user to use proper ESD precautions to prevent ESD damage to the Smart Star Safety All inputs and outputs to and from the Smart Star embedded control system must not be connected to voltages exceeding SELV levels 42 4 V AC peak or 60 V DC The lithium backup battery circuit on the CPU card in the Smart Star embedded control system has been designed to protect the battery from hazardous conditions such as reverse charging and excessive current flows Do not disable the safety features of the design 1 5 2 Interfacing the Smart Star to Other Devices Since Smart Star embedded control systems are designed to be connected to other devices good EMC practices should be followed to ensure compliance CE compliance is ulti mately the responsibility of the integrator Additional information tips and technical assistance are available from your authorized Rabbit distributor and are also available on our Web site at www rabbit com User s Manual 15 16 Smart Star SR9000 2 GETTING STARTED Chapter 2 explains how to connect the power supply to the Smart Star backplane how to install the CPU Card on the back plane and how to connect the programming cable to the CPU Card
74. Once you run a sample program to demonstrate that you have connected everything correctly you will be ready to go on to install I O cards and finish developing your system User s Manual 17 2 1 Attach the CPU Card to the Backplane 1 Orient the backplane with the PROCESSOR SLOT facing away from you as shown in Figure 1 Align facing edge of CPU card with back edge of alignment hole Align facing edge of CPU card with back edge of alignment hole Figure 1 Attach the CPU Card to the Backplane 2 Position the CPU Card above the backplane as shown in Figure 1 3 Carefully insert the CPU Card header into the PROCESSOR SLOT on the backplane and line up the facing edge of the CPU Card with the back edge of the alignment holes on the backplane as shown in Figure 1 NOTE Be careful to line up the pins on the CPU Card with the socket on the backplane when installing the CPU Card The CPU Card can be damaged once power is applied if the CPU Card is not installed correctly 4 Use the two 4 40 screws supplied with the CPU Card to anchor the plastic brackets so that they hold the CPU Card firmly in place on the backplane 18 Smart Star SR9000 2 2 Connect the Power Supply Connect the power supply to the
75. POWER IN connector on the backplane the red posi tive wire to RAW and the black negative wire to GND as shown in Figure 2 1013 YOSS3DOYA v0000000000000000000000000 z GNDY w o a 3 boo To Smart Star power supply a Figure 2 Power Supply Connections North America NOTE Be careful to hook up the positive and negative leads exactly as described Only the 5 V circuitry is protected against reverse polarity A A USER connection is supplied on the backplane to allow an independent power supply to be used for future development For now use a wire jumper to connect USER to RAW so that they share the same power supply Notice to Customers Outside North America The power supply included with the Smart Star Tool Kit may be used worldwide Customers outside North America simply need to exchange the line cord and plug from the power supply to their wall outlet with one available locally 1 To exchange the line cord and plug first remove the existing line cord To access the screws use a screwdriver to gently lift up and remove the plastic insulating cover To Smart Star POWER IN Plastic Insulating Cover Figure 3 Power Supply Connections overseas 2 Unscrew the wires at the ground L and
76. R sele Bss E o m 1 E E UE EEN ass Di 3 SSM jes n SS 00 cas 2 or 12 Se c2 bad 13 81 02 13 51 c2 Elo 2510 OF eh EI i Ok JO O E Gi 20 o acl aclla 1961 o SOU wp ac lio 38 IS 2e e Boe Bore eee 321 HRAT E 38 O Ed Ed eiidb 2er o ER o 1381 z Belz Bela 12 Se a 1 or a 1381 a 39 ac mc mo mo mo 38 38 TO Os 20 DG al J10 EE i mo l2 O RO o o o o o o o o o o o o o o o o o o o o o o o o at oe e 3 00 ole 0 25 76 2 6 4 e 6 50 gt 165 le 1 72 wie 0 75 210 75 10 53 43 7 19 1 19 1 ke Seef SR9050 J2 33 SE o om oo Oo TA oo a oo SS Se oo mM o0 J3 J4 Ei oo oo OO cs OO cs oo oo o O p oo OO oo oo DEI oo oo 00 OO a OO la 00 oo oo OO oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo Oo oo mo mo mo oo oo oo 38 no JP1 0000000000000 0000 go x fe O Mooo000000000 BO 0 ORO 1 slr 0 21 RE gt of 63 3 30 el 84 la 3 75 gt 95 Figure 19 Smart Star Backplane Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 60 Smart Star SR9000 Table 5 lists the electrical mechanical and environmental specifications
77. TE The SRAM contents and the real time clock settings will be lost if the battery is replaced with no power applied to the Smart Star There is a provision for an external bat tery if you need to save the SRAM contents and the real time clock settings since the CPU Card needs to be removed from the backplane in order to change the onboard battery CAUTION There is an explosion danger if the battery is short circuited recharged or replaced incorrectly Replace the battery only with the same type or an equivalent type recommended by the battery manufacturer Dispose of used batteries according to the battery manufacturer s instructions C 2 2 Battery Backup Circuit Figure C 1 shows the battery backup circuit Internal Battery BT1 D3 VBAT INT pt RT1 thermistor External Battery 48 22 kQ D5 VBAT EXT pt 1 2 3 o Figure C 1 Smart Star CPU Card Backup Battery Circuit The battery backup circuit serves three purposes e It reduces the battery voltage to the SRAM and to the real time clock thereby limiting the current consumed by the real time clock and lengthening the battery life e It ensures that current can flow only out of the battery to prevent charging the battery e A voltage VOSC is supplied to U14 which keeps the 32 768 kHz oscillator working when the voltage begins to drop VRAM and Vcc are nearly equal lt 100 mV typically 10 mV
78. The calibration constants may also be saved in the flash memory on the Smart Star CPU Card Doing so will speed up A D conversions since a memory access from flash memory will be faster than from EEPROM Use anaSaveCalib to save the current set of calibration constants for the analog input and output channels in the Smart Star flash memory The calibration constants stored in flash memory can then be accessed at any time with the anaLoadCalib function If the factory set calibration are not used customer measured calibration constants should first be estab lished using the anaInCalib function RETURN VALUE None SEE ALSO anaLoadCalib anaInCalib Reads a complete set of calibration constants for the analog input and output channels from the Smart Star flash memory on the CPU Card These should be set using the anaInCalib or anaInEERd func tion then saved to flash memory using the anaSaveCalib function RETURN VALUE None SEE ALSO anaSaveCalib anaInCalib 92 Smart Star A D Converter Cards SR9300 Used to recalibrate the response of the A D converter channel as a linear function using the two conver sion points provided Gain and offset constants are calculated and placed into the global table _adcCalib PARAMETERS channel is the A D converter input channel 0 10 channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or Channel ChanAddr slotnumber
79. There is no spectrum spreader functionality for Smart Star CPU cards that do not carry the CE mark or when using any CPU card with a version of Dynamic C prior to 7 30 User s Manual 41 42 Smart Star SR9000 4 SOFTWARE Dynamic C is an integrated development system for writing embedded software It runs on an IBM compatible PC and is designed for use with Rabbit controllers and other controllers based on the Rabbit microprocessor Chapter 4 provides the libraries function calls and sample pro grams related to the Smart Star backplane and CPU cards 4 1 Running Dynamic C You have a choice of doing your software development in the flash memory or in the static RAM included on the Smart Star CPU cards The flash memory and SRAM options are selected with the Options gt Program Options gt Compiler menu The advantage of working in RAM is to save wear on the flash memory which is limited to about 100 000 write cycles The disadvantage is that the code and data might not both fitin RAM NOTE An application can be developed in RAM but cannot run standalone from RAM after the programming cable is disconnected Standalone applications can only run from flash memory NOTE Do not depend on the flash memory sector size or type Due to the volatility of the flash memory market the Smart Star and Dynamic C were designed to accommo date flash devices with various sector sizes Developing software with Dynamic C is simple
80. a acquisition applications The typical Smart Star system consists of a rugged backplane with a power supply a CPU card and one or more I O cards The CPU card plugs into a designated slot on the back plane chassis which has seven additional slots available for I O cards to be used in any combination A high performance Rabbit 2000 microprocessor on the CPU card provides fast data processing 10 1 Relay Card Features Two models of Relay Cards are available as shown in Table 20 Table 20 Smart Star Relay Cards UO Card Model Features 5 SPST relays and 1 SPDT relay each protected SR9500 with onboard snubbers Relay SR9510 8 SPDT relays no snubbers The SR9500 Relay Cards are suitable for switching all kinds of loads up to 30 V DC at 1 A or 48 V AC at 0 5 A The SR9510 handles similar loads but is restricted to noninductive loads unless you add snubbers to the system that is interfacing with the Smart Star User s Manual 117 10 2 User Interface Depending on the model of Relay Card see Table 20 the relays on the Relay Card will be configured as SPDT or SPST with or without snubbers Figure 45 shows these relay configura tions V COM 7 14 a m SPDT no snubbers NC 9 10 RELDRV V COM 8 A 100 nF 470 7 MEA 7 SPDT A A 100 nF with snubbers T AN 9 10 RELDRV NC V COM 8 1 100 nF 470 5 WE S SPST 2 wit
81. abled by default and usually no entry is needed If you need to specify that the clock doubler is always enabled add the line CLOCK_DOUBLED 1 to always enable the clock doubler The clock speed will be doubled as long as the crystal frequency is less than or equal to 26 7264 MHz 3 Click OK to save the macro The clock doubler will now remain off whenever you are in the project file where you defined the macro 3 4 2 Spectrum Spreader Smart Star CPU cards that carry the CE mark have a Rabbit 2000 microprocessor that fea tures a spectrum spreader which helps to mitigate EMI problems By default the spectrum spreader is on automatically for CPU cards that carry the CE mark when used with Dynamic C 7 32 or later versions but the spectrum spreader may also be turned off or set to a stronger setting The means for doing so is through a simple configuration macro as shown below 1 Select the Defines tab from the Dynamic C Options gt Project Options menu 2 Normal spreading is the default and usually no entry is needed If you need to specify normal spreading add the line ENABLE _SPREADER 1 For strong spreading add the line ENABLE_SPREADER 2 To disable the spectrum spreader add the line ENABLE _SPREADER 0 NOTE The strong spectrum spreading setting is unnecessary for the Smart Star 3 Click OK to save the macro The spectrum spreader will now remain off whenever you are in the project file where you defined the macro
82. ar boards meet the following emission standards when used with a Smart Star embedded control system that contains a Rev C or higher version of the Rabbit 2000 microprocessor with its spectrum spreader turned on and set to the normal mode This microprocessor is used in all Smart Star CPU boards that carry the CE mark e EN55022 1998 Class A e FCC Part 15 Class A NOTE The Smart Star embedded control system satisfied the Class A limits but not the Class B limits Such equipment need not be restricted in its sale but the following warning must be included in the instructions for its use Warning This is a class A product In a domestic environment this product may cause radio inter ference in which case the user may be required to take adequate measures Additional shielding or filtering may be needed to meet Class B emissions standards 14 Smart Star SR9000 1 5 1 Design Guidelines Note the following requirements for incorporating a Smart Star embedded control system into your application to comply with CE requirements General The power supply provided with the Tool Kit is for development purposes only It is the customer s responsibility to provide a CE compliant power supply for the end product application When connecting the Smart Star embedded control system to outdoor cables the cus tomer is responsible for providing CE approved surge lighting protection Rabbit recommends placing digital I
83. are any problems at this point e Use the Dynamic C Help menu to get further assistance with Dynamic C e Check the Rabbit Technical Bulletin Board at www rabbit com support bb e Use the Technical Support e mail form at www rabbit com support If the sample program ran fine you are now ready to go on to install 1 O cards explore other Smart Star features and develop your own applications Chapter 3 Hardware Features provides detailed information about the CPU Card and how to install the I O cards Be sure to take the total current consumption of the individual cards into account when selecting a power supply Appendix C 1 Current Require ments provides more detailed information Chapter 4 Software describes the Dynamic C software libraries and introduces some sample programs for use with the CPU Card Chapter 6 Smart Star Specifications provides specifications for the backplanes and the CPU cards including mounting and clearance recommendations Separate sections in this manual have been prepared for the various I O cards and include complete information about their pinouts and Dynamic C software libraries including sample programs Once you have developed your application and bench tested the finished system you may install the finished system 26 Smart Star SR9000 3 HARDWARE FEATURES Chapter 3 describes the principal features for the Smart Star backplanes and CPU cards e Power Distrib
84. ations menu Choose a lower debug baud rate User s Manual 23 2 6 PONG C You are now ready to test your set up by running a sample program Find the file PONG C which is in the Dynamic C SAMPLES folder To run the program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The STDIO window will open and will dis play a small square bouncing around in a box This program does not test the serial ports on the CPU Card but does ensure that the CPU is basically functional 24 Smart Star SR9000 2 7 Installing UO Cards 1 Orient the backplane with the CPU Card already installed and facing towards you as shown in Figure 5 Tip It s easier to install the plastic brackets when you install 1 O cards starting from the slot furthest away from the CPU card You may have to remove the CPU card to install the brackets on the I O card in SLOT 0 R44 R28 R20 PE JP2 oo cu 036 Rs E R67 C51 C43 R59 R51 een R25 JJP1 R21 D35 D34 D33 D32 D31 D30 D29 D28
85. ay and nameserver are not used and are commented out The IP address of the CPU Card is defined to be 10 1 1 2 The IP address of you PC can be defined as 10 1 1 1 User s Manual 53 5 2 2 How to Set Up Your Computer for Direct Connect Follow these instructions to set up your PC or notebook Check with your administrator if you are unable to change the settings as described here since you may need administrator privileges The instructions are specifically for Windows 2000 but the interface is similar for other versions of Windows TIP If you are using a PC that is already on a network you will disconnect the PC from that network to run these sample programs Write down the existing settings before changing them to facilitate restoring them when you are finished with the sample pro grams and reconnect your PC to the network Go to the control panel Start gt Settings gt Control Panel and then double click the Network icon Select the network interface card used for the Ethernet interface you intend to use eg TCP IP Xircom Credit Card Network Adapter and click on the Properties button Depending on which version of Windows your PC is running you may have to select the Local Area Connection first and then click on the Properties button to bring up the Ethernet interface dialog Then Configure your interface card for a 10Base T Half Duplex or an Auto Negotiation connection on the A
86. bbit 2000 microprocessor U4 100 kQ T RESET CO R10 GENERATOR 10 nF RESET WDTOUT Figure C 3 Reset Generator NOTE The Dynamic C function chkWDTO is not able to detect whether a watchdog timeout has occurred on the SR9100 series of CPU cards The GCSR status bits are read and stored by the BIOS and the reset status bit would normally change once a reset has occurred However since WDTOUT is tied to the reset generator a watchdog timeout forces a hardware reset followed by the BIOS reading and storing the status bits corresponding to power up or reset User s Manual 169 C 2 5 External Battery A connection for an external backup battery is provided at header J8 shown in Figure C 4 The header is wired to provide reverse polarity protection CPU Card SLSVEV E i El l Battery Figure C 4
87. bug Web serving and e mail User s Manual 9 Table 1 lists the backplanes CPU cards and the I O cards that are available for the Smart Star control system Appendix A provides detailed specifications for the Smart Star back planes and the CPU cards Table 1 Smart Star Backplanes and Cards Card Model Features 7 T O card slots 1 CPU card slot header connections SE for optional LCD keypad module Backplane SR9050 3 T O card slots 1 CPU card slot header connections for optional LCD keypad module SR9150 Full featured CPU card with RJ 45 Ethernet port CPU SR9160 Full featured CPU card without RJ 45 Ethernet port SR9200 16 digital inputs 8 digital sinking outputs SR9210 8 digital inputs 16 digital sinking outputs SR9220 8 digital inputs 8 digital sinking outputs Digital VO SR9205 16 digital inputs 8 digital sourcing outputs SR9215 8 digital inputs 16 digital sourcing outputs SR9225 8 digital inputs 8 digital sourcing outputs SR9300 12 bit A D converter 11 channels 0 V 10 V A D Converter SR9310 12 bit A D converter 11 channels 10 V 10 V I O Cards SR9320 12 bit A D converter 11 channels 4 mA 20 mA SR9400 12 bit D A converter 8 channels 0 V 10 V D A Converter SR9410 12 bit D A converter 8 channels 10 V 10 V SR9420 12 bit D A converter 8 channels 4 mA 20 mA 5 SPST relays and 1 SPDT relay each protected SR9500 with
88. caecseaecsceseeeeeeseseeseaeseeeenesaeeeaees 96 Part IV D A Converter Cards Chapter 9 D A Converter Cards 101 9 1 D A Converter Card Features c ccccccccccsssccecesesssecececesssaeececesaaececcecesssceceecsessseceeceensaeeeceeesseseeeeeenes 101 OD Us ltda rea 102 9 3 User EW COmnectiOns nica 104 3 AM E O 104 94 Pover Eo AA sdeseuntedheevevsdesteesseueetbeesesuocseds Seospostetccovesevetdedeesebetsevedeeeaee 105 E A A 106 9 5 1 Sample Programs e 03 sonata Sie eee eee d 106 95 1 1 Running Sample Programs tii bio 106 9 52 Dynamic C Libraries tee HI Re A eed ce en es ee Se 106 9 5 3 Smart Star D A Converter Card Function Calls 107 9 6 Electrical and Mechanical Specifications ooocnnncnonnonnnonconnconcnnnnnn cnn nonn conc nono nn non nora non nc ono cn cnn ne canon nncnnnno 113 Part V Relay Cards Chapter 10 Relay Cards 117 IT Relay Card Features tota o EE EES e EE EE 117 10 2 User Interface ona Sits wea en ea ee Rea a RA 118 10 3 User FWT Connections isece assein eierens enesik ENEE 119 US 119 10 4 Power Distri buttons i spesccchssecessceusces chsbtioes caseteevin ch EEE E EE E EEE EE R ear r SEE Ter EEr 120 10 5 Relay Cards Softwares eene n nie ee a E haces ade E E E eee eet 121 LOST Sample Brogramg Ansporn fecdetinestscedcessgssvess seee do EEE Ra coe soda aa ETa ciedad 121 10 5 2 Running Sample Programs 121 10 53 Dynamic C Libra E Sr r a e dee 121 10 5 4 Smart Star Relay Card Function Calls ooononcni
89. ccnonnconconnnonconononononono nano nn nono con conan cono nc cnn cnnccnnnns 122 10 6 Electrical and Mechanical Specifications ooonononocnoccnnnconcnnnconcnnnonnnononononan cnn nonncnn crono nn con non nc cnn cnncnnnons 123 User s Manual 5 Part VI Appendices Appendix A Field Wiring Terminals 127 A 1 Selecting and Installing a Field Wiring Terminal oononnnncnnncnocnnonnonnnannnnnnannnnncnn cnn con corn nonnconccononnccnns 128 A2 E EE 129 Appendix B LCD Keypad Module 131 B 1 Specific eiii ties 131 B 2 Contrast Adjustments for All Boards oooonccnccnnonicnnocnnonnnnncononononnccnnonnconn cono onn coronan non non nro crac oracion corno 133 B 3 Keypad Label ico cocsscisccicasssvestetestiseciscesbeseseecchcassectcscustb pce ss ctsssvesievaschseessopsedessbdenshgetedsedosbpnaessaes 134 BA Header PimOuts e escusees ei vet iio rta ito EE dE 135 B 4 1 VO Address Assignment ee ENEE ERENNERT 135 B 5 Mounting LCD Keypad Module 136 B 5 1 Installation Guidelines sisirin eessesssdeasscasssenes ste RER decsesssasisbescosncsgees ces copeessgesseesdesipcnesvess 136 B 5 2 Mounting Instruct ons iii ias a iia lp 137 B 5 2 1 Bezel Mount Installaon conc cnn nrnnc nn non nono non nconn cono nn cnn nnnnannnnns 137 B 6 Connecting LCD Keypad Module to Smart Star Backplane eee cesses ceeeeeeceeeeeeeeeeeneeenes 139 RL Sample Proba enee D eA epee dae OO EE 141 BS LCD Keypad Module Function Calls AAA 143 B82 LEDS ta SE ie a aad Be a i E E OEN 143
90. ctory You then select and convert existing fonts or bitmaps Com plete instructions are available via the Help menu that is in the Font and Bitmap Con verter tool Once you are done the converted file is displayed in the editing window Editing may be done but should not be necessary Save the file as 1ibraryfilename lib where libraryfilename is a file name of your choice Add the library file s to applications with the statement use libraryfilename lib or by cutting and pasting from the library file s you created into the application program TIP If you used the use libraryfilename 1ib statement remember to enter libraryfilename 1lib into 1ib dir which is located in your Dynamic C directory You are now ready to add the font or bitmap to your application using the g1XFontInit or the glXPutBitmap function calls User s Manual 163 164 Smart Star SR9000 APPENDIX C POWER MANAGEMENT Appendix C provides information on the current requirements of the Smart Star I O cards the use and installation of a backup battery and some background on power management User s Manual 165 C 1 Current Requirements Remember to take the current draw of the various I O cards into consideration when selecting the power supply for your Smart Star control system Table C 1 lists the typical current consumption for the CPU Card and the I O cards Table C 1 Current Consumption of I O Cards Attached to Smart Star Backplane
91. dvanced tab NOTE Your network interface card will likely have a different name Now select the IP Address tab and check Specify an IP Address or select TCP IP and click on Properties to assign an IP address to your computer this will disable obtain an IP address automatically IP Address 10 10 6 101 Netmask 255 255 255 0 Default gateway 10 10 6 1 Click lt OK gt or lt Close gt to exit the various dialog boxes SR9150 IP 10 10 6 101 CPU Card Netmask 255 255 255 0 User s PC Ethernet crossover cable Direct Connection PC to Smart Star CPU Card 54 Smart Star SR9000 5 2 3 Run the PINGME c Demo Connect the crossover cable from your computer s Ethernet port to the CPU Card s RJ 45 Ethernet connector Open this sample program from the SAMPLES TCPIP IcmpP folder compile the program and start it running under Dynamic C When the program starts run ning the green LNK light on the CPU Card should be on to indicate that an Ethernet con nection is made Note If the LNK light does not light you may not have a crossover cable or if you are using a hub perhaps the power is off on the hub The next step is to ping the board from your PC This can be done by bringing up the MS DOS window and running the ping program ping 10 10 6 100 or by Start gt Run and typing the command ping 10 10 6 100 Notice that the orange
92. e J3 J9 GND mo DO D1 o o D2 D3 aoa D4 D5 o o D6 D7 o o AO A1 o o A2 A3 aa NORD NOWR aa SELECT INHIB_OUT oa ATTN1 RESET oa 5 V NC Jo of V_USER TX E El RX SCLK o 0 GND Figure 9 Pinout for SLOT 0 Through SLOT 6 Headers J3 J9 on the Backplane NOTE The SR9050 backplane can accommodate up to three I O cards plugged in to SLOT 0 through SLOT 2 headers J3 J5 User s Manual 31 3 2 Smart Star CPU Card Features 3 2 1 Serial Communication The CPU Card has one screw terminal header for RS 232 RS 485 serial communication 33 and one RJ 45 Ethernet jack J7 SR9150 only The RJ 12 jack J6 is reserved for future use and therefore has no signals The pinouts are shown in Figure 10 Mode 0 Mode 1 Mode 2 RS 485 3 wire RS 232 two 3 wire RS 232 one 5 wire RS 232 Figure 10 Smart Star CPU Card Serial Pinout The factory default for the CPU Card is one RS 232 3 wire and one RS 485 serial chan nel corresponding to Mode 0 in Figure 10 The other modes shown in Figure 10 are set in software via the Dynamic C serMode function call see Section 4 5 Serial Communica tion Calls 3 2 1 1 RS 232 The CPU Card s RS 232 serial channel is connected to an RS 232 transceiver The trans ceiver provides the voltage output slew rate and input voltage immunity required to meet the RS 232 serial communica
93. e to indicate an Ethernet link LNK and one to indicate Ethernet activity ACT Only the CPU LEDs are functional at this time since the RCM LEDs were added for future enhancements to the CPU Card The transformer connector assembly ground is connected to the CPU Card digital ground via a 0 Q resistor jumper R43 as shown in Figure 14 RJ 45 Ethernet Plug T R43 7 NVV Board _ _ Chassis Ground Ground Figure 14 Isolation Resistor R43 The factory default is for the 0 Q resistor jumper at R43 to be installed In high noise environments remove R43 and ground the transformer connector assembly directly through the chassis ground This will be especially helpful to minimize ESD and or EMI problems 36 Smart Star SR9000 3 3 Programming Cable The programming cable is used to connect the programming port of the Smart Star CPU Card to a PC serial COM port The programming cable converts the RS 232 voltage levels used by the PC serial port to the TTL voltage levels used by the Rabbit 2000 When the PROG connector on the programming cable is connected to the CPU Card s programming header programs can be downloaded and debugged over the serial interface The DIAG connector of the programming cable may be used on the CPU Card s program ming header with the Smart Star operating in the Run Mode This allows the programming port to be used as a regular serial port 3 3 1 Changing Betw
94. ected the programming cable may be connected to the wrong COM port a connection may be faulty or the target system may not be powered up First check both ends of the programming cable to ensure that it is firmly plugged into the PC and the programming port If there are no faults with the hardware select a different COM port within Dynamic C From the Options menu select Communications Select another COM port from the list then click OK Press lt Ctrl Y gt to force Dynamic C to recompile the BIOS If Dynamic C still reports it is unable to locate the target system repeat the above steps until you locate the active COM port You should receive a Bios compiled successfully message once this step is completed successfully If Dynamic C appears to compile the BIOS successfully but you then receive a communi cation error message when you compile and load a sample program it is possible that your PC cannot handle the higher program loading baud rate Try changing the maximum download rate to a slower baud rate as follows e Locate the Serial Options dialog in the Dynamic C Options gt Communications menu Select a slower Max download baud rate If a program compiles and loads but then loses target communication before you can begin debugging it is possible that your PC cannot handle the default debugging baud rate Try lowering the debugging baud rate as follows e Locate the Serial Options dialog in the Dynamic C Options gt Communic
95. ector in the future Plug the FWT connector into the connector on the I O card Be sure to position the plug gable or screw connectors so that the header pins on the printed circuit board are towards you as shown in Figure A 2 Position the mylar insulator above the FWT as shown in Figure A 2 to protect the header pins on the printed circuit board and secure the FWT using the two 4 40 x 4 screws supplied them Note that the mylar insulator will be bowed slightly once the screws are in place DOOOOD000000 9000000000000 Figure A 1 Remove Tabs from Connector on I O Card Mylar insulator SSSPSSSSSSSSE A O00000 Figure A 2 Secure FWT to VO Card 128 Smart Star SR9000 A 2 Dimensions Figure A 3 shows the overall FWT dimensions SKCSKSKSENSVRVSEVSEgsggs 00000000000000000 m0000000000000000 3 2 E 2 75 18 5 70 E 4 20 Al 107 Figure A 3 FWT Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses The actual appearance of the terminals may vary depending on the number and type of terminals The pinouts for the FWTs applicable to a particular I O card are shown with the pinouts for the connectors on the individual I O cards User s Manual 129 130 Smart Star SR9000 APPENDIX B LCD KEYPAD MODULE An optional LCD keypad module with a NEMA 4 water resi
96. een Program Mode and Run Mode The Smart Star is automatically in Program Mode when the PROG connector on the pro gramming cable is attached to the CPU Card and is automatically in Run Mode when no programming cable is attached When the Rabbit 2000 is reset the operating mode is deter mined by the status of the SMODE pins When the programming cable s PROG connector is attached the SMODE pins are pulled high placing the Rabbit 2000 in the Program Mode When the programming cable s PROG connector is not attached the SMODE pins are pulled low causing the Rabbit 2000 to operate in the Run Mode Program Mode Run Mode Ze iG Diagnostic LAA connector LG Red ZZ A shrink wrap To AA PC COM port g Colored side towards pin 1 oq Programming PR connector L 1 RESET Smart Star when changing mode Cycle power off on after removing or attaching programming cable Figure 15 Smart Star Program Mode and Run Mode Set Up A program runs in either mode but can only be downloaded and debugged when the Smart Star is in the Program Mode Refer to the Rabbit 2000 Microprocessor User s Manual for more information on the pro gramming port
97. el to read channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 10 RETURN VALUE A value corresponding to the voltage on the analog input channel 0 4095 A value outside this range indicates a failure SEE ALSO anaInCalib anaInVolts Reads the state of an analog input channel and uses the previously set calibration constants to convert the state to volts PARAMETERS channel is the analog input channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 10 RETURN VALUE A voltage value corresponding to the voltage on the analog input channel 0 10 V on the SR9300 or 10 10 V on the SR9310 SEE ALSO anaIn anaInCalib anaInmAmps 94 Smart Star A D Converter Cards SR9300 Reads the state of an analog input channel and uses the previously set calibration constants to convert the state to current NOTE The factory set calibration constants are for current measurements in amperes PARAMETERS channel is the analog input channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or channel ChanAddr slotn
98. ent driver outputs are either all sinking or all sourcing depending on the model of Digital I O Card selected Table 8 lists the Digital I O Cards that are available for the Smart Star control system Table 8 Smart Star Digital LO Cards UO Card Model Features SR9200 16 digital inputs 8 digital sinking outputs SR9210 8 digital inputs 16 digital sinking outputs SR9220 8 digital inputs 8 digital sinking outputs Digital UO SR9205 16 digital inputs 8 digital sourcing outputs SR9215 8 digital inputs 16 digital sourcing outputs SR9225 8 digital inputs 8 digital sourcing outputs User s Manual 71 7 2 User Interface Figure 24 shows the complete pinout for the user interface on header J2 Note that pin 1 is indicated by a small arrow on the ribbon cable connector GND DIGINO DIGIN1 DIGIN2 DIGIN3 GND K DIGIN4 DIGINS DIGING DIGIN7 GND 1 08 1 09 1 010 1 011 GND 1 012 1 013 1 014 1 015 HVOUTO HVOUT1 HVOUT2 GND HVOUT3 HVOUT4 K HVOUT5 HVOUT6 HVOU7 GND Figure 24 Digital I O Card User Interface Pinout 72 Smart Star Digital UO Cards SR9200 7 3 User FWT Connections Connections to the Digital I O Cards are made via a ribbon cable connector or optional field wiring terminals that are either pluggable or have screw terminals Table 9 lists the Rabbit part numbers for the FWTs Table 9 Guide to FWT Selection Rabbit Part
99. ents of the LCD buffer are transferred to the LCD if the counter 1s zero RETURN VALUE None SEE ALSO glBuffUnlock glBuffLock _glSwapData located in the library specifically for the LCD that you are using Sets the drawing method or color of pixels drawn by subsequent graphic calls PARAMETER type value can be one of the following macros PIXBLACK draws black pixels turns pixel on PIXWHITE draws white pixels turns pixel off PIXXOR draws old pixel XOR ed with the new pixel RETURN VALUE None SEE ALSO glGetBrushType md 52 Smart Star SR9000 Gets the current method or color of pixels drawn by subsequent graphic calls RETURN VALUE The current brush type SEE ALSO glSetBrushType Draws a single pixel in the LCD buffer and on the LCD if the buffer is unlocked If the coordinates are outside the LCD display area the dot will not be plotted PARAMETERS x is the x coordinate of the dot y is the y coordinate of the dot RETURN VALUE None SEE ALSO glPlotline glPlotPolygon glPlotCircle Draws a line in the LCD buffer and on the LCD if the buffer is unlocked Any portion of the line that is beyond the LCD display area will be clipped PARAMETERS x0 is the x coordinate of one endpoint of the line y0 is the y coordinate of one endpoint of the line x1 is the x coordinate of the other endpoint of the line y1 is the y coordinate of the other endpoint of the line RETURN VALUE None SEE
100. er Cards 104 Smart Star D A Converter Cards SR9400 9 4 Power Distribution Figure 42 shows the power distribution on the D A Converter Card BACKPLANE SLOT 0 6 Multiplexer Latch 4 096 V DAC reference 12 V voltage regulators Figure 42 D A Converter Card Power Distribution Figure 43 shows the power supply for the op amps used as voltage amplifiers current sources OFF ON control V_USER 12 V gt f ot Figure 43 Op Amp Power Supplies SR9410 only There is provision in software using the ana0utDisable or the ana0utEnable func tion calls to turn the regulated 12 V power supply off or on since pin 5 on U1 is connected to PE7 on the Rabbit 2000 microprocessor on the backplane This type of disabling enabling allows the analog output channels to float in a high impedance state The voltage regulator on off is disabled by default when there is a reset or when the D A Converter Card is first used All output channels must be configured to the required volt age or current outputs before calling the ana0utEnable function since unconfigured channels are automatically set to the maximum output The 12 V supply is provided only for the SR9410 which provides analog outputs up to 10 V User s Manual 105 9 5 Software 9 5 1 Sample Programs e ANAVOUT C Demonstrates how to set the D A channel for the desired output e SSDAC1 C Demonstrates how
101. es Approximate Output Equivalent rawcount SR9400 SR9410 SR9420 0 0000H 10 V 10 V 20 mA 2047 07FFH 5 V OV 12mA 4095 OFFFH OV 10 V 4 mA RETURN VALUE 0 if successful 1 if not able to make calibration constants SEE ALSO anaOut anaOutVolts anaOutmAmps 108 Smart Star D A Converter Cards SR9400 The calibration constants may also be saved in the flash memory on the Smart Star CPU Card Doing so will speed up D A conversions since a memory access from flash memory will be faster than from EEPROM Use anaSaveCalib to save the current set of calibration constants for the analog input or output channels in the Smart Star flash memory The calibration constants stored in flash memory can then be accessed at any time with the anaLoadCalib function Calibration constants should first be established using ana0utCalib or obtained via anaOutEERd PARAMETER boardtype is the type of board which is 0 for the D A Converter Card 1 for the A D Converter Card RETURN VALUE 0 if successful 1 attempt to write non flash area nothing written 2 rootSrc not in root 3 timeout while writing flash memory 4 attempt to write to ID block sector s SEE ALSO anaLoadCalib anaOutCalib Reads a complete set of calibration constants for the analog output channels from the Smart Star flash memory on the CPU Card These should have been loaded to the flash memory with the anaSaveCa lib function PARAMETER board
102. ese I O cards Before you run this sample program edit the IP address as for the pingme program compile the program and start it executing The analog outputs will change or the relays will open and close in response to instructions sent from the Web browser User s Manual 55 5 2 5 LCD Keypad Sample Programs Showing TCP IP Features The following sample programs found in the TCPIP subdirectory in SAMPLES LCD Keypad 122x32_1x7 are demonstrate the features of the LCD key pad module connected to the backplane Remember to configure the IP address netmask and gateway as indicated in the sample programs e MBOXDEMO C This program implements a web server that allows Web e mail mes sages to be entered that are then shown on the LCD display The keypad allows you to scroll within messages flip to other e mails mark messages as read and delete e mails When a new e mail arrives an LED turns on and turns off once the message has been marked as read A log of all e mail actions is kept and can be displayed in the Web browser All current e mails can also be read with the Web browser When using MBOXDEMO C connect the Smart Star CPU Card and a PC or other device with a Web Browser to an Ethernet If you connect the PC and the CPU Card directly be sure to use a crossover Ethernet cable straight through Ethernet cables and a hub may be used instead e TCP RESPOND C This program and TCP_SEND C are executed on two separate sin
103. eypad Windows directory TCP RESPOND C waits for a message from another single board computer The mes sage received is displayed on the LCD and you may respond by pressing a key on the keypad The response is then sent to the remote single board computer e TCPSEND C This program and TCP_RESPOND C are executed on two separate single board computers to demonstrate how the two boards communicate with each other Use PCRESPOND EXE on the PC console side at the command prompt if you do not have a second board PCRESPOND EXE is located with source code in the SAMPLESLCD Keypad Windows directory When a key on the keypad is pressed a message associated with that key is sent to a specified destination address and port The destination then responds to that message The response is displayed on the LCD Note that only the LEFT and UP scroll keys are set up to cause a message to be sent When using TCPSEND C and TCP_RESPOND C connect the Smart Star and the other sin gle board computer to an Ethernet If you connect the them directly be sure to use a cross over Ethernet cable straight through Ethernet cables and a hub may be used instead 142 Smart Star SR9000 B 8 LCD Keypad Module Function Calls B 8 1 LEDs When power is applied to the LCD keypad module for the first time the red LED DS1 will come on indicating that power is being applied to the LCD keypad module The red LED is turned off when the brdInit function executes
104. for the Smart Star backplanes Table 5 Smart Star Backplane Specifications Specification Parameter SR9010 SR9050 Board Size 6 50 x 4 20 x 0 75 3 75 x 4 40 x 0 75 165 mm x 107 mm x 19 mm 95 mm x 112 mm x 19 mm one 2 x 26 CPU card slot 2mm one 2 x 26 CPU card slot 2 mm Connectors seven 2 x 13 I O card slots 2 mm three 2 x 13 I O card slots 2 mm Slot Select Each slot has a predefined dedicated set of addresses see Appendix D and the software chapters in the individual I O card manuals Temperature 40 C to 70 C Humidity 5 to 95 noncondensing External Input Voltage 9 V to 30 V DC at 1 A typical for onboard 5 V regulated supply provision for independent 9 V to 30 V DC V_USER voltage source for T O cards the exact voltage for the second supply depends on the requirements of the specific I O cards used Rabbit recommends tying V_USER to RAW unless there is a specific need for an independent power supply Onboard Voltage Regulator Surface mount switching regulator sources 5 V at 1 A Data Lines Buffered bidrirectional data lines DO D7 Address Lines Buffered address lines A0 A3 Read Write Control Buffered IORD IOWR Reset T O cards and CPU card can be reset independently User s Manual 61 6 1 2 CPU Card Figure 20 shows the mechanical dimensions for the CPU cards
105. g to this chip is a combination of single bit writes via board registers and synchronous clocked serial access via the CPU Card s Serial Port B which is extended across all eight slots In addition a serial EEPROM is installed on the A D Con verter Card to store the calibration constants Table D 4 A D Converter Card Control Registers Address Data Bits Value Description 0x0 Write D7 D0 PDA ea mpar une Load A D converter with data byte D3 D0 selects conversion channel 0 A D converter end of conversion signal 0x0 Read D1 1 A D converter busy 0 Enable A D conversion 0x1 Write DO 1 Disable A D conversion 0 EEPROM clock line low 0x2 Write DO 1 EEPROM clock line high 0 EEPROM data line low 0x3 Write DO 1 EEPROM data line high 0 EEPROM acknowledge signal 0x0 Read D2 1 EEPROM busy 176 Smart Star SR9000 D 3 D A Converter Card Channel Layout The D A Converter Card contains four two channel 12 bit D A converters TLV5618 to produce 8 analog output channels Each channel is accessed by the slot channel and device addressing scheme The D A Converter Card also has an EEPROM to store calibra tion constants Table D 5 D A Converter Card Control Registers Address Data Bits Value Description 0 D A converter clock line low Bs 1 D A converter clock line high D1 X D A converter data input line D2 0 D A converter chip select channels
106. h snubbers 10 RELDRV Figure 45 Relay Configurations The diode protects the coil power supply and the Smart Star backplane from inductive spikes caused by energizing de energizing the coil and the resistor capacitor snubbers protect the relay contacts against voltage spikes induced by inductive loads Figure 46 shows the complete pinout for the user interface on header J1 Note that pin 1 is indicated by a small arrow on the ribbon cable connector SR9500 SR9510 J1 J1 GND RELONO RELOCOM REL1NO REL1COM a RELONO GND m RELONO o RELOCOM RELOCOM RELONC o GND REL1NO GND o REL1NO REL1COM REL1NC o REL1COM REL2NO REL2COM REL2NO o GND REL2NC GND REL2COM o REL2NO REL3NO REL3COM REL3NO 9 REL2COM REL3NC REL4NO a D D a D D D D D GND REL3NO GND REL4COM REL3COM REL3COM REL4NC REL5NO REL4NO REL4NO REL5COM REL5NC REL4COM REL4COM REL6NO REL6COM GND REL5NO GND REL6NC REL5NO REL5COM REL7NO REL7COM REL5COM REL5NC REL7NC GND REL5NC GND GND Figure 46 Relay Card User Interface Pinout 118 Smart Star Relay Cards SR9500 10 3 User FWT Connections Connections to the Relay Cards are made via a ribbon cable connector or optional field wiring terminals that are either pluggable or have screw terminals Table 21 lists the Rabbit part numbers for the FWTs Table 21 Guide to FWT Selection Rabbit Part Number Pluggable Terminals
107. ied space The data for the bitmap are stored in xmem This function is like g1XPutBitmap except that it is faster The restriction is that the bitmap must be byte aligned Any portion of a bitmap image or character that is outside the LCD display area will be clipped PARAMETERS left is the top left corner of the bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap width is the width of the bitmap must be evenly divisible by 8 otherwise truncates height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO glXPutBitmap glPrintf Defines a text only display window This function provides a way to display characters within the text window using only character row and column coordinates The text window feature provides end of line wrapping and clipping after the character in the last column and row is displayed NOTE Execute the TextWindowFrame function before other Text functions PARAMETERS window is a window frame descriptor pointer pFont is a font descriptor pointer x is the x coordinate of the top left corner of the text window frame y is the y coordinate of the top left corner of the text window frame winWidth is the width of the text window frame winHeight is the height of the text window frame RETURN VALUE 0 window frame was successfully created 1 x coordinate width has exceeded the display bounda
108. ins Connected Factory Default 1 2 Bias and termination resistors x IPI RS 485 Bias and Termination 5 6 connected Resistors 1 3 Bias and termination resistors not 4 6 connected 1 2 128K 256K x JP2 U5 Flash Memory Size 2 3 512K 1 2 128K x JP3 SRAM Size 2 3 512K 1 2 128K 256K x JP4 U11 Flash Memory Size 2 3 512K 1 2 Normal Mode Xx JPS Flash Memory Bank Select 2 3 Bank Mode Although pins 1 3 and 4 6 of header JP1 are shown jumpered for the termination and bias resistors not connected pins 3 and 4 are not actually connected to anything and this configuration is a parking configuration for the jumpers so that they will be readily available should you need to enable the termination and bias resistors in the future User s Manual 65 6 3 Conformal Coating The areas around the crystal oscillator and the battery backup circuit on the CPU Card have had the Dow Corning silicone based 1 2620 conformal coating applied The confor mally coated areas are shown in Figure 22 The conformal coating protects these high impedance circuits from the effects of moisture and contaminants over time SLSVEVRE 10 c27 3 RH Conformally coated area
109. ith the FPWR power supply jumpered to your own independent K supply User s Manual 77 FPWR 1 V_USER SINKING Dik j71 V_USER SOURCING 2 2 a OUTPUTS AMO OUTPUTS Default JP3 JP3 Hi oog goocooo0oo0o000000000 oo 0000000000000 a 000000090000 mE 0YO000000O0O0O0OOOOOM Gel aaa Baas 5 Gy GE Saee Be Sa ee A B KS AS 3 i ER SC JF eee T 2 18 old EG Go JE Bs E J8 EE 0000000000000 TA tum Figure 30 Selecting Power Supply for High Current Sinking or Sourcing Outputs Figure 31 shows how to connect a load to the high current outputs based on whether your Digital I O Card model has sinking or sourcing outputs SINKING OUTPUT SOURCING OUTPUT E Load EE eV HVOUT 4 HVOUT T 4 100 KQ Lw 536 0 1kQ 100nF A Load CPU card got 100 nF CPU card pa AN R Figure 31 Connecting a
110. l be filled in with white pixels The window must be byte aligned Parameters will be verified for the following 1 The left and cols parameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple of 8 2 Parameters will be checked to verify that the scrolling area is valid The minimum scrolling area is a width of 8 pixels and a height of one row PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 rows is the number of rows in the window nPix is the number of pixels to scroll within the defined window a negative value will produce a scroll up RETURN VALUE None SEE ALSO glHScroll Draws bitmap in the specified space The data for the bitmap are stored in xmem This function calls g1XPutFastmap automatically if the bitmap is byte aligned the left edge and the width are each evenly divisible by 8 Any portion of a bitmap image or character that is outside the LCD display area will be clipped PARAMETERS left is the top left corner of the bitmap top is the top left corner of the bitmap width is the width of the bitmap height is the height of the bitmap bitmap is the address of the bitmap in xmem RETURN VALUE None SEE ALSO glXPutFastmap glPrintf 156 Smart Star SR9000 Draws bitmap in the specif
111. lation This section describes and illustrates how to bezel mount the LCD keypad module Fol low these steps for bezel mount installation 1 Cut mounting holes in the mounting panel in accordance with the recommended dimen sions in Figure B 7 then use the bezel faceplate to mount the LCD keypad module onto the panel 0 125 D 4x gt i ri gt A y ER GE S AS N Pa w Zz Ki S N Nk a St CUTOUT SE je N D NS gt N rs 7 a N P N hs Ge N gt i 0 230 T ao 5 8 SE k 2 870 72 9 A 3 100 d 78 8 Figure B 7 Recommended Cutout Dimensions 2 Carefully drop in the LCD keypad module with the bezel and gasket attached User s Manual 137 3 Fasten the unit with the four 4 40 screws and washers included with the LCD keypad module If your panel is thick use a 4 40 screw that is approximately 3 16 5 mm longer than the thickness of the panel Bezel Gasket Om On On Re RS R8 RT it En mm 2mm 2 El 2 Figure B 8 LCD Keypad Module Mounted in Panel rear view Carefully tighten the screws until the gasket is compressed and the plastic bezel face plate is touching the panel Do not tighten each screw fully before moving on to the next screw Apply
112. low ing rawcount data correspond to the analog outputs indicated Approximate Output Equivalent rawcount SR9400 SR9410 SR9420 0 0000H 10 V 10 V 20 mA 2047 07FFH 5 V OV 12mA 4095 OFFFH OV 10 V 4 mA RETURN VALUE 0 if successful 1 if rawcount is greater than 4095 SEE ALSO anaOutVolts anaOutCalib 110 Smart Star D A Converter Cards SR9400 Sets the voltage of an analog output channel by using the previously set calibration constants to calculate correct data values PARAMETERS channel is the D A converter output channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 7 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 voltage is the voltage desired on the output channel RETURN VALUE None SEE ALSO anaOut anaOutCalib anaOutmAmps Sets the current of an analog output channel by using the previously set calibration constants to calculate correct data values NOTE The factory set calibration constants are for current measurements in amperes PARAMETERS channel is the D A converter output channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 7 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 current is the current range
113. nd width of the font being displayed which are multi plied by the step values PARAMETERS stepX is the glPrintf x step value stepY is the glPrintf y step value RETURN VALUE None SEE ALSO Use glGetPfStep to examine the current x and y printing step direction Gets the current glPrintf printing step direction Each step direction is independent of the other and is treated as an 8 bit signed value The actual step increments depends on the height and width of the font being displayed which are multiplied by the step values RETURN VALUE The x step is returned in the MSB and the y step is returned in the LSB of the integer result SEE ALSO Use glGetPfStep to control the x and y printing step direction 150 Smart Star SR9000 Provides an interface between the STDIO string handling functions and the graphic library The STDIO string formatting function will call this function one character at a time until the entire formatted string has been parsed Any portion of the bitmap character that is outside the LCD display area will be clipped PARAMETERS ch is the character to be displayed on the LCD ptr is not used but is a place holder for STDIO string functions cnt is not used is a place holder for STDIO string functions pInst is a font descriptor pointer RETURN VALUE None SEE ALSO glPrintf glPutFont doprnt Prints a formatted string much like print on the LCD screen Only the character codes that
114. of the patch without overwriting the existing Dynamic C installation If you have made any changes to the BIOS or to libraries or if you have programs in the old directory folder make these same changes to the BIOS or libraries in the new directory containing the patch Do not simply copy over an entire file since you may overwrite a bug fix Once you are sure the new patch works entirely to your satisfaction you may retire the existing installation but keep it available to handle legacy applications 4 1 1 2 Upgrades Dynamic C installations are designed for use with the board they are included with and are included at no charge as part of our low cost kits Dynamic C is a complete software development system but does not include all the Dynamic C features Rabbit also offers add on Dynamic C modules containing the popular WC OS II real time operating system as well as PPP Advanced Encryption Standard AES and other select libraries In addi tion to the Web based technical support included at no extra charge a one year telephone based technical support module is also available for purchase User s Manual 45 4 2 Sample Programs Sample programs are provided in the Dynamic C SAMPLES folder The sample program PONG c demonstrates the output to the STDIO window The various directories in the SAMPLES folder contain specific sample programs that illustrate the use of the correspond ing Dynamic C libraries The SAMPLES SMRTSTAR f
115. older provides sample programs specific to the Smart Star control system Each sample program has comments that describe the purpose and func tion of the program Follow the instructions at the beginning of the sample program To run a sample program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The BL2500 must be in Program mode see Section 3 3 Programming Cable and must be connected to a PC using the programming cable as described in Section 2 2 Connect the Power Supply More complete information on Dynamic C is provided in the Dynamic C User s Manual Let s take a look at sample programs for the backplane and the CPU Card in the SMRTSTAR folder The RS232 directory contains two sample programs to illustrate RS 232 serial communi cation e SSTAR232 C Demonstrates a simple RS 232 loopback using both serial ports C and D e SSTAR5W C Demonstrates simple 5 wire RS 232 communication with flow control The RS485 directory contains two sample programs to illustrate RS 485 serial communication e MASTER C Demonstrates a simple RS 485 transmission of lower case letters to a slave controller The slave will send converted upper case letters back to the master controller for display in the STDIO window Use SLAVE C to program the slave con troller e SLAVE C Demonstrates a simple RS 485 transmission of alphabetic character
116. on Q A D Converter SR9310 Eleven 12 bit analog inputs 10 V Full featured x SR9320 Eleven 12 bit analog inputs 4 20 mA Sub version SR9500 5 SPST relays and 1 SPDT relay each Full featured e Relay protected with onboard snubbers SR9510 8 SPDT relays no snubbers Full featured x No CE compliance testing was done with the LCD keypad module connected to a Smart Star embedded control system A system consisting of Smart Star boards and an LCD keypad mod ule therefore cannot be considered to be CE compliant User s Manual 13 The sub versions of the boards are also CE compliant All boards that are CE compliant have the CE mark Several Smart Star boards are not yet CE compliant These boards are listed in Table 4 Table 4 Smart Star Backplanes and Cards Not CE Compliant Card Model Description Comments Backplane SR9000 7 T O card slots 1 CPU card slot Legacy product CPU SR9100 25 8 MHz CPU card Legacy product SR9400 Eight analog outputs 0 10 V Passed emissions tests D A Converter SR9410 Eight analog outputs 10 V E SR9420 Eight analog outputs 4 20 mA Immunity The CE compliant Smart Star boards meet the following EN55024 1998 immunity standards e EN61000 4 3 Radiated Immunity e EN61000 4 4 EFT e EN61000 4 6 Conducted Immunity Additional shielding or filtering may be required for a heavy industrial environment Emissions The CE compliant Smart St
117. only one or two turns to each screw in sequence until all are tightened manually as far as they can be so that the gasket is compressed and the plastic bezel faceplate is touching the panel 138 Smart Star SR9000 B 6 Connecting LCD Keypad Module to Smart Star Backplane The LCD keypad module can be located as far as 2 ft 60 cm away from the Smart Star backplane and is connected via a ribbon cable as shown in Figure B 9 D S S gnonnonnnononnn ooooo000000000000 00000000000000000 00000000000000000 00000000000000000 00000000000000000 00000000000000000 Figure B 9 Connecting LCD Keypad Module to Backplane Note the locations and connections for pin 1 on both the backplane and the LCD keypad module User s Manual 139 The SR9050 backplane can also be panel mounted behind the LCD keypad module 1 Prepare a cutout and install the LCD keypad module in the cutout as explained in Section B 5 2 1 2 Use
118. onnncn nero nccnncnnns 15 Chapter 2 Getting Started 17 2 1 Attach the CPU Card to the Backplane A 18 2 2 Connect the Power Supply sssr iiseiprisisteeeissinsne sns inperio senp reae EEE E e in EK EnEn REAR SSO EKEN 19 NOTE Notice to Customers Outside North AmerICds cinta ad EET EN tent Ee AEE Eeen 19 2 3 Programming Cable Connections ccococnncccnoccnoccnonononncconoconnnnnnccononoonnnnnn cnn i aai E a E a aatia 20 Sek Installine Dynamic Caress deornp nae E RE a e a e E e R ERS 21 2 3 starting RA Et E EE 22 2 00 PONG Costos a dai 23 2 7 Installing VO Cards crisol dere E EE es aed a ahaa date do ear E Ae aa eii 24 2 8 Where Do I Go From Here A 25 Chapter 3 Hardware Features 27 Sl Backplane AA ES O o ure AEREE EEEN ERASE Ee 28 Solel Power Dist Dutomins a iia 28 3 1 2 VO Card A cceesvdecsbausstenssbdeaseneesedeesedecaeebevaastsensioeesuee 31 3 2 SMart Star CPU Card Features coccion ctaccosceenscasasevenseasacivsteastcceveusans eege eebe 32 3 2 1 Serial COMMON ei A ad neat 32 EH RN EE 32 BD MD RS ABD co loa 33 32 163 Programmi nS POL naci tadas oecgest eau uecgenseebogi Res 35 3 2 1 4 Ethernet Port SR9150 only 36 o vevsecensdgebsevosencudeeve eara D RAE EEREN 37 3 3 1 Changing Between Program Mode and Run Mode 37 3 3 2 EE 38 IAI SRAM e otr E 38 3 3 2 2 Flash EPROM arerin n E E E EE E A E E E R 38 3 3 3 Eet eegen eebe e EN ete Abel RE EGE 39 3A Other A A NA EE NA Oea EECA EEE aP EE E EE aeaii RERS 41 34 1 Clock Doblen
119. ow for sufficient air flow and will help to minimize any electrical or EMI interference between adjacent boards 68 Smart Star SR9000 PART Il DIGITAL I O CARDS User s Manual 69 Smart Star Digital UO Cards SR9200 7 DIGITAL I O CARDS Chapter 7 describes the features of the Digital I O Card one of the I O cards designed for the Smart Star embedded control sys tem The Smart Star is a modular and expandable embedded con trol system whose configuration of I O A D Converter D A Converter and Relay Cards can be tailored to a large variety of demanding real time control and data acquisition applications The typical Smart Star system consists of a rugged backplane with a power supply a CPU card and one or more I O cards The CPU Card plugs into a designated slot on the back plane chassis which has seven additional slots available for I O cards to be used in any combination A high performance Rabbit 2000 microprocessor on the CPU Card provides fast data processing 7 1 Features The SR9200 Digital I O Cards offer protected digital inputs and high current driver out puts in three banks each containing 8 I O points One bank s configuration is fixed as pro tected digital inputs one bank s configuration is fixed as high current driver outputs and one bank may be configured either as protected digital inputs or as high current driver out puts depending on the model of Digital I O Card selected The high curr
120. r is described and the software highlights are presented The Smart Star is a modular and expandable embedded control system whose configuration of Digital I O A D Converter D A Converter and Relay Cards can be tailored to a large variety of demanding real time control and data acquisition applications The typical Smart Star system consists of a rugged backplane with a built in voltage regulator a CPU Card and one or more I O cards The CPU Card plugs into a designated slot on the backplane chassis which has additional slots available for any combination of I O cards A high performance Rabbit 2000 microprocessor on the CPU Card operates at 22 1 MHz to provide fast data processing 1 1 Features e C programmable to create a custom user interface e Flexible functionality modular configuration allows interchanging or replacing indi vidual I O cards e Expandable up to 168 I O ports e Choice of two backplanes with either 3 or 7 slots for I O cards e Choice of CPU cards with or without one RJ 45 10 100 compatible Ethernet port with 10Base T Ethernet interface e RS 232 and RS 485 serial ports allow networking to other Smart Star units single board computers or enterprise computing centers e 128K SRAM and 512K flash memory optional 512K SRAM e Real time clock e Watchdog supervisor e Backup battery e Optional backlit 122 x 32 graphic display keypad module e RabbitLink Ethernet gateway available for remote download de
121. r machine code level yC OS II aware gt Code disassembly The disassembly window displays addresses opcodes mnemonics and machine cycle times Switch between debugging at machine code level and source code level by simply opening or closing the disassembly window gt Watch expressions Watch expressions are compiled when defined so complex expressions including function calls may be placed into watch expressions Watch expressions can be updated with or without stopping program execution gt Register window All processor registers and flags are displayed The contents of general registers may be modified in the window by the user gt Stack window shows the contents of the top of the stack Hex memory dump displays the contents of memory at any address gt STDIO window print outputs to this window and keyboard input on the host PC can be detected for debugging purposes printf output may also be sent to a serial port or file 44 Smart Star SR9000 4 1 1 Upgrading Dynamic C 4 1 1 1 Patches and Bug Fixes Dynamic C patches that focus on bug fixes are available from time to time Check the Web site www rabbit com support for the latest patches workarounds and bug fixes The default installation of a patch or bug fix is to install the file in a directory folder dif ferent from that of the original Dynamic C installation Rabbit recommends using a differ ent directory so that you can verify the operation
122. r off 1 turn the LCD screen on 0 turn the LCD screen off RETURN VALUE None SEE ALSO glInit glSetContrast glBackLight 144 Smart Star SR9000 Sets display contrast NOTE This function is not used with the LCD keypad module since the support circuits are not available on the LCD keypad module Fills the LCD display screen with a pattern PARAMETER The screen will be set to all black if pattern is OxFF all white if pattern is 0x00 and vertical stripes for any other pattern RETURN VALUE None SEE ALSO glBlock glBlankScreen glPlotPolygon glPlotCircle Blanks the LCD display screen sets LCD display screen to white RETURN VALUE None SEE ALSO glFillScreen glBlock glPlotPolygon glPlotCircle Draws a rectangular block in the page buffer and on the LCD if the buffer is unlocked Any portion of the block that is outside the LCD display area will be clipped PARAMETERS x is the x coordinate of the top left corner of the block y is the y coordinate of the top left corner of the block bmWidth is the width of the block bmWidth is the height of the block RETURN VALUE None SEE ALSO glFillScreen glBlankScreen glPlotPolygon glPlotCircle User s Manual 145 Plots the outline of a polygon in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the polygon that is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function
123. r supply The Smart Star is now ready to be used NOTE A hardware RESET is accomplished by unplugging the power supply then plug ging it back in The green LNK light is on the CPU Card is on when the Smart Star is properly connected either to an Ethernet hub or to an active Ethernet card The orange ACT light flashes each time a packet is received 52 Smart Star SR9000 5 2 TCP IP Sample Programs We have provided a number of sample programs demonstrating various uses of TCP IP for networking embedded systems These programs require that you connect your PC and the Smart Star together on the same network This network can be a local private network preferred for initial experimentation and debugging or a connection via the Internet 5 2 1 How to Set IP Addresses in the Sample Programs With the introduction of Dynamic C 7 30 we have taken steps to make it easier to run many of our sample programs You will see a TCPCONFIG macro This macro tells Dynamic C to select your configuration from a list of default configurations You will have three choices when you encounter a sample program with the TCPCONFIG macro 1 You can replace the TCPCONFIG macro with individual My IP ADDRESS MY NETMASK MY GATEWAY and MY NAMESERVER macros in each program 2 You can leave TCPCONFIG at the usual default of 1 which will set the IP configurations to 10 10 6 100 the netmask to 255 255 255 0 and the nameserver and gateway to 10 10 6 1 If you wo
124. rcuit must allow the processor s chip select signal CS1 to control the SRAM s CS signal CSRAM So with power applied CSRAM must be the same signal as CS1 and with power removed CSRAM must be held high but only needs to be battery voltage high Q4 and Q5 are MOSFET transistors with opposing polarity They are both turned on when power is applied to the circuit They allow the CS signal to pass from the processor to the SRAM so that the processor can peri odically access the SRAM When power is removed from the circuit the transistors will turn off and isolate CSRAM from the processor The isolated CSRAM line has a 100 KQ pullup resistor to VRAM R31 This pullup resistor keeps CSRAM at the VRAM voltage level which under no power condition is the backup battery s regulated voltage at a little more than 2 V Transistors Q4 and Q5 are of opposite polarity so that a rail to rail voltage can be passed When the CS1 voltage is low Q5 will conduct When the CS1 voltage is high Q4 will conduct It takes time for the transistors to turn on creating a propagation delay This delay is typically very small about 10 ns to 15 ns The signal that turns the transistors on is a high on the processor s reset line RES When the CPU Card is not in reset the reset line will be high turning on n channel Q5 When a reset occurs the RES line will go low User s Manual 171 172 Smart Star SR9000 APPENDIX D SMART STAR SLOT
125. re 7 shows how the power supplies are distributed on the backplane and on the CPU Card Power In SLOT 0 6 24 V DC power RAW 5 V switching supply included 9 30 VDC regulator in Tool Kit Optional V_USER power supply for future use 9 30 V DC a Backplane PROCESSOR CPU logic V_USER memory b CPU Card Figure 7 Smart Star Power Supplies Backplane and CPU Card User s Manual 29 Figure 8 shows how the power supplies are distributed on the I O cards Multiplexer Latch Relay Coils High Voltage Outputs Multiplexer Latch user selectable Digital I O Relay Multiplexer Latch Multiplexer Latch Voltage Regulators Voltage Regulators A D Reference Voltage 12 V A D Converter D A Converter Figure 8 Smart Star Power Distribution on I O Cards NOTE Note that Rabbit recommends tying RAW to V_USER as explained in Section 2 2 Connect the Power Supply The user has the option of using a separate power supply to K when configuring the high power outputs for the digital I O cards The connection to K is through the user interface on the digital I O card Further details are provided in Chapter 7 Digital I O Cards 30 Smart Star SR9000 3 1 2 I O Card Slots The backplane serves to make the CPU Card accessible to up to seven I O cards plugged in to SLOT 0 through SLOT 6 on the backplane Figure 9 shows the pinout for SLOT 0 through SLOT 6 headers J3 J9 on the backplan
126. rovides packet based serial functions where packets can be delimited by the 9th bit by transmission gaps or with user defined special characters Both libraries provide blocking functions which do not return until they are finished transmitting or receiv ing and nonblocking functions which must be called repeatedly until they are finished For more information see the Dynamic C Function Reference Manual and Technical Note 213 Rabbit 2000 Serial Port Software Use the following function calls with the Smart Star User interface to set up serial communication lines for the Smart Star control system Call this function after serXOpen PARAMETERS mode is the defined serial port configuration of the CPU Card Serial Port Parallel Port Mode C PC2 and PC3 D PCO and PC1 D PDO and PD1 0 RS 232 3 wire RS 485 1 RS 232 3 wire RS 232 3 wire 2 RS 232 5 wire RTS CTS 3 RS 232 5 wire RS 485 RTS CTS RETURN VALUE 0 if correct mode 1 if not Enables RS 485 transmission disables receive on serial port D RETURN VALUE None SEE ALSO ser485Rx User s Manual 49 Disables RS 485 transmission enables receive on serial port D RETURN VALUE None SEE ALSO ser485Tx 50 Smart Star SR9000 5 USING THE TCP IP FEATURES Chapter 5 discusses using the TCP IP features on the CPU cards Note that the TCP IP feature is available only on the SR9150 CPU Card 5 1 Ethernet Connections
127. ry 2 y coordinate height has exceeded the display boundary User s Manual 157 Sets the cursor location to display the next character The display location is based on the height and width of the character to be displayed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor col is a character column location row is a character row location RETURN VALUE None SEE ALSO TextPutChar TextPrintf TextWindowFrame Gets the current cursor location that was set by a Graphic Text function NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor col is a pointer to cursor column variable row is a pointer to cursor row variable RETURN VALUE Lower word Cursor Row location Upper word Cursor Column location SEE ALSO TextGotoXY TextPrintf TextWindowFrame TextCursorLocation 158 Smart Star SR9000 Displays a character on the display where the cursor is currently pointing If any portion of a bitmap character is outside the LCD display area the character will not be displayed The cursor increments its position as needed NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor ch is a character to be displayed on the LCD RETURN VALUE None SEE ALSO TextGotoXY TextPrintf Tex
128. s tant bezel is available for the Smart Star Appendix B describes the LCD keypad module and provides the software function calls to make full use of the LCD keypad module B 1 Specifications The LCD keypad module comes with or without a panel mounted NEMA 4 water resistant bezel as shown in Figure B 1 LCD Keypad Modules o 000 o Eo uO HHH Figure B 1 LCD Keypad Module Versions Either version can be connected to the Smart Star backplane and can be installed at a remote location up to 60 cm 24 away Contact your Rabbit sales representative or your autho rized distributor for further assistance in purchasing an LCD keypad module Mounting hardware and a 60 cm 24 extension cable are also available for the LCD key pad module through your sales representative or authorized distributor User s Manual 131 Table B 1 lists the electrical mechanical and environmental specifications for the LCD keypad module Table B 1 LCD Keypad Specifications Parameter Specification f 2 60 x 3 00 x 0 75 Posie 66 mm x 76 mm x 19 mm Bezel Size 4 50 x 3 60 x 0 30 114 mm x 91 mm x 7 6 mm Operating Range 0 C to 50 C EE Storage Range 40 C to 85 C Humidity 5 to 95 noncondensing Power Consumption 1 5 W maximum Connections Connects to high rise header sockets on Smart Star LCD Panel Size 122 x 32 graphic display Keypad 7 key keypad
129. s to a master controller The slave will send converted upper case letters back to the master controller for display in the STDIO window Use MASTER C to program the master controller 46 Smart Star SR9000 4 3 Dynamic C Libraries One library directory contains software that is unique to the Smart Star e SMRTSTAR LIB This library supports all the functions needed by the Smart Star sys tems including Digital I O Cards Relay Cards D A Converter and A D Converter Cards and serial communication Functions dealing with the backplane and the CPU Card are described in this chapter Functions relevant to the individual I O cards are described in the chapter specific to the T O card Other functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C User s Manual User s Manual 47 4 4 Smart Star Backplane Function Calls 4 4 1 Board Reset Resets all cards on the bus RETURN VALUE None 4 4 2 Board Initialization Initializes slot addressing disables card enable disable line resets card slot bus and LED latch and turns all LEDS OFF Call this function at the beginning of the application RETURN VALUE None 48 Smart Star SR9000 4 5 Serial Communication Calls Library files included with Dynamic C provide a full range of serial communications support The RS232 LIB library provides a set of circular buffer based serial functions The PACKET LIB library p
130. t 5 Q 500 Q 1 across the wire The voltage across the load will then be 1 less which is about 40 counts for the SR9400 By connect ing D A_SEN as shown in Figure 40 the output driver will be able to sense the voltage drop across the wire and provide a more accurate voltage output across the load If the load impedance is much greater than the impedance of the wire leads simply leave the D A_SEN sensing inputs open 33 pF os U10 gt gt DIA_SEN 0 7 Figure 40 D A Converter Output for Low lmpedance Loads User s Manual 103 9 3 User FWT Connections Connections to the D A Converter Cards are made via a ribbon cable connector or optional field wiring terminals that are either pluggable or have screw terminals Table 18 lists the Rabbit part numbers for the FWTs Table 18 Guide to FWT Selection Rabbit Part Number Pluggable Terminals Screw Terminals FWT Description UO Cards FWT18 D A Converter 101 0421 101 0515 9 3 1 Pinouts Figure 41 shows the pinout for the FWTs used on 1Tollo a_seno the D A Converter Cards 2 D A_OUTO 31 D A_SEN1 4ll D A_OUT1 5 D D A_SEN2 6lle ll GND 7llo D A_SEN3 8 o D A_ouT2 9 D D A_SEN4 a e 10 Q D A_OUT3 Somo Jen 812 lp D A_ouT4 Se13 ll 2 D A_SEN5 est O D A_OUT5 Sei5llo lo a sens 916 Ollo a_oute e 017 D A_OUT7 00 e e18 D D A_SEN7 Figure 41 FWT Pinout for D A Convert
131. t is outside the LCD display area will be clipped If fewer than 3 vertices are specified the function will return without doing anything PARAMETERS n is the number of vertices x1 is the x coordinate of the first vertex y1 is the y coordinate of the first vertex x2 is the x coordinate of the second vertex y2 is the y coordinate of the second vertex are the coordinates of additional vertices RETURN VALUE None SEE ALSO glFillVPolygon glPlotPolygon glPlotVPolygon User s Manual 147 Draws the outline of a circle in the LCD page buffer and on the LCD if the buffer is unlocked Any por tion of the circle that is outside the LCD display area will be clipped PARAMETERS xc is the x coordinate of the center of the circle yc is the y coordinate of the center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glFillCircle glPlotPolygon gl1FillPolygon Draws a filled circle in the LCD page buffer and on the LCD if the buffer is unlocked Any portion of the circle that is outside the LCD display area will be clipped PARAMETERS xc is the x coordinate of the center of the circle yc is the y coordinate of the center of the circle rad is the radius of the center of the circle in pixels RETURN VALUE None SEE ALSO glPlotCircle glPlotPolygon gl1FillPolygon 148 Smart Star SR9000 Initializes the font descriptor structure where the font is stored
132. t only as shown in Figure B 5 Keypad label is located under the blue keypad matte O AO VdADOAODO O Figure B 5 Removing and Inserting Keypad Label The sample program KEYBASIC C in the 122x32_1x7 folder in SAMPLES LCD KEYPAD shows how to reconfigure the keypad for different applications 134 Smart Star SR9000 B 4 Header Pinouts Figure B 6 shows the pinouts for the LCD keypad module S ep bm oO om oo zu mmoHO Oooo e e O 3 ooo ES ZS Ho fb 64 46 6606 n na B J1 Oo oO DD 0 oo 0 0 ID D D D oO oO oO oO OO Oz Cl ok eee eae eh KC ES ana a zi cl D SN D oO OO Do at ei ob oc om zaal gt HHH oaaaace SE p ODOO COCO E D 0 0 0 0 0 DW J2 J3 D D Er 6 E 6 E a O 0 0 E E OVQOaDOON a oO zt Cl o k SEEEEEEREEEEGGER 05000 OO a a y a Figure B 6 LCD Keypad Module Pinouts B 4 1 UO Address Assignments The LCD and keypad on the LCD keypad module are addressed by the CS strobe as explained in Table B 2 Table B 2 LCD Keypad Module Address Assignment Address Function 61COExx0 61COExx7 LCD control 61COExx8 LED enable 61C0Exx9 Not used 61COExxA 7 key keypad 61COExxB bits 0 6 7 LED driver 61COExxB bit 7 LCD backlight on off 61COExxC 61C0OExxF Not used User s Manual 135 B 5 Mounting LCD Keypad Module B 5 1 Installation Guidelines When possible following these guidelines when mounting the LCD keypad module
133. tWindowFrame TextCursorLocation Prints a formatted string much like print E on the LCD screen Only printable characters in the font set are printed also escape sequences Wi and n are recognized All other escape sequences will be skipped over for example b and t will print if they exist in the font set but will not have any effect as control characters The text window feature provides end of line wrapping and clipping after the character in the last col umn and row is displayed The cursor then remains at the end of the string NOTE Execute the TextWindowFrame function before using this function PARAMETERS window is a pointer to a font descriptor fmt is a formatted string are formatted string conversion parameter s EXAMPLE TextPrintf amp TextWindow Test d n count RETURN VALUE None SEE ALSO TextGotoXY TextPutChar TextWindowFrame TextCursorLocation User s Manual 159 B 8 3 Keypad The functions used to control the keypad are contained in the Dynamic C LIB KEYPADS KEYPAD7 LIB library Initializes keypad process RETURN VALUE None SEE ALSO brdInit Assigns each key with key press and release codes and hold and repeat ticks for auto repeat and debouncing PARAMETERS cRaw is a raw key code index 1x7 keypad matrix with raw key code index assignments in brackets 0 1 2 3 4 5 6 User Keypad Interface cPress is a key press code
134. tion protocol Basically the chip translates the Rabbit 2000 s 0 V to Vcc signals to RS 232 signal levels Note that the polarity is reversed in an RS 232 circuit so that 5 V is output as approximately 10 V and O V is output as approx imately 10 V The transceiver also provides the proper line loading for reliable communi cation The maximum baud rate is 115 200 bps RS 232 can be used effectively at this baud rate for distances up to 15 m The Rabbit 2000 serial port C TXD and RXD signals are presented either as RS 232 TX and RX or as RTS CTS handshaking depending on the mode selected with the Dynamic C function serMode The RS 232 signals are available on screw terminal header J3 32 Smart Star SR9000 3 2 1 2 RS 485 The CPU Card has one RS 485 serial channel which is connected to the Rabbit 2000 serial port C through an RS 485 transceiver The chip s slew rate limiters provide for a maximum baud rate of 250 000 bps and allows networking over a distance of up to 300 m or 1000 ft The half duplex communication uses the Rabbit 2000 s PD4 pin to control the data enable on the communication line The RS 485 signals are available on the CPU Card through screw terminal header J3 The Smart Star control system can be used in an RS 485 multidrop network Connect the 485 to 485 and 485 to 485 using single twisted pair wires on the CPU Card s header J4 as shown in Figure 11 Note that a common ground is recommended
135. to create messages using the keypad and then dis playing them on the LCD display COFTERMA C Demonstrates cofunctions the cofunction serial library and using a serial ANSI terminal such as Hyperterminal from an available COM port connection DISPPONG C Demonstrates output to LCD display DKADEMO1 C Demonstrates some of the LCD keypad module font and bitmap manipulation features with horizontal and vertical scrolling and using the GRAPHIC LIB library FUN C Demonstrates drawing primitive features lines circles polygons using the GRAPHIC LIB library KEYBASIC C Demonstrates the following keypad functions in the STDIO display window default ASCII keypad return values custom ASCII keypad return values keypad repeat functionality KEYMENU C Demonstrates how to implement a menu system using a highlight bar on a graphic LCD display The menu options for this sample are as follows 1 Set Date Time 2 Display Date Time 3 Turn Backlight OFF 4 Turn Backlight ON 5 Toggle LEDs 6 Increment LEDs 7 Disable LEDs LED C Demonstrates how to toggle the LEDs on the LCD keypad module SCROLLING C Demonstrates scrolling features of the GRAPHIC LIB library TEXT C Demonstrates the text functions in the GRAPHIC LIB library Here is a list of what is demonstrated 1 Font initialization 2 Text window initialization 3 Text window end of line wraparound end of text window clipping line feed and
136. trictive emissions requirement less than 40 dB pV m at 10 m 40 dB relative to 1 uV m or 300 uV m More restrictive emissions requirement 30 dB uV m at 10 m or 100 uV m These limits apply over the range of 30 230 MHz The limits are 7 dB higher for frequencies above 230 MHz Although the test range goes to 1 GHz the emissions from Rabbit based systems at frequencies above 300 MHz are generally well below background noise levels The CPU card I O cards and backplane in the Smart Star embedded control system have been tested and were found to be in conformity with the following applicable immunity and emission standards as described in Table 3 Table 3 CE Compliance of Smart Star Backplanes and Cards Used for CE Card Model Description Compliance Testing 7 I O card slots 1 CPU card slot SR9010 header connections for optional Full featured x LCD keypad module Backplane 3 I O card slots 1 CPU card slot SR9050 header connections for optional Sub version LCD keypad module SR9150 22 1 MHz CPU card with Ethernet Full featured x CPU SR9160 22 1 MHz CPU card without Ethernet Sub version SR9200 16 inputs 8 sinking outputs Full featured x S SR9205 16 inputs 8 sourcing outputs Full featured x Digital I O SR9210 8 inputs 16 sinking outputs Sub version SR9220 8 inputs 8 sinking outputs Sub version 3 SR9300 Eleven 12 bit analog inputs 0 10 V Sub versi
137. type is the type of board which is 0 for the D A Converter Card 1 for the A D Converter Card RETURN VALUE 0 if successful 1 attempt to read from non flash area 2 destination not all in root SEE ALSO anaSaveCalib anaOutCalib User s Manual 109 Sets the voltage of an analog output channel by serially clocking in 16 bits to a D A converter using the following format e Program bits D15 D12 e New data D11 DO D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 DO R1 SPD PWR RO MSB 12 data bits MSB LSB 0 4095 LSB SPD Speed control bit 1 fast mode default O slow mode PWR Power control bit 1 power down 0 normal operation default The following table lists all the possible combinations of the register selects bits R1 Register 1 and RO Register 0 R1 RO Register 0 0 Write data to D A converter channel B 0 1 Write data to buffer 1 0 Write data to D A converter channel A 1 1 Reserved PARAMETERS channel is the D A converter output channel to write channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 7 or Channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 7 rawcount is a value corresponding to the voltage on the analog output channel 0 4095 The fol
138. u The CPU Card must be connected to a PC using the programming cable as described in Section 2 3 Programming Cable Connections More complete information on Dynamic C is provided in the Dynamic C User s Manual 8 5 2 Dynamic C Libraries The SMRTSTAR directory contains libraries required to operate the Smart Star control system e SMRTSTAR LIB This library supports all the functions needed by the Smart Star sys tems including Digital I O Cards Relay Cards D A Converter and A D Converter Cards and serial communication Other functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C Function Reference Manual User s Manual 91 8 5 3 Smart Star A D Converter Card Function Calls The A D Converter Card calibration constants gain and offset are stored in the factory in the upper half of the EEPROM on the A D Converter Card Use this function to read the A D Converter Card calibra tion constants gain and offset from the upper half of the EEPROM on the A D Converter Card PARAMETERS channel is the analog input channel channel should be passed as channel slotnumber 128 channelnumber where slotnumber is 0 6 and channelnumber is 0 10 or channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 10 RETURN VALUE 0 if successful 1 control command unacceptable 2 EEPROM address unacceptable SEE ALSO anaInEEWr
139. uld like to change the default values for example to use an IP address of 10 1 1 2 for the CPU Card and 10 1 1 1 for your PC you can edit the values in the section that directly follows the General Configuration comment in the TCP CONFIG LIB library You will find this library in the LIB TCPIP directory 3 You can create a CUSTOM_CONFIG LIB library and use a TCPCONFIG value greater than 100 Instructions for doing this are at the beginning of the TCP_CONFIG LIB library in the LIB TCPIP directory There are some other standard configurations for TCPCONFIG that let you select differ ent features such as DHCP Their values are documented at the top of the TCP CONFIG LIB library in the LIB TCPIP directory More information is available in the Dynamic C TCP IP User s Manual IP Addresses Before Dynamic C 7 30 Most of the sample programs use macros to define the IP address assigned to the CPU Card and the IP address of the gateway if there is a gateway Instead of the TCPCONFIG macro you will see a MY IP ADDRESS macro and other macros define MY IP ADDRESS 10 10 6 170 define MY NETMASK 255 255 255 0 define MY GATEWAY 10 10 6 1 define MY NAMESERVER 10 10 6 1 In order to do a direct connection the following IP addresses can be used for the CPU Card define MY IP ADDRESS 10 1 1 2 define MY NETMASK 255 255 255 0 define MY GATEWAY 10 10 6 1 define MY NAMESERVER 10 10 6 1 In this case the gatew
140. umber channelnumber where slotnumber is 0 6 and channelnumber is 0 10 RETURN VALUE A current value corresponding to the 4 20 mA 0 004 0 020 A current on the analog input channel SEE ALSO anaIn anaInCalib anaInVolts User s Manual 95 8 6 Electrical and Mechanical Specifications Figure 37 shows the mechanical dimensions for the A D Converter Card A A SE E om Ae gt o CN aa Figure 37 Relay Card Dimensions NOTE All diagram and graphic measurements are in inches followed by millimeters enclosed in parentheses 96 Smart Star A D Converter Cards SR9300 Table 16 lists the electrical mechanical and environmental specifications for the A D Converter Card Table 16 A D Converter Card Specifications Parameter Specification 2 73 x 3 00 x 0 44 Poara Size 70 mm x 76 mm x 11 mm Connectors one 2 x 10 latch eject ribbon connector 0 1 inch pitch Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Power Requirements 5 V DC at 40 mA from backplane 5 V supply 9 V to 30 V DC 35 mA at 24 V DC RAW V_USER from backplane Number of Inputs
141. umn is filled by current pixel type color PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 otherwise truncates top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 otherwise truncates rows is the number of rows in the window RETURN VALUE None SEE ALSO glvScroll glUpl Scrolls right or left within the defined window by x number of pixels The opposite edge of the scrolled window will be filled in with white pixels The window must be byte aligned Parameters will be verified for the following 1 The left and cols parameters will be verified that they are evenly divisible by 8 If not they will be truncated to a value that is a multiple of 8 2 Parameters will be checked to verify that the scrolling area is valid The minimum scrolling area is a width of 8 pixels and a height of one row PARAMETERS left is the top left corner of bitmap must be evenly divisible by 8 top is the top left corner of the bitmap cols is the number of columns in the window must be evenly divisible by 8 rows is the number of rows in the window nPix is the number of pixels to scroll within the defined window a negative value will produce a scroll to the left RETURN VALUE None SEE ALSO glVScroll User s Manual 155 Scrolls up or down within the defined window by x number of pixels The opposite edge of the scrolled window wil
142. upports all the functions needed by the Smart Star sys tems including Digital I O Cards Relay Cards D A Converter and A D Converter Cards and serial communication Other functions applicable to all devices based on the Rabbit 2000 microprocessor are described in the Dynamic C Function Reference Manual User s Manual 79 7 5 3 Smart Star Digital UO Card Function Calls Reads the state of a digital input channel INO IN15 IN8 IN15 is not available on all versions of the Digital I O Card PARAMETER channel is the digital input channel to read channel should be passed as channel slotnumber 128 channelnumber channel ChanAddr slotnumber channelnumber where slotnumber is 0 6 and channelnumber is 0 15 RETURN VALUE The state of the digital input channel 0 or 1 SEE ALSO digBankIn digOut digBankOut Reads the state of Bank 0 or Bank 2 if installed digital input channels Bank 0 consists of INO IN7 and Bank 2 consists of IN8 IN15 PARAMETER bank is the bank of digital input channels to read bank should be passed as bank slotnumber 16 banknumber bank BankAddr slotnumber banknumber where SLotnumber is 0 6 and banknumber is 0 or 2 RETURN VALUE An input value in the lower byte where each bit corresponds to one channel SEE ALSO digIn digOut digBankOut 80 Smart Star Digital UO Cards SR9200 Writes a value to an output channel OUTO OUT15 OUT8 IN15 not available on all versions of
143. ution Power Distribution I O Card Slots e Smart Star CPU Card Features Serial Communication Memory Other Connectors User s Manual 27 3 1 Backplane Features 3 1 1 Power Distribution Power is supplied to the Smart Star control system from an external source through header J1 on the backplane The 5 V circuitry on the Smart Star control system is protected against reverse polarity by a Schottky diode as shown in Figure 6 n A RAW SWITCHING VOLTAGE 5 V i REGULATOR PE S 7 Figure 6 Smart Star Control System Power Supply Schematic A capacitor provides surge current protection for the voltage regulator and allows the external power supply to be located some distance away from the Smart Star control sys tem A switching power regulator is used The RAW input voltage may range from 9 V to 30 V 15 V to 30 V you plan to use a D A Converter Card The backplane has inputs for two separate power supplies on header J1 RAW and V_USER The RAW power supply goes to the switching power regulator which outputs the 5 V DC used by the CPU Card and by the I O cards plugged into the backplane The V_USER connection allows a different voltage to be available on the I O cards for future development NOTE Always connect V_USER to RAW with a jumper wire between terminals 1 and 2 on header J1 for the development activities described in the Smart Star manuals 28 Smart Star SR9000 Figu
144. vide the coil actuation voltage Should V_USER be less than 13 9 V the comparator will supply V_USER directly to provide the coil actuation voltage 120 Smart Star Relay Cards SR9500 10 5 Relay Cards Software 10 5 1 Sample Programs e SSTARRLY C Demonstrates turning a relay on the Relay Card on and off 10 5 2 Running Sample Programs To run a sample program open it with the File menu if it is not still open compile it using the Compile menu and then run it by selecting Run in the Run menu The CPU Card must be connected to a PC using the programming cable as described in Section 2 3 Programming Cable Connections Complete information on Dynamic C is provided in the Dynamic C User Manual 10 5 3 Dynamic C Libraries The SMRTSTAR directory contains libraries required to operate the Smart Star control system e SMRTSTAR LIB This library supports all the functions needed by the Smart Star sys tems including Digital I O Cards Relay Cards D A Converter and A D Converter Cards and serial communication User s Manual 121 10 5 4 Smart Star Relay Card Function Calls Sets the state of a relay PARAMETER relay is the relay to set relay should be passed as relay slotnumber 128 relaynumber or relay ChanAddr slotnumber relaynumber where slotnumber is 0 6 and relaynumber is 0 5 SR9500 or 0 7 SR9510 depending on the model of Relay Card value is the value to set the relay to 0 or 1 off
145. vironmental specifications for the Digital T O Card Table 13 Digital I O Card Specifications Parameter Specification 2 73 x 3 00 x 0 44 Boa nue 70 mm x 76 mm x 11 mm Connectors one 2 x 17 latch eject ribbon connector 0 1 inch pitch Operating Temperature 40 C to 70 C Humidity 5 to 95 noncondensing Power Requirements 5 V DC at 65 mA from backplane 5 V supply 9 V to 30 V DC for RAW V_USER from backplane or 9 V to 30 V DC for K on user interface header J2 Maximum draw 2 0 A from RAW V_USER on backplane Digital Inputs Continuous operation from 30 V to 30 V logic threshold at 2 5 V protected against spikes 48 V 10 kQ pull up pull down resistors Digital Outputs Each output can sink source up to 200 mA continuously with load limit of 40 V each output may be switched independently or bank of eight may be switched all at once load current supplied from RAW V_USER on backplane or user supplied K on user interface header J2 User s Manual 83 84 Smart Star Digital UO Cards SR9200 PART Ill A D CONVERTER CARDS User s Manual 85 Smart Star A D Converter Cards SR9300 8 A D CONVERTER CARDS Chapter 8 describes the features of the A D Converter Card one of the I O cards designed for the Smart Star embedded control system The Smart Star is a modular and expandable embedded control system whose configura tion of I O

Download Pdf Manuals

image

Related Search

Related Contents

manual técnico de instalación vers. 15  INSTEON I/O LINC 73210 User's Manual  NAS-50HDE Quick Connection and Operation Guide  Sony VGP-UVC100 User's Manual  Samsung Samsung S5611 Instrukcja obsługi    さが食育キャラクター「たべんばくん」着ぐるみ使用規程  Cooler Master Elite 241      

Copyright © All rights reserved.
Failed to retrieve file