Maintain Trace (1Fh) - Prolific PL-6315 User Reference Manual

Binary message protocol
Table of Contents

Advertisement

2.28 Maintain Trace (1Fh)

Command
String
Length
Response
ACK
NAK
89h/8Ah/
8Ch
Description
Parameters
0: Read log status,
1: Clear all trace records
Action
2: Read configuration and status
3: Set up configuration (see below)
4. Test
Bit 0: 0- Continue on full, 1- Stop on full
Setup
Bit 1: 0- Power on stop, 1- Power on Logging
Bit 2: 0- packed, 1- extended
Distance
0 ~ 65535
Time Period
0 ~ 65535
Speed
0 ~ 65535
* Need special H/W
PL-6313 Product Datasheet
Maintain Trace (1Fh)
%%<F1h><1F>< Parameter bytes><CS><CR><LF>
15
%%<06h><1Fh ><CS><CR><LF>
%%<15h><1Fh><CS><CR><LF>
(see output message 89h/8Ah)
when action = 0, outputs 8Ah
when action = 2, output 89h
when action = 4, output 8Ch
Action
0: system returns message 8Ah
2: System returns message 89h
4: System returns message 8Ch
Setup
Bit 0: action on memory full
Bit 1: Power on action
Bit 2: record type, when changed, all logged records are erased
Distance is the distance between two contiguous recorded points.
Time Period is the time between two contiguous recorded points.
Speed is the speed of recorded point.
Note: When one of three parameters reaches the criteria, this trace is recorded.
If one of the parameter is 0, it is ignored. If all parameters are 0, the trace is
recorded in every single second. When recording reaches the storage
limitation, system will erase the earliest records to make space for newest
records if 'Continue on full' is selected. Technically, it is a FIFO ring buffer.
Note: This ring buffer is consisted of several 4K-byte sectors. When ring buffer
is full, system erases the oldest whole sector to make room for incoming
records if 'continue on full' is selected. Users should see a 100% used
percentage of ring buffer when ring buffer is full, however, the number of
logged records may be reduced because the erased sector contains more than
one records while only one new coming record is added at that moment.
Data (Range)
PL6315_Binary Message Protocol_v0.5.doc
(Little-endian)
UINT08
UINT08
UINT16
UINT16
UINT16
- 34 -
Revised Date:
July 21, 2009
Special HW required)
Type
Unit
-
-
meter
seconds
meter/sec
Document Version 0.3
Byte #
1
2
3 – 4
5 – 6
7 – 8

Advertisement

Table of Contents
loading

Related Products for Prolific PL-6315

Table of Contents