![background image](http://html1.mh-extra.com/html/omron/prt1-com/prt1-com_operation-manual_744566158.webp)
7-3
Section
Counter Units
148
Input Word Functions
Word
Bit
Function
Wd m
00 to 15
Reading Count Value
While the Count Value Reading Bit (word n+2, bit 06) is ON, the value will be constantly read and stored
BCD (Data Code Switching Bit OFF)
Word n+1
Word n
Sign
The sign will be stored in 1-digit hexadecimal.
0: Positive
1: Negative
Word n+1
Word n
Negative numbers will be stored using the 24-bit 2’s complement
(the last 24 bits of the 32-bit 2’s complement).
Example:For --10,000
--10,000 (decimal)
→
FFFF D8F0 Hex (32-bit 2’s complement)
→
FF D8F0 Hex (24-bit 2’s complement)
Hexadecimal (Data Code Switching Bit ON)
Reading Set Values
While the Set Value 1 Reading Bit (word n+2, bit 04) or the Set Value 2 Reading Bit (word n+2, bit 05) is
ON, the values and the output conditions will constantly be read and stored.
BCD (Data Code Switching Bit OFF)
Word n+1
Word n
Wd m+1
00 to 15
The output conditions will be stored with 3 bits.
000:
Present value
≥
Set value
→
Output ON
Not 000:
Present value
≤
Set value
→
Output ON
(Whether output is actually made depends on the settings of
the External Output Enable Bits, word n+2 bits 08, 09)
The sign will be stored
with 1 bit.
0: Positive
1: Negative
Hexadecimal (Data Code Switching Bit ON)
Negative numbers will be stored using the 24-bit 2’s complement
(the last 24 bits of the 32-bit 2’s complement).
Example:For --10,000
--10,000 (decimal)
→
FFFF D8F0 Hex (32-bit 2’s complement)
→
FF D8F0 Hex (24-bit 2’s complement)
The output conditions will be stored with 3 bits.
000:
Present value
≥
Set value
→
Output ON
Not 000:
Present value
≤
Set value
→
Output ON
(Whether output is actually made depends on the settings of
the External Output Enable Bits, word n+2 bits 08, 09)
Setting Range
Value (decimal)
--8,388,608
to
--1
0
1
to
8,388,607
BCD (sign + 7 digits)
F838 8608
to
F000 0001
0000 0000
0000 0001
to
0838 8607
Hexadecimal (6 digits)
80 0000
to
FF FFFF
00 0000
00 0001
to
7F FFFF
Word n+1
Word n