Omron C200HE Computer Hardware User Manual


 
353
5-29-3 PCMCIA CARD MACRO CMCR(––)
C: First control word
IR, SR, AR, DM, HR, TC, LR, #
S: First command word
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D: Response word
IR, SR, AR, DM, HR, TC, LR
CMCR(––)
C
S
D
@CMCR(––)
C
S
D
Limitations DM 6144 through DM 6655 cannot be used for D.
Description When the execution condition is OFF, CMCR(––) is not executed. When the
execution condition is ON, CMCR(––) executes a macro process that writes,
reads, compares, or searches the memory of the Card in the PCMCIA Card In-
terface Unit.
When CMCR(––) writes data in a comma-delimited file, that file can be written
entirely in one line. Comma-delimited files that were created in a personal com-
puter are assumed to be written in one of the following formats. (It doesnt matter
if the comma is in a separate byte.)
4 bytes, comma, 4 bytes, comma, 4 bytes, comma ......
8 bytes, comma, 8 bytes, comma, 8 bytes, comma ......
A file can be appended only if there is free space in the Card and data can be
overwritten only when an acceptable offset has been specified.
The fields in the comma-delimited file must not be enclosed by definers such as
quotation marks.
Control Words Write the control data in the first control word using the format shown in the fol-
lowing diagram.
Word
Operating level (OFF=level 0, ON=level 1)
0/1 Port Process number
Set to 1 to transmit the control codes in C+1 through C+7 to the PC Card Unit.
The function of the port number depends on the process specified.
Set the process number (1 through 4, see below).
Control code
Control code
Control code
Control code
Control code
Control code
Input the drive and filename (in ASCII) of the file to be written,
read, compared, or searched. Be sure to include all three char-
acters of the filename extension. Directories can be specified if
they have been created.
Slot 1 is drive G: and slot 2 is drive H:.
Control code
Special I/O Unit Instructions Section 5-29