Write Text File: Twrit(704) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

File Memory Instructions

3-26-4 WRITE TEXT FILE: TWRIT(704)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand
The File Write Error Flag (A34308) will be turned ON and the instruction will
not be executed if the specified file is not the correct data type or the file data
has been corrupted.
A few seconds is required for the CPU Unit to detect a Memory Card after it
has been inserted. If a Memory Card is going to be accessed soon after
power is turned ON or after a Memory Card is inserted, use the Memory Card
Detected Flag (A34315) in a NO input condition as shown below to be sure
that the Memory Card has been detected.
Execution
condition
A34315
Memory Card
Detected Flag
The source data words starting at S are accessed and read during the periph-
eral servicing after FWRIT(701) is executed. If the source data is changed
before the file memory write processing is completed, the changed data may
be written to the file.
Reads ASCII data from I/O memory and stores that data in the Memory Card
as a text file (writing a new file or appending a file). The data is stored in the
TXT format.
This instruction is supported by CS/CJ-series CPU Units with unit version 4.0
or later only.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Function block
Block program
definitions
areas
OK
OK
C: Control word
#0000: Append file.
#0001: Create new file or overwrite.
S1: Number of write bytes
Specifies the number of bytes to write in the range 0 to 255 decimal or 0000 to
00FF hexadecimal.
A34313
File Memory
Operation Flag
TWRIT
C: Control word
C
S1: Number of bytes to write
S1
S2: Directory and file name
S2
S3: Write data
S3
S4: Delimiter
S4
Step program
Subroutines
areas
OK
OK
Section 3-26
FWRIT
C
D1
D2
S
TWRIT(704)
@TWRIT(704)
Not supported
Interrupt
tasks
OK
1113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents