background image

 

 
 
 
 
 
 
 
 
 

 

 

SDM-IO16 

16 Channel Input/Output 

Expansion Module 

 

 
 
 
 

 

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 

Issued: 13.8.18

 

 
 

Copyright © 1998-2018 Campbell Scientific, Inc. 

Printed under licence by Campbell Scientific Ltd. 

CSL 479 

  

USER 

GUIDE

 

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

Страница 1: ...SDM IO16 16 Channel Input Output Expansion Module Issued 13 8 18 Copyright 1998 2018 Campbell Scientific Inc Printed under licence by Campbell Scientific Ltd CSL 479 USER GUIDE ...

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

Страница 3: ...s under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for repairs can be given on request It is the policy of Campbell Scientific to protect the health of its employees and provide a safe working environment in support of this policy a Declaration of Hazardous Material and De...

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

Страница 5: ...s digital cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European market in some cases alternatives are offered Details of the alternatives will be covered in separate manuals Part numbers prefixed with a symbol are special order parts for use with non EU variants or fo...

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

Страница 7: ...e beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers Use only manufacturer recommended parts materials and tools Utility and Electrical You can be kil...

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

Страница 9: ...ns Input Mode 3 2 4 Pulse Counting Specifications 3 3 Power Considerations 4 4 Installation 5 4 1 Terminal Connections 6 5 Address Selection Switches 7 6 Programming the Datalogger 8 6 1 General Principles 8 6 2 Programming the CR800 CR850 CR1000 CR3000 and CR5000 9 6 2 1 SDMIO16 Instruction 9 6 2 2 SDMCD16AC Instruction 10 6 2 3 SDMSpeed Instruction 10 6 3 Instruction P188 CR10X and CR23X 11 6 4 ...

Страница 10: ...ciples of Pulse and Frequency Measurements B 1 B 1 Introduction B 1 B 2 Frequency and Duty Cycle Measurement Range B 1 B 3 Resolution of Frequency Measurements B 2 B 4 Resolution of Duty Cycle Measurements B 2 B 5 Debounce Filtering B 3 C Command Code Listing C 1 D Details of use with PC208W and older dataloggers D 1 Figures 1 SDM IO16 with mounting brackets 1 2 Simplified Equivalent Port Circuits...

Страница 11: ...ltering so the unit can accurately count switch closure events The SDM IO16 measures the frequency of signals by measuring the time between pulses thereby giving relatively high resolution measurements even for low frequency signals The module can also be programmed to generate an interrupt signal to the datalogger when one or more input signals change state When configured as an output each port ...

Страница 12: ...600 µA typical standby All ports HI no load not pulse counting Maximum no output load 3 mA active with all 16 ports counting pulses at 2 KHz Above the quiescent level power consumption is roughly proportional to input signal frequency and number of ports used Current drawn from any output must be added to the quiescent level to give the total current drain SDM and I O port 0 5 V logic level ports ...

Страница 13: ...o a 12 V supply To limit power dissipation and damage at higher voltages than 12 V an external series current limiting resistor is recommended Input impedance The input is biased to 5 V relative to ground by a 100 kohm resistor 2 4 Pulse Counting Specifications Maximum frequency 2 048 KHz on all channels simultaneously with switch debounce mode set off with a 50 50 duty cycle 150 Hz on all channel...

Страница 14: ... experienced users should consult the equivalent circuit diagrams shown in Figure 2 2 See Appendix B for a more detailed discussion of switch debounce resolution and accuracy OV From sensor 0 510 0 33 5 V 100 K 5 6 V 0 V To internal logic a Input biasing and protection 0 6 V Drop Output Output 550 b Output set ON c Output set OFF 0 510 V 5 V 0 33 Figure 2 Simplified Equivalent Port Circuits 3 Powe...

Страница 15: ... order in which connections are made is critical Always connect 12 V first followed by ground then the control ports The CABLE5CBL L or a similar cable connects the datalogger to the SDM IO16 For datalogger connections see Table 1 below Please refer to Figure 4 for details of how to use the spring loaded terminals Table 1 Datalogger to SDM IO16 Connections Datalogger Connection Order SDM IO16 CR80...

Страница 16: ...dule and datalogger 4 1 Terminal Connections The SDM IO16 uses spring loaded terminal blocks which provide quick vibration resistant connections The output terminals are labelled 1 to 16 A common ground connector is provided between each pair of terminals Use a screwdriver in either the top or front slot as appropriate to open the terminal spring Strip any insulation from the wire to give 7 to 9 m...

Страница 17: ...the switch Note that you will have to remove the mounting bracket to gain access to this switch Switch Setting Decimal Address Base 4 Address 0 0 00 1 1 01 2 2 02 3 3 03 4 4 10 5 5 11 6 6 12 7 7 13 8 8 20 9 9 21 A 10 22 B 11 23 C 12 30 D 13 31 E 14 32 F 15 33 Figure 5 Address Selection Switch Each SDM IO16 needs to be set to a unique address on the SDM bus so that no two SDM peripherals share the ...

Страница 18: ... the module and datalogger via the SDM port The module can be reconfigured quite extensively from the controlling program to allow for more demanding applications In most cases though operation is quite simple as on power up the input output ports of the SDM IO16 default to input mode with no switch debounce filtering and measurement of frequency and duty cycle automatically starts for all ports F...

Страница 19: ... Command codes 1 69 91 92 99 or the Source value for the Command Codes 70 85 93 98 The variable array for this parameter must be dimensioned to accommodate the number of values returned or sent by the instruction Status The Status parameter is used to hold the result of the command issued by the instruction If the command is successful a 0 is returned otherwise the value is incremented by 1 with e...

Страница 20: ...en the peripheral and the datalogger 6 2 3 SDMSpeed Instruction The SDMSpeed instruction is used to change the bit period that the datalogger uses to clock the SDM data Slowing down the clock rate may be necessary when long cable lengths are used to connect the datalogger and SDM devices The syntax of this instruction is as follows SDMSpeed BitPeriod The BitPeriod argument can be an integer or a v...

Страница 21: ...es 09 FP Multiplier 10 FP Offset The codes after the parameter number indicate the entry type where 99 and 9999 signify two or four digit integer entries and FP indicates a floating point number entry e g 1 234 The range of values you would enter with the SDM IO16 is shown after the description of some parameters A detailed description of the individual parameters follows Parameter 01 sets the SDM...

Страница 22: ...he input location where data is either read from or written to depending on the command being used This may be the first location in a series of locations Parameter 09 is a multiplier that is applied to data read to and from input locations Normally you would set this to 1 000 unless applying a calibration factor to data being read from the SDM IO16 Parameter 10 is an offset that is applied to dat...

Страница 23: ...rmal logic input a value of 0 is returned for the low state and a value of 1 is returned for the high state while for switch closures 0 and 1 relate to closed and open The current state of all ports is read even if some are being used for outputs or frequency inputs Set the port states 93 94 sets the pattern of the state of the port outputs either from a single location or 16 sequential locations ...

Страница 24: ...ts 23 Read Frequency 1 Port 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4 Ports 40 41 42 43 8 Ports 44 45 16 Ports 46 Read Duty Cycle 1 Port 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 4 Ports 63 64 65 66 8 Ports 67 68 16 Ports 69 Set Debounce 1 Port 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 Set up ports 4 Ports 89 88 87 86 16 Ports 90 Read State 16 ports 91 or 92 Set state 16 ports ...

Страница 25: ...e 4 address The number of SDM IO16s to be addressed is defined by the Reps repetitions parameter Each Rep sequentially addresses 00 01 02 32 33 SDM IO16s starting with the address specified in parameter 2 parameter 3 for Instruction 29 For each repetition the 16 ports of the addressed SDM IO16 are set according to 16 sequential input locations starting at the input location specified in parameter ...

Страница 26: ...SDM IO16 16 Channel Input Output Expansion Module 16 ...

Страница 27: ...ComsStat 3 0 46 0 0 0 0 1 0 NextScan EndProg A 2 A CR10X Program Using the Outputs for Control of a Greenhouse Heating and Cooling System The example is written for the CR10X Measurement and Control Module The program concepts presented are the same for the CR23X 21X and CR7 dataloggers with minor changes in the program code or use of different instructions as indicated In this example the SDM IO1...

Страница 28: ...ater control greenhouse 1 5 SDM IO16 Port 1 5 15 19 Cool 1 5 Cooler control greenhouse 1 5 SDM IO16 Port 6 10 20 24 Fan 1 5 Fan control greenhouse 1 5 SDM IO16 Port 11 15 CR10X Table 1 Program 01 5 Execution Interval seconds First configure the IO16 if not already done If flag 1 is not set i e the program has just been compiled or datalogger powered up Omit the following four instructions if using...

Страница 29: ...reshold 2 4 3 23 5 F 4 30 Then Do then 8 Z F P30 put a 1 into heater control 1 1 F location 2 0 Exponent of 10 3 10 Z Loc Heat_1 9 End P95 end then do 10 If X F P89 if the heater is on heater 1 10 X Loc Heat_1 control location 0 2 2 3 0 F 4 30 Then Do then 11 If X F P89 check upper threshold 1 1 X Loc Temp_1 to see if heater should 2 3 be turned off 3 25 5 F 4 30 Then Do 12 Z F P30 if heater shoul...

Страница 30: ...1 X Loc Temp_1 see if cooler should be 2 4 turned off 3 24 5 F 4 30 Then Do 22 Z F P30 if cooler should be turned off 1 0 F put a 0 into cooler control 2 0 Exponent of 10 location 3 15 Z Loc Cool_1 23 End P95 end then do 24 Else P94 else if cooler is off 25 Z F P30 put a 0 into cooler 1 0 F control location 2 0 Exponent of 10 3 15 Z Loc Cool_1 26 End P95 end then do else End cooler control logic S...

Страница 31: ...o a out of 15 minute 2 15 Interval same units as above interval 3 12 Set Flag 2 High set flag 2 37 If Flag Port P91 if flag 2 is set 1 12 Do if Flag 2 is High 2 30 Then Do then 38 Beginning of Loop P87 start fan loop 1 0 Delay 2 5 Loop Count 39 Z F P30 put a 1 into fan control 1 1 F location 2 0 Exponent of 10 3 20 Z Loc Fan_1 40 End P95 end fan loop 41 End P95 end then do 42 If time is P92 reset ...

Страница 32: ...tch Closure Inputs Rain Gauges This program can also be used with a CR23X datalogger CR10X An example that shows initial setup with frequency measurement on four ports and pulse counting with switch closure on the next four In this example the four frequencies are anemometers and the switch closures are raingauges that need to be totalised Table 1 Program 01 5 Execution Interval seconds First conf...

Страница 33: ...lt Calibration to give m s for A100L2 10 0 0 Offset Measure the four pulses counts and write to four locations as equivalent rainfall in mm 6 SDM IO16 P188 1 00 SDM Address 2 18 Command Code Option Count the pulses on ports 5 8 3 0 Ports 16 13 port settings not used for 18 4 0 Ports 12 9 5 0 Ports 8 5 6 0 Ports 4 1 7 1 Return Code Loc ErrCount for return code 8 6 First Loc Rain_1 for rain values 9...

Страница 34: ... this to the datalogger using the I O line which should be connected to C8 The datalogger in turn reads the status and captures the current port status and writes this with a time stamp to memory Table 1 Program 01 5 Execution Interval seconds First configure the IO16 if not already done If flag 1 is not set i e the program has just been compiled or datalogger powered up This code is needed to set...

Страница 35: ...l vary with the datalogger and other activity Reading the port status will cancel further polling until the next change of state 2 SDM IO16 P188 1 00 SDM Address 2 91 Command Code Option read the port status into one location 3 0 Ports 16 13 port settings not used for code 91 4 0 Ports 12 9 5 0 Ports 8 5 6 0 Ports 4 1 7 1 Return Code Loc Errcount for return code 8 2 First Loc Portstat 9 1 0 Mult 1...

Страница 36: ...SDM IO16 16 Channel Input Output Expansion Module A 10 2 2 Loc Portstat_ 8 End P95 End Program This is a blank page ...

Страница 37: ...hich is 244 s This sets the upper limit of signal frequency for which pulses can be counted or frequencies measured By implication the maximum frequency that can be measured is with a 50 50 duty cycle signal If the duty cycle is different from this the maximum frequency measurable is lower This maximum frequency measurable for a signal with a range of duty cycles can be expressed as the minimum of...

Страница 38: ...by calculating the proportion of time that a signal is high for all full signal cycles that occur in between two measurement requests by the datalogger The resolution can be calculated using the following equation r 100 f 4096 Int t f Where r duty cycle resolution in f frequency of the signal in Hz t time between duty cycle measurement commands in seconds Int a function which returns the truncated...

Страница 39: ...al must stay in the new state before it will be recognized as having changed state This is the minimum time it takes the internal counter to ramp from one limit to the other providing the input signal switches cleanly from one state to the other As with a traditional RC filter if the signal bounces back to its old state the integrator will ramp in the opposite direction during the bounce This mean...

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

Страница 41: ...ounts into 8 locations 23 Read ports 1 16 accumulated counts into 16 locations 24 Read port 1 frequency into 1 location 25 Read port 2 frequency into 1 location 26 Read port 3 frequency into 1 location 27 Read port 4 frequency into 1 location 28 Read port 5 frequency into 1 location 29 Read port 6 frequency into 1 location 30 Read port 7 frequency into 1 location 31 Read port 8 frequency into 1 lo...

Страница 42: ... location 81 Set port 12 debounce time from 1 location 82 Set port 13 debounce time from 1 location 83 Set port 14 debounce time from 1 location 84 Set port 15 debounce time from 1 location 85 Set port 16 debounce time from 1 location 86 Set port 16 13 from parameter 4 87 Set port 12 9 from parameter 5 88 Set port 8 5 from parameter 6 89 Set port 4 1 from parameter 7 90 Set port 16 1 from paramete...

Страница 43: ... PC208W version 3 0 or later to complete this upgrade 1 Go to Campbell Scientific website www campbellsci com resource html 2 In section Product Upgrades click on link 3 3 to link to the patch for PC208W P 3 Follow instructions for On line Upgrades An email will be sent to you with a link to the required files for the patch The patch will upgrade PC208W to version 3 3 4 Next download file ed16upda...

Страница 44: ...rt of Instruction 188 To determine which operating system is presently installed in a datalogger use the B mode See your datalogger manual for a detailed description Campbell Scientific Datalogger Required Operating System Version Listed version or later CR10X 1 17 CR23X 1 14 Campbell Scientific datalogger operating systems are easily downloaded from our website page www campbellsci com resource h...

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

Страница 46: ...NW Edmonton Alberta T5L 4X4 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A CSCC 300N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc info campbellsci cc Campbell Scientific Ltd CSL 80 Hathern Road Shepshed Loughborough LE12 9GX UNITED KINGDOM www campbellsci co uk sales campbellsci co uk Campbell Scientific Ltd Franc...

Отзывы: