background image

PVS5120-Series Portable Samplers 

49 

The 

ModbusMaster()

 instruction has the following form: 

ModbusMaster(

ResultCode, ComPort, BaudRate, ModbusAddr, Function, 

Variable, Start, Length, Tries, TimeOut, [ModbusOption]

)

 

Where, 

ResultCode

 – The ResultCode parameter is a variable that holds the

results of the communication attempt.

ComPort

 – The ComPort parameter specifies the communication port

and mode that are used for this instruction.

BaudRate

 – Use 38400 bps

.

ModbusAddr

 – Enter the Modbus® address set in 

DevConfig

.

Function

 – Enter the appropriate code (TABLE 

8-8

to define what

data is being sent to or received from the 

ModbusSlave

.  For

example, use function code 1 to see if the sampler is still running.

Use function code 3 to return the status values.  Use function code 15

to set the start sample flags high.

TABLE 8-8.  Modbus® Function Codes 

Code 

Name 

Description 

01 

Read Coil/Port Status 

Reads the On/Off status of discrete 

output(s) in the ModbusSlave 

03 

Read Holding Registers 

Reads the binary contents of holding 

register(s) in the ModbusSlave 

15 

Force Multiple Coils/Ports 

Forces multiple Coils/Ports in the 

ModbusSlave to either On or Off 

16 

Write Multiple Registers 

Writes values into a series of holding 

registers in the ModbusSlave 

Variable

 – The 

Variable

 parameter is used to specify the variable

array that is used as the source of data to send, or the variable array

that is used as the destination for data received.

Start

 – The 

Start

 parameter is used to specify the first number of the

register or coil that is acted upon with this instruction.  TABLE 

8-7

shows the descriptions of the registers and coils for the sampler.

When initiating a sample, enter 1 for this parameter.  When collecting

all of the status values, enter 23 for this parameter.

Length

 – The 

Length

 parameter is used to specify the number of

variables to act upon with this instruction.  The 

Length

 for initiating a

sample is 

1

.  The 

Length

 for collecting status values is 4.

Summary of Contents for PVS5120 Series

Page 1: ...INSTRUCTION MANUAL PVS5120 Series Portable Samplers Revision 5 17 C o p y r i g h t 2 0 1 1 2 0 1 7 C a m p b e l l S c i e n t i f i c I n c...

Page 2: ......

Page 3: ...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 give...

Page 4: ......

Page 5: ...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 marke...

Page 6: ......

Page 7: ...ore 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...

Page 8: ......

Page 9: ...ng to the VSC100 Sampler via DevConfig 9 6 1 1 Clock Tab 10 6 2 Settings Editor Tab 11 6 2 1 Info Tab 11 6 2 2 Sampler Settings Tab 12 6 2 3 Advanced Sampler Settings Tab 13 6 2 4 Pulse Settings Tab 1...

Page 10: ...r PakBus Control 40 8 2 4 5 PakBus Example Instructions 43 8 2 5 Modbus Control 43 8 2 5 1 Configuring the MD485 43 8 2 5 2 Configuring Sampler for Modbus Control 45 8 2 5 3 Wiring for Modbus Control...

Page 11: ...ime Based Configuration C 5 C 4 2 Monitoring via Modbus C 6 C 4 2 1 Modbus Monitoring with Time Based Configuration C 7 D Replacement Parts D 1 E Lithium Battery Replacement E 1 F Response Code 4 Scen...

Page 12: ...Control settings 51 8 18 Pulse Settings tab 52 C 1 MD485 Device Configuration screen C 1 C 2 MD485 Deployment tab C 2 C 3 MD485 RS 485 tab C 2 C 4 Device Configuration VSC100 C 4 Tables 4 1 Control P...

Page 13: ...t of this manual CAUTION Damage resulting from running the sampler under freezing conditions will not be covered under the product warranty Wiring to remote external sensors should avoid all ac power...

Page 14: ...horizontal draws of 7 6 m 25 ft and the large pump takes samples at 2 2 m s 7 1 ft s at 7 6 m 25 ft When sampling is initiated liquid travels through the intake hose to the volume control tube into th...

Page 15: ...PVS5120D Sampler Sample Bottles T Bar Retaining Plate Folding Handle Clasps 1 L Base optional Intake Hose Sinker optional strainer 500 mL Base Control Panel VSC100 Controller Enclosure Handle Intake...

Page 16: ...2V MDL Fuse that protects the control panel Varies depending on pump choice The 10 A version is for the large pump Manual Control Blue button used to Service Manually Sample and Auto Deploy the sample...

Page 17: ...The Auto Deploy routine runs the sampler through an entire sampling sequence while keeping track of the time to move water from the water source to the metering chamber It uses this information to set...

Page 18: ...ia three way power switch One control cable for all control types An optional water present sensor detects the presence of water at the mouth of the sampler intake hose to ensure a sample is available...

Page 19: ...eploy routine 40 to 60 C 40 to 140 F 12 Vdc 7 Ah or 17 Ah 110 Vac charger or 100 to 240 Vac charger CE Compliant RoHS Compliant Complies with the relevant sections of the ISO 5667 10 standard applicab...

Page 20: ...r Nylon standard Teflon optional Metering chamber level electrode 316 stainless steel Volume control tube 316 stainless steel Liquid sensing conductivity rod 316 stainless steel Intake hose Ordered as...

Page 21: ...ce a new user to each setting in detail To use DevConfig the sampler needs to be powered and the VS100 controller needs to be connected to a PC via the 17648 USB cable FIGURE 6 1 FIGURE 6 1 VSC100 and...

Page 22: ...Samplers 10 FIGURE 6 2 Device Configuration VSC100 3 Once connected to the VSC100 you are ready to configure your sampler 6 1 1 Clock Tab The Clock tab sets the clock on the VSC100 and sampler FIGURE...

Page 23: ...synced before deploying the sampler if running the sampler using Stand Alone Time Based control or if a new operation system has been loaded to the VSC100 The sampler clock can have up to 1 minute of...

Page 24: ...es if a distribution arm position encoder is installed Composite samplers do not have an arm position encoder present Current Sample State Returns the last sampler response code See later sections for...

Page 25: ...ace in each bottle It can range from 1 to 999 This setting is ignored if Never Full is set to On Enable Never Full Option Specifies whether the sampler stops or continues sampling when each bottle s h...

Page 26: ...ime is 3 s The maximum time for the SDI 12 control type is 30 s The maximum time is 800 s for PakBus Pulse Modbus and Time control types The Auto Deploy routine sets this to 12 s Sample Deposit Time T...

Page 27: ...Sampler Settings tab Section 6 2 2 Sampler Settings Tab p 12 the options within the Pulse Settings tab become available Start Pulses The number of input pulses needed to initiate the sample process Th...

Page 28: ...ault Start Date and Time is not changed the sampler will immediately begin sampling after the configuration is applied to the VSC100 Make sure to set this start date and time far enough into the futur...

Page 29: ...lume set rod Laptop computer with DevConfig 2 09 or higher 7 1 2 Sampler Positioning Place the sampler on a level surface as close as practical to the sample source FIGURE 7 1 Appendix A Sample Transp...

Page 30: ...below the bottom of the float valve barrier FIGURE 7 2 Conductivity rod and intake hose connection 3 Connect the positive lead to the top of the conductivity rod yellow cap 4 Connect the battery a If...

Page 31: ...nto one of the sample bottles If you do not want this volume as part of your final sample count remove the control section of the sampler and empty the sample just collected If necessary replace with...

Page 32: ...r has a volume accuracy repeatability of 2 or 2 mL If an exact amount of liquid is required for a sampling protocol the user should manually collect a few samples to ensure that the rod is set at the...

Page 33: ...ensure the conductivity necessary to detect the presence of the fluid 7 2 3 Cables 7 2 3 1 PVS5120CBL L Control Cable pn 30432 The PVS5120CBL L control cable connects the sampler to a datalogger MD485...

Page 34: ...S 485 B port Red Fault Outputs 5 V TTL Brown RG Resistive ground 7 2 3 2 USB Cable pn 17648 This USB cable is shipped with the sampler FIGURE 7 6 It connects the sampler to a PC which is required for...

Page 35: ...compatible with the users external power supply If using an external power supply the user can not charge the external battery via the sampler charger To charge an external battery the user must prov...

Page 36: ...d with the controller samples are only collected when the circuit is connected by water touching both rods If there is not enough water to touch both rods the sample is stopped and response code 6 no...

Page 37: ...rging your battery via ac power FIGURE 7 10 When purchased with the PVS5120 the 110 Vac charger is option C1 and the 100 to 240 Vac charger is option C2 FIGURE 7 10 110 Vac Charger pn 27825 7 4 Fault...

Page 38: ...nstalled into liquid c Properly connected to volume control tube on metering chamber 3 Discharge hose only in the composite samplers a Free of kinks b Natural downward slope to sample container c Prop...

Page 39: ...lears the intake line of any residual liquid Purge time is a function of hose length and head between the sampler and the sample source FIGURE 8 2 shows purge times for hose lengths up to 232 feet wit...

Page 40: ...nfig s help provided at the bottom of the window when a setting is clicked These control types correspond to the scenarios presented in the two Quick Deploy Guides shipped with the samplers TABLE 8 1...

Page 41: ...correct COM port Click Connect FIGURE 8 4 FIGURE 8 4 Device Configuration VSC100 3 Once connected to the VSC100 you are ready to configure your sampler 4 Click the Clock tab at the top of the window...

Page 42: ...ettings tab FIGURE 8 5 a Set the Control Type to Time b If using PakBus to monitor the sampler over RS 485 set the PakBus Address c If using Modbus to monitor the sampler over RS 485 set the Modbus Ad...

Page 43: ...the default value of 12 05 AM on January 1 1990 If you do not change the default setting the sampler will immediately begin sampling after the configuration is applied to the VSC100 Additionally the S...

Page 44: ...ding on the purge vacuum and sample drop times set up in DevConfig for example the longer the hose and the greater the lift between the sampler and the water source the longer response time to the M c...

Page 45: ...abled 3 Click Apply It is a good idea to save the configuration file for future reference 4 Connect the PVS5120CBL cable to the front of the sampler and wire the cable to the datalogger TABLE 8 2 5 Us...

Page 46: ...12 Programming In CRBasic use the SDI12Recorder instruction to program the datalogger to control the sampler This instruction sends a request to the sensor to make a measurement and then retrieves the...

Page 47: ...X series the SDI12Recorder instruction has the following form SDI12Recorder Destination SDIPort SDIAddress SDICommand Multiplier Offset Where Destination For the sampler the destination location shoul...

Page 48: ...ed in DevConfig and referenced in the datalogger program The PakBus address must be unique for each sampler on your network and for each datalogger Four status variables are returned to the datalogger...

Page 49: ...ect CS I O and RS 485 in the Active Ports box Select Transparent Communication in the Protocol box FIGURE 8 8 FIGURE 8 8 MD485 Deployment tab 5 Click the CS I O tab Set the mode based on the type of d...

Page 50: ...e VSC100 in DevConfig click the Sampler Settings tab FIGURE 8 11 a Set the Control Type to PakBus b Set the PakBus Address This is the address of the sampler and is referenced in the CRBasic program r...

Page 51: ...e final purge time can be set separately refer to Section 6 2 3 Advanced Sampler Settings Tab p 13 g If a Water Present Sensor is present click to install This sensor is wired to the sampler control c...

Page 52: ...ed Purple Ground Not used Grey Ground Connects to one lead of the optional water detection probe Yellow Water Sensor Connects to one lead on the optional water detection probe White RS 485 A MD485 RS...

Page 53: ...er Typically the default address of 95 can be used unless multiple samplers are connected to the same port This address is configured in DevConfig Security Typically enter 0000 TimeOut Enter 0 TableNa...

Page 54: ...is evacuated after collecting sample 8 UsePurgeTime A true false variable which indicates if PurgeTime2 is set independently of PurgeTime1 or is set to same value as PurgeTime1 9 SetTimeOut True false...

Page 55: ...once the sample is complete and in the case of the discrete sampler the arm moved to the next location The program running on the datalogger needs to monitor the sampler for the sample to complete and...

Page 56: ...ct CS I O and RS 485 in the Active Ports box Select Transparent Communication in the Protocol box FIGURE 8 13 FIGURE 8 13 MD485 Deployment tab 5 Click the CS I O port tab Set the mode based on the typ...

Page 57: ...l 1 Click the Sampler Settings tab FIGURE 8 16 a Set the Control Type to Modbus b Set the Modbus Address This is the address of the sampler and is referenced in the CRBasic program running on the data...

Page 58: ...more information FIGURE 8 16 Modbus Setting Editor screen 2 Click the Advanced Sampler Settings tab FIGURE 6 6 In most cases the only thing a user will want to change is to Enable Pressure Relief set...

Page 59: ...port Red Fault Not used Brown RG MD485 RG port 8 2 5 4 Programming for Modbus Control with Campbell Scientific Datalogger Modbus can be used to control the sampler and to monitor a timed based or pul...

Page 60: ...collecting sample 3 or 16 15 1 40015 40016 UsePurgeTime A true false variable which indicates if PurgeTime2 is set independently of PurgeTime1 or is set to same value as PurgeTime1 3 or 16 17 1 40017...

Page 61: ...atus Reads the On Off status of discrete output s in the ModbusSlave 03 Read Holding Registers Reads the binary contents of holding register s in the ModbusSlave 15 Force Multiple Coils Ports Forces m...

Page 62: ...e if the sampler is still running ModbusMaster MbResult 1 ComSDC7 38400 MBAddress 1 Start_sample 1 1 3 100 0 This instruction collects the status values ModbusMaster MbResult 3 ComSDC7 38400 MBAddress...

Page 63: ...uto Deploy enter the amount of time the sampler hose is evacuated before and after the sample is collected The maximum value is 800 s f If a Water Present Sensor is present click to install This senso...

Page 64: ...takes a 0 V signal and raises it up to 5 V or Contact Closure in the case of a tipping bucket rain gauge contact closure drives a line from 5 V normally open line down to 0 V closed FIGURE 8 18 Pulse...

Page 65: ...signed to give years of trouble free service with reasonable care However if factory repair is needed first contact a Campbell Scientific application engineer to obtain an RMA Return Materials Authori...

Page 66: ...before 11 6 Vdc 9 1 3 Intake Hose 1 Check for any obstructions at intake end and clean 2 Inspect for breaks cracks or any point where leakage may be suspected by submerging in a bucket of water and ru...

Page 67: ...ing connections and replacing chamber cover Remove blue intake hose to metering chamber and place your thumb on stainless steel intake tube is there pressure or suction on it at any time during the sa...

Page 68: ...has drifted replace the coin cell battery see Appendix E Lithium Battery Replacement p E 1 9 2 2 Information Needed for Help in Troubleshooting a Problem Campbell Scientific application engineers nee...

Page 69: ...82 m s 2 7 ft s 0 49 m s 1 6 ft s 0 m s 0 ft s TABLE A 2 Horizontal Lift System Size Distance 7 6 m 25 ft 15 2 m 50 ft 22 9 m 75 ft 30 5 m 100 ft 53 3 m 175 ft 61 m 200 ft 76 2 m 250 ft large pump 2 2...

Page 70: ...Appendix A Sample Transport Velocity A 2...

Page 71: ...This variable allows the user to prevent the logger from triggering the sampler It is helpful when servicing the sampler or testing in the lab Just set the variable to false in the public table and s...

Page 72: ...e This is because a service command is not issued by the sensor with a C like in an M If you need data back sooner than the next sample follow the steps below date 2014 10 17 Public PTemp batt_volt Pu...

Page 73: ...mber of the last sample that was deposited into the current bottle Alias VSC100 3 Response_Code This is the result code returned by the VSC100 Possible response codes returned from VSC100 0 No Error 1...

Page 74: ...text message Dim Response_List 9 As String Public response_code_message As String Public AutoRun As Boolean allows user to prevent the sampler from running on schedule via the connect screen without r...

Page 75: ...s is true then get variables from the sampler If the communication fails return the results to Result 1 Public is the sampler table name Start is the field name on the sampler GetVariables Result 1 Co...

Page 76: ...e from the sampler to a text message Dim Response_List 9 As String Public response_code_message As String Public AutoRun As Boolean allows the user to prevent the sampler from running on schedule via...

Page 77: ...Battery batt_volt CallTable logger_battery If IfTime 0 15 Min AND AutoRun true Then If you are 0 seconds into the 15 minute interval and autorun is true Run_sampler true Then set Run_sampler flag to T...

Page 78: ...Appendix B Example Programs B 8...

Page 79: ...an MD485 1 Connect a serial cable to the RS 232 port on the MD485 and to the computer 2 Supply power 12 Vdc to the MD485 by the power jack or through the 12 V line on the CS I O connector You will ne...

Page 80: ...guration box FIGURE C 2 FIGURE C 2 MD485 Deployment tab 5 Click the CS I O tab Set the mode based on the type of datalogger being used a The shown configuration is for a CR1000 We used SDC7 for the ad...

Page 81: ...RS 485 A port Black RS 485 B MD485 RS 485 B port Red Fault Not used Brown RG MD485 RG port C 3 Configure the VSC100 Reconnect to the VSC100 to add adjust either the PakBus or Modbus address depending...

Page 82: ...odbus Address i The default PakBus address for the sampler is 95 This value needs to be unique for each sampler and datalogger on your network ii The default Modbus address is 1 The value can range fr...

Page 83: ...have multiple samplers on the network they each need a unique PakBus address The following two variables are used to convert the numeric response code value from the sampler to a text message Dim Res...

Page 84: ...ndIf NextScanEndProg C 4 2 Monitoring via Modbus When monitoring via Modbus you need to issue the ModbusMaster instruction and save the returned values to variable array These status values are array...

Page 85: ...ampler status values Sample 1 CurrentBottle FP2 Sample 1 SampleCount FP2 Sample 1 ResponseCode FP2 Sample 1 response_code_message String Sample 1 SamplerBatt FP2 EndTable DataTable ModbusErrors true 1...

Page 86: ...Appendix C Monitoring Sampler Status via RS 485 C 8...

Page 87: ...bottle with base 27823 7 Ah battery with mount 27825 External 12 Vdc charger 4 pin 27891 Pinch valve solenoid 12 Vdc 27949 3 8 in system 25 ft intake tubing w lead sinker 27952 0 5 L polypropylene we...

Page 88: ...on stepper motor 29735 100 to 240 Vac charger 29786 Standard pump 30144 L PVS5120C D water detection probe 30819 PVS5120 external battery cable 6ft 30991 PVS5120 short volume control tube PVS5120CBL L...

Page 89: ...separate top from bottom 2 Disconnect the 16 pin connector from bottom of the VSC100 3 Remove the eight Phillips screws from the bottom of the VSC100 and separate top from bottom Use Loctite on the fo...

Page 90: ...er Be careful not to tear the wires connecting the board to the USB connector When lifting the board do not tear the wires that connect the board to the USB connector 6 Replace with lithium battery pn...

Page 91: ...in the metering chamber to more than an inch The increased offset is necessary because the water is shot into the chamber under pressure as the sampler tries to vacuum up enough water to complete the...

Page 92: ...600 mL therefore up to 100 mL are in the base of the sampler Notice the total volume that was collected during the successful samples compared to what was actually deposited in the sample bottle Since...

Page 93: ...G 1 Appendix G Generic Modbus Control TABLE G 1 provides detailed Modbus control information TABLE G 1 Detailed Modbus Control Information...

Page 94: ...40030 3 29 1 Registers 40001 to 40030 contain 15 values encoded as IEEE 754 4 byte floating point CDAB Some Modbus clients masters require the start address to be specified as base 1 while others requ...

Page 95: ...0 02 00 00 41 C0 CRC RX 01 10 00 02 00 02 CRC Modbus Packet Example 3 Set SampPerBottle Registers 24 0 0x 41 C0 00 00 TX 01 10 00 02 00 00 41 C0 CRC RX 01 10 00 02 00 02 CRC Modbus Packet Example 4 Ge...

Page 96: ...Appendix G Generic Modbus Control G 4...

Page 97: ...CSI sampler collects the same volume every time it samples e Flow weighted samples held in individual bottles PVS5120 can do this if a flow meter is connected to the sampler or the datalogger You woul...

Page 98: ...m s 4 1 ft s 1 10 m s 3 6 ft s 0 91 m s 3 ft s 0 79 m s 2 6 ft s standard pump 1 55 m s 5 1 ft s 1 43 m s 4 7 ft s 1 10 m s 3 6 ft s 0 82 m s 2 7 ft s 0 49 m s 1 6 ft s 0 m s 0 ft s TABLE A 2 Horizon...

Page 99: ...the intended volume The amount of water taken is set mechanically using the liquid sensing rod and the volume control tube which means sample accuracy is precise every time usually within 2 or 2 mL S...

Page 100: ...Appendix H ISO5667 Conformity H 4...

Page 101: ......

Page 102: ...ua Apinag s nbr 2018 Perdizes CEP 01258 00 S o Paulo SP BRASIL www campbellsci com br vendas campbellsci com br Campbell Scientific Canada Corp 14532 131 Avenue NW Edmonton AB T5L 4X4 CANADA www campb...

Reviews:

Related manuals for PVS5120 Series