![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681155.webp)
1116
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...