MC_CamTblSelect

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Defined to read and initialize the specified profile.
Selects the Cam tables by setting the pointers to the relevant tables.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

0, 1

N/A

No default

Requests to queue the slave gear ratio move.

CamTable

STRING

No range

N/A

No default

Profile name as defined in the CAM ProfileClosed 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. Properties dialog.

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

BOOL

0, 1

N/A

No default

Selects if the profile is periodic.

See the Usage for more information.

MasterAbsolute

BOOL

0, 1

N/A

No default

Selects if master profile is absolute or relative.

See the Usage for more information.

SlaveAbsolute

BOOL

0, 1

N/A

No default

Selects if slave profile is absolute or relative.

See the Usage for more information.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

0, 1

N/A

Indicates whether this 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. block has completed without error.

Busy

BOOL

0, 1

N/A

Indicates this function block is executing.

Error

BOOL

0, 1

N/A

Indicates an invalid input was specified.

ErrorID

INT

No range

N/A

Indicates the error if the Error output is high.

See PLCopen Function Block ErrorIDs.

CamTableID

INT

0, 255

N/A

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

Remarks

Usage

FBD Language Example

Not available.

FFLD Language Example

IL Language Example

Not available.

ST Language Example

(* 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