36
Data Format
Data is allocated by either bit or by word, though it is often input and output
by decimal digit, i.e., four bits (BCD), or by hexadecimal digit. Counter val-
ues, upper and lower limits of ranges, and some other data are held in two
adjacent words, sometimes with a sign digit, in the following format.
sign
x 10
6
x 10
5
x 10
4
x 10
3
x 10
2
x 10
1
x 10
0
0
1
+
–
Highest word
Lowest word
Note that the rightmost word is always the lowest word, i.e., if the two words were
m+10 and m+11, the rightmost word would be m+10; the leftmost, m+11. Fur-
thermore, the rightmost digit in each word begins in the lowest bits, i.e., the digits
x 10
4
and x 10
0
above would be held in, bits 00 through 03 of their respective
words. Even when only one word or part of a word is required to hold data, e.g.,
the error code or error location, the rightmost digit is also always held in the lower
bits. Although decimal notation is generally used for data in this manual, data is
handled in the system as binary-coded decimal (BCD) unless otherwise noted.
Note that this data is generally input as decimal, whereas hexadecimal data is
input as hexadecimal. The number of digits given for certain data refers to the
decimal digits, e.g., “7 digits with sign” indicates that the lowest word and right-
most 12 bits of the highest word are allocated to the 7-digit decimal value; the
leftmost four bits are allocated to the sign digit.
4-2
Linear and Circular Modes
In both linear and circular modes counter values are incremented and decre-
mented according to any of the three types of input pulses. All functional aspect
and data allocations for these two modes are the same, except that in linear
mode, counter values range linearly between –8,388,608 and 8,388,607, while
in circular mode, counter values range from 0 to a preset maximum value (used
only in circular mode), with the maximum value and 0 being adjacent to each
other in sequence. That is, decrementing below 0 results in the current counter
value going to the maximum value; incrementing past the maximum value re-
sults in the current counter value going to zero.
Both modes provide 16 outputs, all of which can be output internally (i.e., to the
PC) and eight of which can be output externally (i.e., without passing through the
PC) as well as internally. These outputs are sometimes referred to by number
and sometimes as either internal inputs and external inputs. The term internal
outputs refers to all outputs sent to the PC; external outputs, to all outputs set to
the external connector.
Both modes provide 16 ranges for counter values during which the outputs can
be set to turn ON. These ranges can be enabled or disabled during operations.
Data transfer from the PC data area is also available in both modes to change
either range settings or the current counter value.
Although control input IN1 is supposed by both modes, control input IN2 is not
used.
Note Stop counter operation before changing the present value to 0 or resetting
the Counter Unit in the ring mode. If either of these is performed without
stopping counter operation, the maximum value preset operation will not be
performed correctly.
4-2-1
Data Allocation
The commands, parameters, flags, and other information in the following tables
are described in detail in 4-2-2 DM Area Settings and 4-2-3 IR Area Settings.
Linear and Circular Modes
Section 4-2
Summary of Contents for SYSMAC C200H-CT001-V1
Page 1: ...Cat No W141 E1 4 High speed Counter Units SYSMAC C200H CT001 V1 CT002 OPERATION MANUAL...
Page 2: ......
Page 3: ...C200H CT001 V1 CT002 High speed Counter Units Operation Manual Revised September 2000...
Page 4: ...iv...
Page 6: ...vi...
Page 8: ......
Page 10: ......
Page 20: ......
Page 46: ......
Page 96: ......
Page 98: ......