MLProfileInit
Function 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. - Initializes a previously created CAM Profile 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 PLC 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. Program The act of performing a sequence of instructions or commands. or Pipe Network CAM block.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
ProfileID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
ID number of a created CAM Profile. |
FileName |
STRING |
No range |
N/A |
No default |
Filename used to save Profile on the computer's hard disk. |
InputScale |
LREAL |
N/A |
No default |
The input amplitude or X-axis multiplier applied to the CAM Profile. |
|
OutputScale |
LREAL |
No range |
N/A |
No default |
The output amplitude or Y-axis multiplier applied to the CAM Profile. |
InputOffset |
LREAL |
No range |
N/A |
No default |
The input offset or X-axis shift applied to the CAM Profile. |
OutputOffset |
LREAL |
No range |
N/A |
No default |
The output offset or Y-axis shift applied to the CAM Profile. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
|
|
Returns TRUE if a new CAM Profile is initialized. |
Remarks
This function block 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.
- Profiles are created and initiated separately.
- 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 Combines an axis or axes group (as slave) with an axis as master. The slave executes its path with synchronization to the progress of the master. This is linked to a one dimension source for synchronization. and without dead time.
- Offsets and ratios of CAM Profiles can be changed on the fly.
-
-
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 directly The orientation components of a vector in space. in a window and the code is automatically added to the current project.
-
-
Loading a Profile Editor-generated profile into a ProfileID released by MLProfileRelease should be done with care.
The MLProfileInit () function call can take in excess of 4 milliseconds to execute.
Application execution is suspended during this time until the function call is completed.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Initialize a previously created CAM Profile
MLProfileCreate( Profile_A , 'Profile_A.5op' , 360, 360, 0, 0 );
See Also