53
DM Area Allocation in Linear and Circular Modes
Section 5-2
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 data transfer is executed or 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 Completion Set to 0 from 1 or vice versa when the Unit has completed data
transfer or processing 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
Operating Range No.
Bits 00 to 15 correspond to ranges 0 to 15. One of these bits is ON
when the present counter value of either of the counters is between
the corresponding upper and lower limits.
n+9
00 to 07
Internal/External Outputs
0 to 7
Indicate the status of outputs.
These bit numbers correspond to output numbers. A bit is set to 1
when the corresponding output is turned ON.
These bits are set to 1 regardless of the setting of word n bit 07.
08 to 15
Internal Outputs 8 to 15
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 ...