Navigation:  Equipments (Devices) > SCA06 > Ladder > Motion Control > Motion Control Gear >

MC_GearOut

Synchronism Finalization

Previous pageReturn to chapter overviewNext page

Block responsible for finalizing of the synchronism in position between the programmed axes.

 

Ladder Representation

 

MC_GearOut_block

 

Execution Features

 

Program Memory Size

28 Bytes

Data Memory Size

4 Bytes

 

Block Structure

 

Variable Type

Name

Data Type

Description

VAR_IN_OUT

Slave

BYTE

Selection of operation slave

(0 - Real axis)

(1 - Virtual 1 axis)

VAR_INPUT

Execute

BOOL

Block enabling

VAR_OUTPUT

Done

BOOL

Output enabling

Busy

BOOL

Flag indicating the block has not yet been ended

Error

BOOL

Error in the execution flag

ErrorID

WORD

Identifier of the occurred error

VAR

MC_GEAROUT_INST_0

MC_GEAROUT

Instance of access to block structure

 

Operation

 

When this block detects a leading edge on Execute it concludes the synchronism of MC_GearIn MC_GearInPos or blocks the programmed axis. The axis will keep the speed of the moment in which the block is executed.

 

When the MC_GearOut block is executed, the drive does not operate in grid position. In the execution of the block the axis status will change to ContinuousMotion.

 

When Execute has FALSE value, Done remains FALSE. The Done output is activated when the block finishes the execution successfully, remaining at TRUE level until Execute receives FALSE.

 

If there is any error in the execution, the Error output is enabled and ErrorID displays an error code according to the table below.

 

Code

Description

67

Drive in the "Disabled" or "Errorstop" status.

71

P202 different from 4.

73

Drive is not in the "Synchronized Motion" status.

78

MC block not executed – Internal fault.

 

Example in Ladder

 

MC_GearOut_example01

 

In the up transition of GEAROUT_EXECUTE, the MC_GearOut block is executed. With this, the Busy and Active signals of this block are set and synchronism concluded by other blocks of synchronism between master and slave. When the process finishes, the Done output of the block is set and remains TRUE while the Execute input is set.

 

Example in ST

 

 The example below displays the instructions for applying the example above in the ST language.

 

 

VAR

  GEAROUT_EXECUTE, DONE : BOOL;

  MC_GEAROUT_INST_0 : FB_MC_GearOut;

END_VAR

 

MC_GEAROUT_INST_0.Execute := GEAROUT_EXECUTE;

MC_GEAROUT_INST_0(Slave:=0);

DONE := MC_GEAROUT_INST_0.Done;