47
DM Area Allocation in Simple Counter Mode
Section 5-1
Word
(input)
Bit
Flag
Function
n+2, n+3 00 to 15
Present Counter 1 Value
n+4, n+5 00 to 15
Present Counter 2 Value Refer to the information on the above present counter 1 value.
n+6
00
Counter
1
Counting
Set to 1 when the counter is counting.
01
Input Z
Indicates the status of input Z (1: H; 0: L)
02
Control Input IN1
Indicates the status of control input IN1 (1: H; 0: L)
03
Control Input IN2
Indicates the status of control input IN2 (1: H; 0: L)
04
Counter Overflow
Set to 1 when the count value is not within a range of –8,388,608 to
8,388,607.
Reset the counter when set to 1.
05
Reset
Set to 1 during a scan of the PC after the counter is reset.
06
Counter Operating
Set to 1 while either of the counters is counting.
07
Unit Busy
Set to 1 while the IOWR instruction is processed for the C200HX,
C200HG, or C200HE PC or the Unit is initialized.
08
Counter
2
Counting
Refer to the information on the above counter 1
09
Input Z
10
Control Input IN1
11
Control Input IN2
12
Counter Overflow
13
Reset
14
Data Transfer Comple-
tion
Set to 0 from 1 or vice versa when the Unit has completed process-
ing the IOWR instruction.
15
Error
Set to 1 when an error results. The error code and error location will
be output to word n+7 by setting the READ ERROR Command to 1.
n+7
00 to 15
Error Data
n+8
00 to 15
---
Not used.
n+9
00 to 15
---
Not used.
BCD
Stored data range:
−
8,388,608 to 8,388,607
Hexadecimal
Stored data range: 800000 to FFFFFF (
−
8,388,608 to
−
1) and
000000 to 7FFFFF (0 to 8,388,607)
Sign
Set to 0.
An error code and error location are output in the following format.
Error code Error location
Two rightmost DM digits are indicated.
Refer to
SECTION 11 Error Processing and Troubleshooting
.
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 ...