
61
DM Area Allocation in Gate, Cumulative Gate, and Sam-
Section 5-4
IR Bit Allocation
Word
(output)
Bit
Flag
Function
n
00
---
Not used.
01
SET TIME for Counter 1
Command
(The sampling time of word n+1 will be set only in sampling mode.)
The sampling time for n+1 word is set at the rising edge.
The new sampling time will be valid after the counter completes count-
ing if the new sampling time is set while the counter is counting.
02
SET TIME for Counter 2
Command
(This function is valid in sampling mode only.) Refer to the information
on the above SET TIME for counter 1.
03 to 05
---
Not used.
06
READ ERROR
Command
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” of the IOWR
instruction after correcting the errors. Refer to
11-1 Error Processing
.
07
---
Not used.
08
Counter 1 Internal
Control IN1
Specify internal control inputs with bits 04 to 07 of words m+1 and m+2.
09
Counter 1 Internal
Control IN2
10
Counter 2 Internal
Control IN1
11
Counter 2 Internal
Control IN2
12 to 15
---
Not used.
n+1
00 to 15
Sampling Time
(Enabled in sampling mode only.)
A sampling time can be set within a range of 1 to 9,999 ms and with
1-ms increments.
To set two counters to sampling times different to each other, the sam-
pling times must be set during two I/O refresh cycles of the PC.
Set counter 1 to a sampling time by setting word n bit 01 to 1 and bit
02 to 0 and then set counter 2 to a sampling time with by setting word
n bit 01 to 0 and bit 02 to 1.
Counters 1 and 2 will be set to the same sampling time if word n bits
01 and 02 are set to 1.
Range: 0001 to 9999 ms
Unit: 1 ms
Содержание C200H-CT021
Страница 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Страница 2: ...iv ...
Страница 4: ...vi ...