Delta AH500 Programming Manual page 705

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

Example:
SM450 is ON when the memory card is inserted into the CPU module; SM452 is ON when MTWRIT
is executed; SM452 is OFF when the execution of MTWRIT is complete.
Operand
Setting value
D0
16#0001
D300
-
D10
16#000A
D1
16#0A00
D30=16#6554
D30
D31=16#7473
D32=16#0031
Additional remark:
1.
If the value in C exceeds the range, the operation error occurs, the instruction is not executed,
SM0 is ON, and the error code in SR0 is 16#2003.
2.
If the value in S
exceeds the range, the operation error occurs, the instruction is not executed,
1
SM0 is ON, and the error code in SR0 is 16#2003.
3.
If the value in S
exceeds the range, the operation error occurs, the instruction is not executed,
3
SM0 is ON, and the error code in SR0 is 16#2003.
Description
The file into which the data is written
The file format:
The unit of the character is the byte.
The file name extension is .txt.
The ASCII codes are adopted.
The data in D300 is written into the file.
The data which is written into the file
The size of the string which is written into the file is 32
bytes.
After the data is written into the file, the separation mark is
added after the last byte in the file.
The file name is "Test1".
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
6 - 5 3 7

Advertisement

Table of Contents
loading

Table of Contents