Skip to content

Commit

Permalink
Add conveyor backward orientation to modbus example
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasta-Geek committed Jul 6, 2020
1 parent 6ff8d73 commit 154307e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion niryo_one_modbus/examples/client_modbus_conveyor_example.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@ def raw_data_to_number(val):

print "start conveyor 1"
client.write_register(522, 1)
time.sleep(3)


print "stop conveyor 1"
client.write_register(526, 1)
time.sleep(1)

print "set direction to backward"
client.write_register(523, number_to_raw_data(-1))
time.sleep(1)

print "start conveyor 1"
client.write_register(522, 1)
time.sleep(3)

time.sleep(10)
print "stop conveyor 1"
client.write_register(526, 1)

Expand Down

0 comments on commit 154307e

Please sign in to comment.