Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The output of the protocol handler provides the following attributes that can be used through the schema of the access operator:

NameTypeDescription
TimestampTIMESTAMPLongThe time of measurement in UTC
VersionVERSIONStringThe version of the laser scanner
DeviceDEVICEStringThe device ID
SerialSERIALStringThe factory serial number
StatusSTATUSIntegerThe status of the scanner
MessageCountMESSAGECOUNTIntegerThe message counter starting at the first measured value message. When the upper limit is reached, the counter starts again at 0.
ScanCountSCANCOUNTIntegerThe scan counter starting with the first scan after confirmation of the measured value message. When the upper limit is reached, the counter starts again at 0.
PowerUpDurationPOWERUPDURATIONLongThe time since the scanner was switched on.
TransmissionDurationTRANSMISSIONDURATIONLongThe time since the transfer of the measured values
InputStatusINPUTSTATUSBooleanThe state of the digital inputs
OutputStatusOUTPUTSTATUSBooleanThe state of the digital outputs
ScanningFrequencySCANNINGFREQUENCYLongThe scanning frequency
MeasurementFrequencyMEASUREMENTFREQUENCYLongThe frequency between two separate measurements
POSITIONMatrixThe position
POSITIONROTATIONTYPEIntegerThe position rotation type
DISTANCE8BIT

Matrix

The measured distance values (8bit)
REMISSION8BITVectorThe measured remission (8bit)
DISTANCE8BIT2

Matrix

Dist1

List<SpatialPolarCoordinate>

The measured distance values (8bit)
REMISSION8BIT2VectorThe measured remission (8bit)
DISTANCE16BITMatrixThe measured distance values (16bit)
REMISSION16BITVectorRssi1List<Double>The measured remission (16bit)
Dist2DISTANCE16BIT2List<SpatialPolarCoordinate>MatrixThe measured distance values (16bit)
Rssi2REMISSION16BIT2List<Double>VectorThe measured remission (16bit)

Example

PQL

Code Block
languagejs
titleLMS1xx Protocol Handler
linenumberstrue
input = ACCESS({source='lms1', wrapper='GenericPush',
transport='TCPClient',protocol='SICKLMS1xx',
  dataHandler='SICKKeyValueObject',options=[['host','192.168.1.20'],['port','2111']],
  schema=[
    ['dist1','SpatialPolarCoordinate']
  ]
})

CQL

Code Block
languagesql
titleLMS1xx Protocol Handler
linenumberstrue
CREATE STREAM lms1 (dist1 SpatialPolarCoordinate)   
    WRAPPER 'GenericPush'
    PROTOCOL 'SICK'
    TRANSPORT 'File'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'host' '192.168.1.20', 'port' '2111'

out = KEYVALUETOTUPLE({
          schema=[['DISTANCE16BIT', 'Matrix']],
          type='Tuple',
          keepinput='false' 
        },
        input
      )