The purpose of this tutorial is to explain how to upload source code stored inside a PLC using 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 needed to use MasterTool X.
Figure 1. Computer running MasterTool X
2.DEVELOPMENT
The source code upload is an essential feature in automation because it allows you to recover the complete project directly from the PLC. It is widely used in maintenance, diagnostics, or when the original project is not available.
Importance of the upload
Uploading enables:
- Recovering the project directly from the PLC
- Accessing logic, variables, and comments
- Performing maintenance without having the original file
- Ensuring system continuity
Important:
Upload is only possible if the source code was previously sent to the PLC.
Checking source code availability
To check if the PLC has source code:
- Access the File menu
- Click on Upload Source Code
Device Mapping
After this:
- A window similar to Easy Connection will open
- Click to map the network
- Locate the desired PLC
- Select the CPU
- Click OK
Verification Result
MasterTool will inform you:
- If there is no source code:
- The upload cannot be performed
- If there is source code:
- The system will proceed to the next step
Figure 2. CPU mapping that will check for the existence of source code
Selecting the save location
In the next window:
- Choose a folder on the computer
- Define where the project will be saved
Content configuration
In the Contents tab:
- Check all available options
This ensures the project is fully recovered, including:
- Logic
- Variables
- Comments
- Libraries
- Project structure
Project extraction
After configuring:
- Click Extract
The system will:
- Download the source code from the PLC
- Rebuild the project on the computer
Figure 3. Selection of where the source code and its content will be saved
Opening the project
At the end of the process:
- MasterTool will ask if you want to open the project automatically
If confirmed:
- The project will load
- It will be ready for editing and analysis
Figure 4. Option to open the source code
Applications in automation
- Project recovery
- Field maintenance
- System auditing
- Fault diagnosis
- Operational continuity
Important notes
- Only works if the source code is in the PLC
- It is recommended to always send the source code at the end of the project
- Checking all contents ensures complete recovery
- The process may take a few minutes
Figure 5. Source code opened and ready to be edited
Comments
0 comments
Please sign in to leave a comment.