Breadcrumbs

CDRFLEx.save_sub_program

Features

The created DRL language program (task) is stored as a sub-program.

Parameter

Parameter Name

Data Type

Default Value

Description

iTargetSystem

SUB_PROGRAM

-

Refer to the Definition of Constant and Enumeration Type

strFileName

string

-

256-byte file name information

strDrlProgram

string

-

string buffer

Return

Value

Description

0

Failed

1

Success

Example

C++
string drl_string= "movej([0,0,0,0,0,0], 60, 30)";
            
Drfl.save_sub_program(SUB_PROGRAM_SAVE, "sub_test", drl_string.c_str());