calculation logic block

Hi

What the different between the CALC Block and action block 

5 Replies

  • CALC blocks are going to execute the expression inside continuously.

    ACT blocks have an "IN_D" parameter that you can set to True or False to execute expression inside or not execute expression inside.
  • In reply to Nicholas Stom:

    so the Calc block not need the link to input to execute the expression can give me example please if can
    many thanks
  • In reply to Nicholas Stom:

    Another difference is the CALC block can have up to 16 floating point inputs and up to 16 floating point outputs (referenced as 'IN1' .. 'IN16' and 'OUT1' .. 'OUT16' within the expression). You can just configure the input values or wire something to them. Both can reference parameters outside of the block.
  • One more thing to note is that the controller loading is far higher for a CALC block than an ACT block.

    My preference is to use ACT blocks everywhere and justify calc blocks based on the number of parameters into / out of the block and if it is continuous logic such as a calculation

    If it is a condition and an action: The combination of a CND and an ACT block would be more appropriate than IF THEN ELSE statements in a CALC block.

    In other words, follow the naming convention. Use ACT's for actions and CALC's for calculations.