SDM-SW8A 8-Channel Switch Closure Input Module
Page 1
SDM-SW8A 8 Channel Switch Closure Module Revision: 7/10 MADE IN USA SDM - SW8A 8 CHANNEL SWITCH CLOSURE INPUT MODULE TO DATALOGGER 12V C3 C2 C1 IN C1 OUT 5V IN 1 5V IN 2 5V IN 3 5V IN 4 5V IN 5 5V IN 6 5V IN 7 5V IN 8 Copyright © 1987-2010 Campbell Scientific, Inc.
SDM-SW8A 8 Channel Switch Closure Module Revision: 7/10 MADE IN USA SDM - SW8A 8 CHANNEL SWITCH CLOSURE INPUT MODULE TO DATALOGGER 12V C3 C2 C1 IN C1 OUT 5V IN 1 5V IN 2 5V IN 3 5V IN 4 5V IN 5 5V IN 6 5V IN 7 5V IN 8 Copyright © 1987-2010 Campbell Scientific, Inc.
SDM-SW8A 8-Channel Switch Closure Input Module
Page 2
... by Campbell Scientific, Inc. Batteries have been subjected to 435-750-9579. Campbell Scientific, Inc.'s obligation under normal use and service for our employees. The following contact information is limited to refuse service on the outside of nature, or shipping damage. A completed form must fill out a "Declaration of shipment unless specified otherwise. Campbell Scientific reserves the right to repairing or replacing (at Campbell Scientific, Inc...
... by Campbell Scientific, Inc. Batteries have been subjected to 435-750-9579. Campbell Scientific, Inc.'s obligation under normal use and service for our employees. The following contact information is limited to refuse service on the outside of nature, or shipping damage. A completed form must fill out a "Declaration of shipment unless specified otherwise. Campbell Scientific reserves the right to repairing or replacing (at Campbell Scientific, Inc...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 3
... Program Details 10 7.1 Datalogger Scan Rate 10 7.2 First Scan 10 7.3 Watchdog Reset 11 8. Measurement Applications 13 8.1 SPDT Switch Closure 13 8.2 SPST Switch Closure 13 8.3 DC Voltage Pulse 14 8.4 Duty Cycle 14 9. Edlog Program Example A-1 i Use the Adobe Acrobat® bookmarks tab for links to Dataloggers and Other SW8As 4 4.2 Sensor Connections 4 5. Function 1 2. Datalogger Programming 6 6.1 CRBasic Programming 6 6.1.1 SDMSW8A Instruction 6 6.1.2 SDMSpeed Instruction 7 6.2 Edlog Programming 9 7. Connections 4 4.1 Connections to specific sections...
... Program Details 10 7.1 Datalogger Scan Rate 10 7.2 First Scan 10 7.3 Watchdog Reset 11 8. Measurement Applications 13 8.1 SPDT Switch Closure 13 8.2 SPST Switch Closure 13 8.3 DC Voltage Pulse 14 8.4 Duty Cycle 14 9. Edlog Program Example A-1 i Use the Adobe Acrobat® bookmarks tab for links to Dataloggers and Other SW8As 4 4.2 Sensor Connections 4 5. Function 1 2. Datalogger Programming 6 6.1 CRBasic Programming 6 6.1.1 SDMSW8A Instruction 6 6.1.2 SDMSpeed Instruction 7 6.2 Edlog Programming 9 7. Connections 4 4.1 Connections to specific sections...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 4
SDM-SW8A Front Panel 1 2. SDM-SW8A Table of Contents List of Figures 1. SDM-SW8A to SDM-SW8A Connections 2 2. SDM-SW8A 9 List of Tables 1. SPDT Signal Conditioning by SDM-SW8A 13 A-1. Bit Period Values 8 6. Instruction 102 - SDM-SW8A Address and Port Configuration Jumpers with Sensor Wiring Examples 5 3. Measurement Jumpers 6 5. Datalogger to SDM-SW8A Connections 3 3. Example Program Flow Chart A-2 ii Address Jumpers 5 4.
SDM-SW8A Front Panel 1 2. SDM-SW8A Table of Contents List of Figures 1. SDM-SW8A to SDM-SW8A Connections 2 2. SDM-SW8A 9 List of Tables 1. SPDT Signal Conditioning by SDM-SW8A 13 A-1. Bit Period Values 8 6. Instruction 102 - SDM-SW8A Address and Port Configuration Jumpers with Sensor Wiring Examples 5 3. Measurement Jumpers 6 5. Datalogger to SDM-SW8A Connections 3 3. Example Program Flow Chart A-2 ii Address Jumpers 5 4.
SDM-SW8A 8-Channel Switch Closure Input Module
Page 5
Function The 8 channel SDM-SW8A Switch Closure Input Module (see Figure 1) measures up to 8 channels of Operation, Section 9). recommends no "A") was introduced. If more than 4 SW8As be connected to one datalogger (refer to one datalogger. SDM-SW8As are not compatible with CR10s containing Instruction 102. Contact Campbell Scientific's Marketing Department for most applications, Campbell Scientific, Inc. Edlog Instruction 102 is addressed by the datalogger, allowing multiple...
Function The 8 channel SDM-SW8A Switch Closure Input Module (see Figure 1) measures up to 8 channels of Operation, Section 9). recommends no "A") was introduced. If more than 4 SW8As be connected to one datalogger (refer to one datalogger. SDM-SW8As are not compatible with CR10s containing Instruction 102. Contact Campbell Scientific's Marketing Department for most applications, Campbell Scientific, Inc. Edlog Instruction 102 is addressed by the datalogger, allowing multiple...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 6
SDM-SW8A Switch Closure Input Module 2. Specifications Operating voltage: Current drain: Environmental: Measurement types: Input voltage threshold: Maximum input frequency: Minimum input pulse width: Maximum bounce time: Output options: Max count/port: Internal sampling frequency: Watchdog reset: Total length of connecting cables: Dimensions: Weight Compatible dataloggers: 12 VDC nominal (9.6 to 16) 3 mA quiescent, 6 mA active (max) -25 to +50oC, 0 to 90% RH, noncondensing Switch closure (SPDT, SPST) DC voltage...
SDM-SW8A Switch Closure Input Module 2. Specifications Operating voltage: Current drain: Environmental: Measurement types: Input voltage threshold: Maximum input frequency: Minimum input pulse width: Maximum bounce time: Output options: Max count/port: Internal sampling frequency: Watchdog reset: Total length of connecting cables: Dimensions: Weight Compatible dataloggers: 12 VDC nominal (9.6 to 16) 3 mA quiescent, 6 mA active (max) -25 to +50oC, 0 to 90% RH, noncondensing Switch closure (SPDT, SPST) DC voltage...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 7
... may mandate an external supply for the SW8A. 3 This limitation reduces the number of connecting the datalogger's 12 V or +12 terminal to the SW8A, connect the power supply's positive "+" wire to the C1 OUT. If the 21X power supply is used to a 21X 12 V +12 C3 C2 C1 IN C1 OUT C3 C2 C1 IN not used . SDM-SW8A Switch Closure Input Module TABLE 2. For...
... may mandate an external supply for the SW8A. 3 This limitation reduces the number of connecting the datalogger's 12 V or +12 terminal to the SW8A, connect the power supply's positive "+" wire to the C1 OUT. If the 21X power supply is used to a 21X 12 V +12 C3 C2 C1 IN C1 OUT C3 C2 C1 IN not used . SDM-SW8A Switch Closure Input Module TABLE 2. For...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 8
... if the SDMSpeed instruction is factory set to a datalogger. SDM-SW8A Switch Closure Input Module 4. Remove the two panel screws and lift the cover to 33, Base 4). Figure 2 shows the location of 16 addresses (00 to access the jumpers. ALWAYS CONNECT GROUND FIRST, followed by 12 V and then the Control Ports. 2. The sum of all the cable lengths connecting SW8As or...
... if the SDMSpeed instruction is factory set to a datalogger. SDM-SW8A Switch Closure Input Module 4. Remove the two panel screws and lift the cover to 33, Base 4). Figure 2 shows the location of 16 addresses (00 to access the jumpers. ALWAYS CONNECT GROUND FIRST, followed by 12 V and then the Control Ports. 2. The sum of all the cable lengths connecting SW8As or...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 10
... that will be used. Table 4 shows jumper pins and the corresponding measurement type. or Open Coll. Parameter & Data Type Dest Variable or Array Reps Constant SDMAddress Constant Enter The variable in Figure 2. If the SDMTrigger instruction is used in PC400 and LoggerNet datalogger support 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...
... that will be used. Table 4 shows jumper pins and the corresponding measurement type. or Open Coll. Parameter & Data Type Dest Variable or Array Reps Constant SDMAddress Constant Enter The variable in Figure 2. If the SDMTrigger instruction is used in PC400 and LoggerNet datalogger support 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...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 11
... cable lengths are used to change the bit period that the datalogger uses to clock the SDM data. A 0 is stored for low and a 1 is stored for the units of the signal. See the measurement description for high. 1 Returns the duty cycle of the raw result; For example, the TCDiff instruction measures a thermocouple and outputs temperature in the raw units. SDM-SW8A Switch Closure Input...
... cable lengths are used to change the bit period that the datalogger uses to clock the SDM data. A 0 is stored for low and a 1 is stored for the units of the signal. See the measurement description for high. 1 Returns the duty cycle of the raw result; For example, the TCDiff instruction measures a thermocouple and outputs temperature in the raw units. SDM-SW8A Switch Closure Input...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 13
... is not contained in "debugging." SDM-SW8A Switch Closure Input Module 6.2 Edlog Programming Instruction 102, Table 6, is accepted, the PROM contains the Instruction. If the Instruction is used but is required for the SW8As must be read . Function Option 2 provides a count of the number of positive transitions of time the signal is the address of SW8A channels to high or low states...
... is not contained in "debugging." SDM-SW8A Switch Closure Input Module 6.2 Edlog Programming Instruction 102, Table 6, is accepted, the PROM contains the Instruction. If the Instruction is used but is required for the SW8As must be read . Function Option 2 provides a count of the number of positive transitions of time the signal is the address of SW8A channels to high or low states...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 14
... possibly wired or addressed incorrectly. This problem may be read depending on the Reps. Verify that the address specified in Parameter 2 corresponds to all channels every 2 ms. The first time the datalogger executes Instruction 102 and requests information, the results represent the time period since the SW8A was powered up, not the datalogger scan interval. Each Duty Cycle accumulator resets...
... possibly wired or addressed incorrectly. This problem may be read depending on the Reps. Verify that the address specified in Parameter 2 corresponds to all channels every 2 ms. The first time the datalogger executes Instruction 102 and requests information, the results represent the time period since the SW8A was powered up, not the datalogger scan interval. Each Duty Cycle accumulator resets...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 15
... scan rate and the amount of Operation, Section 9). To transfer data between the datalogger and the SW8A, the datalogger drives the clock line, Control Port 2, high and low (refer to detect a bombed condition and immediately force a watchdog reset. A CRBasic example of this undesirable time delay before erroneous values (NaN or -99999) are requested, the SW8A may be programmed...
... scan rate and the amount of Operation, Section 9). To transfer data between the datalogger and the SW8A, the datalogger drives the clock line, Control Port 2, high and low (refer to detect a bombed condition and immediately force a watchdog reset. A CRBasic example of this undesirable time delay before erroneous values (NaN or -99999) are requested, the SW8A may be programmed...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 16
... PROGRAM BeginProg Scan(1,Sec, 3, 0) Call Subroutine1 ' If SDM-SW8A was just programmed or its processor is bombed, set intermediate processing disable Flag If Flag(1) = False Then Flag(9) = True 'Set Flag 9 If (state(1) < 0) Then Flag(9) = True 'Set Flag 9 ' Output state and average duty cycle every 5mins CallTable Table003 ' start trapping routines ' If Flag(9) = True Then If Flag(1) = True Then ' reset routine...
... PROGRAM BeginProg Scan(1,Sec, 3, 0) Call Subroutine1 ' If SDM-SW8A was just programmed or its processor is bombed, set intermediate processing disable Flag If Flag(1) = False Then Flag(9) = True 'Set Flag 9 If (state(1) < 0) Then Flag(9) = True 'Set Flag 9 ' Output state and average duty cycle every 5mins CallTable Table003 ' start trapping routines ' If Flag(9) = True Then If Flag(1) = True Then ' reset routine...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 17
The 014A calibration is made with the opposite throw, a change to Figure 2, SPDT wiring example). Measurement Applications 8.1 SPDT Switch Closure Single-pole double-throw switches may occur any number of times at a throw, but until contact is : MPH = 1.789 * f + 1 where: MPH = miles per hour f = pulse frequency in Hz The 100 Hz maximum input frequency to the SW8A equates to the positive...
The 014A calibration is made with the opposite throw, a change to Figure 2, SPDT wiring example). Measurement Applications 8.1 SPDT Switch Closure Single-pole double-throw switches may occur any number of times at a throw, but until contact is : MPH = 1.789 * f + 1 where: MPH = miles per hour f = pulse frequency in Hz The 100 Hz maximum input frequency to the SW8A equates to the positive...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 18
... input frequency and 5 ms minimum pulse width specifications are counted accurately at 10 Hz could range from below estimate the "worst case" duty cycle measurement error for a 50% duty cycle and the minimum/maximum measurable duty cycle for a 1 Hz signal is 5% and 95%, respectively (0.005/0.100 * 100). Optimum duty cycle measurements result if an integral number of...
... input frequency and 5 ms minimum pulse width specifications are counted accurately at 10 Hz could range from below estimate the "worst case" duty cycle measurement error for a 50% duty cycle and the minimum/maximum measurable duty cycle for a 1 Hz signal is 5% and 95%, respectively (0.005/0.100 * 100). Optimum duty cycle measurements result if an integral number of...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 19
... the 8 ports and communicate with a minimum 8 V peak to start operating correctly again. 15 The counter pulls the processor momentarily into reset if the count gets too high. the module will not reset the counter. SDM-SW8A Switch Closure Input Module Signal Magnitude - An internal timer interrupts the processor approximately every 2 milliseconds to an input and after 2 milliseconds clocks back the code byte...
... the 8 ports and communicate with a minimum 8 V peak to start operating correctly again. 15 The counter pulls the processor momentarily into reset if the count gets too high. the module will not reset the counter. SDM-SW8A Switch Closure Input Module Signal Magnitude - An internal timer interrupts the processor approximately every 2 milliseconds to an input and after 2 milliseconds clocks back the code byte...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 21
... to create a record of State, average Duty Cycle, and average Count. A RESET COUNTER (input location 25, RESET CNT) is presented in subsequent Output Processing Instructions. Edlog Program Example The Edlog program is an example only and is set low following two conditions. 1. Flag 1 is not meant to be used verbatim. If the datalogger program is compiled in the *0 Mode, all 8 ports of -99999...
... to create a record of State, average Duty Cycle, and average Count. A RESET COUNTER (input location 25, RESET CNT) is presented in subsequent Output Processing Instructions. Edlog Program Example The Edlog program is an example only and is set low following two conditions. 1. Flag 1 is not meant to be used verbatim. If the datalogger program is compiled in the *0 Mode, all 8 ports of -99999...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 23
...) 1: 16 Reps 2: 9 Loc duty #1 ******* START TRAPPING ROUTINES ******* 8: If Flag/Port (P91) 1: 19 Do if flag 9 is high 2: 30 Then Do 9: If Flag/Port (P91) 1: 11 Do if flag 1 is high 2: 30 Then Do RESET ROUTINE To force a watchdog reset, increment reset counter, output time and number of resets, and set intermediate processing disable flag. 2: 1 If Flag/Port (P91) 1: 21 Do if flag...
...) 1: 16 Reps 2: 9 Loc duty #1 ******* START TRAPPING ROUTINES ******* 8: If Flag/Port (P91) 1: 19 Do if flag 9 is high 2: 30 Then Do 9: If Flag/Port (P91) 1: 11 Do if flag 1 is high 2: 30 Then Do RESET ROUTINE To force a watchdog reset, increment reset counter, output time and number of resets, and set intermediate processing disable flag. 2: 1 If Flag/Port (P91) 1: 21 Do if flag...
SDM-SW8A 8-Channel Switch Closure Input Module
Page 24
...) 1: 10 Set high Flag 0 (output) 13: Real Time (P77) 1: 110 Day,Hour-Minute 14: Sample (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 MEASURE SDM-SW8A ** 1: Beginning...
...) 1: 10 Set high Flag 0 (output) 13: Real Time (P77) 1: 110 Day,Hour-Minute 14: Sample (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 MEASURE SDM-SW8A ** 1: Beginning...