F89_EXT

Redundant instruction

NOTE

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

16-bit data is converted to 32-bit data without signs and values being changed. F89 copies the sign bit of the 16-bit data specified in s to all the bits of the higher 16-bit area (extended 16-bit area) in d.

Parameters

Input

s (WORD, INT, UINT)

16-bit source data area, bit 15 is sign bit

Output

d (DWORD, DINT, UDINT, DATE, TOD, DT)

32-bit destination area, s copied to lower 16 bits, higher 16 bits filled with sign bit of s

Remarks

If the sign bit (bit position 15) of the 16-bit data specified by s is 0, all higher 16 bits in the variable assigned to d will be 0. If the sign bit of s is 1, the higher 16 bits of d will be 1.

  1.  (1) Sign bit (0: positive, 1: negative)
  2.  (2) Source
  3.  (3) Bit position
  4.  (4) Binary data
  5.  (5) Decimal data
  6.  (6) start: ON
  7.  (7) Destination
  8.  (8) Higher (extended) 16-bit area
  9.  (9) Lower 16-bit area
Related topics:

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