LECTURE - 23 |Decode | Encode |Select |

Publicado em: 23 Janeiro 2022
no canal de: PLC AUTOMATION MENTOR
83
9

*DECO: Decode
You can use the "Decode" instruction to set a bit in the output value that is specified by the input value.
The "Decode" instruction reads the value at the IN input and sets the bit in the output value whose bit position corresponds to the read value. The other bits in the output value are filled with zeroes. When the value at the IN input is greater than 31, a modulo 32 instruction is executed.

*ENCO: Encode
You can use the "Encode" instruction to read the bit number of the least significant bit in the input value and to send it to the OUT output.
The "Encode" instruction selects the least significant bit of the value at the IN input and writes its bit number to the tag in the OUT output.

*SEL: Select
Depending on a switch (G input), the "Select" instruction selects one of the inputs, IN0 or IN1 and copies its content to the OUT output. When the input G has signal state "0", the value at the input IN0 is moved. When the input G has signal state "1", the value at the input IN1 is moved to the output OUT.
All tags at all parameters must have the same data type.


Nesta página do site você pode assistir ao vídeo on-line LECTURE - 23 |Decode | Encode |Select | duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário PLC AUTOMATION MENTOR 23 Janeiro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 83 vezes e gostou 9 espectadores. Boa visualização!