MLCamInit
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BlockID |
DINT |
-2147483648 to 2147483647 |
N/A |
CAM |
ID number of a created Pipe Block. |
ProfileName |
STRING |
No range |
N/A |
No default |
Name of the current profile assigned to the CAM. It must be a declared profile object. |
ModuloPosition |
LREAL |
No range |
User units |
360.0 |
Value of the period Motor systems having a reciprocating or oscillating motor that operates synchronously with the periodicity of the source which supplies the electrical energy. The period of execution of a pipe is the time spent between two successive computations of set values for the same pipe. The period of execution of a pipe is specified by the PERIOD parameter of the input pipe block. of the cam output values expressed in user units, for a cyclic system. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
|
|
Returns TRUE if the CAM Pipe Block 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 CAM Block is added to the Pipe Network, with user-defined settings then entered in the Pipe Blocks Properties screen.
- The CAM Pipe Block is used to generate motion profiles of any shape.
- These 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.
With the Pipe Network (PN) CAM block:
- The CAM block’s profile is in reference to the input positions Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. coming into the PN CAM block (Master Absolute)
- The PN CAM block output positions are in reference to PN CAM block’s output position at the end of the last CAM cycle (Slave Relative).
- 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.
- In addition, the offsets and ratios of CAM Profiles can be changed on the fly.
- See CAM Profile Switching for more information.
-
-
CAM objects are normally created in the Pipe Network using the graphical engine.
You do not have to add MLCamInit function blocks to their programs.
Parameters are entered directly The orientation components of a vector in space. in pop-up windows and the code is automatically added to the current project.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Initialize a Pipe Network block named “CAM” with a profile named “Profile_A”, set the cam modulo position to 360
CAM := MLBlkCreate( 'CAM', 'CAM' );
MLCamInit( CAM, 'Profile_A', 360.0 );
See Also