result_t get_brake_settings (device_t id, brake_settings_t* brake_settings)
Command code (CMD): "gbrk" or 0x6B726267.
Request: (4 bytes)
INT32U CMD Command
Answer: (25 bytes)
INT32U CMD
Command (answer)
INT16U t1
Time in ms between turn on motor power and turn off brake.
INT16U t2
Time in ms between turn off brake and moving readiness. All moving commands will execute after this
interval.
INT16U t3
Time in ms between motor stop and turn on brake.
INT16U t4
Time in ms between turn on brake and turn off motor power.
INT8U
BrakeFlags
Flags.
0x01 - BRAKE_ENABLED (Brake control is enabled, if this flag is set.)
0x02 - BRAKE_ENG_PWROFF (Brake turns off power of step motor, if this flag is set.)
INT8U
Reserved
[10]
Reserved (10 bytes)
INT16U CRC
Checksum
Description:
Read settings of brake control.
Command SCTL
result_t set_control_settings (device_t id, const control_settings_t* control_settings)
Command code (CMD): "sctl" or 0x6C746373.
Request: (93 bytes)
INT32U CMD
Command
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
Answer: (4 bytes)
INT32U CMD Command (answer)
Page 230 / 345
Page 230 / 345
Summary of Contents for 8SMC5-USB
Page 30: ...Linux Page 30 345 Page 30 345 ...
Page 83: ...Connection of magnetic brake to one axis or two axis systems Page 83 345 Page 83 345 ...
Page 87: ...Scheme of buttons connection to the HDB 26 connector Page 87 345 Page 87 345 ...
Page 99: ...Page 99 345 Page 99 345 ...
Page 167: ...Vertical load capacity the maximum vertical load on the stage Page 167 345 Page 167 345 ...
Page 186: ...Click Next Click Continue anyway Page 186 345 Page 186 345 ...
Page 188: ...Page 188 345 Page 188 345 ...
Page 190: ...Page 190 345 Page 190 345 ...
Page 193: ...Page 193 345 Page 193 345 ...
Page 201: ...Select the XILab application in the Programs block Start it Page 201 345 Page 201 345 ...
Page 274: ...7 Files 1 Configuration files 2 Software Page 274 345 Page 274 345 ...
Page 331: ...Motorized Iris Diaphragms 8MID98 Motorized Iris Diaphragm Page 331 345 Page 331 345 ...
Page 338: ...8 Related products 1 Ethernet adapter Page 338 345 Page 338 345 ...
Page 339: ...8 1 Control via Ethernet 1 Overview 2 Administration Page 339 345 Page 339 345 ...