Beckhoff EPP3504-0023 Short Manual page 92

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
      -4304843,-1307052,-3985937,-1037580,-3667109,-807951,
      -3348203,-614978,-3029375,-455472,-2710468,-326248,
      -2391562,-224117,-2072734,-145892,-1753828,-88385,
      -1434921,-48409,-1116093,-22776,-797187,-8300,
      -478281,-1792,-159453,-66,159453,66,
      478281,1792,797187,8300,1116093,22776,
      1434921,48409,1753828,88385,2072734,145892,
      2391562,224117,2710468,326248,3029375,455472,
      3348203,614978,3667109,807951,3985937,1037580,
      4304843,1307052,4623750,1619555,4942578,1978275,
      5261484,2386402,5580390,2847120,5899218,3363620,
      6218125,3939087,6536953,4576709,6855859,5279674,
      7174765,6051169,7493593,6894382,7812500,7812500
   ];
   // For CoE 0x8000 and 0x8005 - write values:
   // ===============================================
   wCoEIndexScaler :WORD := 16#8005; // CoE Index
   wState          :BYTE := 0; // Write status
   fb_coe_writeEx  :FB_EcCoESdoWriteEx; // Function Block for writing in CoE
   userNetId       :T_AmsNetId := '172.128.1.1.5.1'; // Have to be entered
   userSlaveAddr   :UINT := 1003; // Have to be entered
   bWriteLUT2CoE   :BOOL:=FALSE; // Sign for start writing
   bError          :BOOL:=FALSE; // Sign for any error
END_VAR
Remarks:
• The variable "startWrite" (BOOL) is also declared in sample program 4.
• The variable 'userNetId' must include the EtherCAT net ID of the device. It can be viewed in the
"EtherCAT" tab under "Device (EtherCAT)".
• The variable "userSlaveAddr" must contain the EtherCAT address of the box module.
Sample program for transferring the LookUp table:
Execution part:
// Example program 3:
// ###### Write LookUp table into CoE object 0x8005: #######
IF bWriteLUT2CoE THEN
CASE wState OF
   0:
      fb_coe_writeEx(bExecute := FALSE);// Prepare CoE-Access
      wState := wState + 1;// Next state
   1:
      // Write 100 X/Y LookUp-Table entries
      fb_coe_writeEx(
         sNetId:= userNetId,
         nSlaveAddr:= userSlaveAddr,
         nSubIndex:= 1,
         nIndex:= wCoEIndexScaler,
         pSrcBuf:= ADR(aLUT),
         cbBufLen:= SIZEOF(aLUT),
         bCompleteAccess:= TRUE,
         bExecute:= TRUE
         );
      wState := wState + 1; // Next state
92
Version: 1.2
EPP3504-0023

Advertisement

Table of Contents
loading

Table of Contents