Operation | Variables Insert Variable Adds further variables to the task (do not use for PLC tasks as these variables should be specified within the PLC project). Delete Deletes corresponding variable from the list. Move Address Moves the address of the marked variable within the Process Image. Online Write Overwrites the current variable value with a user-defined value for one cycle. Online Force Overwrites the current variable value with a user-defined value until halted using Cancel Force. Release Force Cancels forced variable and restores the actual variable value. Add to Watch Adds the selected variable to the Watch Window [ } 26] .
You can carry out a continuous observation of the current online variable values. Remove from Watch Deletes the selected variable from the Watch window Create Linked Variable in Adds linked variable to an existing PLC project. 3.2.4 Variable links from the System Manager | Variable links from the System Manager Normally, input and output variables between controller and hardware are created in one task – either in the PLC or in an additional task. These variables are then linked with the corresponding hardware variables in the System Manager. However, in the Beckhoff TwinCAT software, another way is possible:
scan the existing hardware (or configure it manually) and generate PLC variables on this basis (or have them generated). This way will be described below – "Create linked variable in". Procedure A hardware variable should now be linked to a task (PLC) from the hardware configuration, even though no corresponding variable has been defined there at all yet. Create a hardware configuration in the System Manager manually or by scanning. Create a task that will administer the hardware. Fig. 1 shows the project "Test" with the task "Standard", the already existing inputs "InVar1" to "InVar4" and several outputs. TwinCAT 2 40 Version: 1.7