<< Click to display table of contents >> Navigation: TiCon Base > Formula > Header > Definition > Function CT - Allocate Times with CTU, CTB, CTW |
For converting constants (or other variables) that are used in the formula definition into other times, the user has two options:
•Definition of the constant as parameter with the type K (German: Konstante = English: Constant) in the parameter list. By specifying the time type, the value can now be set to any desired time.
•Allocation of the value of the constant in the formula definition into another time with the function CTU.
Please note: |
For allocating the constants directly used in the formula definition also to other times than ttu, there is the function CTU. CTU is only allowed in time formulas. |
Syntax: CTU(M;K)
Parameter:
M Mode
K Constant
Description: The function CTU determines, depending on the mode, in which time(s) the ttu value K is entered
Mode |
ttb |
ttu |
tw |
trtb |
trtu |
trw |
1 |
K |
0 |
0 |
0 |
0 |
0 |
2 |
0 |
K |
0 |
0 |
0 |
0 |
3 |
0 |
0 |
K |
0 |
0 |
0 |
4 |
K |
K |
K |
0 |
0 |
0 |
5 |
0 |
0 |
0 |
K |
0 |
0 |
6 |
0 |
0 |
0 |
0 |
K |
0 |
7 |
0 |
0 |
0 |
0 |
0 |
K |
8 |
0 |
0 |
0 |
K |
K |
K |
9 |
K |
K |
K |
K |
K |
K |
The argument of the function CTU can also be a time element or a formula. In this case the ttu of the element or the formula will be allocated of the CTU determined time in the first argument.
The handling of the functions CTB and CTW is analogous for ttb and tw.