26.10.2.2 For Address Action
The device code and address code defined when transferring, also
defines the transfer destination (or source) address for each CSV
file.
Only one file (1 set of CSV data) can be transferred at a
time.
The [Control Word Address] uses 16 consecutive words and
designates the data to transfer and the destination address.
After setting the file number, mode, device code, address code,
and number of data, when the [Control Word Address] bit 0 turns ON,
the designated file number's Recipe (CSV data) is written to the
specified address.
Also, when the [Control Word Address] bit 1 turns ON, the Recipe
stored in the device/PLC's designated address is saved to the CF
Card/USB storage.
Data is transferred depending on the state of
this address' 0 and 1 bits.
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 CF Card/USB Storage to
the device/PLC, there were no files to transfer.
|
2
|
Reserved
|
—
|
3
|
Internal Device Range
Error
|
When transferring from CF Card/USB 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 CF Card or USB Storage
|
The CF Card/USB storage is not inserted in the
display unit, or the CF Card cover is not closed.
|
5
|
Read Error
|
When transferring data from the CF card/USB
storage to the device/PLC, failed to read the CF card/USB
storage.
|
6
|
Write Error
|
When transferring from the device/PLC to CF
card/USB Storage, failed to write to the CF Card or USB Storage.
There may not be enough available space.
|
7
|
CF Card Error/USB Storage Error
|
The CF Card/USB storage device is invalid or
the media inserted is not a CF Card/USB storage device.
|
8
|
Delete Error
|
File delete failed, or read-only file.
|
9
|
Reserved
|
—
|
10
|
Reserved
|
—
|
Specify the file number to be
transferred.
Set the Recipe data format to allow negative
numbers.
Specify the device you want to access with
the Device Code. You can also specify the destination (or source)
address with the Address Code.
Device and Address codes differ depending on the device. Refer to
the "GP-Pro EX Device/PLC Manual" for more information. When the
internal device on the display unit is specified in Address Mode,
use the device code 0x0000 for the LS device, and the device code
0x0001 for the USR device.
Designate the number of data items in the CSV
Data Recipe. The maximum number of data items is 10,000 for 16 bit
and 5,000 for 32 bit. If the number of data items exceeds this
limit, the transfer operation will not work.
Automatic Transfer (Address Action) Timing
Chart
When the data transfer is completed, status bit 1 (Transfer
Complete Flag) turns ON. Turn OFF the trigger bit after the
Transfer Complete Flag is displayed via the device/PLC. Turning OFF
the trigger bit automatically turns OFF Transfer Complete Flag on
the status address.
Address Action Transfer Example
CF Card/USB Storage to Device/PLC Write
Error
For example, transferring "ZR00001.csv" (Number of Data Items:
6, Data length: 16 Bit, No Sign) the address D100 of the
device/PLC.
Control Word Address: D50
-
Write the transfer file number "1" to D52.
-
Write "0" (16 Bit, No Sign) to D53.
-
Write "0" to D54.
-
When the transfer destination is the internal
device, write "1".
-
For memory link type, set "0".
-
Write the transfer destination device "0x0000" (D
device) to D55.
-
Designate the transfer destination address in
D56/D57. Write "100" to D56 and "0" to D57.
-
Write "6" to D58.
-
Turn ON D50 bit 0. CSV data is written to addresses
D100 to D105.
-
When the data transfer is completed, turn OFF bit 0
of D51 (the [Transferring] bit). Turn ON the [Transfer Complete
Flag] (bit 1).
Reading from the Device/PLC to CF Card or
USB storage
For example, transfer six data items (Data Length: 16 Bit, No
Sign) from the device/PLC, D100 to D105, to the CF Card and create
the file ZR00002.csv.
-
Write the file number "2" to be created by transfer
to D52.
-
Write "0" (16 Bit, No Sign) to D53.
-
Write "0" to D54.
-
Write the transfer source device "0x0000" (D
device) to D55.
-
Designate the transfer source address in D56/D57.
Write "100" to D56 and "0" to D57.
-
Write "6" to D58.
-
Turn ON D50 bit 1. The data from D100 to D105 are
read and the file name "ZR00002.csv" is created in the CF Card
[File] folder.
When the data transfer is completed, turn OFF bit 0 of D51(the
[Transferring] bit). Turn ON the [Transfer Complete Flag] (bit
1).
Delete File
For example, Delete file name "ZR00002.csv" from the CF
Card.
-
Write the file number "2" to delete to D52.
-
Turn ON D50 bit 15 (Deletion bit).
When the file deletion is completed, D51 bit 1 (Transfer Complete
Flag) turns ON.
|