Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens RF182C Betriebsanleitung Seite 100

Simatic rfid-systeme kommunikationsmodul
Inhaltsverzeichnis

Werbung

Beispiele/Applikationen
10.2 Anwenderapplikation RF182C
{
switch (state)
{
case TagDetectionState.YES:
case TagDetectionState.NO:
case TagDetectionState.UNDEFINED:
}
}
}
/* As long as no tag presence notification was send, we have no
* information whether there is a tag in the field or not.
* --> three states
* */
enum TagDetectionState
{
YES, NO, UNDEFINED
}
// This class is for handling asychronous communication processes
internal class ReceiveString
{
public readonly static int BufferSize = 512;
public byte[] buffer = new byte[BufferSize];
}
// This class describes a XML block in ReceiveBuffer
internal class XMLTag
{
//Index of first character
public int startIndex;
//Block length
public int length;
// Type ( reply, notification or alarm, since only telegramms
// from the ASM are handeld within this structure)
public String type;
}
}
100
labelTagDetected.Text = "TAG(s) DETECTED";
labelTagDetected.BackColor = Color.Green;
break;
labelTagDetected.Text = "NO TAG DETECTED";
labelTagDetected.BackColor = Color.Red;
break;
labelTagDetected.Text = "";
labelTagDetected.BackColor = BackColor;
break;
//Color of the dialog
Kommunikationsmodul RF182C
Betriebsanleitung, 10/2010, J31069-D0204-U001-A2-0018

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis