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

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

Advertisement

File Memory Instructions
Note
file is in the Memory Card or EM file memory, the second digit of the control
word indicates whether the actual data or the number of words of data is to be
read, the third digits indicates the presence of carriage returns, and the fourth
digit indicates the data type.
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@.
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 D00001 and 5678
in D00000.
S1 and S1+1: Number of Read Items
The 8-digit hexadecimal value in S1 and S1+1 specifies how many words or
fields to read from file memory. If the specified number of words or fields
exceeds the number of words in the data file, the data in the file will be trans-
ferred normally and no error will occur.
S1+1
Data type
Bits 12 to 15 of C
Binary
0 hex (binary)
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.
S1
S1+1 contains the leftmost 4 digits and
S1 contains the rightmost 4 digits.
Contents of S1 and S1+1
Number of words to read from file
memory.
00000000 to 3FFFFFFF hex
Section 3-26
1101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents