Developer Portal Community

    We are still working on migrating to the new Bosch Connected Industry Online Portal. Stay tuned! Click here for the latest updates.

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    DataSetManager with OpconXml and public interface

    DataSetManager with OpconXml and public interface

    Hudson
    Established Member

    Hello,

    I would like to ask some implementation questions about PLC side, when use setup control of MES.

    1.Should I configure the OpconXml in the DataSetManager ?

    2.If select OpconXml, the DDL events will be sent by DataSetManagerAddon automatically  during executing load data command  or I need to create DDL events based on the xml file exported by Cpstudio?

    3.if it is sent automatically, where can I find the structure 'DataAccessHead' and assign specific value, for example: type number

     

    another question about public interface:

    is it possible to use the xml and OPC UA at the same time? I mean telegram use xml, DatsSetManger use public interface

    thank you~

    4 REPLIES 4

    RottG
    Established Member

    Hi,

    You need to create seperate DDL events (dataDownloadRequired, etc.) for the XML communication.

    DataSetManager is only for accessing and handling the datafiles (TypeData, StationData, etc.) on the PLC, and also for OPC-UA communication. With XML, you need to manually assign the variables to the telegram items and then call the execution of the event.

    For the 2nd question, I think you can only use one adapter per station (either XML or OPC-UA).

    Hudson
    Established Member

    thank you for the response^^

    SteffenR-
    Community Moderator
    Community Moderator
    1. You should configure DataSetManager to what you need in your project:
      • local DAT files, accessable with DataSetAccess service or
      • data from MES via OpconXml
      • data from MES via Public Interface (OPC UA)

    2. RottG's answer is a bit outdated 😃  Since NxDataSetManager V1.2 (2022) it supports OpconXml and includes already a dataDownloadRequired instance. No additional code and no additional DDL event are necessary.
      Like for all other OpconXml DDL Events you just need a DDL connection (usually one connection for the whole machine):
      SteffenR_0-1684187289360.png
    3. The example code in the documentation is the same for every target service. That means DataSetManager.ParCmd.DataLoad.DataSetName is used for the dataset name in the dataAccessHead structure.

      Your additional question:
    4. One addon instance can use only one target service (OpconXml or DataSetAccess). If you want to use both OpconXml and DataSetAccess service at the same time, use two instances (that means both instances must be controlled in the application).
      The target service can be changed via ParCfg (not ParImm like the documentation of V2.0 describes), but I am not sure if this is completely tested.
      What is your use case to use both OpconXml and DataSetAccess? Switch MES off/on?
      Independent of that (two addons or changing service) it remains the application's task to synchronize the DAT file with the MES data.

    Hudson
    Established Member

    Thank you so much~ ^^

    Acutually my request is that the DataSetManager can be switched quickly with minimal project changes, when the MES is online/offline.

    1.About additional question, I mean that like partProcessed telegram use the OpconXml, but DataSetManager use public interface OPC UA/local service, I see comment if I set the target service to OpconDataSetTargetService.PAR_IMM, it can be switched between local and OPC UA, but I am not sure if the two communication methods can be worked at the same time between MES and PLC. and if can, I do not know how is it working, after setting, for example: if executing the command Data_load, MES will transfer data of the type data shadow structure to PLC directly during the Data_load process?

    2.as you mentioned, if I use the OpconXml for DataSetManager, after Data_load command, PLC will get data via dataDownload telegram from MES, then check the plausibility of shadow data, next if the apply set to true, the shadow data will be transfer to the active stucture? if the local .dat file will be also created during this procedure? , is there any creating new local file command?

     

     

    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