Fread - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

FREAD

Instruction
READ DATA FILE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control word
S1
Number of words and First source word
S2
Filename
D
First destination word
C: Control Word
15
12
11
C
Carriage returns
0: No returns
8: Return every 10 fields*
9: Return every 1 field*
A: Return every 2 fields*
B: Return every 4 fields*
C: Return every 5 fields*
D: Return every 16 fields*
Data type (-EV1 only)
0: Binary (extension: .IOM, words/field: NA)
1: Non-delimited words (extension: .TXT, words/field: 1)*
2: Non-delimited double-words (extension: .TXT., words/field: 2)*
3: Comma-delimited words (extension: .CSV, words/field: 1)*
4: Comma-delimited double-words (extension: .CSV, words/field: 2)*
5: Tab-delimited words (extension: .TXT, words/field: 1)*
6: Tab-delimited double-words (extension: .,TXT words/field: 2)*
*: Cannot be set for CS-series CS1 CPU Units prior to V1@.
Note 1 Each field will contain 1 word of I/O memory for the word data types and 2 words of I/O memory for the
double-word data types.
2 When reading data with carriage returns, bits 00 to 11 of C must be set to between 8 and D hex.
3 With double-words, the first word of data is stored in the higher memory address, e.g., 12345678 would be
stored with 1234 in D1 and 5678 in D0.
966
Mnemonic
Variations
FREAD
@FREAD
FREAD(700)
C
S1
S2
D
Block program areas
Step program areas
OK
OK
Description
8
7
4
3
0
File memory specifier
0: Memory Card
1: EM file memory
Function specifier
0: Read data.
1: Read number of words.
Function
code
Reads the specified data or amount of data from the
700
specified data file in file memory to the specified data
area in the CPU Unit.
FREAD
C: Control word
S1: Number of words and First source word
S2: Filename
D: First destination word
Subroutines
Interrupt tasks
OK
Data type
UINT
LWORD
UINT
UINT
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
Variable
4
Variable
Variable

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents