The inputs and outputs allow you to read values wired as inputs to a block or assign values to wired outputs from the block. The Calc/Logic block supports direct access to its inputs and outputs. The Action and Condition function blocks, however, do not have the ability to refer to wired inputs and outputs. The following examples show how a Calc/Logic block expression can use wired inputs and outputs:
The following expression multiplies the input, IN1, by 2.0 and pi to compute a temporary variable:
CIRCUM := IN1 * 2.0 * 3.14;
The following expression assigns the value of the input, IN1, to the output, OUT1:
OUT1:= IN1;
The following expression assigns the status field of input to the status field of the output:
'OUT.ST' := 'IN2.ST';
The single quotes are required when a parameter field (CV or ST) is appended.