mirror of
https://github.com/eddyem/pusirobot.git
synced 2026-03-21 09:11:01 +03:00
fixed some bugs
This commit is contained in:
13
commandline/cfg/Default_settings.cfg
Normal file
13
commandline/cfg/Default_settings.cfg
Normal 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
|
||||
19
commandline/cfg/Start_settings.cfg
Normal file
19
commandline/cfg/Start_settings.cfg
Normal 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
|
||||
11
commandline/cfg/Start_settings_onlySpeed.cfg
Normal file
11
commandline/cfg/Start_settings_onlySpeed.cfg
Normal 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
|
||||
13
commandline/cfg/endswitches.cfg
Normal file
13
commandline/cfg/endswitches.cfg
Normal 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
|
||||
2
commandline/cfg/endswitchesON.cfg
Normal file
2
commandline/cfg/endswitchesON.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
# Enable EXT1, EXT2
|
||||
0x600F, 1, 3
|
||||
8
commandline/cfg/move
Executable file
8
commandline/cfg/move
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user