Function BlockMC_CamTblSelectPLCopen motion icon

Description

This Function BlockA function block groups an algorithm and a set of private data. It has inputs and outputs. is defined to read and initialize the specified profile, returning an ID to be used with MC_CamIn function block.

Arguments

For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules

Input

Execute

Description

Requests to queue the slave gear ratio move

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

 

Default

CamTable

Description

Profile name as defined in the CAM Profile Properties dialog

 

Data type

STRING

 

Range

 

Unit

n/a

 

Default

Periodic

Description

Selects if the profile is periodic
(see also Usage section)

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

 

Default

MasterAbsolute

Description

Selects if master profile is absolute or relative
(see also Usage section)

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

 

Default

SlaveAbsolute

Description

Selects if Slave profile is absolute or relative
(see also Usage section)

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

 

Default

Output

Done

Description

Indicates the function block has completed successfully

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

Busy

Description

Indicates this function block is executing

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

Error

Description

Indicates an invalid input was specified

 

Data type

BOOL

 

Range

0, 1

 

Unit

n/a

ErrorID

Description

Indicates the error if the Error output is high

See table in PLCopen Function Block ErrorID Output

 

Data type

INT

 

Range

 

Unit

n/a

CamTableID

Description

Indicates the ID number of the profile to be used with MC_CamIn

 

Data type

INT

 

Range

0 - 255

 

Unit

n/a

Usage

Related Functions

    MC_CamIn

    MC_CamOut

Example

Structured Text

      (* MC_CamTblSelect ST example *) //call this function block every scan until "Done"
      
Inst_MC_CamTblSelect(DoSelect, 'Profileb', TRUE, TRUE, TRUE ); //Inst_MC_CamTblSelect is instance of MC_CamTblSelect
CamSelDone := Inst_MC_CamTblSelect.Done; //store Done output to user defined variable
IF CamSelDone = TRUE THEN//when function block is "done" store
CamTableID := Inst_MC_CamTblSelect.CamTableID; //CamTableID in user defined variable
END_IF;

See also how this function is used in the Hole punch project here

Ladder Diagram

MC_CamTblSelect: LD example

See also MC_CamIn for examples.

Go back to the top of the page [Top]

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™