Skip to content

Commit

Permalink
Update theory.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavkurhe27 authored Mar 28, 2022
1 parent 43c3b3e commit 02d3305
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions experiment/theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ The instruction blocks of up counter and down counter are as shown below.

<center><img src="images/img2.jpg" title="" /></center>

**Count Up (CU) Bit:** - The Count Up enable bit indicates the CTU instruction is enabled. The data type used is Boolean indicated as BOOL.
**Count Down (CD) Bit:** - The Count Up enable bit indicates the CTD instruction is enabled.
**Done (DN) Bit:** - The done bit changes state whenever the accumulated value reaches the preset value. The data type used is Boolean indicated as BOOL.
**Overflow (OV) Bit:** - The overflow bit indicates the counter exceeded the upper limit of 2, 147, 483, 647. The counter then roles over to -2, 147, 483, 648 and begins counting up again. The data type used is Boolean indicated as BOOL.
**Underflow (UN) Bit:** - The underflow bit indicates that the counter exceeded the lower limit of -2, 147, 483, 647. The counter then roles over to 2, 147, 483, 647 and begins counting down again. The data type used is Boolean indicated as BOOL.
**Preset (PRE) Bit:** - It specifies the value which the accumulated value must reach before the instruction sets the done bit. The data type used is Double integer indicated as DINT.
**Count Up (CU) Bit:** - The Count Up enable bit indicates the CTU instruction is enabled. The data type used is Boolean indicated as BOOL.\
**Count Down (CD) Bit:** - The Count Up enable bit indicates the CTD instruction is enabled.\
**Done (DN) Bit:** - The done bit changes state whenever the accumulated value reaches the preset value. The data type used is Boolean indicated as BOOL.\
**Overflow (OV) Bit:** - The overflow bit indicates the counter exceeded the upper limit of 2, 147, 483, 647. The counter then roles over to -2, 147, 483, 648 and begins counting up again. The data type used is Boolean indicated as BOOL.\
**Underflow (UN) Bit:** - The underflow bit indicates that the counter exceeded the lower limit of -2, 147, 483, 647. The counter then roles over to 2, 147, 483, 647 and begins counting down again. The data type used is Boolean indicated as BOOL.\
**Preset (PRE) Bit:** - It specifies the value which the accumulated value must reach before the instruction sets the done bit. The data type used is Double integer indicated as DINT.\
**Accumulator (ACC) Bit:** - It specifies the number of transitions the instruction has counted.
The timing diagram illustrates the functioning of all the bits in sequence.

Expand Down

0 comments on commit 02d3305

Please sign in to comment.