MLCamInit

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. - Initializes a CAM Pipe Block 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..

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 periodClosed 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.

See Pipe Network - General Rules.

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 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:


  • 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 directlyClosed 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