fixed some bugs

This commit is contained in:
2020-09-23 17:31:01 +03:00
parent 43de7a0259
commit 240b5f8677
14 changed files with 222 additions and 49 deletions

View File

@@ -0,0 +1,13 @@
# Transmit SDO to driver
# Format: index, subindex, data
# Set heartbeat time to 1000
0x1017, 0, 1000
# Set Node ID to 5
0x2002, 0, 5
# Set speed to 250 (0-20, 1-25, 2-50, 3-100, 4-125, 5-250, 6-500, 7-800, 8-1000)
0x2003, 0, 4
# Save parameters
0x2007, 0, 2

View File

@@ -0,0 +1,19 @@
# Transmit SDO to driver
# Format: index, subindex, data
# Set heartbeat time to 0
0x1017, 0, 0
# Set Node ID to 1
0x2002, 0, 2
# Set speed to 250 (0-20, 1-25, 2-50, 3-100, 4-125, 5-250, 6-500, 7-800, 8-1000)
0x2003, 0, 5
# EXT1&EXT2 emergency stop: EXT1@falling edge (normal state == 1), EXT2@rising edge (normal state == 0)
# Falling edge for trigger #1
0x600F, 2, 0
# Enable EXT1, EXT2
0x600F, 1, 1
# Save parameters
0x2007, 0, 2

View File

@@ -0,0 +1,11 @@
# Transmit SDO to driver
# Format: index, subindex, data
# Set heartbeat time to 0
0x1017, 0, 0
# Set speed to 250 (0-20, 1-25, 2-50, 3-100, 4-125, 5-250, 6-500, 7-800, 8-1000)
0x2003, 0, 5
# Save parameters
0x2007, 0, 2

View File

@@ -0,0 +1,13 @@
# Transmit SDO to driver
# Format: index, subindex, data
# EXT1&EXT2 emergency stop: EXT1@falling edge (normal state == 1), EXT2@rising edge (normal state == 0)
# Falling edge for trigger #1 (inverted!), rising for trigger #2
0x600F, 2, 3
# Pullup for trigger #2
0x600F, 3, 2
# Enable EXT1, EXT2
0x600F, 1, 3
# save settings
#0x2007, 0, 2

View File

@@ -0,0 +1,2 @@
# Enable EXT1, EXT2
0x600F, 1, 3

8
commandline/cfg/move Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
while true; do
./steppermove -m100 -w -I4 -r 32
./steppermove -m200 -w -I4 -r -64
sleep 1
done