F92_ENCO

Redundant instruction

Anmerkung

This is a redundant instruction. It is replaced by: FP_ENCODE

Encodes the contents of data specified by s according to the contents of n if the trigger EN is in the ON-state. The encoded result is stored in the 16-bit area specified by d starting with the specified bit position. Invalid bits in the area specified for the encoded result are set to 0.

Parameters

Input

s (WORD, INT, UINT)

starting 16-bit area to be encoded (source)

n (WORD, INT, UINT)

control data to specify the starting bit position and number of bits to be encoded

Output

d (WORD, INT, UINT)

16-bit area for storing encoded data (destination)

Remarks

Anmerkung
  • Put at least one bit into the area to be checked to avoid an error message from the PLC.

  • When several bits are set, the uppermost bit is evaluated.

Verwandte Themen

Letzte Änderung: 2019-01-24Feedback zu dieser SeitePanasonic Hotline