185
GT1-CT01 Counter Unit Section 5-4
Note A priority exists for setting and reading commands. If a bit with a higher prior-
ity always comes first, other settings and readings will not be made, even if
they have been specified. In order of decreasing priority:
1. Count value setting
→ 2. Set value 2 setting → 3. Set value 1 setting →
4. Count value reading → 5. Set value 2 reading → 6. Set value 1 reading
Input Word Functions
Word Bit Function
Wd m 00 to 15
Wd m+1 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
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