MC_GearIn (FB)

 

FUNCTION_BLOCK MC_GearIn

The function block couples the slave axis to the master axis specifying a certain velocity transmission ratio and applies a certain velocity ratio between master and slave velocity.

Time behavior of the coupling The slave axis is ramped up to master velocity. Coupling takes place once this is achieved. The distance lost during the synchronization is not made up.

While MC_GearIn is in operation, the transmission ratio can be changed by sequential MC_GearIn commands. To do this, no preceding call of MC_GearOut is necessary.

InGear is set as soon as the desired transmission ratio is achieved for the first time. After achieving synchronization, the type of synchroniza­tion depends on the current control mode. In the standard case, i.e. in the position control mode, coupling takes place with position values. For example, with a ratio of 1:2 the slaves are moved by exactly half the distance of the master.

As soon as InGear is TRUE, a position lock or only a velocity lock is system-specific.

GearIn.png

Ratio Reached: Transmission ratio achieved.

See also

InOut:

Scope

Name

Type

Initial

Comment

Inout

Master

AXIS_REF_SM3

Reference to master axis. Master needs not to be stationary.

Slave

AXIS_REF_SM3

Reference to slave axis

Input

Execute

BOOL

Rising edge: Starts the execution of the function block.

RatioNumerator

DINT

1

Numerator of the quotient for the desired transmission ratio

RatioDenominator

UDINT

1

Numerator of the quotient for the desired transmission ratio

Acceleration

LREAL

Target acceleration when coupling

Deceleration

LREAL

Target deceleration when coupling

Jerk

LREAL

Jerk in [u/s³]

Output

InGear

BOOL

TRUE: Coupling has taken place.

Busy

BOOL

TRUE: Function block is in operation.

CommandAborted

BOOL

TRUE: Execution has been interrupted by another function block instance operating on the axis.

Error

BOOL

TRUE: Error has occurred.

ErrorID

SMC_ERROR

Error identification