MLProfileCreate

PLCopen motion icon Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Creates a new CAM ProfileClosed The position of a slave axis is mathematically linked to the position of a master axis. Example: A system where two rotating drums turn at a given ratio to each other. A more advanced case of electronic gearing is electronic camming. With electronic camming, a slave axis follows a profile that is a function of the master position. This profile need not be linear but it must be a mathematical function. Object for use in a PLCClosed Programmable Logic Controller - A digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events. ProgramClosed The act of performing a sequence of instructions or commands. or Pipe Network CAM block.

Inputs

Input

Data Type

Range

Unit

Default

Description

Name

STRING

No range

N/A

No default

Name of initialized CAM Profile

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

No range

N/A

Indicates the profile has been created.

See Pipe Network - General Rules.

ID

DINT

No range

N/A

Returns the ID number of the created CAM Profile.

  • If MLProfileCreate(...) fails, the ID is zero (NULL).
  • A CAM ProfileID = 0 (zero) is not valid for cam profile functions.

Remarks

This function blockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. is automatically called if a Profile is created in the Project Explorer with user-defined settings entered in the CAM Profile Properties screen.


  • Profile objects are normally created in the Project Explorer.
    You do not have to add MLCamInit function blocks to their programs.
    Right click the Profiles folder under PLC->Motion and click Add to create a new profile.
    Parameters are entered directlyClosed The orientation components of a vector in space. in a window and the code is automatically added to the current project.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Create a new Profile
Profile_A := MLProfileCreate( 'Profile_A' );

See Also