MLCamSwitch
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. - Switches the 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. in a selected CAM object.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
BlockID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
ID number of an initialized CAM Pipe Block. |
ProfileID |
DINT |
-2147483648 to 2147483647 |
N/A |
No default |
Name of the new CAM Profile which is assigned to the CAM Pipe Block. It must be a declared profile object. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Default (.Q) |
BOOL |
|
|
Returns TRUE if the CAM Profile is changed. |
Remarks
- Can be used in combination with a comparator to verify profiles are switched at a time where the input and output values of both the old and new profiles are equal.
- This is so an Axis receives continuous position 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. values and does not jump.
- These profiles are created and initiated separately and the shape is created 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 is used to visualize, analyze, edit, and smooth profiles.
- See CAM Profile Switching for more information.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Switch CAM Profile
MLCamSwitch(PipeNetwork.CAM, Profiles.Profile_B);
See Also