RSI-PI/examples/example_08_safety_limits.py

19 lines
350 B
Python

from RSIPI import RSIAPI
if __name__ == '__main__':
from multiprocessing import freeze_support
freeze_support()
api = RSIAPI()
# Set X axis soft limits
api.safety.set_limit(axis="X", min_value=-500, max_value=500)
api.start()
try:
while True:
pass
except KeyboardInterrupt:
api.stop()