Difference between revisions of "Set Software End switches to Limit Joint Movement"
From Wiki
m (Added configuration category) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Each joint has a minimum and maximum position in degrees that can be defined in software. | + | Each joint has a minimum and maximum position in degrees or mm that can be defined in software. |
− | =CPRog= | + | =CPRog/iRC= |
− | * In CPRog this can be done by editing the correct robot configuration file for your robot. These files are located in <code> | + | * In CPRog/iRC this can be done by editing the correct robot configuration file for your robot. These files are located in <code>C:\CPRog\Data\Robots\</code> or <code>C:\iRC-igusRobotControl\Data\Robots\</code>. |
− | * These files are referenced in the Project file of your robot. To find out which Project file you are currently using, start CPRog, do not maximise the window and look at the title bar of CPRog. Depending on your robot, it will say something like "Project: robolink_5Axis_small.prj". Open this file, located in <code>c:\CPRog\Data\Projects\</code> in an editor, such as Notepad++ and look for the line starting with <code><Robot Name=...</code>. | + | * These files are referenced in the Project file of your robot. To find out which Project file you are currently using, start CPRog/iRC, do not maximise the window and look at the title bar of CPRog/iRC. Depending on your robot, it will say something like "Project: robolink_5Axis_small.prj". Open this file, located in <code>c:\CPRog\Data\Projects\</code> in an editor, such as Notepad++ and look for the line starting with <code><Robot Name=...</code>. |
*For this example, the line should read something like | *For this example, the line should read something like | ||
Line 23: | Line 23: | ||
Make the '''same change''' in the corresponding file on the embedded Linux computer. | Make the '''same change''' in the corresponding file on the embedded Linux computer. | ||
A guide on how to access and modify the files on the linux embedded computer is located [[FTP_and_putty_Access|here]]. | A guide on how to access and modify the files on the linux embedded computer is located [[FTP_and_putty_Access|here]]. | ||
− | * | + | * Look for the line starting with <code><Robot...</code> in <code>/home/root/TinyCtrl/Data/Projects/EmbeddedCtrl.prj</code>. The robot <code> Type=</code> will, again, point you to the correct file located in <code>/home/root/TinyCtrl/Data/Robots/<filename></code> and refer to the same robot. |
* Note down that name and find the corresponding file in <code>/home/root/TinyCtrl/Data/Robots/</code> | * Note down that name and find the corresponding file in <code>/home/root/TinyCtrl/Data/Robots/</code> | ||
*Edit that file. Find the line starting with | *Edit that file. Find the line starting with | ||
Line 32: | Line 32: | ||
*Save the file and restart the robot. | *Save the file and restart the robot. | ||
* The new limits should now be active. | * The new limits should now be active. | ||
− | [[Category:CPRog]][[Category:TinyCtrl]] | + | [[Category:Configuration]][[Category:CPRog]][[Category:TinyCtrl]] |
Latest revision as of 16:47, 8 March 2023
Each joint has a minimum and maximum position in degrees or mm that can be defined in software.
CPRog/iRC
- In CPRog/iRC this can be done by editing the correct robot configuration file for your robot. These files are located in
C:\CPRog\Data\Robots\
orC:\iRC-igusRobotControl\Data\Robots\
. - These files are referenced in the Project file of your robot. To find out which Project file you are currently using, start CPRog/iRC, do not maximise the window and look at the title bar of CPRog/iRC. Depending on your robot, it will say something like "Project: robolink_5Axis_small.prj". Open this file, located in
c:\CPRog\Data\Projects\
in an editor, such as Notepad++ and look for the line starting with<Robot Name=...
.
- For this example, the line should read something like
<Robot Name="igus Arm" Type="igus_5DOF_SV" Homepos = "0.0 10.0 0.0 80.0 0.0 0.0" OffsetX="0" OffsetY="0" OffsetZ ="0" OffsetRX="0" OffsetRY="0" OffsetRZ="0" Parent="-1" Tool="" FlipMesh="True"/>
- The string behind Type corresponds to the filename in the folder
c:\CPRog\Data\Robots\
that you are looking for. Open that file in an editor, such as Notepad++. - Inside that file, find the line starting with
<SoftwareMinMax A1Min="-140.0" A1Max="140.0" A2Min="-45.0" A2Max="70.0" A3Min="-90.0" A3Max="60.0" A4Min="-15.0" A4Max="120.0" A5Min="-170.0" A5Max="170.0" />
- Edit these values, if necessary. Unit is degrees.
- Restart CPRog
If you have an embedded Linux computer as part of your control electronics, you now also need to change the corresponding file on that computer.
TinyCtrl
Make the same change in the corresponding file on the embedded Linux computer. A guide on how to access and modify the files on the linux embedded computer is located here.
- Look for the line starting with
<Robot...
in/home/root/TinyCtrl/Data/Projects/EmbeddedCtrl.prj
. The robotType=
will, again, point you to the correct file located in/home/root/TinyCtrl/Data/Robots/<filename>
and refer to the same robot. - Note down that name and find the corresponding file in
/home/root/TinyCtrl/Data/Robots/
- Edit that file. Find the line starting with
<SoftwareMinMax A1Min="-140.0" A1Max="140.0" A2Min="-45.0" A2Max="70.0" A3Min="-90.0" A3Max="60.0" A4Min="-15.0" A4Max="120.0" A5Min="-170.0" A5Max="170.0" />
And make the same changes as you made in the file in CPRog above.
- Save the file and restart the robot.
- The new limits should now be active.