Digital library

Block And

Block AndUni

Logical AND operation over up to 50 input signals. The block has an Input property, which allows easy to set number of inputs.

Block AndNot

Represents the logical AND operation overtwo input signals. The AND result is converted with negative logic. The block has no parameters.

Block Or

Logical OR operation over two input signals.

Block OrUni

Logical OR operation over up to 50 input signals. The block has an Input property, which allows easy to set number of inputs.

Block OrNot

Represents the logical OR operation overtwo input signals. The OR result is converted with negative logic. The block has no parameters.

Block Not

Negative logical operation.

Block EnableUni

The user can add many twin-sets of inputs/outputs. Every output is equal to logical AND between corresponding input of the twin-set and the input Enable. The block is suitable to Enable/Disable many devices together.

Parameters:

InOut – can change the number of twin inputs/outputs;

NegativeEnable - if the parameter is checked, then every outpu is logical AND between corresponding input and NOT of input Enable;

Block OnOffPWM

Very powerful block which can be used for description of time periods for Pulse-Width Modulation (PWM):

When the period starts, the output signal becomes in high level, at the end of period, the output signal becomes in low level. It is possible to define many different periods in one block for every different day of the week. Every subsequent period is separated from the preceding with the ‘&’ symbol. Format of a period is:

Second part is time period description – start time in format hh.mm, stop time in format hh.mm, duration of the ON period, duration of the whole On-Off period. Elements of the second part are separated with a dot;

First and second part are separated with symbol ‘;’.

Parameters:

TimeDescription – description of time periods.

Examples:

1.2.3.4.5.6.7;7.40.22.50.2.10 - At days of week 1, 2, 3, 4, 5, 6, 7, the output will gets High level in period between 7.40h and 22.50. High level in this period will continue 2 minutes, then it will change to Low level for 10-2=8 minutes, then again 2min Hi and 10-2=10min Low. At 22.50 output will be Low until 7.40, then it will start again 2 High, 10-2=8 Low....

1.2;7.40.22.50.2.10&5.7;12.10.17.20.6.8 - At day of week 1 and 2 (Monday and Tuesday) the output will switch from High for 2 min to Low for 10-2=8 min between 7.40h and 22.50h. At day of week 5 and 7 (Friday and SunDay) the output will switch to High level for 6 min and Low for 8-6=2 min between 12.10h and 17.20h

Block PWMSec

When the Start input gets High level, the output will begin to switch from low to high level and vice versa. High level will continue OnSec seconds then it will switch to low lever for OffSec seconds. Switching between high and low level will stop when the input signal Start gets low level.

Parameters:

OffSec - time of output in seconds in low level;

OnSec - time of output in seconds in high level;

Block DigitalDivider

This block divides input signal by parameter Divider. On every Divider input changes from 0 to 1, the output will change once;

Parameters:

Divider;

Block BoolConst

When the block runs, the output Out of the block is equal to the value of the Const parameter.

Block XOR

The output Y of the block returns a logical exclusive Or of inputs X1, X2.

The block's truth table is:

X1 X2 Y0 0 00 1 11 0 11 1 0

Block FlipFlop

The block has two inpus, the truth table is shown below:S R Y0 0 Remain same as last state1 0 1 0 1 01 1 0

Block FrontChecker

The block is very powerful. It can check for changes of the level (low, high, or both front) of an unlimited number of digital inputs. For example, if the parameter Inputs is set to 3, the block will have 3 digital inputs X1, X2, X3. If the parameter CheckType is set to HiFront and one of the inputs X1, X2 or X3 is changed from low to high level, the output of the block Out will become for a short time at high level.

Block's parameters:

Inputs - sets the number of monitoring for front changes inputs;

CheckType - specifies the front of the check, can accept values: HiFront (meand low to high), LowFront (means high to low), Both;

NegativeEnable - if the parameter is checked, the block will stop to work if the input Enable is in high level;

Block's inputs:

Enable - if the input is conencted, the block will stop to work if the input is in low level. If the input is not connected, the block will works always;

Block's outputs:

Out - becomes at high level for short time, if there is a front in any monitoring inputs;