Omron C200HE ユーザーズマニュアル

ページ / 564
127
4-12-2 Special I/O Unit Error Processing Program
Use a program like the one shown below to restart a Special I/O Unit in which an
error has occurred. This example program restarts Unit 1.
Disables
calculations
during Ini-
tialization.
DIFU(13) AR0101
JMP(04) 00
JME(05) 00
AR 0001
(Unit #0 Error Flag)
SR 27401
(Unit #1 Restart Flag)
Restart
Calculations using data from Special I/O Unit 1
27401
AR0001
4-12-3 Changing the Special I/O Unit Settings
In the C200HX/HG/HE, ladder instructions can be used to write data into the
Special I/O Unit Areas (DM 1000 to DM 2599) and change the Special I/O Unit
settings. Changing the settings is useful when different settings are required for
different production processes.
In this example there are two production processes that require different Special
I/O Unit settings. The settings for the first process are stored in DM 7000 through
DM 7999 and the settings for the second process are stored in DM 8000 through
DM 8999.
Steps 1 through 5 in the following procedure aren’t necessary when XFER(70) is
used to overwrite DM 1000 through DM 1999 directly from the program with the
contents of fixed DM (DM 6144 through DM 6599). In this case, just restart the
Unit from the program after overwriting DM 1000 through DM 1999.
1, 2, 3...
1. Clear the memory (all clear).
The UM Area Allocation operation can’t be performed unless the memory
has been cleared.
2. Perform the UM Area Allocation operation to allocate 2K words to the
expansion DM area (DM 7000 through DM 8999).
FUN
CHG
9
7
B
1
D
3
WRITE
VER
PLAY
SET
CLR
3. Perform the Hexadecimal/BCD Data Modification operation to set the Spe-
cial I/O Unit mode to “C200H-compatible ROM mode 1” by setting DM 6602
to #0100. This mode transfers the contents of DM 7000 through DM 7999 to
DM 1000 through DM 1999 at PC startup. This new PC Setup setting won’t
be effective until the PC is restarted by turning it off and then on again.
4. Set pin 4 of the CPU Unit’s DIP switch to ON. This setting enables the user to
assign expansion instruction function codes.
Programming Console
Operations
Special I/O Unit Interface Programs
Section 4-12