![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hw-pcs01-ev1/sysmac-c200hw-pcs01-ev1_operation-manual_742247077.webp)
61
5-5
Sample Program
This section provides a sample program for writing and reading files. In this pro-
gram, when execution condition IR 00000 is turned from OFF to ON and then
OFF again, the data in 100 DM words beginning with DM 0100 is written to
G:\DMSAVE.DAT. When execution condition IR 00001 is turned from OFF to ON
and then OFF again, the 100 words of data is read from DMSAVE.DAT to the DM
words from DM 0200 onwards.
Program
Execution
condition
00000
25201: Operating level #0 CMCR execution enabled.
Operating level #0
File write (newly created)
(Single-word comma separated file)
Process No. 1, File Write
Command execution
00300: Output for CMCR instruction error.
00101: CMCR execution completion
25201: Operating level #0 CMCR execution enabled.
Operating level #0
File read (newly created)
(Single-word comma separated file)
Process No. 2, File Read
Command execution
00301: Output for CMCR instruction error
00201: CMCR execution completion
Execution
condition
00001
Sample Program
Section 5-5
Summary of Contents for SYSMAC C200HW-PCS01-EV1
Page 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Page 2: ......
Page 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Page 4: ......
Page 6: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 34: ......
Page 38: ......
Page 60: ......
Page 80: ......
Page 82: ......
Page 88: ......
Page 120: ......
Page 148: ......
Page 178: ......
Page 214: ......
Page 220: ......
Page 232: ......
Page 234: ......
Page 236: ......
Page 238: ......
Page 240: ......