Math (output instruction)

CPT instruction

Evaluates a whole arithmetic expression in one instruction.

CPT(number, expr, real)

Arguments

NameWhat it isAcceptsDefault
destinationWhat the instruction acts ona registerrequired
exprExpressionan expression—
realFloating pointtrue or falsefalse

Arguments are positional and this table is generated from the simulator's own instruction registry, so it always matches what the engine accepts.

Related instructions

All ladder logic instructions