Laser LS8000-3 Read One Line of Measurement Data, Binary Output Mode, Example TE Data Output

Models: LS8000-3

1 221
Download 221 pages 9.92 Kb
Page 156
Image 156

LaserSpeed 8000-3 Instruction Handbook

RS-232/RS-422 Communication

Example TE Data Output:

+000006090,+000144950,15,63<CR>

+000006100,+000145292,15,63<CR>

+000006110,+000146965,15,63<CR>

+000006120,+000148606,15,63<CR>

+000006130,+000149265,15,63<CR>

+000006140,+000149183,15,63<CR>

+000006150,+000148663,15,63<CR>

+000006159,+000147472,15,63<CR>

+000006169,+000145500,15,63<CR>

To remove the gauge from this mode, send a <CR>, or send .<CR>.

V

Read One Line of Measurement Data

V<CR> Read Only Command

Response Format: <L,V,QF,ST><CR>

The response is a comma delimited list of the current measurement data outputs. The response string is always 28 characters. All fields are zero-padded to form a constant length string.

The data output is identical to the data transmitted when transmitting data in response to the TE command.

TB

Binary Output Mode

TB<CR> Data Output Command

Data Format: 16-Byte Binary Message

Note: If reading data over RS-232 or RS-422 the framing MUST be set to 8n1 for this mode to work properly.

This command places the LS8000-3 into Binary Output Mode. This mode only affects the communication port over which the command is sent. For example, if the command is sent over RS-232, only the RS-232 port will transmit measurement data—the RS-422 and Ethernet ports will not change operation.

The LS8000-3 will output a serial message at an interval determined by the User Update Rate (O setting). This rate can vary from 1ms to 2.047s. If using a fast update rate, it may not be possible to transmit every reading at lower baud rates. Refer to the Real-Time Data Timing Considerations section for details.

This measurement mode is designed to interface directly to a computer or PLC, and does not produce a human readable text format that can be used in a terminal program. In this mode, the LS8000-3 sends measurement data in a binary format that is more compact than the text output message. This lowers the number of bytes per output message, and allows 1ms updates at 115.2k or 230.4kBaud.

The output message is a fixed length 16 byte message. To determine where the start of a message is in the data, the receiving software should look for a string of 5 FF values, followed by a value that is not FF. The bytes are ordered in the message such that it is impossible for this sequence to occur except at the beginning of the message.

Part No. 93463 / Drawing No. 0921-01561

Page 156 of 221

Revision A (Sep 2007)

Page 156
Image 156
Laser LS8000-3 manual Read One Line of Measurement Data, Binary Output Mode, Example TE Data Output