F160_DSQR

Redundant instruction

NOTE

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

The square root of the 32-bit data or constant value specified by s is calculated if the trigger EN is in the ON-state. The result (square root) is stored in d.

Parameters

Input

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

Source, 32-bit area to be calculated

Output

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

Square root (decimal places deleted)

Example

  1.  (1) Example value 64
  2.  (2) Result value 8
  3.  (3) 32-bit area
  4.  (4) Trigger: ON

Remarks

Related topics:

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