In other words, the new step calls the same action. The added copy of the step contains the same entry action that was added above. Here you can also select another action, if required. The entry action Step0_entry now appears in the step properties under Entry action. Double-clicking the E to open the editor. The step Step0 is now marked with an E in the lower left corner. In the entry action Step0_entry you can now program instructions, which are to be executed once when the step Step0 is enabled. TwinCAT adds the action Step0_entry under the POU in the PLC project tree and opens the action in the editor. Enter “Step0_entry” as name and select the implementation language “ST”. For this example, retain the Copy reference default setting and confirm with OK. As long as it is disabled, the copied steps call the same actions as the current step. The duplication mode is defined in the step property Duplicate or Copy. If embedding is selected, new step action objects are created when the step is copied. This is used to specify whether the reference is copied to the existing step action objects or whether the objects should be “embedded” when the step is copied in the future. By default, a prompt appears for specifying the duplication mode for the step actions. In the SFC menu or the context menu select the command Add entry action.
0 Comments
Leave a Reply. |