A-1-25 Display Instructions - Omron CJ2 - 02-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
Code
WRITE DATA
FWRIT
701
FILE
@FWRIT
WRITE TEXT
TWRIT
704
FILE
@TWRIT
A-1-25
Display Instructions
Instruction
Mnemonic
Code
DISPLAY
MSG
046
MESSAGE
@MSG
A-64
Symbol/Operand
Overwrites or appends data in the specified data file in file
FWRIT(701)
memory with the specified data from the data area in the
C
CPU Unit. If the specified file doesn't exist, a new file is
created with that filename.
D1
CPU Unit
D2
Starting
S
address
specified
in S
C: Control word
D1: 1st
destination word
D2: Filename
S: 1st source
word
CPU Unit
Starting
address
specified
in S
CPU Unit
Starting
address
specified
in S
Reads ASCII data from I/O memory and stores that data in the
TWRIT
Memory Card as a text file (writing a new file or appending a file).
The data is stored in the TXT format.
C
S1
Write data
S2
#3536
S3
S3
Delimiter
S4
#2C00
S4
C: Control word
S1: Number of
bytes to write
S2: Directory and
file name
Write data
S3: Write data
#3536
S3
S4: Delimiter
Delimiter
#2C00
S4
Symbol/Operand
Reads the specified sixteen words of extended ASCII and displays
MSG(046)
the message on a Peripheral Device such as a Programming Con-
sole.
N
M
N: Message
number
M: 1st message
word
Function
Starting word
File specified in D2
specified in
D1+2 and
D1+3
Number of words
specified in D1
and D1+1
Overwrite
Memory Card or EM file memory
(Specified by the 4
digit of C.)
th
File specified in D2
End of
Existing
file
data
Number of words
specified in D1
and D1+1
Append
Memory Card or EM file memory
(Specified by the 4
digit of C.)
th
Beginning
File specified
New file created
of file
in D2
Number of words
specified in D1
and D1+1
Memory Card or EM file memory
(Specified by the 4
digit of C.)
th
Specified text file
No file
Characters: 56
Create new
file (C: &1)
Comma
56,
Specified text file
1234,
Characters: 56
Append file
(C: &0)
Comma
1234,56,
Function
CJ2 CPU Unit Software User's Manual
Execution
Location
condition
Output
Required
Output
Required
Execution
Location
condition
Output
Required

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents