Parameters ¶ GetMappedAxisParameter (Method) GetParamType (Method)
Axis_REF_ETC_SML.GetMappedAxisParameter (METH) ¶ METHOD GetMappedAxisParameter : BOOL InOut: Scope Name Type Return GetMappedAxisParameter BOOL Input bRead BOOL diParameterNumber DINT Output diAxisParameterNumber DINT usiDataLength USINT
Axis_REF_ETC_SML.GetParamType (METH) ¶ METHOD GetParamType : SML_ParamType InOut: Scope Name Type Return GetParamType SML_ParamType Input diParameterNumber DINT
SML_TelegramReader_ETC (FB) ¶ FUNCTION_BLOCK FINAL SML_TelegramReader_ETC IMPLEMENTS SML_ITelegramReader InOut: Scope Name Type Input pETCITF POINTER TO SML_ETC_Slave Methods: Abort Execute Initialize IsActive Structure: Abort (Method) Execute (Method) Initialize (Method) IsActive (Method)
SML_TelegramReader_ETC.Abort (METH) ¶ METHOD Abort
SML_TelegramReader_ETC.Execute (METH) ¶ METHOD Execute
SML_TelegramReader_ETC.Initialize (METH) ¶ METHOD Initialize InOut: Scope Name Type Inout result SML_TgReadResult Input diAxisParameterNumber DINT
SML_TelegramReader_ETC.IsActive (METH) ¶ METHOD IsActive : BOOL InOut: Scope Name Type Return IsActive BOOL
MC_MoveVelocity_SML (FB) ¶ FUNCTION_BLOCK FINAL MC_MoveVelocity_SML Commands a never ending controlled motion with a specified velocity. Note To stop the motion, the motion has to be interrupted by another motion command. The output InVelocity is reset when the block is aborted by another block. The following figure shows two examples of the combination of two instances of MC_MoveVelocity_SML : The left part of the timing diagram illustrates the case if the second FB is started after the first one has reached the commanded velocity. The right part of the timing diagram illustrates the case if the second FB is started before the first FB has reached the commanded velocity. InOut: Scope Name Type Comment Inout Axis Axis_REF_SML Reference to the axis Input Execute BOOL Rising Edge: The motion is started Velocity LREAL Value of the commanded velocity (may be negative) (not necessarily reached) [u/s] Acceleration LREAL Value of the acceleration (always positive) (increasing energy of the motor) [u/s²] Deceleration LREAL Value of the deceleration (always positive) (decreasing energy of the motor) [u/s²] Output InVelocity BOOL Commanded velocity reached Busy BOOL The motion is not finished and new output values are to be expected CommandAborted BOOL The motion was interrupted by a motion command acting on the same axis Error BOOL Signals that an error has occured ErrorID SML_ERROR Error number
MC_Power_SML (FB) ¶ FUNCTION_BLOCK FINAL MC_Power_SML Controls the power stage of an axis and can be used to issue a quick stop. Note The inputs are only processed if Enable is set. A call of MC_Power_SML with bRegulatorOn=FALSE sets the axis state to PowerOff (disabled). A call of MC_Power_SML with bRegulatorOn``=``TRUE on a disabled axis sets the axis state to Standstill , if there is no error on the axis. If an error is detected, the state of the axis is set to ErrorStop . If the inputs Enable , bRegulatorOn and bDriveStart are ``TRUE but the output Status remains in FALSE for a long time, there may be a problem with the power stage, or an external halt may be set. If power fails (also during operation), the axis state is set to ErrorStop . InOut: Scope Name Type Comment Inout Axis Axis_REF_SML Reference to the axis Input Enable BOOL Enables the function block bRegulatorOn BOOL Enables the power stage bDriveStart BOOL Disables the quickstop mechanism Output Status BOOL Axis ready for motion bRegulatorRealState BOOL Effective state of the power stage bDriveStartRealState BOOL Effective state of the quickstop mechanism Busy BOOL Function block is executing Error BOOL Signals that an error has occured ErrorID SML_ERROR Error number