21 - 04 - 2025

Analog library

Block Around:

License: Hobby, Industrial

The block compares the inputs signal In with parameter AroundVal. The output IsAround will become to high value depending from parameter AroundType:

  • If AroundType=Around, output will be in high value when absolute value of (In-AroundVal)>=Difference;
  • If AroundType=AroundAndOver, output will be in high value when (In+Difference)>AroundVal;
  • If AroundType=AroundAndUnder, output will be in high value when (In-Difference)<AroundVal;

Parameter Difference is allowed fluctuation of input signal.

If the input SetAround becomes to high value, then parameter AroundVal will get the value of the input Around. The block will stop to work in low level of parameter Checking. If the input Checking is not connected, the block will work permanently.

Parameters:

  • AroundType;
  • AroundVal;
  • Difference;

 

Block CheckForChanges:

License: Hobby, Industrial

The block has an analogue input X, digital output Y and two parameters: CheckedDifference and CheckedSecs. If the changes of input X for last CheckedSecs seconds is under the value entered in parameter CheckedDifference, then the output Y will become to high value. For example the values of parameters are CheckedDifference=3.0, CheckedSecs=20, the input signal X for last 20 seconds moves from 55.0 to 57.0, the changes of input signal is under parameter CheckedDifference=3.0>(57.0-55.0)=2.0, this is the reason because the output Y will  become to high level. If the input Checking is in low level, the block doesn't work. If the input Checking is not conencted, then the block will work permanently.

Parameters:

  • CheckedDifference;
  • CheckedSecs;

 

Block AnalogSwitch:

License: Hobby, Industrial

The block has 4 analogue switches A, B, C, D. Every switch has two inputs, A has inputs A1, A2, B has inputs B1, B2 and etc. Which input to be connected to the output depends on value of input Index. If it is 1, the output of switch gets value of first input, if it is 2, the output gets second input value. 

Parameters: The block has not parameters.

 

Block AnalogSwitch8:

License: Hobby, Industrial

The block has one analogue switch with 8 inputs. Which input to be connected to the output depends on the value of the  input Index (1..8).

Parameters: The block has not parameters.

 

Block AnalogConst:

License: Hobby, Industrial

This block is very simple. Its output Y gets  the value of its parameter Const.

Parameters:

  • Const;

 

Block Between:

License: Hobby, Industrial

The block compares the value of the input CheckedX and the two inputs X1, X2. The outputs of the block become to high value when:

  • Larger - CheckedX is over X1 and X2;
  • Between - X1<=CheckedX<=X2;
  • Less - CheckedX is under X1 and X2;

 

Block AnalogInfo

License: Hobby, Industrial



The block analyzes the input signal X and sets the outputs of the block according to whether the input is positive, negative or zero.

Block's outputs:

  • Positive - is at high level if the input X has a positive value;
  • Zero - is at high level if the input X is zero;
  • Positive - is at high level if the input X has a negative value;