FunctionMLProfileCreatePLCopen motion iconPipe Network motion icon

Description

Creates a new Profile Object for use in a PLCClosed "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is 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 Program or Pipe Network CAM block. This function block is automatically called if a Profile is created in the Project Explorer, with user-defined settings then entered in the CAM Profile Properties screen.

Profiles are created and initiated separately and the shape is modified with the CAM Editor. With the Editor profiles can be changed graphically or by manually changing values in a numeric table relating input and output values with specific slopes. The Cam Editor software tool provides the capability to visualize, analyze, edit, and smooth profiles.

Profile switching can be done on the fly, without losing synchronization and without dead time. In addition, the offsets and ratios of CAM Profiles can be changed on the fly.


  • Profile objects are normally created in the Project Explorer. Then you do not have to add MLCamInit function blocks to their programs. By right clicking the Profiles folder under the PLC->Motion Tree, you can select Add new profile. Parameters are entered directly in a pop-up window, and the code is then automatically added to the current project.

Arguments

Input

Name Description

Name of initialized CAM Profile

Data type

STRING

Range

Unit

N/A

Default

Output

OK Description

Indicates the profile has been created

See more details here.

Data type

BOOL

ID Description

Returns the ID number of the created CAM Profile. If MLProfileCreate(...) fails, then the ID is zero (NULL). A cam ProfileID = 0 (zero) is not valid for cam profile functions.

Data type

DINT

Unit

N/A

Related Functions

MLProfileInit

MLCamInit

Example

Structured Text

 

//Create a new Profile

Profile_A := MLProfileCreate( 'Profile_A' );

 

Ladder Diagram

MLProfileCreate: LD example

Function Block Diagram

MLProfileCreate: FBD example

Go back to the top of the page [Top]