The variable name in TBASIC are fixed: A , B, ....Z,
DM[1] to DM[4000], A$ to Z$. You can't define your own variable name such as "ch = 1" or "lmt = 4096". These terms "ch", "lmt" are used in the documentation syntax to illustrate their purpose. You can either put in constant directly into PIDdef or use the predefined variable name to contain the value.
You can't just put PIDCompute (1, E) as a standalone statement since PIDcompute is a function. i.e. PIDcompute must return a value and either to be assigned to a variable or used in an expression like what Ken did.