ExecuteBusyActiveInXxxErrorCommandAborted130BE944.10Case1 Case2 Case3Illustration 6.20 Behavior of the Execute/Inxxx Style FunctionBlocksCommandAbortedCommandAborted is TRUE when a commanded motion isinterrupted by another motion command. The reset-behavior of CommandAborted is like that of the outputDone. When CommandAborted becomes TRUE, the otheroutput signals are reset (see case 1 in Illustration 6.19 andIllustration 6.20).6.5.2.2 Function Blocks with Enable InputThe parameters are used with the rising edge of the Enableinput and can be modified continuously.Output exclusivityThe outputs Valid and Error are mutually exclusive,meaning that only 1 of them can be TRUE on 1 instance ofa function block at the same time. The outputs Valid, Busy,Error, and ErrorInfo are reset with the falling edge of Enableas soon as possible, depending on the cycle times of thePLC program and the point where Enable is reset.BusyThe output Busy reflects that the function block is workingand new output values can be expected. Busy is set at therising edge of Enable and stays set while the functionblock is performing an action. Keep the function block inthe active loop of the application program for at least aslong as Busy is TRUE, because the outputs may still change.EnableBusyValidError* ***130BE945.10Case1 Case2Illustration 6.21 Behavior of the Enable Style Function Blocks* Can take some time, depending on the functionality and theinternal stateValidThe Valid output is TRUE if a valid output value is available,and the Enable input is TRUE (see case 1 in Illustration 6.21).The relevant output value can be refreshed if the inputEnable is TRUE. If there is a function block error, the outputis not valid (Valid is set to FALSE). When the error conditiondisappears, the values reappear and the output Valid is setagain (see case 2 in Illustration 6.21).6.5.2.3 Error IndicationAll function blocks have 2 outputs that deal with errorsthat can occur while executing functionality. These outputsare defined as:• Error: Rising edge of Error informs that an erroroccurred during the execution of the functionblock.• ErrorInfo: Structure of DD_ERROR_ISD51x, whichconsists of the elements detailed in Table 6.1.VariablenameDatatypeDefault value DescriptionErrorID WORD ISD51x_ERR_NO_ERROR Contains uniqueerror identification.The error constantdefinitions are listedin the constants listFB_ErrorConstants.InstanceID UDINT 0 Contains uniqueidentifier of thefunction blockinstance that causedthe error. Can beused for centralerror handlingwithin a PLC project.Programming Programming GuideMG36D102 Danfoss A/S © 01/2017 All rights reserved. 1756 6