TwinCAT PLC Library Hydraulics - Version 1.4 — 4.2.6 MC_GearIn_BkPlcMc (from V3.0)

PLCopen Motion Control RampTime : [s] The required stopping time. Busy : Indicates that a command is being processed. Done : This indicates successful processing of the operation. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Active: Indicates that a command is being processed. CommandAborted : Indicates that processing of this command was canceled by another command. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred.

Behavior of the function block The function block is activated by a positive edge at Execute , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process: The stop can only be executed if the axis is actively carrying out a movement. If it is stationary, the function block immediately asserts the Done signal. If the axis is already in a fault state, or if it is in the process of carrying out a stop operation, it responds with Error and ErrorID :=dwTcHydErrCdNotReady.

If the axis is in a state, in which it is controlled by a coupling with another axis or a comparable mechanism, it responds with Error and ErrorID :=dwTcHydErrCdNotReady. The Stop operation begins if these checks can be carried out without problems. RampTime is used to calculate a deceleration, taking into account the reference speed. MaxJerk is used if a jerk-limiting control value generator is selected. If no value is specified for RampTime , which is recognizably greater than 0, the axis parameter fEmergencyRamp is used. An MC_Stop_BkPlcMc [ } 66] function block is used internally for slowing down the axis.

Once the control value output is reduced to 0, all control or regulating voltage outputs are suppressed, as long as Execute is set to TRUE. 4.2.6 MC_GearIn_BkPlcMc (from V3.0) The function block starts and monitors a coupling between two axes. To release the coupling, an MC_GearOut_BkPlcMc [ } 55] function block should be used. VAR_INPUT Execute: BOOL; RatioNumerator: INT; RatioDenominator: INT; Acceleration: LREAL; Deceleration: LREAL; Jerk: LREAL; (ab/from V3.0.5) BufferMode: MC_BufferMode_BkPlcMc:=Aborting_BkPlcMc; (ab/from V3.0.8) END_VAR PLC Library Hydraulics 51 Version: 1.4