File And Memory Compare (Process No. 3) - Omron SYSMAC C200HW-PCU01 Operation Manual

Pc card unit
Table of Contents

Advertisement

File Operations: CMCR Instruction

5-3-9 File and Memory Compare (Process No. 3)

Control Data
Command Data
56
The File and Memory Compare process compares a file on a memory card in the
PC Card Unit to C200HX/HG/HE memory. The results of the comparison are
indicated by the response code.
If the specified length of data does not perfectly match, or if the file size is smaller
than the specified length of data, the response code (04) shows that there is no
match.
Bit
15 14 13 12 11
Level (0/1)
Word
C+0
C+1
to
C+7
• (Operating) Level
Setting to "0" specifies level #0; setting to "1" specifies level #1.
• Control Code Enable
Fixed at "1" (control codes enabled).
• Port Number
Bit 9
0:
Compares data as comma separated values. The separation
method is determined by bit 10.
1:
Compares as binary file.
Bit 10 0:
Puts comma separation in single word units (one word).
1:
Puts comma separation in double word units (two words).
• Control Code
Input in hexadecimal values the drive and filename for the file to be compared.
The extension must be written in three characters. Shift JIS 1-byte alphanu-
meric code is used.
Slot 1 is drive G, and slot 2 is drive H.
Data
Offset
length
• Data Length
The data length (including the data length and offset designations) is specified
by the number of words. Specify a number from 1 to 1001 in BCD.
• Offset
The offset specifies the comparison data offset. For binary files it is specified by
the number of words, and for comma separated files it is specified by the num-
ber of elements. Specify a number from 0 to FFFF in hexadecimal.
• Comparison Data
The maximum value for comparison data depends on the type of file created,
as follows:
Single-word comma separation, binary:
Double-word comma separation:
10
9
8
7
6
5
1
0
0
0
Port No.
Port No.
Control code
Control code
Comparison data
999 words (data length: 1001)
998 words (data length: 1000)
Section 5-3
4
3
2
1
0
0
0
0
1
1
Process No.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200hw-pcs01-ev1

Table of Contents