EasyManua.ls Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #702 background imageLoading...
Page #702 background image
WWW.NNC.IR
Macro Reference
700
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetDrawStyle
Set the drawing attributes of the graphic figure.
Format
SetDrawStyle <style>, <width>, <color>
Parameter
Return value
None.
Description
Sets the specified line type by the <style> parameter, the specified line width by the <width> parameter, and
specified line color by the <color> parameter as the drawing attributes. Before executing the image screen
window control macro function that draws graphic figure, execute this macro function to draw the graphic
figure using the set drawing attribute. Use the SetTextStyle function to set the drawing attribute used for the
DrawTextG function. (Reference: XSetTextStyle (p.727))
If any of "PS_DASH", "PS_DASHDOT", and "PS_DASHDOTDOT" is specified in the <style> parameter,
specify 1 in the <width> parameter. If other than 1 is specified, a solid line will be drawn.
If circle, wide circle, ellipse, arc, wide arc is drawn with specification of "PS_INSIDEFRAME" for the <style>
parameter, the figure with specified line width by the <width> parameter is drawn and diminished so that the
drawn figure is within the figure. Other figure types than ones mentioned above are drawn with a solid line
(i.e., the same line type as when "PS_SOLID" is specified for the <style> parameter).
The gotten color value by the RGB function can be set for the <color> parameter. (Reference: XRGB (p.662))
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a value outside the range -2147483648 to 2147483647 is specified as an integer parameter, an "Overflow"
error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Parameter
name
Data type Description
<style> Integer type
Type of the drawn line
PS_SOLID: Solid line
PS_DASH: Dashed line (This selection is valid only when the specified line width is 1)
PS_DOT: Dotted line
PS_DASHDOT: One-dot chain line (This selection is valid only when the specified line
width is 1)
PS_DASHDOTDOT: Two-dot chain line (This selection is valid only when the specified
line width is 1)
PS_NULL: No line
PS_INSIDEFRAME: Solid line (This selection is only valid for circle, wide circle, ellipse,
arc, and wide arc)
<width> Integer type Line width of the drawn graphic line
<color> Integer type
Line color value of the drawn graphic line
JUDGE_NC: Unmeasured color (Grey)
JUDGE_OK: OK judgement color (Green)
JUDGE_NG: NG judgement color (Red)
RGB Function: Any color

Table of Contents

Other manuals for Omron SYSMAC FH Series

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
ManufacturerOmron
CategoryIndustrial Equipment
Power Supply24 VDC
Operating Temperature0 to 50 °C
Storage Temperature-20 to 60 °C
Protection RatingIP20
TypeVision System
SeriesFH Series
FunctionsImage processing, measurement, inspection
Communication InterfaceUSB

Summary

1. Before Operation

Checking the System Configuration

Describes how to check the system configuration and connections.

2. Setting Scenes (Measurement Flows)

Creating a Scene

Explains how to add processing units to a scene.

Editing Processing Units in Scenes

Describes how to arrange and delete processing units within a scene.

Editing Scenes

Describes procedures for copying, deleting, and renaming scenes.

3. Performing Test Measurement/Starting Operation

Executing Test Measurements

Explains how to test measurements and adjust settings.

4. Using Tools

5. Optimizing Scenes (Measurement Flows) (Macro Customize Functions)

7. Changing the System Environment

Setting the Camera Conditions

Covers checking camera connections and setting trigger delays.

Setting the Operation Mode

Describes setting operation modes like Single-line High-speed for optimal performance.

Related product manuals