This section introduces the functional core of a channel, consisting of the following blocks:
-
up/down counting,
-
enable.
The following illustration shows the up/down counting functional core of the TSX CTY2A or 4A modules.
NOTE: this illustration is very similar to that of the counting only or down counting only function. The main differences are at the level of the physical inputs. The associated language objects are described in the
implicit objects part.
The hardware or software counter enable function is a particular function, intrinsically associated to the up/down counting main function. Indeed, without the counter enable, the counting or down counting functions cannot operate. For this reason, unlike the other functions, the counter enable function is present in this case.
The up/down counting function accepts four counting physical input configurations, which are described in the table below.
This table summarizes the input characteristics of the up/down counting function (for each channel).
Modules involved
|
TSX CTY 2A / 4A
|
Input configuration
|
-
One physical input IA ST_IA (%IWr.m.c.2.0) and one software input (counting direction).
-
Two physical inputs: IA (main) and IB ST_IB (%IWr.m.c.2.1) (counting direction).
-
Two physical inputs: IA (counting) and IB (down counting).
-
Three physical inputs: IA and IB on the incremental encoder and IZ ST_IZ (%IWr.m.c.2.6) on the encoder turn pulse.
|
Enable
|
|