UNPACK8 block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
not defined in IEC-standard |
Graphical interface |
|
Available since |
version 1.50.0 (for Neuron Power Engineer) |
Functionality
The block transfers the value that is connected to the input IN
bytewise to the outputs OUT0
– OUT7
. In case of target systems saving data in little →endian format, the lowest significant byte of the input is transferred to the output OUT0
, the highest significant byte to OUT7
. A reversed behavior is true for target systems saving data in big endian format
Special cases (see under "Example for usage within ST-editor"):
-
If the size of the input value (number of bytes representing the data type) is > than the number of the outputs, only the lower significant input bytes are transferred.
-
If there are more output bytes than the input value contains, the higher significant output bytes remain not-initialized. In case of target systems saving data in little endian format, these are the outputs positioned in the lower part of the block.
In-/Outputs
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
input value |
Outputs: |
|
|
1st byte output value |
|
|
2nd byte output value |
|
|
|
3rd byte output value |
|
|
|
4th byte output value |
|
|
|
5th byte output value |
|
|
|
6th byte output value |
|
|
|
7th byte output value |
|
|
|
8th byte output value |
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
The following example is valid for target systems saving data in little endian format. The calculated values are evaluated by using the Assert
block.
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.