Adding real assignment/calculation

Command for calculating and assigning a value of the data type REAL. The result of the calculation can either be assigned to a REAL variable or to the coordinate of a POSE variable. You can select for the two operands of the calculation whether these are a value, a REAL variable or the coordinate of a POSE variable. Examples:

POSE[1].Z := REAL[1] + 10

REAL[1] := REAL[2] + REAL[3]

POSE[1].Z := POSE[2].Z + REAL[2]

 

"New Block" value: "CALC_REALVAR"

[1]

Configuration of the target variable (target)

  • Storage location of SRL program variables
  • Data type of SRL program variables ("REAL", "BOOL" or "POSE")
  • Coordinate of POSE variables
  • Index of SRL program variables

[2]

Configuration of operand 1:

  • Value type ("var" for variables or "val" for constant values)
  • Storage location of SRL program variables
  • Data type of SRL program variables ("REAL", "BOOL" or "POSE")
  • Index of SRL program variables

[3]

Selection of the operator. Available operators: +, -, *, /

[4]

Button for adding/deleting another operand

Configuration of operand 2, see [1]