Delta AS Series Programming Manual page 1136

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

file. The size of the file is the size of the new data.
1
(Overwriting)
If the file does not exist, it is created automatically.
S: The data source
If the string that the instruction writes into the file is "12345", the instruction stores the characters in the
devices as follows. The basic unit is a byte, and so the instruction stores the first character in the low
byte in D300. The instruction stores the second character in the high byte in D300. The same applies to
other characters. The instruction stores "16#00" in the high byte in D300+2, and indicates the end of the
string.
S
: The length of the data that is written into the memory card
1
The basic unit is a byte. The devices where the instruction stores the data cannot exceed the device
range, and the length of the data that the instruction writes into the memory card cannot be more than
255 bytes.
S
: The separation mark
2
If the value in S
is N, the instruction writes the value in S
1
S
Operand
2
High byte
Low byte
16#00 or
16#00
Not 16#00
Not
16#00
16#00
Not
Not
16#00
16#00
AS CPU firmware version 1.04.00 or later supports using string (less than 9 characters) in the file name S
Firmware version 1.08.30 or later supports up to 200 characters (16#00 included) in the file name S
S
–S
+4: S
occupies five devices. The file name contains a maximum of nine characters, including 16#00. If
3
3
3
the string does not end with 16#00, an error occurs. When the instruction reads the ending character, the
instruction stops reading characters, and checks if the file name is legal. The characters in the file name can
be A–Z, a–z, and 0–9. The file name extension depends on the file format. The file that the instruction
creates is in the default folder. If the file name is "Test1", the instruction writes characters into the devices as
follows.
S300
S300+1
byte 2
byte 1
byte 4
16#34
16#32
16#31
The N-byte data is written into the file.
The N+1-byte data is written into the file. The value in the high byte in S
st
in the N+1
byte.
The N+2-byte data is written into the file. The value in the high byte in S
in the seventh byte, and the value in low byte in S
Cha p ter 6 App l ied Ins truc tio ns
S300+2
byte 3
byte 6
byte 5
16#33
16#00 16#35
into the memory card as follows.
2
Description
is the value in the N+2
2
6_
is the value
2
is the value
2
th
byte.
.
3
3.
6 - 8 5 7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents