PLCopen Motion Control A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the loading process is still active, the process that had started continues unaffected. The signals at the end of the operation ( Done, CommandAborted, Error , ErrorID ) are issued for one cycle. 4.5.9 MC_AxUtiReadCoeEncTerm_BkPlcMc (from V3.0) The function block reads the contents of a register from the EL terminal, which is used as encoder interface for the axis. VAR_INPUT Execute: BOOL; Pdata: POINTER TO BYTE:=0; ByteCount: BYTE:=0; Index: WORD:=0; Subindex: BYTE:=0; END_VAR VAR_OUTPUT Busy: BOOL; Done: BOOL; CommandAborted: BOOL; Error: BOOL; ErrorID:
UDINT; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Execute : A rising edge at this input starts the read process. Pdata : Here, the address of the variable is specified, in which the read value is to be output. ByteCount : Here, the size of the variable is specified in bytes. Index , Subindex : Here, the addressing of parameter in the terminal is specified. Busy : Indicates that a command is being processed. Done : Successful loading of the parameter is indicated here. CommandAborted : Indicates abortion of the read operation. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Axis :
Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behaviour of the function block The function block is activated by a rising 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: If the axis is enabled for operation, the system responds with Error and ErrorID :=dwTcHydErrCdNotReady. If Index or Subindex are outside the permitted range, the system responds with Error and ErrorID :=dwTcHydErrCdTblIllegalIndex. PLC Library Hydraulics 206 Version: 1.4