The objective of this tutorial is to explain how to send the code to the PLC via MasterTool X.
Components
Equipment: 1 computer/laptop.
1 XF300/315/325/325-W
Software: MasterTool X
Tutorial Sections
- ARCHITECTURE
- DEVELOPMENT
1.ARCHITECTURE
A computer/laptop will be required to use MasterTool X.
Figure 1. Computer running MasterTool X
2.DEVELOPMENT
Sending the source code to the PLC is an important practice in automation projects, as it allows storing a complete copy of the developed project within the controller itself, facilitating maintenance, backup, and future recovery.
What is the source code
The source code is the complete project developed in MasterTool, containing:
- Ladder and/or Structured Text logic
- Variable declarations
- Comments
- Structures (POUs, DUTs, GVLs)
- Used libraries
That is, it is not just the executable program, but rather the entire project structure.
Importance of sending
When the source code is sent to the PLC:
- It is stored in a specific area of the controller's memory
- It allows performing a complete upload later
- It facilitates field maintenance
- It prevents loss of the original project
In Altus PLCs, when uploading the source code:
- The user recovers exactly the original project
- Including comments, variable names, and organization
Method 1: Sending during download
During the download process:
- Click on Communication → Login
- Start downloading the application
- In one of the confirmation windows, the option will be displayed:
- Send source code
- Select Yes
How it works
- The software will:
- Compile the project
- Send the executable code
- Send the source code
- The process may take a few minutes
Figure 2. Sending the Source Code to the PLC
Method 2: Manual sending of the source code
If the PLC is already connected:
- Go to the File menu
- Click on Download source code
- Select the desired CPU
- Confirm the operation
How it works
- The project will be compiled again
- The source code will be sent to the selected PLC
- It is not necessary to redo the complete application download
Figure 3. Sending the Source Code to the PLC - part 2
Important note
- It is not necessary to send the source code with every modification
- Sending takes longer because:
- The project is recompiled
- The code is transferred to the PLC
Recommendation:
- Send the source code only in the final version of the project
Comments
0 comments
Please sign in to leave a comment.