SMC_WriteCAM (FB)

 

FUNCTION_BLOCK SMC_WriteCAM

This function block is designed for storing a cam table created within the Cam editor into a file at runtime.

Note

This function block is only compatible to polynomial cams. Trying to save other cam formats (like point table) will result in an error.

InOut:

Scope

Name

Type

Initial

Comment

Inout

CAM

MC_CAM_REF

Input

bExecute

BOOL

FALSE

Rising edge: Starts the execution of the function block.

sFileName

STRING(255)

Name of the file, which contains the cam description in the defined ASCII format.

Output

bDone

BOOL

FALSE

TRUE: Cam has been written.

bBusy

BOOL

FALSE

TRUE Execution of function block has not been finished.

bError

BOOL

FALSE

TRUE: Error has occurred within the function block.

ErrorID

SMC_ERROR

0

Error identification