Herunterladen Inhalt Inhalt Diese Seite drucken

Balluff BVS Betriebshandbuch Seite 110

Vision sensor
Inhaltsverzeichnis
Vision Sensor BVS
9
Schnittstelle
Beispiel
110
Inspektion, deren Typ und deren Parameter abhängig. Jede Inspektion hat ihr eigenes, individuelles
Inspektionsergebnis. Deswegen ist eine vollständige Beschreibung aller möglichen
„Inspektionsergebnisse" nicht möglich. Allerdings folgt der Aufbau jedes Inspektionsergebnisses
einer festen „Grammatik", die hier mit Hilfe der sogenannte „EBNF Notation" beschrieben wird.
Eine Einführung in die EBNF-Notation finden sie unter:
http://de.wikipedia.org/wiki/EBNF
<response message > = [<Startzeichen>]<type>[<Epilogue>]
<Startzeichen> = <STX> (ASCII-Zeichen 0x02h) | <User definierter
Startstring> (*mit BVS ConVis festgelegt*) ; Nur bei Übertragung via
RS232
<type> = <success> | <failure>
<success> = <SuccessID>< separator ><bytelenght><separator>
<inspection result>]
<failure> = "ERR"< separator >"INVALIDSTATUS"
<SuccessID> = "OK"
<bytelenght> = <digit><digit><digit><digit><digit>
<Inspection result> = <inspection name> <separator> <inspection logic
result> <separator> <tools results> [<separator> <logical_tools
results>] <epilogue>;
(*Ergebnislänge ab nächstem Trennzeichen*)
<Inspection name> = <UTF-8_string>; (*Inspection name UTF-8 coded*)
<inspection logic result> = "0001" | "0000";(* 0001:=FAILURE, 0000:=
Success *)
<tools results> = <tool result>[<separator> <tool result>]; (*list of
Inspection tools results*)
<tool result> = <tool name> <separator> <tool logic result> <separator>
<tool param result> [<separator> <tool param result>];
<logical_tools results> = <tool name> <separator> <tool logic result>
<tool name> = <UTF-8_string> (the tool name UTF-8 coded)
<tool logic result> = "0001" | "0000";(*0001:=FEHLER, NOK, 0000:= KEIN
FEHLER, OK*)
<tool param result> = <INT_As_String> | <DOUBLE_AS_STRING> (*for order
of parameters for each tool see table below*)
<INT_AS_STRING> = < digit >,< digit >,< digit >,< digit >,< digit >;
<DOUBLE_AS_STRING> = < digit >,("."| < digit >), ("."| < digit >),("."|
< digit >), ("."| < digit >);
<digit> = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
<character> = ( <digit> | <alphabetic character>);
<digit> = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
<alphabetic character> = "A" | "B" | "C" | "D" | "E" | "F" | "G"| "H" |
"I" | "J" | "K" | "L" | "M" | "N"| "O" | "P" | "Q" | "R" | "S" | "T" |
"U"| "V" | "W" | "X" | "Y" | "Z" | "a" | "b" | "c" | "d" | "e" | "f" |
"g"| "h" | "i" | "j" | "k" | "l" | "m" | "n"| "o" | "p" | "q" | "r" |
"s" | "t" | "u"| "v" | "w" | "x" | "y" | "z" ;
<epilogue> = <Endstring>; Nur bei Übertragung via RS232
<Endstring> = <CR><LF> | <User definierter String>
<User definierter String> (*Wird in BVS ConVis festgelegt*);
<CR> = 0x13h (*Hexadecimal ASCII value*)
<LF> = 0x10h (*Hexadecimal ASCII value*)
<STX> = 0x02h (*Hexadecimal ASCII value*)
Ergebnis einer Inspektion namens Insp_Beispiel mit 1 Werkzeug Datamatrixcode lesen; Startzeichen
<STX>; Endezeichen: <CR><LF> (diese Zeichen sind im normalen Text unsichtbar).
<STX>OK&00079&Insp_Beispiel&00000&Datamatrix1&00000&00516&00223&000.0&00
001&1234567890&00003<CR><LF>
Die folgende Tabelle zeigt Ihnen für dieses Beispiel die detaillierte Aufschlüsselung anhand der obigen
"Grammatik".
Inhaltsverzeichnis
loading

Inhaltsverzeichnis