EasyManua.ls Logo

Standa 8SMC5-USB - Page 231

Standa 8SMC5-USB
345 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Description:
Set settings of motor control. When choosing CTL_MODE = 1 switches motor control with the joystick. In this mode, the joystick to the
maximum engine tends Move at MaxSpeed [i], where i = 0 if the previous use This mode is not selected another i. Buttons switch the
room rate i. When CTL_MODE = 2 is switched on motor control using the Left / right. When you click on the button motor starts to
move in the appropriate direction at a speed MaxSpeed [0], at the end of time Timeout [i] motor move at a speed MaxSpeed [i+1]. at
Transition from MaxSpeed [i] on MaxSpeed [i +1] to acceleration, as usual.
Command GCTL
result_t get_control_settings (device_t id, control_settings_t* control_settings)
Command code (CMD): "gctl" or 0x6C746367.
Request: (4 bytes)
INT32U CMD Command
Answer: (93 bytes)
INT32U CMD Command (answer)
INT32U MaxSpeed [10] Array of speeds (full step) using with joystick and button control. Range: 0..100000.
INT8U
uMaxSpeed
[10]
Array of speeds (1/256 microstep) using with joystick and button control.
INT16U Timeout [9] timeout[i] is time in ms, after that max_speed[i+1] is applying. It is using with buttons control only.
INT16U MaxClickTime Maximum click time. Prior to the expiration of this time the first speed isn't enabled.
INT16U Flags Flags.
0x03 - CONTROL_MODE_BITS (Bits to control engine by joystick or buttons.)
0x00 - CONTROL_MODE_OFF (Control is disabled.)
0x01 - CONTROL_MODE_JOY (Control by joystick.)
0x02 - CONTROL_MODE_LR (Control by left/right buttons.)
0x04 - CONTROL_BTN_LEFT_PUSHED_OPEN (Pushed left button corresponds to open contact, if this flag is
set.)
0x08 - CONTROL_BTN_RIGHT_PUSHED_OPEN (Pushed right button corresponds to open contact, if this flag
is set.)
INT32S DeltaPosition Shift (delta) of position
INT16S uDeltaPosition Fractional part of the shift in micro steps. Is only used with stepper motor. Range: -255..255.
INT8U Reserved [9] Reserved (9 bytes)
INT16U CRC Checksum
Description:
Read settings of motor control. When choosing CTL_MODE = 1 switches motor control with the joystick. In this mode, the joystick to
the maximum engine tends Move at MaxSpeed [i], where i = 0 if the previous use This mode is not selected another i. Buttons switch
the room rate i. When CTL_MODE = 2 is switched on motor control using the Left / right. When you click on the button motor starts to
move in the appropriate direction at a speed MaxSpeed [0], at the end of time Timeout [i] motor move at a speed MaxSpeed [i+1]. at
Transition from MaxSpeed [i] on MaxSpeed [i +1] to acceleration, as usual.
Command SJOY
result_t set_joystick_settings (device_t id, const joystick_settings_t* joystick_settings)
Command code (CMD): "sjoy" or 0x796F6A73.
Request: (22 bytes)
Page 231 / 345
Page 231 / 345