PVS5120-Series Portable Samplers
41
When getting data from the sampler, the
source datalogger
is the
sampler.
The
SendVariables()
and
GetVariables()
instructions have the following
structure:
SendVariables(
ResultCode, ComPort, NeighborAddr, PakBusAddr, Security,
TimeOut, "TableName", "FieldName", Variable, Swath
GetVariables(
ResultCode, ComPort, NeighborAddr, PakBusAddr, Security,
TimeOut, “TableName”, “FieldName”, Variable, Swath
)
Where,
•
ResultCode
– This is the PakBus® communications response. See
CRBasic Help
for more information.
•
ComPort
– The communications port used to communicate with the
source device.
•
NeighborAddr
– A static route to the source datalogger (for example,
the PakBus® address of a neighbor datalogger that the destination
datalogger can go through to communicate with the source
datalogger).
•
PakBusAddr
– The PakBus® address of the sampler. 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.
•
TableName
– The sampler’s data table that the value(s) is retrieved
from. For the
TableName,
enter “
Public”
(
must be enclosed in
quotes).
•
FieldName
– To retrieve status values, enter
“Bottle”
(must be
enclosed in quotes). To start sample collection, enter
“Start”
(
must
be enclosed in quotes).
•
Variable
– The variable or variable array in which the values retrieved
from the source datalogger are stored. This parameter must be
dimensioned equal to or greater than the
Swath
retrieved from the
source datalogger.
•
Swath
– The number of values that are retrieved from the source
datalogger.
For more information on each of the
SendVariables
and
GetVariables
parameters, see the
CRBasic Help
. Section
(p. 43)
, provides some example
SendVariables()
and
GetVariables()
instructions for controlling the sampler. Complete program
NOTE
Summary of Contents for PVS5120 Series
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 70: ...Appendix A Sample Transport Velocity A 2...
Page 78: ...Appendix B Example Programs B 8...
Page 86: ...Appendix C Monitoring Sampler Status via RS 485 C 8...
Page 96: ...Appendix G Generic Modbus Control G 4...
Page 100: ...Appendix H ISO5667 Conformity H 4...
Page 101: ......