73
IR Area Settings and Functions
Section 7-3
Preset Counter Value
(Words (n+2) and (n+3)
Words (n+4) and (n+5))
These words are used to store the present counter values of the counters.
The above is a setting example in BCD.
The following data is stored.
BCD:
–8,388,608 to 8,388,607
Hexadecimal:
800000 to FFFFFF (–8,388,608 to –1) and 000000 to
7FFFFF (0 to 8,388,607)
Status Data
(Word n+6)
The status of the High-speed Counter Unit is transferred to the PC.
Operating Range No.
(Word n+8)
Bits 00 to 15 correspond to ranges 0 to 15. One of these bits will be ON when
the present counter value of either counter is between the corresponding
upper and lower limits.
Sign
Sign
Bit
Flag
Function
00
Counter 1 Counting
Set to 1 when the counter is counting.
01
Input Z
Indicates the status of input Z.
Indicates the status of control input IN1.
Indicates the status of control input IN2
1: ON
0: OFF
02
Control Input IN1.
03
Control Input IN2.
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 this bit is 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 and the RUN indicator is lit while either of the counters is count-
ing.
07
Unit busy
Set to 1 while the IOWR instruction is processed for the C200HX,
C200HG, or C200HE PC or while data transfer is being processed. It is
set to 1 while the Unit is being initialized after it is restarted.
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 from 1 to 0 or vice versa when the data transfer is completed or Unit
has completed processing the IOWR instruction.
15
Error
Set to 1 when an error results.
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 ...