Knowledge Base The path is not accessible from the location of the PLC runtime. This is possible, for example, if the path points to a network. Reading and/or writing is not allowed on this path. The path or file name is not spelled correctly. The backslash may be missing at the end of the path name. There is no corresponding file under the specified path name. The last cause listed always occurs when commissioning of a PLC application is started without an existing file. To create a file with default parameters, press the [Save] key to initiate a write operation with the initial parameter values.
The [Reset] key deletes the error state, and in this case the loading of the parameters from the file is repeated. If the problem cannot be solved by this procedure, it is caused by another of the listed causes. Data and commands The PlcMcManager only graphically displays variables from the PLC. Runtime values can be found in the AxisRef in stRtData. Parameters that are changed via the PlcMcManager must actively be written to the variables of the PLC via the Activate button. All values that have to be saved permanently are stored in the AxisRef under stAxParams. These parameters are saved by the PLC, not by the PlcMcManager.
If the axis is controller and feed enabled by the PLC with an MC_Power_BkPlcMc function block, it can be moved using the jog keys ( >, >). At this time it is still a simulated axis. The axis can also be commanded via the Position and Velocity fields. The movement command is executed via the Start button. 5.6 Sample programs (from V3.0) Structure of the application The application is largely made up of PLCopen function blocks. A selection of function blocks is available, which are equipped with an interface defined by the PLCopen. A number of examples are described below, which provide a good basis for project configuration.
Each example contains the project file, the required axis parameter files and a scope configuration. The axis parameter files must be stored in a folder on the target system. The file path must be adjusted in the global constant "cnst_ParamFilePath" of the project file. Example 1: Single axis For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007200854594443.zip For TC3: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007204192204171.zip The MC_AxUtiStandardInit_BkPlcMc [ } 182] function block loads the parameters and monitors the pointer addresses.
After the data has been loaded successfully, "bParamsEnable" becomes TRUE and the actual axis blocks are called. MC_AxStandardBody_BkPlcMc [ } 181] internally calls the required function blocks such as MC_AxRtEncoder_BkPlcMc [ } 135] , MC_AxRuntime_BkPlcMc [ } 167] , MC_AxRtFinish_BkPlcMc [ } 175] and MC_AxRtDrive_BkPlcMc [ } 125] . However, if a filter, a pressure regulator, a characteristic curve measurement or similar is required, the individual components must be called instead of MC_AxStandardBody_BkPlcMc [ } 181] . By using a MC_AxAdsCommServer_BkPlcMc [ } 198] function block the axis can be commanded via the PlcMcManager.
The MC_AxParamDelayedSave_BkPlcMc function block saves changes made by the PlcMcManager after a given time (here 10 s). Via the PlcMcManager you can log onto the target system and actively move the axis. Example 2: Multi-axis application For TC2: https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/ zip/9007200854596619.zip PLC Library Hydraulics 255 Version: 1.4