Campbell SDM-SW8A Скачать руководство пользователя страница 19

SDM-SW8A Switch Closure Input Module 

Signal Magnitude

 - The signal magnitude should range from 0 - 0.9 V low, to 

4 - 5 V high, or the signal should be centered around 2.5 V with a minimum 8 
V peak to peak magnitude.  When the magnitude is 0 V to greater than 5 V, the 
wave form begins to distort, resulting in less accurate duty cycle information.   

9.  Theory of Operation 

The Switch Closure Input Module uses a 63705 microprocessor to sample the 
8 ports and communicate with the datalogger.  The processor is in a low power 
"Wait" mode except when interrupted. 

An internal timer interrupts the processor approximately every 2 milliseconds 
to sample the input ports.  At this time, for each port, the duty cycle 
accumulator is updated, and the transition counter is incremented if the state 
represents a positive transition from the previous state. 

C3, driven high by the datalogger, also interrupts the SW8A.  The SW8A 
prepares to receive an 8 bit byte (consisting of address in the most significant 
nibble and command in the least significant nibble with the least significant bit 
always a 1) from the datalogger.  The datalogger drives C2 as a clock line and 
C1 as a serial data out line.  The datalogger shifts out each bit (LSB first) on 
the falling edge of the clock; the Switch Closure Module shifts in each bit on 
the rising edge of the clock. 

When all 8 bits are received by the SW8A, the SW8A is again interrupted by 
its serial communication interface.  If the address part of the byte received 
equals the jumpered address, the SW8A executes the command part, providing 
it is valid.  For Function Options 1 and 2, the module receives another byte 
containing Reps and Channel information from the datalogger.  For a valid 
address and command, the SW8A prepares to return a code byte as 
acknowledgment to the datalogger.  Except for the 21X, the datalogger 
switches C1 to an input and after 2 milliseconds clocks back the code byte 
from the SW8A.  If the code byte is correct, the datalogger knows the 
addressed SW8A is present.  The 21X works similarly, except the data from 
the SW8A is input to single ended analog channel 1, not C1.  

Depending on the Command, Reps, and Channel information, the module will 
shift out one or more bytes to the datalogger, again using C2 as a clock driven 
by the datalogger.  The module shifts out each bit on the falling edge of the 
clock; the datalogger reads each bit on the rising edge of the clock.     

Each time an entire byte is transmitted to the datalogger, the SW8A is 
interrupted and prepares to send the next byte, if any.  When all requested 
bytes have been sent, the SW8A disables its serial communication interface 
and waits for both C3 and C2 to be driven low by the datalogger.  When this 
happens, the SW8A prepares again to start a new command cycle. 

An important feature of the module is its watchdog counter.  The counter pulls 
the processor momentarily into reset if the count gets too high.  The counter 
counts the C2 clock transitions.  Under normal operating conditions, the 
processor resets the counter.  If the processor is "bombed," it will not reset the 
counter.  As the datalogger makes requests of the Switch Closure Module, the 
counter increments to the point where it resets the processor; the module will 
then start operating correctly again. 

15 

Содержание SDM-SW8A

Страница 1: ...on 7 10 12V C3 C2 C1 IN 5V IN 1 5V IN 2 5V IN 3 5V IN 4 5V IN 5 5 V IN 6 5 V IN 7 5 V IN 8 C1 OUT TO DATALOGGER 8 CHANNEL SWITCH CLOSURE INPUT MODULE SDM SW8A MADE IN USA C o p y r i g h t 1 9 8 7 2 0...

Страница 2: ...tional customers residing in countries served by Campbell Scientific Inc directly Affiliate companies handle repairs for customers within their territories Please visit www campbellsci com to determin...

Страница 3: ...nsor Connections 4 5 Internal Jumpers 4 5 1 Address Jumpers 4 5 2 Measurement Jumpers 6 6 Datalogger Programming 6 6 1 CRBasic Programming 6 6 1 1 SDMSW8A Instruction 6 6 1 2 SDMSpeed Instruction 7 6...

Страница 4: ...Connections 3 3 Address Jumpers 5 4 Measurement Jumpers 6 5 Bit Period Values 8 6 Instruction 102 SDM SW8A 9 List of Figures 1 SDM SW8A Front Panel 1 2 SDM SW8A Address and Port Configuration Jumpers...

Страница 5: ...ilable but for most applications Campbell Scientific Inc recommends no more than 4 SW8As be connected to one datalogger If more SW8As are required please consult Campbell Scientific s Marketing Depart...

Страница 6: ...unce time 3 ms open without counting Output options State duty cycle counts Max count port 65535 Internal sampling frequency 500 Hz Watchdog reset Yes Total length of connecting cables 20 feet Dimensi...

Страница 7: ...e jumper connecting C1 IN to C1 OUT 3 Power Supply Considerations Due to the 3 mA continuous and 6 mA active current drain an auxiliary 12 VDC power supply is recommended for powering the SW8A in remo...

Страница 8: ...e cable lengths connecting SW8As or other SDM devices and a datalogger should be as short as possible and preferably does not exceed 20 ft Longer lead lengths may be possible for CRBasic dataloggers i...

Страница 9: ...c nc 02 c c nc c 03 c c nc nc 10 c nc c c 11 c nc c nc 12 c nc nc c 13 c nc nc nc 20 nc c c c 21 nc c c nc 22 nc c nc c 23 nc c nc nc 30 nc nc c c 31 nc nc c nc 32 nc nc nc c 33 nc nc nc nc c connect...

Страница 10: ...pport software 6 1 CRBasic Programming 6 1 1 SDMSW8A Instruction The SDMSW8A instruction is used to control the SDM SW8A Eight Channel Switch Closure module and store the results of its measurements t...

Страница 11: ...iplier and offset by which to scale the raw results of the measurement See the measurement description for the units of the raw result a multiplier of one and an offset of 0 are necessary to output in...

Страница 12: ...m Allowable Bit Period Maximum Bit Period CR800 CR850 26 04 sec 8 68 sec 2 2 msec CR1000 26 04 sec 8 68 sec 2 2 msec CR3000 26 04 sec 8 68 sec 2 2 msec CR5000 30 sec 8 sec 3 msec The equation used to...

Страница 13: ...continues to the next SW8A The address settings for the SW8As must be sequential For example assume two SW8As with addresses of 22 and 23 are connected and 12 Reps are requested Eight channels from th...

Страница 14: ...state every 2 ms and accumulates the information for duty cycle and counts Each channel has one 16 bit accumulator for duty cycle and one for counts The accumulators are reset when the datalogger requ...

Страница 15: ...e Module For example if the datalogger scan rate is 10 minutes and 2 channels of counts are requested the SW8A may stay bombed for 20 minutes To avoid this undesirable time delay before resetting a tr...

Страница 16: ...g 9 EndTable SUBROUTINES Sub Subroutine1 SDMSW8A state 8 0 0 1 1 0 SDMSW8A duty 8 0 1 1 1 0 SDMSW8A counts 8 0 2 1 1 0 EndSub PROGRAM BeginProg Scan 1 Sec 3 0 Call Subroutine1 IfSDM SW8Awasjustprogram...

Страница 17: ...elation to the signal conditioned by the SW8A FIGURE 3 SPDT Signal Conditioning by SDM SW8A The 5V output located next to each of the 8 input channels is for biasing in the SPDT measurement A 200 Ohm...

Страница 18: ...or of 2 duty cycle samples on any measurable cycle Equations given below estimate the worst case duty cycle measurement error for a 50 duty cycle and the minimum maximum measurable duty cycle for a gi...

Страница 19: ...e command part providing it is valid For Function Options 1 and 2 the module receives another byte containing Reps and Channel information from the datalogger For a valid address and command the SW8A...

Страница 20: ...SDM SW8A Switch Closure Input Module 16...

Страница 21: ...ected in the first Location containing SW8A data and Flag 9 is set high The SW8A is accessed a second time to increment the watchdog counter to greater than 64 and force a watchdog reset refer to Sect...

Страница 22: ...TE 3 15 DUTY 7 4 STATE 4 16 DUTY 8 5 STATE 5 17 COUNT 1 6 STATE 6 18 COUNT 2 7 STATE 7 19 COUNT 3 8 STATE 8 20 COUNT 4 9 DUTY 1 21 COUNT 5 10 DUTY 2 22 COUNT 6 11 DUTY 3 23 COUNT 7 12 DUTY 4 24 COUNT...

Страница 23: ...3 0 F 4 19 Set high Flag 9 OUTPUT STATE AND AVERAGE DUTY CYCLE EVERY 5 MINUTES 4 If time is P92 1 0 minutes into a 2 5 minute interval 3 10 Set high Flag 0 output 5 Real Time P77 1 110 Day Hour Minute...

Страница 24: ...le P70 1 1 Reps 2 25 Loc RESET CNT 15 Do P86 1 21 Set low Flag 1 FIRST SCAN ROUTINE 16 Else P94 17 Do P86 1 11 Set high Flag 1 18 End P95 19 End P95 20 End Table 1 Table 3 Subroutines SUBROUTINE TO ME...

Страница 25: ...DM SW8A P102 1 8 Reps 2 00 Address 3 1 Duty cycle function 4 1 Chan 5 9 Loc duty 1 6 1 Mult 7 0 Offset 4 SDM SW8A P102 1 8 Reps 2 00 Address 3 2 Counts function 4 1 Chan 5 17 Loc counts 1 6 1 Mult 7 0...

Страница 26: ...Appendix A Edlog Program Example A 6...

Страница 27: ......

Страница 28: ...p CSC 11564 149th Street NW Edmonton Alberta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A CSCC 300 N Cementerio Edificio Breller Santo Domingo Her...

Отзывы: