Reading the source file into the IEC program

Proceed as follows to read the source file into the IEC program:

  • The source file is stored on the MOVI-C® CONTROLLER.
  1. Open the IEC project.
  2. Assign the file name of your source file to the input variable sFileName (ProfileGeneration>Camming>FileHandling>InterpolationHandler>IN).
  3. Assign the required interpolation method (LINEAR, POLYNOM_3, SPLINE) to the input variable eInterpolationSegmentMode (ProfileGeneration>Camming>FileHandling>InterpolationHandler>IN).
  4. Set the input variable xLoadPointsFromFile (ProfileGeneration>Camming>FileHandling>InterpolationHandler>IN) to "TRUE".
  • In the structure OUT (ProfileGeneration>Camming>FileHandling>InterpolationHandler), the output variable xPointsFromFileLoaded returns "TRUE" and the output variable sLastReadPointsFile provides the file name of the source file.
  • The values of the curve points are stored in the global variable list PointsList_AxisName.
  • A segment with linear interpolation is configured in the curve description in the global variable list CamDescriptionScheduler_AxisName.