User manual
Table Of Contents
- Introduction
- Hardware description
- Software
- Appendix
- manual_e_delib.pdf
- Introduction
- Hardware description
- Software
- Appendix
- manual_e_ro_io_stepper2.pdf
- Introduction
- Hardware description
- Software
- DELIB API reference
- Management functions
- Error handling
- Stepper motor functions
- DapiStepperCommands
- DAPI_STEPPER_CMD_GO_POSITION
- DAPI_STEPPER_CMD_GO_POSITION_RELATIVE
- DAPI_STEPPER_CMD_SET_POSITION
- DAPI_STEPPER_CMD_SET_FREQUENCY
- DAPI_STEPPER_CMD_GET_FREQUENCY
- DAPI_STEPPER_CMD_SET_FREQUENCY_DIRECTLY
- DAPI_STEPPER_CMD_STOP
- DAPI_STEPPER_CMD_FULLSTOP
- DAPI_STEPPER_CMD_DISABLE
- DAPI_STEPPER_CMD_SET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_GET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_SAVE
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_LOAD
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_LOAD_DEFAULT
- DAPI_STEPPER_CMD_GO_REFSWITCH
- DAPI_STEPPER_CMD_GET_CPU_TEMP
- DAPI_STEPPER_CMD_GET_MOTOR_SUPPLY_VOLTAGE
- DapiStepperGetStatus
- DapiStepperCommandEx
- DapiStepperCommands
- Example program
- Appendix
- manual_e_ro_serie.pdf
- Introduction
- Hardware description
- Ethernet Interface
- CAN Interface
- RS-232/RS-485 Interface
- USB Interface
- Digital in-/output modules
- Analog in-/output modules
- Stepper module
- Software
- DELIB API reference
- Management functions
- Error handling
- Reading Digital inputs
- Setting Digital outputs
- A/D converter functions
- D/A outputs management
- Stepper motor functions
- DapiStepperCommands
- DAPI_STEPPER_CMD_GO_POSITION
- DAPI_STEPPER_CMD_GO_POSITION_RELATIVE
- DAPI_STEPPER_CMD_SET_POSITION
- DAPI_STEPPER_CMD_SET_FREQUENCY
- DAPI_STEPPER_CMD_GET_FREQUENCY
- DAPI_STEPPER_CMD_SET_FREQUENCY_DIRECTLY
- DAPI_STEPPER_CMD_STOP
- DAPI_STEPPER_CMD_FULLSTOP
- DAPI_STEPPER_CMD_DISABLE
- DAPI_STEPPER_CMD_SET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_GET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_SAVE
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_LOAD
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_LOAD_DEFAULT
- DAPI_STEPPER_CMD_GO_REFSWITCH
- DAPI_STEPPER_CMD_GET_CPU_TEMP
- DAPI_STEPPER_CMD_GET_MOTOR_SUPPLY_VOLTAGE
- DapiStepperGetStatus
- DapiStepperCommandEx
- DapiStepperCommands
- Output timeout management
- Test functions
- Example program
- Appendix
DELIB API reference |
Seite 160
4.7.1.15. DAPI_STEPPER_CMD_GO_REFSWITCH
Description
The motor goes to the referece position.
Definition
DapiStepperCommand(handle, motor, DAPI_STEPPER_CMD_GO_REFSWITCH,
par1, par2, par3, 0);
Parameters
Values for par1: (if multiple are needed, the individual must be added)
DAPI_STEPPER_GO_REFSWITCH_PAR_REF1
DAPI_STEPPER_GO_REFSWITCH_PAR_REF2
DAPI_STEPPER_GO_REFSWITCH_PAR_REF_LEFT
DAPI_STEPPER_GO_REFSWITCH_PAR_REF_RIGHT
DAPI_STEPPER_GO_REFSWITCH_PAR_REF_GO_POSITIVE
DAPI_STEPPER_GO_REFSWITCH_PAR_REF_GO_NEGATIVE
DAPI_STEPPER_GO_REFSWITCH_PAR_SET_POS_0
par2=Motorpositionsoffset (1/16 Full-step)
par3=Timeout [ms]
Remarks
At first the motor goes to referenceposition 1 or 2 (see par1). Therefor the speed
GOREFERENCEFREQUENCY_TOENDSWITCH is used for (see
DapiStepperCommand_SetMotorcharacteristic). After this the motor goes with
the speed GOREFERENCEFREQUENCY_AFTERENDSWITCH out of the
Referenceposition.
If there is declaration of an offset as parameter (par2), the motor will go to this
offset with the speed GOREFERENCEFREQUENCY_TOOFFSET
Example program
DapiStepperCommand(handle, motor, DAPI_STEPPER_CMD_GO_REFSWITCH,
DAPI_STEPPER_GO_REFSWITCH_PAR_REF1 + DAPI_STEPPER_GO_REFSWITCH_PAR_REF_LEFT +
DAPI_STEPPER_GO_REFSWITCH_PAR_REF_GO_POSITIVE +
DAPI_STEPPER_GO_REFSWITCH_PAR_SET_POS_0, 0, 15000, 0);