Campbell PS200 User Manual

12v charging regulators
Hide thumbs Also See for PS200:
Table of Contents

Advertisement

Quick Links

PS200/CH200
12V Charging Regulators
Issued: 7.10.13
Copyright © 2000-2013 Campbell Scientific, Inc.
Printed under licence by Campbell Scientific Ltd.
CSL 910

Advertisement

Table of Contents
loading

Summary of Contents for Campbell PS200

  • Page 1 PS200/CH200 12V Charging Regulators Issued: 7.10.13 Copyright © 2000-2013 Campbell Scientific, Inc. Printed under licence by Campbell Scientific Ltd. CSL 910...
  • Page 3 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 Decontamination”...
  • Page 5 PLEASE READ FIRST About this manual Please note that this manual was originally produced by Campbell Scientific Inc. primarily for the North American market. Some spellings, weights and measures may reflect this origin. Some useful conversion factors: Area: 1 in...
  • Page 7: Table Of Contents

    6.2.1 SDI-12 Address ................30 6.2.2 SDI-12 Measurements ..............31 6.2.3 SDI-12 Extended Commands ............34 6.2.3.1 Write Remote Battery Temperature to PS200/CH200 ..34 6.2.3.2 Restore Internal Battery Temperature Measurement ..35 6.2.3.3 Change Battery Capacity Value in PS200/CH200 ... 35 6.2.3.4...
  • Page 8 6.3.2 RS-232 Communications with a Campbell Scientific Datalogger ................38 6.3.3 RS-232 Host (Datalogger) Command Strings and PS200/ CH200 Response Strings ............39 6.3.3.1 Read Status ............... 39 6.3.3.2 Write Remote Battery Temperature to PS200/CH200 ..40 6.3.3.3 Restore Internal Battery Temperature Measurement ..40 6.3.3.4...
  • Page 9 A.5.2 Station Power Usage RS-232 Programming Example ....A-32 Changing the SDI-12 Address Programming Example ....A-35 Figures 3-1. The PS200 connected to a CR1000 and AC power ......4 3-2. The PS200 connected to a CR1000 and solar panel ......4 3-3.
  • Page 11: Introduction

    PS200/CH200 12 V Charging Regulators Introduction The PS200 is a 12 volt power supply that includes a rechargeable 7 amp hour valve- regulated lead-acid (VRLA) battery and charging regulator. The CH200 is a charging regulator for an external rechargeable 12 V VRLA battery such as the BP12 or BP24 offered by Campbell Scientific, Inc.
  • Page 12: Precautions And Tips

    VRLA batteries are capable of providing high surge currents. The 12 V output terminals of the PS200/CH200 are fused with a 4 A self-resettable thermal fuse, but there is no fusing for inadvertent bridging of the battery terminals. Accidental shorting of battery terminals by metallic objects, such as watchbands, can cause severe burns due to rapid heating and is also a fire hazard.
  • Page 13: Quick Start

    SDI-12 or RS-232 commands and associated communication cables. Using datalogger programming the data from the PS200/CH200 can be used to calculate a power budget for the entire system and help to remotely pin point any power problems. These cables are not required for normal operation and the modules are ready to use right out of the box.
  • Page 14: The Ps200 Connected To A Cr1000 And Ac Power

    PS200/CH200 12 V Charging Regulators Figure 3-1. The PS200 connected to a CR1000 and AC power Figure 3-2. The PS200 connected to a CR1000 and solar panel...
  • Page 15: Connecting Power

    AC power hooked up simultaneously. Flip the power supply switch to “Off” before hooking up power to the power supply. The switch on the CH/PS200 only controls power going to the “12V” NOTE and “G” terminal blocks. The battery is continuously charged regardless of the switch setting as long as a charging voltage is present.
  • Page 16: Ac/Dc Power

    PS200/CH200 12 V Charging Regulators Figure 3-4. Solar panel connections on PS200 3.1.2 AC/DC Power Double check the input voltages coming in to the charger/regulator with a volt meter. AC Input Voltage: 14 to 24 VAC RMS DC Input Voltage: 15 to 40 VDC...
  • Page 17: Plug In The Battery

    NOT be plugged into the PS200. This is done to minimize discharging the battery. To remove the lid from the PS200, pull up on the PS200 lid latch and slide the lid off as shown in Figure 3-6 and Figure 3-7.
  • Page 18: Hook Up Power To Datalogger

    Hook Up Power to Datalogger Both the PS200 and the CH200 come with a 1 foot black wire attached to one of the G terminal blocks and a 1 foot red wire attached to one of the 12V terminal blocks.
  • Page 19: Hook Up Communication Cable To Datalogger If Used

    User Guide Hook Up Communication Cable to Datalogger If Used Skip this step if a CH/PS200 communication interface cable is not being used. Plug the power supply SDI-12 or RS-232 communication cable to the connector marked “COMM”. This cable is polarized and will only plug in one way. Push the connector all the way into the mating connector until it locks in place.
  • Page 20: Specifications

    PS200/CH200 12 V Charging Regulators Specifications Specifications AC – (18 to 24) VRMS with 1.2 ARMS (CHARGE - CHARGE terminals) maximum AC or DC Source: DC – (16 to 40) VDC with 1.1 A DC maximum (SOLAR - terminals) 15 to 40 VDC...
  • Page 21: Battery Packs

    –40 to +71 BP84 Concorde Sun Xtender * Battery specifications shown are from the manufacturer. The PS200/CH200 contains charging algorithms that optimize battery charging over the range of –40°C to +50°C. Battery usage outside of manufacturer specifications could have unknown effects on the life of the battery.
  • Page 22: Charging Sources

    For international orders select option #29798 –IP for international blades. International blade selection contains blades for Australia/New Zealand, UK, Europe/South America, Korea, Argentina, China, & India/South Africa. AC/DC DIN Rail Mount Power Adapter: Campbell Scientific Model No. 28370 85 – 240 VAC or 90 – 350 VDC Input Voltage: 45 –...
  • Page 23: Communication Interface Cables

    The PS200/CH200 does not by default come with interface cables. Cables must be ordered separately. Communication cables are needed if changes to the default settings of the PS200/CH200 are required or if you wish to take advantage of the data coming from the PS200/CH200 using advanced programming techniques. See the cable listings below for the different cable types and how they are used.
  • Page 24: Operational Overview

    Operational Overview A simplified schematic of the CH/PS200 charging regulator is illustrated in Figure 5-1. A 12-V 7Amp-hr rechargeable battery is included with the PS200, whereas the user provides the rechargeable battery, such as the BP12 or BP24 offered by Campbell Scientific, Inc., for the CH200.
  • Page 25: Ps200/Ch200 Schematic

    SOLAR and the return or negative connected to G, with reversal protection included. The SOLAR – G input terminals have an input current limit of approximately 3.6 amps, making the PS200/CH200 well suited for 70 watt or smaller solar panels. The PS200/CH200 can be simultaneously powered from both the CHARGE –...
  • Page 26: User Interface

    PS200/CH200 and send this temperature information to the module using the appropriate SDI-12 (see Section 6.2.3.1, Write Remote Battery Temperature to PS200/CH200, and Section...
  • Page 27 (solar or continuous), and a check battery flag can be viewed. Also, the SDI-12 address of a PS200/CH200 can be changed via the text based interface. See Section 6.1.3, Terminal Tab.
  • Page 28: Configuring The Ps200/Ch200 Using Campbell Scientific Device Configuration Utility (Devconfig)

    Utility and a computer. The only way to update the operating system in a PS200/CH200 is via Device Configuration Utility. To use Device Configuration Utility the PS200/CH200 must have power and a Campbell Scientific RS-232 interface cable (p/n 010878) (see Figure 6-1). Some key features of DevConfig include: ...
  • Page 29: Main Devconfig Screen

    Click on the PS200/CH200 device name from the list on the left, for which a list of installed RS- 232 serial ports (COM1, COM2, etc.) will appear. The PS200/CH200 has a fixed baud rate of 9600.
  • Page 30: Settings Editor Tab

    Clicking the Factory Defaults button on the Settings Editor will send a command to the PS200/CH200 to revert to its factory default settings (PS200/CH200 factory made calibration values and other “read only” values are not affected).
  • Page 31 Edit settings as needed, click on the Apply button; or, if no changes were made, click on the Summary button; and, if the PS200/CH200 accepts the settings, a configuration summary dialogue will appear. The user will have a chance to save...
  • Page 32: Ps200/Ch200 Settings

    = K / (DPot + L). Battery (Ah) is the user entered battery capacity. Cycle charging is disabled if set to 0 Ah. PS200 default = Capacity 7 Ah. CH200 default = 0 Ah. Set to 24 Ah for BP24. Set to 12 Ah for BP12. Set to 84 Ah for BP84.
  • Page 33 See Figure 6-3. Order Coefficient (mV/ºC) Minimum voltage that the PS200/CH200 will put across a battery configured as “Custom Battery” in Custom Battery the Battery Family field. Voltage applied across a battery is dependent on temperature. The higher Minimum the battery temperature the lower the voltage applied across the battery.
  • Page 34 Default value is 1.1 Amps. Current Limit SDI-12 Allows the user to set the SDI-12 address of the PS200/CH200. Factory default for this address is 0. Address Each SDI-12 sensor connected to a port of an SDI-12 recorder (datalogger) should have a unique SDI-12 address.
  • Page 35: Battery Families

    NP series of batteries (CS models PS200, BP12, and BP24), EnerSys/Genesis Cyclon Series, Concorde Sun Xtender (BP84), or custom algorithms entered in by the user. The PS200/CH200 uses a second order polynomial to make the correct battery charging adjustments for known battery families and charging cycles. Click on the down arrow to the far right of “Battery Family”...
  • Page 36: Battery Specifications

    PS200/CH200 12 V Charging Regulators The PS200 is configured at the factory to work with the EnerSys/Genesis 7 Ah battery algorithm. For a CH200 change the “Battery Family” to match the battery family being used. The CH200 is by default sent from the factory with a battery capacity of zero (0) and a battery family of EnerSys/Genesis NP Series.
  • Page 37: Device Configuration Utility Settings Editor

    Each battery family requires a different charging algorithm and there could also be differences from manufacturer to manufacturer of the same style of battery. For example, Campbell Scientific sells VRLA AGM style batteries from two different manufacturers — EnerSys/Genesis (PS200, BP12, and BP24) and Concorde (BP84) —...
  • Page 38: Terminal Tab

    PS200/CH200. Load The Operating System Into the PS200/CH200 Make sure the PS200/CH200 has power and connect it to the computer used to send the new operating system. Open Device Configuration Utility after the operating system has been downloaded on the computer.
  • Page 39: Sdi-12

    User Guide then go find it and open it. The LED indicator on the PS200/CH200 marked “CHG” should change from red to green indicating the module is receiving a new operating system. This will take a few minutes. DO NOT disconnect from the PS200/CH200 during this process.
  • Page 40: Sdi-12 Address

    SDI-12 sensors is assigned a unique SDI-12 address. Valid addresses are 0 through 9, A through Z, and a through z. From the factory a PS200/CH200 has an SDI-12 address of 0. There are three different means by which a PS200/CH200 SDI-12 address can be changed: Campbell Scientific DevConFig.
  • Page 41: Sdi-12 Measurements

    User Guide 6.2.2 SDI-12 Measurements The PS200/CH200 reports 9 measurements via the SDI-12 M! command, as described below. Because SDI-12 is a low speed standard, this M! command should only be used in a slow sequence with a scan rate of 2 seconds or longer.
  • Page 42 3 - Temperature (C). Recorder: M5! Return Charge State, Charge Source and Check Battery. PS200/CH200 measurements: 1 - Charge State (-1 = regulator fault, 0 = no charge, 1 = current limited charging, 2 = cycle charging, 3 = float charging, 4 = battery test).
  • Page 43 Recorder: M9! Available for future use. Below is a CR1000 programming example that acquires all 9 measurements once per minute from a PS200/CH200. Note that the PS200/CH200 does internal averaging of the voltage, current, and temperature measurements, with an averaging...
  • Page 44: Sdi-12 Extended Commands

    6.2.3.1 Write Remote Battery Temperature to PS200/CH200 aXTmm.dd! command overrides the internal temperature measurement, where ‘a’ is the PS200/CH200’s SDI-12 address and mm.dd refers to an ASCII string of numerals with a decimal point of temperature in degrees Centigrade within -40 and 100°C.
  • Page 45: Restore Internal Battery Temperature Measurement

    Enter battery capacity, where ‘a’ is the PS200/CH200’s SDI-12 address and mm.d is ASCII representation of battery capacity in Ah. To use the quicker dual rate charging scheme in the PS200/CH200 a value other than zero must be entered into the battery capacity field. BUT! This value needs to be the actual amp-hour capacity of the battery being used or the charger will not charge correctly.
  • Page 46: Power Usage

    RS-232 Interface 6.3.1 Text Based Interface The PS200/CH200 has a simple text based interface via RS-232 that can be used with HyperTerminal or Campbell Scientific DevConfig terminal screen. Battery Voltage (V), Battery Current (A), Load Current (A), Charge Input Voltage (V), Charge Input Current (A), Temperature (C), Charge State, Charge Source (solar or...
  • Page 47 User Guide Pick a name for the connection, such as “CH200”. Click on Ok, and then select the COM port to use with the PS200/CH200: Click on OK, and then set the COM port settings: Click on Apply and then OK, and the terminal screen should open. Click inside the terminal screen and press ESC (may have to press ESC twice).
  • Page 48: Datalogger

    The Campbell Scientific CRBasic commands “SerialOut” and “SerialIn” are designed for RS-232 communications in general and can be used with a PS200/CH200 to read battery voltage (V), battery current (A), load current (A), charge input voltage (V), charge input current (A), temperature (C), charge state, charge source (solar or continuous), and a check battery flag (true or false).
  • Page 49: Ps200 Connected To A Cr1000 Via Rs-232

    (ASCII '>'). Communication must be terminated with a carriage return, denoted below by <CR> which is the ASCII hexadecimal character 0D. The PS200/CH200 response string will begin with the ASCII '*' character followed by the requested data strings separated by commas and then two check sum characters and finally the string termination character, hexadecimal 00.
  • Page 50: Write Remote Battery Temperature To Ps200/Ch200

    PS200/CH200 12 V Charging Regulators PS200/CH200 character strings occur in the following order (the sequence order numbers shown below do not occur in the character strings): 1 – Battery Voltage, 2 – Battery Current, 3 – Load Current, 4 – Charge Input Voltage, 5 – Charge Input Current, 6 – Temperature, 7 –...
  • Page 51: Enter Battery Test State

    User Guide This command sets the battery capacity in Ah, which the PS200/CH200 uses in its charging algorithm. PS200/CH200 response string: *Battery capacity = xx.xx <crc> <CR> <LF>. See Appendix A.2.2, Change Battery Capacity RS-232 Programming Example, for a programming example using this instruction.
  • Page 52: Read Special Ps200/Ch200 Settings And Variables

    “SerialIn” and then use the instruction “SplitStr” to separate the numerical values into individual values. The CRBasic instruction “Checksum” can optionally be used to validate data from a PS200/CH200. If “CheckSum” is to be used, two successive “SerialIn” instructions should be used—one to discard everything up to and including the “*”...
  • Page 53 'Program: RS-232_Status_Info.CR1 'Date: 1.November.2010 'Ver: A 'Notes: Program returns all information from PS200/CH200. 'Connect the PS200/CH200 to RS-232 port COM2 of the CR1000. 'Use Campbell Scientific SDI-12 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '----------------------------- 'GREEN: C3 (TX)
  • Page 54: Charging Details

    Continuous charging input has a user adjustable input current limit with a maximum (default) value of 1.1 A DC to help protect AC/AC transformers and AC/DC converters. The 3.6 ADC typical current limit of the PS200/CH200 Solar charging input is well suited for 70 W solar panels. Typical Continuous charging inputs...
  • Page 55 In the PS200, the battery capacity is set to 7 Ah hours at the factory, whereas the battery capacity is left at the default value of 0 Ah in the CH200 where the user provides the battery.
  • Page 56: Step Constant Voltage Battery Charging By Ps200/Ch200

    The somewhat noisy charging current and voltage observed in Figure 7-1 during the initial current limited charging stage is due to the MPPT algorithm of the PS200/CH200 searching for the maximum power point of the associated solar panel.
  • Page 57: Solar Panel I - V And Power Characteristics

    The ports are used to connect two 9-pin devices (e.g., modems or RF radios) that would normally be connected to the CS I/O port of a Campbell datalogger. The charger supplies 12 volts and 5 volts to the appropriate pins on the connector for powering the connected devices.
  • Page 58: Ps200 With A100 Module Using A Com220 And Rf450

    PS200/CH200 12 V Charging Regulators Figure 8-2. PS200 with A100 module using a COM220 and RF450 A105 Additional 12 V Terminals Adapter The A105 adapter adds four 12 V terminals and four ground terminals to a PS200/CH200 charging regulator. The extra terminals make it easier to wire multiple continuously powered 12 Vdc devices to the power supply.
  • Page 59: A. Advanced Programming Techniques

    The following CR1000 programming examples show how to use both SDI-12 and RS-232 advanced instruction programming techniques. All of these example programs can be pulled down from Campbell Scientific’s website at www.campbellsci.com. After connecting to the home page select “Support” and then “Downloads”...
  • Page 60 Appendix A. Advanced Programming Techniques Alias CH200_M0(4)=V_in_chg 'Voltage coming into the charger: VDC Alias CH200_M0(5)=I_in_chg 'Current coming into the charger: Amps Alias CH200_M0(6)=Chg_TmpC 'Charger temperature: Celsius Public PanelTempC 'Datalogger panel temperature: Celsius Public ExtBatTempC 'Battery temperature from an external source. 'SDI-12 formatted external battery temperature value.
  • Page 61: A.1.2 Write/Reset Remote Battery Temperature Rs

    'Program: RS-232_Set_Batt_Temp.CR1 'Date: 1.November.2010 'Ver: A 'Notes: This program sets the battery temperature value. 'Connect the PS200/CH200 to RS-232 port COM2 of the CR1000. 'Use Campbell Scientific RS-232 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '----------------------------- 'GREEN: C3 (TX)
  • Page 62 Appendix A. Advanced Programming Techniques Public ChargeState As String 'Charging source: None, AC, or Solar Public ChargeSource As String 'Check battery error: 0=normal, 1=check battery Public Ck_Batt 'Word or phrase equivalent of check battery error. Public CheckBattery As String 'Array to hold the names of the battery error information. Dim CheckBatteryArr(2) As String 'Variables &...
  • Page 63 'Get the PS/CH200 status information. 'Send WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including asterisks "*"...
  • Page 64: A.2 Change Battery Capacity

    By default the PS200 is set to a battery capacity of 7 Amp-hours and the CH200 is set to a battery capacity of zero. Setting the battery capacity to zero forces the CH200 to only charge at the lower float charging rate.
  • Page 65 Appendix A. Advanced Programming Techniques Public CH200_MX(4) 'Array to hold extended data from the PS200/CH200 'Alias names for array elements. Alias CH200_MX(1) = BattTargV 'Battery charging target voltage. Alias CH200_MX(2) = DgtlPotSet 'Digital potentiometer setting. Alias CH200_MX(3) = BattCap 'Present battery capacity.
  • Page 66: A.2.2 Change Battery Capacity Rs-232 Programming Example

    'Date: 1.November.2010 'Ver: A 'Notes: This program sets the battery capacity value in the PS/CH200. 'Connect the PS200/CH200 to RS-232 port COM2 of the CR1000. 'Use Campbell Scientific RS-232 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '----------------------------- 'GREEN: C3 (TX)
  • Page 67 'String coming back from either the "WR_BT" or "RS_INTBT" command. Public ReturnStr As String * 40 'Command to get extended status information. Const EXTSTATS_CMD = "RD_SPECIAL>" 'Array to hold extended data from the PS200/CH200 Public CH200_MX(4) As String * 20 Public BattTargV 'Battery charging target voltage.
  • Page 68 'Get the PS/CH200 status information. 'Send WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including asterisks "*"...
  • Page 69: A.3 Enter Battery Test State

    Appendix A. Advanced Programming Techniques 'Specify four digits with one decimal after the decimal point. 'No leading zeroes. NewBattString = FormatFloat (NewBattCap,"%4.1f") 'Completed string sent to the PS/CH200 must be "WR_BC(nn.n)>" where 'nn.n are the ASCII numeric external battery temperature in Celsius. xmit_str = WRITE_BATT_CAP_CMD + NewBattString + ")>"...
  • Page 70: A.3.1 Enter Battery Test State Sdi12 Programming Example

    'Ver: A 'Notes: This program performs a battery test on a set day into 'each month and at a particular time. 'PS200/CH200 configured with SDI-12 address 0 (zero). 'Use Campbell Scientific SDI-12 cable part # 20769. 'SDI-12 CABLE TO CR1000 WIRING...
  • Page 71 Appendix A. Advanced Programming Techniques 'Array to hold all the data coming from the PS200/CH200 Public CH200_M0(9) 'Alias names for array elements. 'Battery voltage: VDC Alias CH200_M0(1)=VBatt 'Current going into, or out of, the battery: Amps Alias CH200_M0(2)=IBatt 'Current going to the load: Amps...
  • Page 72 'When the test is over reset the timer and turn of the TestBatt flag. Timer (1,Hr,3) TestBatt = Off EndIf 'Get PS200/CH200 values. SDI12Recorder (CH200_M0(),3,0,"MC!",1.0,0) 'Array values start with one. Values for charge state start with -1. 'Have to shift the value by two to line it up with the correct words...
  • Page 73 'I like to use the words "on" and "off" vs. "true" and "false". Const On = True Const Off = False Public PanelTempC 'Datalogger panel temperature: Celsius 'Array to hold all the data coming from the PS200/CH200 Public CH200_M0(9) 'Alias names for array elements. 'Battery voltage: VDC Alias CH200_M0(1)=VBatt...
  • Page 74 Appendix A. Advanced Programming Techniques Public CheckBattery As String Public CH200_MX(4) 'Array to hold extended data from the PS200/CH200 'Alias names for array elements. Alias CH200_MX(1) = BattTargV 'Battery charging target voltage. Alias CH200_MX(2) = DgtlPotSet 'Digital potentiometer setting. Alias CH200_MX(3) = BattCap 'Present battery capacity.
  • Page 75: A.3.2 Enter Battery Test State Rs-232 Programming Example

    'setting the target voltage down to 11.5VDC forcing the system to run 'strictly on battery power for user settable amount of time. 'Test is based on a time interval in days and test duration in hours. 'Use Campbell Scientific RS-232 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '-----------------------------...
  • Page 76 'Array to hold the names of the battery error information. Dim CheckBatteryArr(2) As String 'Command to get extended status information. Const EXTSTATS_CMD = "RD_SPECIAL>" 'Array to hold extended data from the PS200/CH200 Public CH200_MX(4) As String * 20 'Battery charging target voltage. Public BattTargV 'Digital potentiometer setting.
  • Page 77 Appendix A. Advanced Programming Techniques 'Battery charge deficit. Public Qloss 'Variables & constants used to write an external battery temperature to 'the PS/CH200 and reset it. 'Command sent to the PS/CH200 to write external battery temperature. Const BATTEST_CMD = "BATT_TEST>" 'String coming back from either the "WR_BT"...
  • Page 78 EndIf 'Get the PS/CH200 status information. 'Call WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including 'asterisks "*"...
  • Page 79 'setting the target voltage down to 11.5VDC forcing the system to 'run strictly on battery power. 'Test is based on a time interval in days and test duration is in 'hours. 'Use Campbell Scientific RS-232 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '----------------------------- 'GREEN: C3 (TX)
  • Page 80 'Array to hold the names of the battery error information. Dim CheckBatteryArr(2) As String 'Command to get extended status information. Const EXTSTATS_CMD = "RD_SPECIAL>" 'Array to hold extended data from the PS200/CH200 Public CH200_MX(4) As String * 20 'Battery charging target voltage. Public BattTargV 'Digital potentiometer setting.
  • Page 81 Appendix A. Advanced Programming Techniques Public TestLengthHrs As Long 'How many days to spread out the test. Public XDays As Long 'Counter to hold the days the program has run since the last 'test. Gets zeroed out when a test is initiated. Public DayCntr 'Stored hourly data.
  • Page 82 'Get the PS/CH200 status information. 'Call WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including asterisks "*"...
  • Page 83: A.4 Zero Qloss

    'Ver: A 'Notes: This program sets QLoss back to zero using the SDI-12 'command XRQ! to set QLoss to zero. 'PS200/CH200 configured with SDI-12 address 0 (zero). 'Use Campbell Scientific SDI-12 cable part # 20769. 'SDI-12 CABLE TO CR1000 WIRING...
  • Page 84 Appendix A. Advanced Programming Techniques 'Array to hold data coming from the PS200/CH200 Public CH200_M0(6) 'Alias names for array elements. Alias CH200_M0(1)=VBatt 'Battery voltage: VDC Alias CH200_M0(2)=IBatt 'Current going into, or out of, the battery: Amps Alias CH200_M0(3)=ILoad 'Current going to the load: Amps...
  • Page 85: A.4.2 Zero Out Qloss Rs-232 Programming Example

    'Array to hold the names of the battery error information. Dim CheckBatteryArr(2) As String 'Command to get extended status information. Const EXTSTATS_CMD = "RD_SPECIAL>" 'Array to hold extended data from the PS200/CH200 Public CH200_MX(4) As String * 20 'Battery charging target voltage. A-27...
  • Page 86 SlowSequence 'Configure the COM port used with the PS/CH200 SerialOpen (COMPRT,9600,3,0,150) Scan(30,sec,0,0) 'Get the PS/CH200 status information. 'Call WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) A-28...
  • Page 87 If Clear_QLoss = True Then CallTable ClearQLoss Clear_QLoss = False Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,QLOSS_RES_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including asterisks "*" SerialIn (xmit_str,COMPRT,50,"*",40) 'Capture the PS/CH200 response string after the asterisks and including the 'string terminator hexadecimal zero (&H00).
  • Page 88: Station Power Usage

    'part of the Load_Amp_hr value. Alias Amp_Hour(3) = Batt_Amp_hr Dim n 'Used as a counter. Public CH200_M0(9) 'Array to hold all the data coming from the PS200/CH200 'Alias names for array elements. Alias CH200_M0(1)=VBatt 'Battery voltage: VDC Alias CH200_M0(2)=IBatt 'Current going into, or out of, the battery: Amps...
  • Page 89 Scan (SlowScan,Sec,3,0) 'Get extended status values. SDI12Recorder (CH200_MX(),3,0,"M6!",1.0,0) 'Get PS200/CH200 values. SDI12Recorder (CH200_M0(),3,0,"MC!",1.0,0) 'Values for the following parameters start at -1 for the charge state and 0 for 'the charge source and check battery. Array locations start with one. Have to 'shift the returned values so they start with one.
  • Page 90: Station Power Usage Rs-232 Programming Example

    'In order to calculate amp-hour capacity the measured currents coming 'from the PS/CH200 must be modified to include the scan rate and then 'totalled over the data table interval. 'Use Campbell Scientific RS-232 cable part # 25356. 'RS-232 CABLE TO CR1000 WIRING '-----------------------------...
  • Page 91 'Array to hold the names of the battery error information. Dim CheckBatteryArr(2) As String 'Command to get extended status information. Const EXTSTATS_CMD = "RD_SPECIAL>" 'Array to hold extended data from the PS200/CH200 Public CH200_MX(4) As String * 20 'Battery charging target voltage. Public BattTargV 'Digital potentiometer setting.
  • Page 92 'Get the PS/CH200 status information. 'Call WAKEUP to wake up the PS/CH200. Call WAKEUP 'Send "read status" command to PS200 followed by a carriage return. SerialOut (COMPRT,CH200STATS_CMD,"",1,3) SerialOut (COMPRT,CR,"",1,3) 'Discard characters in the receiver buffer up to and including asterisks "*"...
  • Page 93: Changing The Sdi-12 Address Programming Example

    “on the fly” while monitoring the data by changing the variable to a new value. The CR1000 communicates with the PS200/CH200 via SDI-12 to change the PS200/CH200’s SDI-12 address and then reads all the measurements from the PS200/CH200 as a test.
  • Page 94 'Get current SDI-12 address. SDI12Recorder (sdi12_address,3,sdi12_address,"?!",1.0,0) Scan (5,Sec,0,0) PanelTemp(PanelTempC,_60Hz) 'Measure datalogger panel temperature. CallTable Hour NextScan 'Test the PS200/CH200 at the new SDI-12 address. SlowSequence Scan (10,Sec,0,0) If new_sdi12_address <> sdi12_address Then SDI_Addr_Chng = "A" + new_sdi12_address + "!" SDI12Recorder (sdi12_address,3,sdi12_address,SDI_Addr_Chng,1.0,0) EndIf...
  • Page 95 Appendix A. Advanced Programming Techniques SDI12Recorder (CH200_M0(),3,new_sdi12_address,"MC!",1.0,0) 'Array values start with one. Values for charge state start with -1. 'Have to shift the value by two to line it up with the correct words 'in the array. ChargeState = ChargeStateArr(Chg_State + 2) 'Values for charge source start with zero.
  • Page 96 CAMPBELL SCIENTIFIC COMPANIES Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES • www.campbellsci.com info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA • www.csafrica.co.za sales@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA)

This manual is also suitable for:

Ch200

Table of Contents