![background image](http://html1.mh-extra.com/html/omron/prt1-com/prt1-com_operation-manual_744566155.webp)
7-3
Section
Counter Units
145
Output Word Functions
Word
Bit
Function
Wd n
00 to 15
Setting Count Value
At the rising edge of the Count Value Setting Bit (word n+2, bit 2) starts, the value is read and set.
BCD (Data Code Switching Bit OFF)
Word n+1
Word n
Sign
Set the sign in 1-digit hexadecimal.
0: Positive
1: Negative
Hexadecimal (Data Code Switching Bit ON)
Word n+1
Word n
When setting negative numbers, use the 24-bit 2’s complement
(the last 24 bits of the 32-bit 2’s complement).
Example:To set --10,000
--10,000 (decimal)
→
FFFF D8F0 Hex (32 bit 2’s complement)
→
FF D8F0 Hex (24 bit 2’s complement)
Setting Set Values
At the rising edge of the Set Value 1 Setting Bit (word n+2, bit 0) or the Set Value 2 Setting Bit (word n+2,
bit 1) starts, the value is read and set.
BCD (Data Code Switching Bit OFF)
Word n+1
Word n
Wd n+1
00 to 15
Set the output conditions 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)
Set the sign with 1 bit.
0: Positive
1: Negative
Hexadecimal (Data Code Switching Bit ON)
When setting negative numbers, use the 24-bit 2’s complement
(the last 24 bits of the 32-bit 2’s complement).
Example:To set --10,000
--10,000 (decimal)
→
FFFF D8F0 Hex (32-bit 2’s complement)
→
FF D8F0 Hex (24-bit 2’s complement)
Set the output conditions 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