Set Capture Source

Text Language Definition

Not Applicable

Description

The Set Capture Source command is used to indicate which input will be used for a capture event.

Escapes

The Set Capture Source block does not produce any escapes

Examples

This procedure shows the commands involved in configuring a capture event, performing a capture, and reading the result.

A source for the signal is chosen, the rising edge is chosen, and the capture is armed. Motion is started that should be far enough to cause the capture event to occur. The controller then waits until the capture trips. If the move finishes before the capture trips (which should not happen) then an exception is generated to notify the program that uses this procedure that something has gone wrong. If the capture does occur it is recorded in a list box named log.

This structure is an example of a "position out" that could be considered analagous to a "time out". With a time out something is suppsosed to occur within a certain amount of time and the absence of that occurance is an error. With motion systems the amount of time for a move can vary depending on speeds and accelerations. Rather than expecting something to occur in a certain amount of time it is more robust to have structures that expect things to happen within certain distances.

Related Topics

Capture Position
Set Capture Trip
Capture Has Tripped
Capture Bit
Arm Capture