219
Description of FINS Commands Section 6-3
4) Write Start Position
5) Write Data Length
• The write data length is specified in bytes.
• The file size depends on the type and number of the function blocks used.
• The most significant bit (bit 15) turns ON when the last data item is writ-
ten.
• Write data length:
The data lengths that can be specified are different for the first packet and
the second or later packets.
- First packet: 90 bytes (See note 1.) ≤ Write data length ≤ 900 bytes (See
note 2.)
- Second packet: 0 bytes ≤ Write data length ≤ 900 bytes (See note 2.)
Note (1) Set the first packet to at least 90 bytes including the header data (90
bytes).
(2) The maximum write data length depends on the network it will pass
through. For Ethernet networks and he peripheral bus, the maximum is
900 bytes, and for SYSWAY, the maximum is 516 bytes.
6) File Data (Write Data)
The data on the backup file (BACKUPE1.PRM) created with the simple
backup function is divided by write data lengths and written to the Loop Con-
troller.
7) Directory Length
• Not used if the command is sent to a Loop Controller. (Set to 0.)
Response format
Response code
Write Start Position
0x0000 0000 Cannot be changed.
Data format Command code Response code
22 Hex 03 Hex MRES SRES
Data length
(bytes)
1111
Response code Meaning
0x0000 Normal completion
0x1001 Write data exceeds 978 bytes.
0x1002 Insufficient command length
Required length of 26 bytes not satisfied.
0x1004 Command format error
The command format is incorrect, or the write data length and
write data size are different.
0x1101 No type
The disk number is out of range (i.e., not 0x0000 (LCB)).
0x1103 Specified address out-of-range error
For a new file or addition, the write start position is not
0x0000.