<< Click to Display Table of Contents >> Manual > Monitoring system construction guide > Server logic construction > Copy a file to another folder (File operation) |
overview
Here we will explain an example of using the File operation action to copy a specified file to another folder.
Action used: File operationAction
Download the sample
The creation examples shown on this page are provided with samples.
The sample can be downloaded from below.
Operation check
Load the sample server configuration file from FA-Server and bring the application online (yellow arrow).
After going online, write TRUE to U01.F01.T01 and verify that the file is copied to the destination folder.
Setup Procedure
Tag configuration
1.Set tags.
Tag Name |
address |
the purpose |
---|---|---|
U01.F01.T01 |
X0000 |
A tag that triggers an action |
Action Settings
1.File operationRegister action "A01".
2.Configure the action properties.
Open the properties of the A01 action and configure the settings on the File operation tab.
In this example, we will set it to copy all files in the "FILE" folder to the "COPY" folder at once.
•Operation type: Copy the contents of a folder
•Target folder name: FILE
•Destination folder name: COPY
Event Settings
1.Create a Tag event to perform the action.
In this example, we will set the event to occur when U01.F01.T01 becomes TRUE.
Set the execution action to "A01".