![background image](http://html1.mh-extra.com/html/omron/prt1-com/prt1-com_operation-manual_744566156.webp)
7-3
Section
Counter Units
146
Word
Bit
Name
Function
Wd n+2
00
Set Value 1
Setting Bit
At the rising edge of this bit, the Counter Unit reads the value from words n and n+1,
and sets it as set value 1. Before turning this bit OFF, check that bit 00 in word m+2
(Set Value 1 Setting Completion Flag) is ON.
01
Set Value 2
Setting Bit
At the rising edge of this bit, the Counter Unit reads the value from words n and n+1,
and sets it as set value 2. Before turning this bit OFF, check that bit 01 in word m+2
(Set Value 2 Setting Completion Flag) is ON.
02
Count Value
Setting Bit
At the rising edge of this bit, the Counter Unit reads the value from words n and n+1,
and changes the count value (present value). Before turning this bit OFF, check that
bit 02 in word m+2 (Count Value Setting Completion Flag) is ON.
03
Data Code
Switching Bit
This bit determines whether the setting and reading of the count value or the set
values is performed in BCD or hexadecimal.
OFF: BCD
ON: Hexadecimal
04
Set Value 1
Reading Bit
While this bit is ON, the Counter Unit reads the normal value of set value 1 and the
output conditions and stores them in words m and m+1.
05
Set Value 2
Reading Bit
While this bit is ON, the Counter Unit reads the normal value of set value 2 and the
output conditions and stores them in words m and m+1.
06
Count Value
Reading Bit
While this bit is ON, the Counter Unit reads the normal value of the count value and
stores it in words m and m+1.
07
Internal
Resetting Bit
When used for count value resetting, the rising edge of this bit becomes the condition
for resetting (only enabled for rising edge).
08
External
Output 1
Enable Bit
This bit determines whether external output 1 comes ON when the output conditions
for the count value and set value 1 are fulfilled.
OFF: No output (regardless of comparison result, external output 1 will always be
OFF)
ON: Output (when the output conditions are fulfilled, external output 1 will turn ON)
09
External
Output 2
Enable Bit
This bit determines whether external output 2 comes ON when the output conditions
for the count value and set value 2 are fulfilled.
OFF: No output (regardless of comparison result, external output 2 will always be
OFF)
ON: Output (when the output conditions are fulfilled, external output 2 will turn ON)
10
Count Mode
Selection
Bits
The count mode is set in the following way.
Bit 11
Bit 10
Count mode
OFF
OFF
No mode change
OFF
ON
Pulse and direction input mode
ON
OFF
Differential phase pulse input
〈×
4)
ON
ON
Differential phase pulse input
〈×
4)
11
ON
ON
Differential phase pulse input
〈×
4)
Between the Counter Unit startup and count mode setting, count operations will not
begin. If the count mode has already been set when the Counter Unit is started up,
however, count operations will start in the count mode set. If the count mode is
changed during count operations, the present value will be cleared to 0 before
counting starts in the new mode.
12
Reset Mode
Setting Bits
The reset mode is set in the following way.
Bit 14
Bit 13
Bit 12 Reset mode
OFF
OFF
OFF
No mode change
OFF
OFF
ON
E
d i
t Z
13
g
OFF
OFF
ON
Encoder input Z
OFF
ON
OFF
External input
OFF
ON
ON
Encoder input Z and external input
ON
OFF
OFF
Internal reset bit
14
ON
OFF
OFF
Internal reset bit
ON
OFF
ON
Encoder input Z and internal reset bit
ON
ON
OFF
External input and internal reset bit
ON
ON
ON
Encoder input Z , external input, and internal reset bit
15
I/O Unit
Interface
Error Setting
Bit
Counter Unit operations in the event of I/O Unit interface error (see note) are set in the
following way.
OFF: Count operations will be stopped, and the present value and set values 1 and 2
will be cleared to 0. External outputs 1 and 2 will be turned OFF.
ON: Count operations will continue.
Note:
In the event of I/O Unit interface error, the Communication Unit and all the I/O
Units must be restarted.