EasyManua.ls Logo

Delta AH500 - Page 703

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-535
API Instruction code
Operand
Function
2302 MTWRIT P
C, S, S
1
, S
2
, S
3
Writing the string into the memory
card
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
C
S
S
1
S
2
S
3
Pulse instruction 16-bit instruction (11 steps) 32-bit instruction
AH500 AH500 -
Symbol:
C
Control parameter Word
S
Data source Word
S
1
Data length Word
S
2
Separation mark Word
S
3
File name Word
Explanation:
1. The description of the operands:
C: The control parameter
Parameter
value
Description
0
(Appending)
If the file exists, the data which is written into the memory card is added
after the last byte in the file.
If the file does not exist, it is created automatically.
1
(Overwriting)
If the file exists, the new data which is written into the memory card
replaces the old data in the file.
The size of the file is the size of the new
data.
If the file does not exist, it is created automatically.
S: The data source
If the string which is written into the file is “12345”, the characters are stored in the
devices as follows. Owing to the fact that a byte is taken as the basic unit, the first
character is stored in the low byte in D300, the second character is stored in the high
byte in D300. The same applies to the other characters. “16#00” is stored in the high
byte in D300+2, and indicates the end of the string.
16#32
byte 2
16#31
16#34
16#33
16#00 16#35
S300
byte 1 byte 4
byte 3
byte 6
byte 5
S300+1 S300+2
S
1
: The length of the data which is written into the memory card
A byte is taken as the basic unit. The devices in which the data is stored can not
exceed the device range, and the length of the data which is written into the memory
card can not be more than 255 bytes.

Table of Contents

Other manuals for Delta AH500

Related product manuals