Fig. 33 Possible Structure For The "Measurement Range Combination" Sample Program - Beckhoff EPP3504-0023 Short Manual

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
Fig. 33: Possible structure for the "Measurement range combination" sample program
Program description / function
The FSV1 of channel 1 is selected as ± 5 V, the FSV2 of channel 2 as ±80 mV. The program takes the
measured input value from either channel 1 or channel 2 for a common variable depending on the magnitude
of the unsigned amount of the measured input value: Initially, the limit value of 107% of the FSV2 (8388607)
is verified.
In the CoE object directory, the following settings should be applied in the in the PAI settings objects,
according to the variables nFSV_HI and nFSV_LO:
0x8000:01 → ±5 V
0x8010:01→ ±80 mV
Scaling for both channels: "Extended Range"; no filters active (corresponds to the default setting of the
terminal).
Variables declaration:
PROGRAM MAIN
VAR CONSTANT
   nFSV_PDO              :  REAL := 7812500;
   nMAX_PDO              :  REAL := 8388607;
  
   nEXT_F                : REAL := nMAX_PDO/nFSV_PDO;
   nFSV_HI               :  REAL := 5;    // V
   nFSV_LO               :  REAL := 0.08; // V
   nStep_HI              :  REAL := nFSV_HI/nFSV_PDO;
   nStep_LO              :  REAL := nFSV_LO/nFSV_PDO;
END_VAR
VAR
   nSamplesIn1    AT%I*  :  DINT;
   nSamplesIn2    AT%I*  :  DINT;
   nValueCombi           :  LINT;
EPP3504-0023
Version: 1.2
109

Advertisement

Table of Contents
loading

Table of Contents