L_MC2P: Grid point-based curves can only be used with reservations (corrected from V3.10.0)

Corrected from:
- Library:  L_MC2P_Cam (FAST Motion) V03.10.00.00
  (contained in PLC Desginer V03.10.00.00 and higher)

 

Response of the new version:
The function restriction has been corrected. The described behaviour no longer occurs. 
 
 
What happens?
Exception in the control program.
 
When does this behaviour occur?
  • The CAM editor in the PLC Designer was used to create a curve by entering grid points.
  • The curve is linked to a CamRef object automatically generated by the CAM editor.
  • The behaviour occurs in the following actions:
    1.  ResetWarm, ResetCold
    2.  When changing a curve in the project in offline mode and downloading the new curve track (without downloading the project)
        --> in this case, communication with the PLC Designer will freeze as well (mains switching for the controller is required).
    3.  In the application, a new curve is read into the CamRef object which has already read in the grid-point table (irrespective of the format of the new cam track).

Which products are affected?
- Library: L_MC2P_Cam (FAST Motion)
  (contained in the PLC Designer)

Short-term measures:
Create the curve (CamTrack) as usual via the cam tool of the PLC Designer. Read the cam into a manually instantiated CamRef object of the application. 
The declaration can e.g. be performed in a global variable list.

Declaration example:
   CamRefUser_Data :ARRAY[1..XXX] OF L_MC2P_CamDataObject;
   CamRefUser :L_MC2P_CamRefFromFile := (sFileName := 'CamTrack1.lcp', itfCamData := CamRefUser_Data[1], udiCamDataCount := YYY, xReloadable := FALSE);
         XXX = (number of grid points / 3) + 2
         YYY  = (number of grid points / 3) + 1
         CamTrack1.lcp: Name of curve initially linked
         CamRefUser: CamRef object (corresponds to a CamRef object like the object in the CAM editor below the "Profile Reference" folder)
         CamRefUser_Data: Data array for the cam data to be read in.

-> The curve defined during initialisation will automatically be read in when the program is downloaded.
-> The generated "CamRefUser" instance can be directly connected with a cam-processing FB, e.g. MC_CamIn.
-> For information on how to reload cam data in active applications: see the documentation L_MC2P_CamRefFromFile.
Evaluation/recommendations:
 

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/201500238/1/
Contact form