Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Newbie questions
Why would you want to seperate routines into different Modules? Why not have all routines in one?
What is the difference between Program and System modules?
How important is the routine order in a module?
0
Comments
-
1. Program modularity. It is much easier to maintain code that is grouped into logical containers rather than sorting through thousands of lines of code to find one routine or function.2. Program modules are part of a program that can be loaded and unloaded at runtime, system modules are part of the system and can only be deleted or added manually. There are also additional attributes that can be used to configure system modules to hide them, make them read-only, etc.3. Routines can be declared in any order. The only items that are order sensitive is record declarations and module level data declarations. These must be declared at the top of the module file before routine declarations, and record types have to be declared before data instances.RussD2009-02-10 19:24:10Russell Drown0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings