EasyManua.ls Logo

Pepperl+Fuchs OPC - Page 62

Pepperl+Fuchs OPC
75 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2015-07
62
OPC / OPD / OPE
Appendix
void SetSpecificSingleParameter(ushort version, string configId,
string parameterId, string newValue)
configId: Configuration ID of a parameter
parameterId : Parameter ID of a parameter
newValue: New value for the parameter
Sets the value for a parameter to newValue; version, configId, and parameterId
can be taken from the table in this case.
public bool ExistsResultParameter(ushort frameCounter, string
configId, string parameterId)
frameCounter : Number of the image associated with the result parameter
configId: Configuration ID of a parameter
parameterId : Parameter ID of a parameter
Response: True or false, depending on whether the parameter exists
Used to query whether a particular result parameter exists for a particular image.
string GetResultParameter(ushort frameCounter, string configId,
string parameterId)
configId: Configuration ID of a parameter
parameterId : Parameter ID of a parameter
Response: The current value of the specified parameter
Returns the value of an individual parameter defined by the configuration ID and
parameter ID. The value is taken from an internal list and corresponds to the
status last received from the sensor.
The receipt of result data for a particular image is indicated by the
SensorResultDataReceived(ushort frameCounter) event.
Bitmap GetImage(ushort frameCounter)
frameCounter : Number of a received image
Response: The image associated with the image number
Returns an image previously received from the sensor. Receipt of an image with
a particular number is indicated by the ImageReceived(ushort
frameCounter, Bitmap image) event.
IList<ElementResult> GetResultList(ushort frameCounter)
frameCounter : Number of the image associated with the graphics
Response: List of overlay graphics for the specified image
IList<ElementShapeBase> GetShapes(ushort frameCounter)
frameCounter : Number of the image associated with the graphics
Response: List of overlay graphics for the specified image
Returns a list of graphics for an image overlay. Receipt of these graphics is
indicated by the ShapeDataReceived(ushort frameCounter,
List<IElement> shapeList) event. The individual elements in the list are
of the ElementShapeBase type.
This class has the following attributes:
PointF ShapeLocation: Coordinates of the top left corner of the graphic in
the image
Color ForeColor : Color of the graphic
string Type : Type of graphic, either type="Rectangle" or type="Text".
Depending on the type, the graphic can be parsed in
ElementShapeRectangle or ElementShapeText and then has the
fo llowing additional attributes:
ElementShapeRectangle:
Size Size: The size of the rectangular graphic
ElementShapeText:
stringText: The text in the text graphic
void ResetSensor()
Resets all the sensor's parameters to their factory default settings. After a
confirmation has been received from the sensor, a ParameterDataReceived
event is triggered with Modifier = LOAD_DEFAULT_DATA.

Related product manuals