<< Click to Display Table of Contents >> Manual > Monitoring system construction guide > Server logic construction > Export tag value to text (Batch transfer) |
overview
This section explains how to output tag data to a text file at any time.
For example, you can use a signal received from PLC as a trigger to output recipe information set in tags to a file all at once.
Action used: Batch transfer(tag → text) action
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 batch.txt is output.
Setup Procedure
Tag configuration
1.Set tags.
Tag Name |
address |
the purpose |
---|---|---|
U01.F01.T01 |
X0000 |
A tag that triggers an action |
U01.F01.D0000~D0009 |
D0000 to D0009 |
Tags that output information |
Action Settings
1.Register the Batch transfer(tag → text) action "A01".
2.Open the action properties and set what information to output on the Batch transfer tab.
The settings are as follows:
Filename: batch.txt
Output: 2.tagname/4.valuequality/6.value
Field delimiter: Character specification ","
record delimiter: newline
Value when communication error occurs: Use the value from the last successful communication
3.Add a field to A01.
This action allows you to easily register tags by simply dragging and dropping the target tag.
Select the
tag and drag and drop it onto A01.
Field has been registered.
Event Settings
1.Create a Tag event to perform the action.
In this example, we set it so that the event occurs when U01.F01.T01 becomes TRUE.
Set the execution action to "A01".