![background image](http://html1.mh-extra.com/html/omron/c200h-ct021/c200h-ct021_operation-manual_741966068.webp)
58
DM Area Allocation in Preset Mode
Section 5-3
IR Bit Allocation
Word
(output)
Bit
Flag
Function
n
00
START Counter 1
Command
Unit starts counting at the rising edge of this bit with the counter pre-
set data of word n+1 if this bit is set to 1.
Unit stops counting when word n bit 04 is set to 1 or the count value
reaches 0.
01
START Counter 2
Command
Refer to the information on the above START Counter 1.
02
---
Not used.
03
Data Transfer Command
Data is transferred from the PC according to the settings of DM
words m+3 and m+4 at the rising edge of this bit.
04
RESET Counter 1
Command
Resets counter 1 at the rising edge of this bit. Refer to
4-10 Counter
Reset Conditions
.
05
RESET Counter 2
Command
Refer to the information on the above RESET Counter 1.
n
06
READ ERROR
Command
Unit reads error codes at the rising edge of this bit. When this bit is
ON while the Error Flag (word n+6 bit 15) is 1, error codes will be
output to word n+7.
The error code will be 0 when the last error code is read.
Repeatedly turn this bit ON until the error code is set to 0.
The Error Flag will be still 1 after the last error code is read.
To reset the Error Flag, use the control code “EC” after correcting the
errors. Refer to
11-1 Error Processing
.
07
ENABLE External
Output Command
External outputs 0 to 7 will be enabled if this bit is set to 1. Data is
transferred to word n+9 regardless of the setting of this bit.
08 to 15
Forced External Outputs
0 to 7
External outputs 0 to 7 will be turned ON if these bits are set to 1.
Bits 08 to 15 corresponds to outputs 0 to 7.
Use these bits to check wiring. Set the forced external output to
1:Enabled, bit 07 to 1, and bits 00 and 01 to 0 to use this function.
n+1
00 to 15
Counter Preset Value No.
n+2, n+3 00 to 15
Present Counter 1 Value
This designates the counter preset value (0 to 19) set in the words
m+50 to m+89 used for counters 1 and 2.
Set these within a range of 00 to 19. Bits 00 to 07 are for counter 1
and bits 08 to 15 are for counter 2.
When the counters start, the counter preset values corresponding
to the designated numbers are set in the counters.
Counter 1 (00 to 19)
Counter 2 (00 to 19)
BCD
Hexadecimal
Stored data range: 000000 to 7FFFFF (0 to 8,388,607)
Set to 0.
Stored data range: 0 to 8,388,607
Summary of Contents for C200H-CT021
Page 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Page 2: ...iv ...
Page 4: ...vi ...