F92_ENCO

Redundant instruction

NOTE

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

NOTE
  • 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.

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline