Beckhoff EPP3504-0023 Short Manual page 96

4-channel measuring bridge,(sg) full/half/quarter bridge, 24 bit, 10 ksps
Hide thumbs Also See for EPP3504-0023:
Table of Contents

Advertisement

Commissioning
      0.05676876756757213,
      0.0009722394088121363,
      -0.0560894442193289,
      0.06743018479714939,
      -0.03677629552114248,
      0.00027114381194760643,
      0.026329003448584205,
      -0.0525134329294473,
      0.05628409460964408,
      -0.00005849791174519834,
      -0.0729038234874446,
      0.0664029021294729,
      -0.007880289104928245,
      0.04299467480848277,
      0.03663651655662163,
      0
   ];
nValue :DINT; // Temporary variable
END_VAR
Execution part:
// Example program 5:
// writes filter coefficients of
// "User defined FIR Filter" (32)
// incl. example coefficients for band pass
// Note: writing possible, if CoE Object
// PAI Settings Ch.1 (0x8000:16) has value 32 or 33 set, only!
// (32 = User defined FIR Filter / 33 = User defined IIR Filter)
// ===============================================================
CASE wState OF
   0:
      fb_coe_write(bExecute := FALSE);// Prepare CoE access
      wState := wState + 1;// Go to next state
   1:
      //nValue := REAL_TO_DINT(DINT_TO_REAL(aFilterCoeffs[index]) *16384);
      nValue := LREAL_TO_DINT(aFilterCoeffs[index] * 1073741824); // Bit-shift factor: 2^30
      // Write filter coefficients (max. 40 entries)
      fb_coe_write(
         sNetId:= userNetId,
         nSlaveAddr:= userSlaveAddr,
         nSubIndex:= index,
         nIndex:= wCoEIndexUserFilterCoeffizents,
         pSrcBuf:= ADR(nValue),
         cbBufLen:= SIZEOF(nValue),
         bExecute:= TRUE,
         tTimeout:= T#1S
      );
      wState := wState + 1; // Go to next state
   2:
      // Execute writing to CoE
      fb_coe_write();
      IF fb_coe_write.bError THEN
         wState := 100; // Error case
      ELSE
96
Version: 1.2
EPP3504-0023

Advertisement

Table of Contents
loading

Table of Contents