MC_GearIn, MCP_GearIn –  Engange the master/slave velocity ratio

Block SymbolsLicensing group: MOTION CONTROL
Qt SVG Document Exported by REXYGEN Studio uMaster uSlave Execute RatioNumerator RatioDenominator Acceleration Deceleration Jerk BufferMode yMaster ySlave InGear CommandAborted Busy Active Error ErrorID MC_GearIn Qt SVG Document Exported by REXYGEN Studio uMaster uSlave Execute yMaster ySlave InGear CommandAborted Busy Active Error ErrorID MCP_GearIn

Function Description

The MC_GearIn and MCP_GearIn blocks offer the same functionality, the only difference is that some of the inputs are available as parameters in the MCP_ version of the block.

The MC_GearIn block commands the slave axis motion in such a way that a preset ratio between master and slave velocities is maintained. Considering the velocity of master axis V elM and velocity of slave axis V elS, following relation holds (without phasing): V elS = V elM RatioNumeratorRatioDenominator. Position and acceleration is commanded to be consistent with velocity; position/distance ratio is also locked. This mode of synchronized motion is called electronic gear.

The gear mode is switched off by executing other motion block on slave axis with mode aborting or by executing a MC_GearIn block.

Similarly to the MC_CamIn block, ramp-in mode is activated if initial velocity of slave axis is different from master axis and gearing ratio. Parameters Acceleration, Deceleration, Jerk are used during ramp-in mode.

Inputs

uMaster

Master axis reference

Reference

uSlave

Slave axis reference

Reference

Execute

The block is activated on rising edge

Bool

RatioNumerator

Gear ratio Numerator

Long (I32)

RatioDenominator

Gear ratio Denominator

Long (I32)

Acceleration

Maximal allowed acceleration [unit/s2]

Double (F64)

Deceleration

Maximal allowed deceleration [unit/s2]

Double (F64)

Jerk

Maximal allowed jerk [unit/s3]

Double (F64)

BufferMode

Buffering mode

Long (I32)

1 ....

Aborting (start immediately)

2 ....

Buffered (start after finish of previous motion)

3 ....

Blending low (start after finishing the previous motion, previous motion finishes with the lowest velocity of both commands)

4 ....

Blending high (start after finishing the previous motion, previous motion finishes with the lowest velocity of both commands)

5 ....

Blending previous (start after finishing the previous motion, previous motion finishes with its final velocity)

6 ....

Blending next (start after finishing the previous motion, previous motion finishes with the starting velocity of the next block)

Outputs

yMaster

Master axis reference

Reference

ySlave

Slave axis reference

Reference

InGear

Slave axis reached gearing ratio

Bool

CommandAborted

Algorithm was aborted

Bool

Busy

Algorithm not finished yet

Bool

Active

The block is controlling the axis

Bool

Error

Error occurred

Bool

ErrorID

Result of the last operation

Error

i ....

REXYGEN general error

Example
image/svg+xmlvelocity2 30 ratio_numerator 2 ratio_denominator 1 position2 100 mode2 2 mode1 2 jerk1 0 execute2 [execute2] execute1 [execute1] direction2 2 deceleration2 20 deceleration1 10 axis_slave [axis_slave] axis_master [axis_master] acceleration2 50 acceleration1 25 MC_MoveAbsolute − block 2 uAxisExecutePositionVelocityAccelerationDecelerationJerkBufferModeDirectionyAxisDoneCommandAbortedBusyActiveErrorErrorID MC_GearIn − block 1 uMasteruSlaveExecuteRatioNumeratorRatioDenominatorAccelerationDecelerationJerkBufferModeyMasterySlaveInGearCommandAbortedBusyActiveErrorErrorID

image/svg+xml0 1 2 3 4 5 6 0 0.5 1 Execute bool Block 1 execute (GearIn) Block 2 execute (MoveAbsolute) 0 1 2 3 4 5 6 0 0.5 1 Active bool Block 1 active (GearIn) Block 2 active (MoveAbsolute) 0 1 2 3 4 5 6 −50 0 50 100 Acceleration acceleration Acceleration axis 1 − master Acceleration axis 2 − slave 0 1 2 3 4 5 6 0 10 20 30 40 50 60 70 Velocity velocity Velocity axis 1 − master Velocity axis 2 − slave 0 1 2 3 4 5 6 0 50 100 150 200 Position position Position axis 1 − master Position axis 2 − slave

2024 © REX Controls s.r.o., www.rexygen.com