
1115
File Memory Instructions
Section 3-26
Description
TWRIT(704) writes the number of bytes of data specified in S1, starting from
the word specified in S3, to a text file (filename.TXT) in the Memory Card with
the filename specified in S2.
A delimiter can be specified in S4 and attached to the end of the text file. The
created text file can be referenced later with a text editor.
Creating a New File
Set C = 0001 and specify a new filename to create a new file.
Appending an Existing File
Set C = 0000 to append data to an existing file.
EM Area with bank
En_00000 to En_32767
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
#0000 to
#0001
---
#0000 to
#FFFF
Data Registers
---
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to 1–2048 to +2047 ,IR5
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
C
S1
S2
S3
S4
#3132
#3334
1234,
S4
#2C00
Specified text file
Write data
S3
S3+1
Characters: 12
Characters: 34
Delimiter
Comma
S3
#3536
S4
#2C00
56,
Specified text file
No file
Write data
Characters: 56
Create new
file (C: &1)
Delimiter
Comma
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...