mirror of
https://github.com/eddyem/pusirobot.git
synced 2026-03-21 09:11:01 +03:00
fixed some little problems in commandline
This commit is contained in:
10
commandline/cfg/Acceleration.cfg
Normal file
10
commandline/cfg/Acceleration.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
# Transmit SDO to driver
|
||||
# Format: index, subindex, data
|
||||
|
||||
# Set acceleration (0 - no, 1 - highest, 8 - lowest)
|
||||
0x6008, 0, 3
|
||||
# Set deceleration
|
||||
0x6009, 0, 3
|
||||
|
||||
# Save parameters
|
||||
0x2007, 0, 2
|
||||
2
commandline/cfg/NoPDOmapping.cfg
Normal file
2
commandline/cfg/NoPDOmapping.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
# set number of mapped objects to 0
|
||||
0x1A00, 0, 0
|
||||
8
commandline/cfg/SetCurnt0.6.cfg
Normal file
8
commandline/cfg/SetCurnt0.6.cfg
Normal file
@@ -0,0 +1,8 @@
|
||||
# Transmit SDO to driver
|
||||
# Format: index, subindex, data
|
||||
|
||||
# Set max phase current to 600mA
|
||||
0x600B, 0, 600
|
||||
|
||||
# Save parameters
|
||||
0x2007, 0, 2
|
||||
@@ -4,16 +4,23 @@
|
||||
# Set heartbeat time to 0
|
||||
0x1017, 0, 0
|
||||
|
||||
# Set Node ID to 1
|
||||
0x2002, 0, 2
|
||||
# Turn off offline programming
|
||||
0x6018, 1, 0
|
||||
0x6018, 2, 0
|
||||
|
||||
# Set Node ID to 10
|
||||
0x2002, 0, 10
|
||||
# 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
|
||||
|
||||
# Set max phase current to 1.5A
|
||||
0x600B, 0, 1500
|
||||
|
||||
# EXT1&EXT2 emergency stop: EXT1@falling edge (normal state == 1), EXT2@rising edge (normal state == 0)
|
||||
# Falling edge for trigger #1
|
||||
0x600F, 2, 0
|
||||
#0x600F, 2, 0
|
||||
# Enable EXT1, EXT2
|
||||
0x600F, 1, 1
|
||||
#0x600F, 1, 1
|
||||
|
||||
# Save parameters
|
||||
0x2007, 0, 2
|
||||
|
||||
27
commandline/cfg/Start_settingsEXT1.cfg
Normal file
27
commandline/cfg/Start_settingsEXT1.cfg
Normal file
@@ -0,0 +1,27 @@
|
||||
# Transmit SDO to driver
|
||||
# Format: index, subindex, data
|
||||
|
||||
# Set heartbeat time to 0
|
||||
0x1017, 0, 0
|
||||
|
||||
# Set Node ID to 1
|
||||
0x2002, 0, 1
|
||||
# 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
|
||||
# Set microstepping to 32
|
||||
0x600A, 0, 32
|
||||
# Set max phase current to 1.0A
|
||||
0x600B, 0, 1000
|
||||
# Set acceleration (0 - no, 1 - highest, 8 - lowest)
|
||||
0x6008, 0, 6
|
||||
# Set deceleration
|
||||
0x6009, 0, 7
|
||||
|
||||
# EXT1&EXT2 emergency stop: EXT1@falling edge (normal state == 1), EXT2@rising edge (normal state == 0)
|
||||
# Rising edge trigger for #2, falling for #1 (inverted!)
|
||||
0x600F, 2, 1
|
||||
# Enable EXT1
|
||||
0x600F, 1, 1
|
||||
|
||||
# Save parameters
|
||||
0x2007, 0, 2
|
||||
Reference in New Issue
Block a user