*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.
Auf dieser Seite können Sie das Online-Video LECTURE - 23 |Decode | Encode |Select | mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer PLC AUTOMATION MENTOR 23 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 83 Mal angesehen und es wurde von 9 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!