*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.
In questa pagina del sito puoi guardare il video online LECTURE - 23 |Decode | Encode |Select | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PLC AUTOMATION MENTOR 23 gennaio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 83 volte e gli è piaciuto 9 spettatori. Buona visione!