Personal Data

Username:
trusty-squire
Joined:
2024-07-18 13:47:41.837000

Projects

  • No projects to display.

User Activity

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Deleting double post

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    What is the task configuration? When you are online and look at the task monitor, what does it show? (Put a screenshot here). If the processor is overloaded you'll likely need to increase the cycle interval, disable the watchdog, or change to a cyclic task instead of interval based? Also, You might want to adjust your task priorities so they don't all have the same priority. Just a few thoughts, although looking at the task monitor would help in troubleshooting.

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    What is the task configuration? When you are online and look at the task monitor, what does it show? (Put a screenshot here). If the processor is overloaded you'll likely need to increase the cycle interval, disable the watchdog, or change to a cyclic task instead of interval based? Also, You might want to adjust your task priorities so they don't all have the same priority. Just a few thoughts, although looking at the task monitor would help in troubleshooting.

  • Modified a comment on discussion Motion πŸ‡¬πŸ‡§ on CODESYS Forge

    In that case, the best thing to do might be to track the offset in a separate variable of your logic, then when you provide target positions, make your target position use the tracked offset as below: ActualTargetPosition := (TargetPosition + MyOffset) MOD 360; Although, upon further reflection, you'll still have the same cycle time issues. You might be able to break your code into multiple tasks to reduce the cycle time, or use an Event task to capture the offset position?

  • Posted a comment on discussion Motion πŸ‡¬πŸ‡§ on CODESYS Forge

    In that case, the best thing to do might be to track the offset in a separate variable of your logic, then when you provide target positions, make your target position use the tracked offset as below: ActualTargetPosition := (TargetPosition + MyOffset) MOD 360;

  • Modified a comment on discussion Motion πŸ‡¬πŸ‡§ on CODESYS Forge

    If you mean you want to shift the Origin or Zero position of your axis, you can try MC_SetPosition and set the position to 0 (if you want to take the current active position and make it the new 0. Adjust this number accordingly if/as needed). This means the servo drive keeps it's current origin position, and Codesys applies an offset to the servo drive position in the logic. You can also use the homing function of your servo drive using MC_Home and have your drive configured to set the current position...

  • Posted a comment on discussion Motion πŸ‡¬πŸ‡§ on CODESYS Forge

    If you mean you want to shift the Origin or Zero position of your axis, you can try MC_SetPosition and set the position to 0. This means the servo drive keeps it's current origin position, and Codesys applies an offset to the servo drive position in the logic. You can also use the homing function of your servo drive using MC_Home and have your drive configured to set the current position as origin when it receives a homing command.

  • Posted a comment on discussion Visualization πŸ‡¬πŸ‡§ on CODESYS Forge

    If you are switching a frame based on the "Switch Frame Variable", then just use a variable that is accessible to your program to set your active frame. If you're trying to see which is the active visualization, then use the "CurrentVisu" variable. Note you'll need to enable this by checking it on in the Visualization Manager settings. If it's neither of those, you'll need to be more clear on how you're project is set up.

View All