TwinCAT PLC Library Hydraulics - Version 1.4 — 4.5.12 MC_AxUtiUpdateRegDriveTerm_BkPlcMc (from V3.0.7)

PLCopen Motion Control RegData : Here, the address of parameter set should be specified, whose content is to be written into the terminal. Axis : Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Done : Indicates successful writing of the parameter. Busy : Indicates that a command is being processed. 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. Behavior 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 one of the pointers ST_TcPlcDeviceInput [ } 104] and ST_TcPlcDeviceOutput [ } 106] is not initialized, the system responds with Error and ErrorID :=dwTcHydErrCdPtrPlcMc. If the axis is enabled for operation, the system responds with Error and ErrorID :=dwTcHydErrCdNotReady. If Select is outside the permitted range of 0 to 63, the system responds with Error and ErrorID :=dwTcHydErrCdTblIllegalIndex. If an I/O module, which does not support parameter communication, is set as nDrive_Type in the axis parameters, the system responds with Error and ErrorID :=dwTcHydErrCdNotCompatible.

The value in ST_TcPlcRegDataTable [ } 109] .RegDataItem[...]. Access determines how the element is treated. ◦0: Element is ignored. ◦1: The register addressed through Select is read. Its contents are compared with RegData . If the contents differ, the write operation is aborted with Error and ErrorID :=16#FFFFFFFF. ◦2: The register addressed through Select is read. Its contents are compared with RegData . If the contents are not larger, the write operation is aborted with Error and ErrorID :=16#FFFFFFFF. ◦3: The register addressed through Select is read. Its contents are compared with RegData .

If the contents are not smaller, the write operation is aborted with Error and ErrorID :=16#FFFFFFFF. ◦4: The register addressed through Select is read. Its contents are compared with RegData . If the contents are not larger or equal, the write operation is aborted with Error and ErrorID :=16#FFFFFFFF. ◦5: The register addressed through Select is read. Its contents are compared with RegData . If the contents are not smaller or equal, the write operation is aborted with Error and ErrorID :=16#FFFFFFFF. ◦10: The register addressed through Select is written with RegData . ◦Other values are currently ignored. Future versions of the library may support additional functions.

An empty element should therefore always be identified with 0. A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the writing 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. PLC Library Hydraulics 210 Version: 1.4