After storing the Condition Name to search, turn the [Control Word Address] transfer bit (bit 2) from OFF to ON to: search for CSV files within external storage and transfer all CSV files that match the search condition name.
Control
When bit 2 turns ON, search for the file with the condition name that matches the text string designated in [Search Word Address], and write the matching CSV data to the PLC.
Ensure that all bits in this address are set to "0" when the GP unit is turned on.
When bit 0 (external storage to Device/PLC) and bit 2 (Condition Name Search transfer) turn ON at the same time, neither operation is performed. Turn ON only bit 2.
Status
Transfer state and result is reflected in this address.
Error Codes (Reflected in the error status bits)
0 |
Completed Successfully |
Transfer completed successfully. |
1 |
No File Number |
When transferring from external storage to the device/PLC, there were no files to transfer. |
2 |
No Transfer Condition Number |
For transfer, the Condition Number that corresponds to the specified File Number (GROUP NO) does not exist. |
3 |
Internal Device Range Error |
When transferring from external storage to the device/PLC and the start address is set up as an internal device, transfer would exceed the internal device address range. |
4 |
No external storage |
No external storage is found or the cover is open. |
5 |
Read Error |
When transferring from external storage to the device/PLC, failed to read from external storage. |
6 |
Write Error |
When transferring from the device/PLC to external storage, failed to write to the external storage. There may not be enough available space. SD card is write protected |
7 |
CF Card Error/USB Storage Error |
CF card/USB storage is not correctly formatted or is invalid. |
8 |
Reserved |
— |
9 |
No Retrieve Text |
No CSV file matches the retrieve text. |
10 |
Index File Error |
The index file's CSV format is incorrect. |
11 |
Reserved |
— |
12 |
Write Error |
When transferring data from external storage to the device/PLC, failed to write to the device/PLC. |
13 |
Read Error |
When transferring from the device/PLC to external storage, failed to read from the device/PLC. |
Condition Name Search Transfer Timing Chart
When the control address' bit 2 turns ON, the [Transferring] bit (status bit 0) turns ON.
When a data transfer is completed successfully, the Transferring bit turns OFF, and the Transfer Complete Flag (status bit 1) turns ON.
When the data transfer is completed, determine the Transfer Complete Flag via the device/PLC and turn OFF the Control Address' bit. When the trigger is OFF, the [Transfer Completion] bit turns OFF.
If the transfer fails, the Transferring Bit turns OFF, and the error code is set in the error status (status bits 12-15). Before starting the next transfer, clear the Status and Control bits to 0 and turn on the required Control bit.
The period while the Transferring Status Bit is ON includes the time required for searching the CSV files. Therefore, do not access the [file] folder in external storage while the Transferring Status Bit is on.