LOG("Initializing MotorRail device...")
motor = MotorRail("Y01139")

LOG("Setting platform speed.. ")
motor.set_platform_speed(1) # Medium

LOG("Getting device info...")
device_info = motor.get_info()
LOG(f"Device Info: {device_info}")

LOG("Getting initial position...")
initial_pos = motor.get_pos()
LOG(f"Initial Position: {initial_pos}")

LOG("Moving to position 50.0...")
motor.set_pos(50.0)
LOG("Position set to 50.0")

LOG("Getting new position...")
new_pos = motor.get_pos()
LOG(f"New Position: {new_pos}")

LOG("Resetting position...")
motor.reset_pos()
LOG("Position reset")

LOG("Getting final position...")
final_pos = motor.get_pos()
LOG(f"Final Position: {final_pos}")
