Difference between revisions of "Firmware Parameter Configuration"

From Wiki
Line 11: Line 11:
 
The file contains one section for each joint, starting from zero:
 
The file contains one section for each joint, starting from zero:
  
<code>  
+
<code>
 +
 
 
<Joint0 ID="16" ComTimeOut="2000" MaxCurrent="200" MaxLag="5000" PosP="1.000" PosI="0.000" PosD="0.000" PosAWU="30.000"  
 
<Joint0 ID="16" ComTimeOut="2000" MaxCurrent="200" MaxLag="5000" PosP="1.000" PosI="0.000" PosD="0.000" PosAWU="30.000"  
 
         Encoder="True" SwapEncoderDirection="False" EndSwitchRising="True" StopOnEndSwitch="False"
 
         Encoder="True" SwapEncoderDirection="False" EndSwitchRising="True" StopOnEndSwitch="False"
Line 18: Line 19:
 
         SGThreshold="2" CSLoad="20" CSStart="20" CSIdle="6" CSRef="18" StartArea="200"
 
         SGThreshold="2" CSLoad="20" CSStart="20" CSIdle="6" CSRef="18" StartArea="200"
 
         MinSupplyVoltage="500" MaxTemperature="500" Microstepping="128"
 
         MinSupplyVoltage="500" MaxTemperature="500" Microstepping="128"
         /></code>
+
         />
 +
</code>
  
 
Before changing these files please make a backup copy!
 
Before changing these files please make a backup copy!
Line 27: Line 29:
  
 
Now save the file.
 
Now save the file.
 
  
 
== To set the parameter to the control modules: ==
 
== To set the parameter to the control modules: ==

Revision as of 15:19, 2 August 2018

This section applies for the modular DIN rail control. It does not apply for the Mover robots.

CPRog allows to set all firmware parameter of the motor controller.


Parameter File

The parameter are stored in files like this: c:/CPRog/Data/Robots/igus_5DOF_BV/igus_5DOF_BV_DiscHalfRef_AmpParameter.dat

The file contains one section for each joint, starting from zero:

<Joint0 ID="16" ComTimeOut="2000" MaxCurrent="200" MaxLag="5000" PosP="1.000" PosI="0.000" PosD="0.000" PosAWU="30.000"

        Encoder="True" SwapEncoderDirection="False" EndSwitchRising="True" StopOnEndSwitch="False"
        RefStraight="False" RefSinus="False" RefHalf="True" SinusRefTics="2000" SinusRefMaxCycles="6"
        Offset="0" RefSpeed="50" RefSpeedSlow="10" RefFromBothSides="True"
        SGThreshold="2" CSLoad="20" CSStart="20" CSIdle="6" CSRef="18" StartArea="200"
        MinSupplyVoltage="500" MaxTemperature="500" Microstepping="128"
       />

Before changing these files please make a backup copy!

CPRog also writes a backup file of the current parameter on the joint modules. It is saved in c:/CPRog/data/backups/ with the current date and time.

To increase the path following of the joint a little change the value of PosP to eg 1.3.

Now save the file.

To set the parameter to the control modules:

  • Open CPRog
  • Connect to the robot
  • Open the circle menu in the left upper corner
  • Select /Configuration/Amp Config/Set new config
  • Choose the updated .dat file
  • Wait until all parameters are written, approx 20s
  • For some parameter, e.g. the encoder direction, the control needs a cold restart
  • Test if the changes result in a better performance.


For questions please get in contact!