Hardware manual

Impact Reference Guide Links between CPM controls
4-21 Datalogic Automation Inc.
There are two ways to create a link between controls. You can use left-click drag and drop, or right-click.
This section describes how to create drag and drop links. See “Create Right-Click Links in CPM” on page 4-
21 for right-click links. When you create a drag and drop link, CPM will always give you choice of what
destination property, method, or event should get the link. The choice shown depends on the type of source
data you are linking.
The following sections will explain how to create drag and drop links.
NOTE: You can only create drag and drop links to and from controls on the same panel. To link controls
between panels, see “Create Right-Click Links in CPM” on page 4-21.
To create a link from one control to another using drag and drop
1. Display the Control Panel Tree if you want to use it to add links.
2. Select the desired control from the Canvas or the Control Panel Tree and click the Properties, Methods,
or Events tab.
3. Left-click on the desired source property, method, or event, then drag it to the destination control on the
Control Panel Canvas or the Control Tree, and release it.
4. Select the property, method, or event in the destination control that is to receive the link.
5. Repeat steps 3 and 4 until all links have been made.
To create a link to one control from another using drag and drop
1. Display the Control Panel Tree if you want to use it to add links.
2. Select the desired control from the Canvas or the Control Panel Tree and click the Properties, Methods,
or Events tab.
3. Hold down the Shift key, left-click on the desired source property, method, or event, then drag it to the
source control on the Control Panel Canvas or the Control Tree, and release it.
4. Select the property, method, or event in the source control that is to provide the link.
5. Repeat steps 3 and 4 until all links have been made.
Create Right-Click Links in CPM
When you create a right-click link, CPM will always give you choice of whether you want to create a Set or
Get Data link. The property choice shown depends on the type of data you are linking.
In describing right-click links, the following terms are used in this section:
Source control: The control’s property that provides the value when the link selection is "Get link
from here." For example, if you select "Get link from here" on a Toggle Button’s property, then link to
an Indicator Light, the Toggle Button is the Source.
Beginning control: The control that is selected to start the link process. When you create right-click
links, the Beginning control normally gets the focus when the link is complete. To shift the focus to
the Ending control when the link is complete, hold down the Ctrl key while you left-click on the
desired Ending control property.
Destination control: The control’s property that receives the value when the link selection is "Set
link to here." For example, if you select "Set link to here" on an Indicator Light’s property, then link to
a Toggle Button’s property, the Indicator Light is the Destination.
Ending control: The control that is selected to end the link process. When you create right-click links,
the Beginning control normally keeps the focus when the link is complete. To shift the focus to the