TrackEncoder
Function
Obtain the encoder value of the conveyor.
Syntax
TrackEncoder (Conveyor number, Mode)
Guaranteed Entry
- Conveyor number
-
Specify the conveyor number (1 or 2) to be used by integer type data.
- Mode
-
Specify by integer type data, If "0" is specified, the current value of the encoder is obtained.
Setting value Description 0 Obtain the encoder value of the currently used conveyor. 1 Obtain the conveyor's encoder value that has been stored at the workpiece detection.
Return Value
Return the encoder value of the conveyor by Integer type data.
| Mode | Retuen Value |
|---|---|
| 0 | Obtain the encoder value of the currently used conveyor. |
| 1 | Obtain the conveyor's encoder value that has been stored at the workpiece detection. This error will be issued when a workpiece has not been detected. Even if a workpiece has been detected, an error will be issued when this command is executed after TrackSetSensor or TrackSetVision command execution. |
Description
Obtain the encoder value of the conveyor.
Related Terms
TrackBufferRead, TrackInitialize, TrackSetSensor, TrackSetVision, Commands for Conveyor Tracking
Attention
- This is exclusive command for the conveyor tracking.
Example
-

