Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    24 tips (Advent calendar) for Control plus programmers

    24 tips (Advent calendar) for Control plus programmers

    SteffenR-
    Community Moderator
    Community Moderator

    Hey, it’s december. The time when the day starts with opening a door of an Advent calendar.

    Check out the official BCI Advent calendar on LinkedIn with some interesting piece of information every day.

    But just these days I noticed in a discussion that there are so many small improvements from Control plus bundle V1.0 to V2.3 that some of you maybe missed. What would be more obvious than showing you a tip every day ...

    #01  #02  #03  #04  #05  #06
    #07  #08  #09  #10  #11  #12
    #13  #14  #15  #16  #17  #18
    #19  #20  #21  #22  #23  #24

    24 REPLIES 24

    SteffenR-
    Community Moderator
    Community Moderator

    Clicking through the peripheral sequence can last a few minutes, but it saves you linking hundreds of PLC in-/outputs manually. The diagram shall help you if you don’t know what do. If you know what to do you can skip some steps:

    SteffenR_0-1639994453166.png

    Enhanced description:

    • Install device descriptions
      Only necessary if you want to add a bus device the first time on your laptop.
    • Read field bus from PLC IDE (without updating designators)
      Only necessary if you have changed the bus configuration in the PLC editor.
      If you just have renamed a bus device in the PLC editor use the last step instead of this one.
    • Write peripheral and IO designators to the PLC IDE
      It updates the bus configuration in the PLC editor.
      Only necessary if you did an EPLAN import or some renaming in Control plus Studio.
      Renaming of peripheral designators is more efficient in the PLC editor, see last step.
    • Control plus Studio export
      It exports the peripheral instances and the BinIo FB.
      Only necessary if have changed anything in the bus like a new slave or renaming an IO.
    • Build PLC project
      After a successful build the new PLC in-/outputs are available for linking with the bus.
      Only necessary if have changed anything in the bus like a new slave or renaming an IO.
    • Link IO with variables in PLC IDE
      It links the PLC in-/outputs with the bus device.
      Only necessary if have changed anything in the bus like a new slave or renaming an IO.
      You can shortcut this step in two ways, especially if you have added/changed only one or two devices:
      • Link the IO manually in the PLC editor.
      • Since Control plus Studio 5.3 you can link only single bus devices:
        SteffenR_1-1639989484746.png

         

    • Read fieldbus config from PLC IDE only to update designators
      Only necessary if you did a renaming of bus devices in the PLC editor.

    SteffenR-
    Community Moderator
    Community Moderator

    When you double click on Peripherals and select the IO tab you can see all in-/outputs within a peripheral tree. Here you can move in-/outputs via drag and drop without losing object parameters.

    SteffenR_0-1640070321874.png

    Copying or cutting and pasting is also possible for several in-/outputs by multiple selection.

    SteffenR-
    Community Moderator
    Community Moderator

    Since TwinCAT 3.1.4022 SFC actions can be "integrated" into a SFC step. That means the action is renamed automatically according to the step name and the whole action content is copied when copying a step.

    This is a huge improvement when using numbered step names:

    2021-12-22_09h39_07.gif

    You must set the option "duplicate on copy" for each step. To apply this setting for new steps set the general TwinCAT options like in the screenshot:

    SteffenR_0-1640162722317.png

    Some remarks:

    • "Integrated" actions automatically get the prefix "_a", e.g. _aN100_active. This is no problem for Control plus Studio V5, OES V4 or CodeChecker.
    • Since Control plus Studio V5.0 the chain templates use the parameter "duplicate on copy".
    • In TwinCAT 3.1.4022 renaming does not work automatically. Uncheck and check the checkbox "duplicate on copy". Since TwinCAT 3.1.4024 everything works automatically.
    • As this is a CODESYS feature ctrlX also supports this option.

    SteffenR-
    Community Moderator
    Community Moderator

    Contacting our helpdesk is most effective when using the email template out of Control plus Studio:

    SteffenR_0-1640243678049.png

    Alternatively use this forum to get in contact with the whole Control plus community.

    SteffenR-
    Community Moderator
    Community Moderator

    Hopefully only your cycle time is „falling“, not the Christmas tree.

    SteffenR_0-1640339393691.png

    Always record and save a measurement with the Cycle Time Assist app during/after final acceptance. This will help you and the operator to identify deviations due to faster or slower movements or communication times later. Analysing and comparing can also be done in the office with Cycle Time Diagnosis.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist