background image

SCIENTIFIC TECHNOLOGIES INC.

R

8

6

Serial Output

The serial port is used for software setup

and for seial output reports. For serial reports
you must set a serial report, set a serial timing
mode, then save your settings.

You are not required to use the serial

output. In many cases where only detection is
needed, the default settings will work and no
serial setup is required.

S

ERIAL

 R

EPORT

 C

OMMUNANDS

Serial output report commands determine

what information is reported on the serial port.
Only one command can be used at any time.
Issuing any command erases the previous
setting.

Serial reports give the status of the scanner

during one scan. Data is in binary or ASCII
format. If the scanner does not respond to your
commands press 

ESC

 twice and 

Enter

.

Array modifying commands may be used,

however, the SCREEN function does not affect
ASCII RAW and BINARY RAW modes. (See
section 7 – Array Modifying Commands.)

ASCII Serial Data Modes

In this section values that are written out

are in base ten; values using numerals will be
shown with their base as a subscript. Example:
a decimal value of fifteen will be shown as 15

10

,

or F

16

 in hexadecimal, or 1111

2

 in binary.

Reports in ASCII format give hexadecimal

values and are easily read by terminal
emulators. The data transmitted are the ASCII
codes for the hexadecimal characters. Each
ASCII character requires one byte. All values
are reported in hexadecimal. Example: An
object blocks ten beams. In the 

ASCII SIZE

 mode,

the scanner sends the ASCII code for the
character “A”. The ASCII code number is 65

10

or 41

16

.

ASCII NULL Mode

ASCII NULL Mode turns off serial data

reports

Syntax: 

ASCII NULL

Data format: none
Comment: BINARY NULL does the same thing.

ASCII RAW Mode

ASCII RAW Mode gives the status of each

beam.

Syntax: 

ASCII RAW

Data Format: Reports a string of ASCII
characters for hexadecimal digits. The string
ends with the ASCII character 13

10

 (carriage

return). Each hexadecimal digit represents the
status of four beams by direct conversion to
binary. Binary zero represents an unblocked
beam and binary one represents a blocked beam.
Example:
Beam status

1111000010100001

2

  (Leftmost

digits are farthest from the
cable.)

Hex digits

F0A1

16

 (Every four binary digits

converts to one hexadecimal
digit.)

ASCII Codes

70

10

  (ASCII for F character)

48

10

  (ASCII for 0 character)

65

10

  (ASCII for A character)

49

10

  (ASCII for 1 character)

13

10

  (ASCII for carriage return)

ASCII LIST Mode

ASCII LIST reports the number of objects
detected, the position and size of each object for
a maximum of 16 objects. The report is a
variable length string consisting of:
1) two ASCII characters for the hexadecimal
number of objects detected; and

Section 6 – Serial Output

Summary of Contents for VS6400 Series

Page 1: ...60 0010 Rev E Jan 2006 STI Scientific Technologies Inc Optical Sensor Division Manufacturing and Sales Office 6550 Dumbarton Circle Fremont CA 94555 3611 1 888 510 4357 Phone 510 608 3400 Fax 510 744 1442 www stiscanners com Vehicle Scanner VS6400 Series Installation and Operating Manual ...

Page 2: ...SCIENTIFIC TECHNOLOGIES INC 31069GenstarRoad HaywardCA94544USA R ...

Page 3: ...tion and Connections 3 Section 3 Setup Software 5 Section 4 General Setup Commands 6 Section 5 Relay Outputs 6 Section 6 Serial Output 8 Section 7 Array Modifying Commands 14 Section 8 Specifications 16 Section 9 ASCII Terminal Emulators 18 Section 10 Dimensional Drawings 19 Table of Content ...

Page 4: ... liable for any damage due to improper engineering or installation by the purchaser or third parties Proper installation operation and maintenance of the product becomes the responsibility of the user upon receipt of the product PATENTS Elements of the electronics and optics essential to meet the specifications and performance standards of STI controls are covered by one or more of the following U...

Page 5: ... qualified personnel MOUNTING THE TRANSMITTER AND RECEIVER Mount the transmitter and receiver parallel to each other with no vertical nor horizontal offset and with their connectors pointing in the same direction See Section 10 for mounting dimensions TRANSMITTER AND RECEIVER CABLES Connect the scanner as shown in the diagram RS 485 connections are optional Conncect the shield on both the transmit...

Page 6: ...Com RS485 Communication Link Table 1 Cable Identification by Pin Assignment VS6400 Cable Identification Pin No Color Code Function Description Power 2 Brown VDC 24VDC 7 Blue 0 VDC Ground Scanner Transmitter Receiver Synchronization 6 Pink Sync Synchronization Link 1 White Sync Synchronization Link Control Outputs 5 Gray Output 1 Control Output 4 Yellow Output 2 Alarm Output Serial Communication 8 ...

Page 7: ... the lower left corner of the window Be sure you have 19 200 baud rate selected Then click on OK Note that none of the other selection boxes function when used with the VS6400 You must make changes in the terminal window To access the terminal window click on Terminal in the menu Click on the box Add Linefeed If the display prints with double line spacing you can de select Add Linefeed ENTERING SE...

Page 8: ...he scanner for the current setting The scanner returns the current mode set either NO or NC Example RELAYOUT1 NC sets relay 1 output to normally closed Relay 1 Output Detection Hysteresis Mode This mode allows separate settings for turn on size and turn off size and is normally used for detecting vehicles Syntax RELAY HIST x y where x is the turn on size and y is the turn off size Example RELAY HI...

Page 9: ... that the user needs to fill in For example DIAGS x would indicate to type DIAGS followed by a space followed by a number say DIAGS 100 There are two versions of commands used for this function a simplified and a complex set SIMPLIFIED COMMAND Command Format DIAGS x where x is a number representing the length of time in seconds the beam s must be blocked before the scanner will ignore it Using thi...

Page 10: ...l emulators The data transmitted are the ASCII codes for the hexadecimal characters Each ASCII character requires one byte All values are reported in hexadecimal Example An object blocks ten beams In the ASCII SIZE mode the scanner sends the ASCII code for the character A The ASCII code number is 6510 or 4116 ASCII NULL Mode ASCII NULL Mode turns off serial data reports Syntax ASCII NULL Data form...

Page 11: ...hexadecimal space 0008 0002 space 0012 0002 carriage return line feed Interpretation two objects detected the 9th beam is the first beam blocked by the first object the first object blocks two beams the 19th beam is the first beam blocked by the second object the second object blocks 2 beams the carriage return and line feed delimit the report ASCII SIZE Mode ASCII SIZE Mode gives the size of the ...

Page 12: ...o show a blocked beam There are no delimiters BINARY PSIZE Mode BINARY PSIZE Mode gives the position and size of the largest object detected Syntax BINARY PSIZE Data Format Report is two bytes giving the position and size of the largest object detected First byte is the position the beam blocked closest to cable Position starts counting beams from zero The second byte is the size the number of bea...

Page 13: ...Report gives a variable number of pairs of bytes one byte for each object detected followed by one byte of value 0016 If no object is detected only one byte is given of value 0016 In each pair of bytes the first byte is the position beam closest to the cable blocked by the object and the second byte is the number of beams blocked by the object Beam position numbering starts at one for the beam clo...

Page 14: ...ncluded just 3 consecutive data bytes Syntax BINARY LBB FBB NOBJ Note This command is not available on the Windows Software check off boxes Use the Terminal Window to enter this command See Section 4 Windows Software for details SERIAL TIMING COMMANDS If you are using the serial reports you must set a timing command The scanner has two serial timing modes synchronous timing and software trigger If...

Page 15: ...e and disable the function and one to set the time interval for these reports Syntax HBENA Y turns on this mode HBENA N turns off this mode Syntax HBTIME n where n is the time interval in seconds between heartbeat reports SOFTWARE DEMAND MODE This function provides serial reports on demand using a software demand request Ctl E is the request for a report Syntax DMD sets the scanner to software tri...

Page 16: ... interprets and reports them This is commonly used to invert the status of the beams to report holes in a material or to ignore specific beams that are blocked by a stationary object Two commands are used for masking one sets a mask pattern and the other defines masking logic The scanner always uses masking The default settings however result in the real beam status SETMSK SETMSK set mask is used ...

Page 17: ...c causes the scanner to report beams that are actually blocked or shown as blocked in the mask pattern AND logic only reports blocked beams when the same beams are blocked in the mask pattern This can be used to turn off specific beams blocked by a permanent obstruction EXCLUSIVE OR logic inverts the status of any beam shown as blocked in the mask pattern and show the true status of beams shown as...

Page 18: ...transmitter and receiver Operating Range 20 m 66 ft with a gain margin of 2 Beam spacing 22 or 43 mm Misalignment Allowed 4 degrees Scan Lengths Scan Times Relay Hyteresisis Scan Time Response Time Scan Length No of Beams Normal Double Normal Double 22mm 0 85 in Beam Spacing 524 mm 20 6 in 24 1 4 2 8 4 2 8 4 698 mm 27 5 in 32 1 9 3 8 5 7 11 4 872 mm 34 3 in 40 2 4 4 8 7 2 14 4 1046 mm 41 2 in 48 2...

Page 19: ...dual Beam Indicators illuminate to indicate which beams are blocked Construction Painted aluminum housing plastic window ENVIRONMENTAL RATINGS Ambient Light Immunity Up to 40 000 lux outside of 5 degree angle of incidence upon the receiver Operating Temperature Range 40 to 70 C 40 to 158 F Sealing IP65 Vibration Per IEC 60068 2 6 0 to 55 Hz at 1 octave minute 0 35mm amplitude 3 axes Bump Shock Per...

Page 20: ...he following setup parameters in the emulator Terminal type ANSI or ASCII Inbound CR LF Translate CR to CR and LF Function Arrow and Control Keys Set for terminal use not used for Windows Line wrap allowed Baud Rate as set on the scanner Data format 8 data bits 1 start bit no parity bits N 8 1 Com Port Set to the port the scanner is connected to Hardware Flow Control Off Software Flow Control Off ...

Page 21: ... 8 2175 85 6 System Shipping Weight kg lb 9 5 21 10 0 22 11 4 23 10 9 24 11 8 28 Section 10 Dimensional Drawings A DETECTION ZONE 20 63 524 0 SHOWN B MTG 23 35 593 1 SHOWN 2 80 71 1 1 75 44 5 3 50 88 9 2 79 70 7 1 57 39 9 0 55 14 0 BOTH ENDS 1 15 29 2 C 24 45 621 0 SHOWN 40 4 1 59 O D DIA 14 2 58 28 7 0 C L L C 1 80 45 7 1 38 35 0 2 12 53 8 1 25 31 8 0 66 16 6 Vehicle Scanner VS6400 FRONT VIEW SID...

Page 22: ...SCIENTIFIC TECHNOLOGIES INC R 20 Section 11 Warranty ...

Reviews: