For information on the latest version, please have a look at GL013301.
CONVEYOR_BASIC
This structure defines the basic conveyor configuration, including motion type (linear/circular), external encoder input, and digital output configuration for conveyor control.
It serves as a foundational structure for higher-level conveyor operations, such as synchronization, tracking, and speed regulation.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
0~1 |
Conveyor motion type |
1 |
|
struct |
External encoder input configuration block: |
|
10 |
|
struct[2] |
Digital output configuration array: |
Total size: 19 bytes
Defined in: DRFS.h
typedef struct _CONVEYOR_BASIC
{
/* Motion type (0: linear, 1: circular) */
unsigned char _iType;
/* External encoder input configuration */
struct {
unsigned char _iEncoderChannel; /* encoder index: 0~1 */
unsigned char _iTriggerChannel; /* trigger input: 0~1 */
unsigned char _iTriggerEdgeType; /* 0: falling, 1: rising */
float _fTriggerMuteTime; /* mute time (seconds) */
} ExtEncoderInput;
/* Conveyor digital output configuration */
struct {
char _iChannel; /* output channel (-1: not used, 0~15: used) */
unsigned char _iValue; /* output value (0: low, 1: high) */
} DigitalOutput[2];
} CONVEYOR_BASIC, *LPCONVEYOR_BASIC;
Note
CONVEYOR_BASICdefines low-level conveyor I/O control setup.The ExtEncoderInput block manages synchronization and triggering.
The DigitalOutput array allows control of up to two outputs for conveyor operation.
Commonly used with higher-level conveyor setup APIs like config_conveyor.