Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1155

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

File Memory Instructions
Description
1116
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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.
Write data
S3
Characters: 12
#3132
S3+1
Characters: 34
#3334
Delimiter
Comma
S4
#2C00
1234,
Creating a New File
Set C = 0001 and specify a new filename to create a new file.
Write data
#3536
S3
Characters: 56
Delimiter
#2C00
Comma
S4
Appending an Existing File
Set C = 0000 to append data to an existing file.
C
S1
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to
---
#0001
---
---
,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
Specified text file
Specified text file
No file
Create new
file (C: &1)
56,
Section 3-26
S2
S3
S4
#0000 to
#FFFF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents