PF_InitLog

Enables Part Feeding log file output and specifies the destination path.
This should be executed before PF_Start.
To output log files, the Controller must be connected to the PC on which RC+ is installed.
For more information on Part Feeding log files, refer to following.
Part Feeding Log File

Syntax
PF_InitLog part ID, output path, append

Parameters

  • Part ID
    Specify the part ID. (Use an integer from 1 to 32.)
  • Output path
    Specify the log file output destination path (file path on the PC + file name).
  • Append
    Set to True to append data when the specified output path exists.
    Set to False to overwrite the file.

Return values
None

Description
Run this function from the same task as the task running PF_Start. A log will not be created when this function is run from a different task.
Nothing will occur when using this function if the Part Feeding process has not been started.
A log will not be created when running this function while the Controller is not connected to the PC. Note that this will not cause an error to occur.
An error will occur when running PF_Start and the path does not exist, or when the system fails to write data to the file. Note that an error will not occur when running this function.
Cannot be executed from a virtual controller or command window.
User vibration commands(PF_Center, PF_CenterByShift, PF_Flip, PF_Shift) will be logged when they are executed inside of part feeding callback functions and PF_Start has been executed. If user vibration commands are executed when PF_Start is not running then the vibrations will not be logged.
This command uses Timer for internal processing. Refer to the following for further details.
Functions used by Part Feeding Process

Examples
Refer to the following for further details.
PF_Start / PF_Start Funtion