PLCopen Motion Control If ByteCount or Pdata are outside the permitted range, the system responds with Error and ErrorID :=dwTcHydErrCdTblIllegalIndex. If an I/O module, which does not support parameter communication, is set as nEncoder_Type in the axis parameters, the system responds with Error and ErrorID :=dwTcHydErrCdNotCompatible. If problems occur during the ADS communication with the terminal, the corresponding ADS error code is returned as ErrorID , and Error is indicated. The following codes [ } 236] may occur: ◦16#0006 = 6 = The port number of the ADS address used is invalid: Check the mapping of the InfoData element of the terminal!
◦16#0007 = 7 = The AmsNetID of the ADS address used is invalid: Check the mapping of the InfoData element of the terminal! ◦16#0702 = 1794 = dwTcHydAdsErrInvalidIdxGroup = The terminal does not support the CoE protocol. ◦16#0703 = 1795 = dwTcHydAdsErrInvalidIdxOffset = The address in index and subindex is not supported in the terminal. ◦16#0745 = 1861 = dwTcHydAdsErrTimeout = Timeout. 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.10 MC_AxUtiReadRegDriveTerm_BkPlcMc (from V3.0) The function block reads the contents of a register from the KL terminal, which is used as drive interface for the axis. VAR_INPUT Execute: BOOL; Select: INT; END_VAR VAR_OUTPUT RegData: WORD; 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. Select : The register number should be transferred here. RegData : The read value is output here. 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. PLC Library Hydraulics 207 Version: 1.4