External output of a composite block
Classification | Images |
---|---|
Name: External output of a composite bloc Group: Composite blocks CannyLab version: from 2.0 |
Appearance: Icon: |
Outputs |
Input | Значение |
---|---|
- | Integer |
General description
An element of a functional diagram that allows transferring the results of the execution of a functional diagram of a compound block to the upper level of the diagram for further processing.
As a source of information for the element “External input of a compound block”, any available element of the functional diagram of a compound block can be used, for example, the output of a function block, a network, or a value from an external input of a compound block "
Features
The element “External output of the composite block” transfers the signal to the functional diagram of a higher level. Data can be transferred to the network, to the write register or to the input of a function block, thereby setting a value in the corresponding section of the diagram, synchronously with the change in the value of the external output of the composite block.
Examples
As an example, consider a composite block with one input and two outputs. In order to demonstrate how the program works, the name “Exit # 1” was changed to “Turn on traffic light”.
The value entering the input of the compound block is compared with a constant equal to two. The result of the logical comparison operation is sent to the external output of the “Turn on traffic light” composite block. The external output of the composite block “Input 0” receives the doubled value received at the input.
Make sure that at the top level of the functional diagram, the expected values are set at the inputs and outputs of the block.