Chapter 8 Logic Instructions 
8-59 
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data 
type. 
  Function Explanation 
CTUD is used as an up counter for counting up and a down counter for counting down. 
  Precautions for Correct Use 
  The counter will not count down while Load is TRUE. 
  The counter will not count up while Reset is TRUE. 
  Programming Example 
  The variable table and program 
 
   
1
CTUD
EN ENO
QU
CTUD1
CU
CD
QD
Reset
Load
PV
CV
CTUD1_EN
CTUD1_CU
CTUD1_CD
CTUD1_Reset
CTUD1_Load
CTUD1_PV
CTUD1_QU
CTUD1_QD
CTUD1_CV