Modbus and cFP-DI-304 data packet

I’m using a host computer to communicate with the cFP-DI-304 using Modbus over Ethernet.
When the cFP-DI-304 (revision D) is polled, it is returning incorrect data (looks like a timing issue). What is the sequence and data package when the cFP-DI-304 gets polled?  Does the data sequence starts from pin 1 to pin 32, pin 32 to pin 1, or some other combination? Also is the package 8 or 16 bits?

Please post any VI's you have for doing this communication.  Is the cFP-DI module on a backplane with a cFP controller or a communications module?
I'm not familiar with using ModBUS to communicate with individual cFP modules.  The usual method is to use datasockets or shared variables.

Similar Messages

  • How to skip an entire data packet while data loading

    Hi All,
    We want to skip some records based on a condition while loading from PSA to the Cube, for which we have written a ABAP code in Start Routine .
    This is working fine.
    But there is a Data packet where all the records are supposed to be skipped and here it is giving Dump and Exception CX_RSROUT_SKIP_RECORD.
    The ABAP Code written is
    DELETE SOURCE_PACKAGE WHERE FIELD = 'ABC' .
    And for a particular data packet all the records satisfy the condition and gets deleted.
    Please advice how to skip the entire data packet if all the reocrs satisfy the condition to be deleted and handle the exception CX_RSROUT_SKIP_RECORD .
    Edited by: Rahir on Mar 26, 2009 3:26 PM
    Edited by: Rahir on Mar 26, 2009 3:40 PM

    Hi All,
    The Dump I am getting is :
    The exception 'CX_RSROUT_SKIP_RECORD' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program 'GPD4PXLIP83MFQ273A2M8HU4ULN'
    has to be terminated.
    But this  comes only  when all the records in a particular Data Packet gets skipped.
    For rest of the Data Packets it works fine.
    I think if the Data Packet(with 0 records) itself can be skipped this will be resolved or the Exception will be taken care of.
    Please advice how to resolve this and avoid 'CX_RSROUT_SKIP_RECORD'  at earliest .
    Edited by: Rahir on Mar 27, 2009 6:25 AM
    Edited by: Rahir on Mar 27, 2009 7:34 AM

  • Upload data packet manually.

    Hi all ,
    I had just concluded an init upload from PSA to cube.
    Simultaneously I was trying to upload some of the packets manually, at times ,to speed up the process.
    Fine , all was going right.
    The following day i noticed my request in Red and 2 of the data packets giving the same error   :
    Data packet 000007 from request REQU_40HAPL9LAUVI6N0IP9P44DK0W is blocked
    Data packet 000008 from request REQU_40HAPL9LAUVI6N0IP9P44DK0W is blocked
    I was unable to upload these two data packets manually.
    I have to run the process again.
    Can anyone help me with the explanation  ???
    What does it mean by getting blocked.
    There wasn't any short dump either.
    Thanks in advance
    Shalabh

    Hi Roberto ,
    Message Class   RSM1
    Message No.  405
    Shalabh

  • Missing data packet in PSA?

    Dear BWers,
    I tried to load data into PSA (only PSA) from a flat file in the BI 7.0 system. I got an error message in data packet 195, record 766. Now when i tried to correct the error manually in the PSA, i am not able to find the data packet 195. The entire data packet is missing.Strange enough I see all other data packets in the PSA. Is there something that i am missing? Please give your thoughts.
    Thanks
    Raj

    Hi
    What is the setting you have given in error handling in Scheduler.
    If you have give no data loding for erroneous data packet it would not be loaded
    Check that setting and load all the data packets
    then correct that in PSA manually and reload the data
    Hope this helps
    Cheers
    N Ganesh

  • CFP-DI-304 reading bitmask instead of data

    I have six machines running concurrently, and they each use two cFP-DI-304s to read proximity switches on valves.  So, if the valve is open, it reads one number, if it's closed, it reads another, and if it's interim, it reads zero.  The prox switches use two channels apiece, and I can read them in MAX individually, and in my program by reading the entire module and bitmasking the returned data to select the two channels I want.  All the machines have worked fine up until this morning.
    One of the valves is returning its bitmask instead of it's Open value.  For example, say the Open value is normally 4 and the closed value is normally 8.  The Open value is now returned as 805306368, or 0x30000000, it's bitmask.  This only happens on one of the six machines, so I don't think I changed a setting accidentally.
    Has this ever happened to anyone before?  None of the wiring has been changed, and the data is verifiable in MAX.
    =============
    XP SP2, LV 8.2
    CLAD

    those states return complex numbers
    =============
    XP SP2, LV 8.2
    CLAD

  • Data package and data packet

    Hit
    i want to know the difference between data package and data packet .when this comes in sap bw
    with regards
    tushar

    Hello,
    Data package term is related to DTP which is used to load Data from PSA to further Data Targets
    Start and end routine works at package level so routine run for each package one by one .By default package have sorted data based on keys (non unique keys (characteristics )of source or target) and by setting semantic keys you can change this order.So Package having more data will take more time in processing then package have lesser data .
    Data Packet Term is related to Info Package which is used to load data from Source System to BI (PSA).
    As per SAP standard, we prefer to have 50,000 records per one data packet.
    For every data packet, it does commit & save --- so less no. of data packets required.
    If you have 1 lakh records per data packet and there is an error in the last record, the entire packet gets failed.
    Hope it helps!

  • In data packet level error like red and .......... like symbol  how  r?

    hi expert,
    in data packet level error like red and .......... like symbol  how  would i rectified
    this type error please expert give me solution  i will be give point  friends bye

    Hi
            If it is the delta update,make the status of that on as STATUS NOT OK and repeat the infopackage again.if it is full run the IP simply.check the data has came to PSA or not,if it has came u push it manually to targets

  • Regrd the data packet size

    Hi
    i have two questions
    1) where can i set the data packet size in BW and R3 and also in BI how and where can we set .
    2)by what method/logic we will select the key fields in dso.
    ex: i have 5 tables in the sourse and each table will have primary keys, now how do we know that particular primary keys should be kept in KEY FIELDS folder in DSO.
    full points will be assigned.

    HI,
    Data package settings for the data to be extracted from R3 to BI can be done through :
    1) SBIW>General Settings> Maintain Control Parameters for Data Transfer
        These settings are common for all the info packages which extract data from R3.
    2) If u want to do settings relevent to specific Infopackage then :
    RSA1>Click On the Specific Infopackage>Scheduler(in the Menu Bar)-->DataS Default Data Transfer.
    3) And if you want to do DSO Package settings then:
    Got to Transaction RSODSO_SETTINGS 
    Here u can do package settings for DSO activation ,paramenter for SID generation ect.
    And selection of Key fileds depends upon the requirement.
    Based on the key fields what all the data fileds u want to overwrite or add the corespomding data fields
    Regards,
    Chaitanya.

  • How to set the data packet in order??

    we have 20 datapackets that is in sequence order how to set in order wise ?
    Example:- this is the scenario Data packets is in this order 20,1,10,5,9,13,4,8,13,2,15,19,14Like this
    I have to set in order wise how to doit??????

    HI
    I think you sjust should use a process chain.
    Call transaction RSPC and build it within the order needed.
    regards
    Tom

  • Data packets/size - Generic extractor

    Hi all,
    We built a custom function module based datasource and it is extracting data to BW in one big packet of 900,000+ records and the load is taking about 18 hours. We are trying to spilt the BW extraction into smaller data packets to improve performance but unable to do so. Following is our extraction program...
    Please let me know where we are doing it wrong...
    This Program fetches/build e_t_data. The issue is, program does not splitting into packets as the SAP standard program does.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_DATAPAKID) TYPE  SBIWA_S_INTERFACE-DATAPAKID OPTIONAL
    *"  TABLES
    *"      E_T_DATA STRUCTURE  Z0333W OPTIONAL
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
      DATA: lr_range_name TYPE rsselect-fieldnm.
      DATA: st_e_t_data TYPE z0333w.
      STATICS: l_cursor TYPE cursor.
      STATICS: called(1) TYPE c VALUE 'N'.
    Maximum number of lines for DB table
      STATICS: l_maxsize TYPE sbiwa_s_interface-maxsize.
      FIELD-SYMBOLS: <l_range> TYPE ANY,
                     <l_t_range> TYPE STANDARD TABLE.
      IF i_initflag = 'X'.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Fill parameter buffer for data extraction calls
        g_s_interface-requnr    = i_requnr.
        g_s_interface-isource   = i_dsource.
        g_s_interface-maxsize   = i_maxsize.
        g_s_interface-initflag  = i_initflag.
        g_s_interface-datapakid = i_datapakid.
        g_flag_interface_initialized = sbiwa_c_flag_on.
        REFRESH g_t_select.
        REFRESH g_t_fields.
        APPEND LINES OF i_t_select TO g_t_select.
        APPEND LINES OF i_t_fields TO g_t_fields.
      ELSE.
    first data package of first table -> open cursor
        IF g_counter_datapakid = 0.
    *--Get selection ranges
          LOOP AT i_t_select.
            MOVE-CORRESPONDING i_t_select TO <l_range>.
            APPEND <l_range> TO <l_t_range>.
          ENDLOOP.
          l_maxsize = g_s_interface-maxsize.
    fetch plants for the company code
          PERFORM get_plants.
    fetch mast data into internal table as we will be using MAST for validation
    of whether BOM exist or not.
          SELECT * FROM mast INTO TABLE it_mast
                             WHERE stlan = '1' OR stlan = '6'.
          SORT it_mast BY matnr werks stlan.
    Material BOM information
    First data package -> OPEN CURSOR
         OPEN CURSOR WITH HOLD l_cursor FOR
        SELECT mast~matnr
               mast~werks
               mast~stlnr
               mast~stlan
               mast~stlal
               stko~stlty
       FROM mast INNER JOIN stko
         ON stkostlnr = maststlnr AND
            stkostlal = maststlal
       FOR ALL entries IN gt_werks
      WHERE mast~matnr IN gr_matnr AND
            mast~werks IN gr_werks AND
            mast~stlan IN gr_stlan AND
            mast~werks = gt_werks-werks AND
            mast~stlal = '01' AND
            stko~stlty = 'M'  AND                    "Material BOM only
            ( maststlan = '1' OR maststlan = '6' ).
        ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        REFRESH: gt_mat_bom,gt_mat_bom1.
        FETCH NEXT CURSOR l_cursor
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE  gt_mat_bom
                   PACKAGE SIZE i_maxsize.
        IF sy-subrc <> 0.
          CLOSE CURSOR l_cursor.
          RAISE no_more_data.
        ELSE.
    get BOM data and fill E_T_DATA
          PERFORM get_bom_data TABLES e_t_data.
        ENDIF.
    Increment Package
        g_counter_datapakid = g_counter_datapakid + 1.
      ENDIF.
    ENDFUNCTION
    Thanks,
    Anirudh.

    I'm not sure, but this might help:
    * Fetch records into interface table.
    * named E_T_'Name of extract structure'.
      DO.
        REFRESH: gt_mat_bom,gt_mat_bom1.
        FETCH NEXT CURSOR l_cursor
          APPENDING CORRESPONDING FIELDS
          OF TABLE gt_mat_bom
          PACKAGE SIZE i_maxsize.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
    * get BOM data and fill E_T_DATA
          PERFORM get_bom_data TABLES e_t_data.
        ENDIF.
    * Increment Package
        g_counter_datapakid = g_counter_datapakid + 1.
      ENDDO.
      CLOSE CURSOR l_cursor.
      RAISE no_more_data.
    Rob

  • Need help in logging JTDS data packets

    Hi All,
    I m having web application which uses SQL Server database.
    I have to find out some problems in database connection for that there is need to log the jtds data packets.
    I have tried to use class net.sourceforge.jtds.jdbc.TdsCore but in constructor of TdsCore class there are two parameters needed one is ConnectionJDBC2 and another is SQLDiagnostic.
    I have tried a lot but it did not allow me to import class *SQLDiagnostic*.
    I need help in logging JTDS data packets. If there are any other ways or any body having any idea about logging JTDS data packets/SQLDiagnostic.
    Please reply it is urgent...!!
    Thanks in advance......!!

    if you want to use log4j then,
    in your project create a file called log4j.properties and add this
    # Set root logger level to INFO and its only appender to ConsoleOut.
    log4j.rootLogger=INFO,ConsoleOut
    # ConsoleOut is set to be a ConsoleAppender.
    log4j.appender.ConsoleOut=org.apache.log4j.ConsoleAppender
    # ConsoleOut uses PatternLayout.
    log4j.appender.ConsoleOut.layout=org.apache.log4j.PatternLayout
    log4j.appender.ConsoleOut.layout.ConversionPattern=%-5p: [%d] %c{1} - %m%n
    log4j.logger.org.apache.jsp=DEBUG
    #Addon for
    com.sun.faces.level=FINEGo to your class and add this line
    private static final Logger logger = Logger.getLogger("classname");and then you can use
    logger.info();
    logger.error();
    methods

  • Maximum size of a data packet

    The maximum size of data packet set in configuration is 25MB.
    I want to change the size of data packet as 50 MB. I don't want to change it globally(in SPRO). I want to change it only for specific info-package.
    But in info-package system does not allow to change the packet size more than 25MB.
    Please suggest the way.
    Regards,
    Dheeraj

    Hi..
    MAXSIZE = Maximum size of an individual data packet in KB.
    The individual records are sent in packages of varying sizes in the data transfer to the Business In-formation Warehouse. Using these parameters you determine the maximum size of such a package and therefore how much of the main memory may be used for the creation of the data package. SAP recommends a data package size between 10 and 50 MB.
    https://www.sdn.sap.com/irj/sdn/directforumsearch?threadid=&q=cube+size&objid=c4&daterange=all&numresults=15
    MAXLINES = Upper-limit for the number of records per data packet
    The default setting is 'Max. lines' = 100000
    The maximum main memory space requirement per data packet is around
    memory requirement = 2 * 'Max. lines' * 1000 Byte,
    meaning 200 MByte with the default setting
    3     THE FORMULA FOR CALCULATING NUMBER OF RECORDS
    The formula for calculating the number of records in a Data Packet is:
    packet size = MAXSIZE * 1000 / transfer structure size (ABAP Length)
                        but not more than MAXLINES.
    eg. if MAXLINES < than the result of the formula, then MAXLINES size is transferred into BW.
    The size of the Data Packet is the lowest of MAXSIZE * 1000 / transfer structure size (ABAP Length) or MAXLINES.
    Message was edited by:
            search

  • Re: Reading data from a data packet

    We did not find any driver for our instrument so we are trying to capture data using the method i have explained before. Below is an example of the data packets that we are receiving in our serial port monitoring software.
    First data packet       13 88 04 4C 00 00 01 F3 00 00 7B 37 02 EE
    Second data packet   13 88 04 4C 00 00 01 EE 00 00 79 D9 02 EE
    Third data packet       13 88 04 4C 00 00 01 EB 00 00 78 BA 02 EE
     Here as we have seen above 13 88 (5000=Frequency in decimal) 04 4C (represents1100= voltage in decimal) is constant  and the ending is represented by 02EE.  Apart from tis the rest (for the first packet 01 F3= 499 assuming current  and 7B 37 = 31543 assuming power  keeps on changing in every packet and they all have different scaling ). The 00 00 just represents the padding between them. Now we have to read the values in altogather say in different boxes and produce them in LabVIEW front panel. Here i have attached a picture of the instrument reading side by side with the serial monitoring software reading. How do i do that? i have read something called visa read and write but they only accepts strings not in bytes. Any kind of help is appreciated.

    Duplicate Post

  • How to select more than one data packet?

    Hi,
    I have uploaded data using 3 different data packets. However, for each of these packets there are some errors.
    Using Monitor > PSA Maintenance, I want to display error data records for all three different data packets in one screen. These erratic data will be send to our users for their rectification. However, I can only select and disply erratic data records packet by packet. So this has to be done three time instead of once.
    Can u advise on how to display all erratic data records in one screen.

    Hello Fulham FC,
    How r u ?
    I feel it is possible to select all 2 or more requests at once. Provide
    ...No. of Records ---> count the total no of records in the packages u select.
    ...From Record -
    > 2147483647
    Then try CONTINUE. In our system its throwing Dump !!!
    I believe dude, in PSA Maintenence there is a button  SELECT ALL & even in the data package also it is allowing to select two or more. There should be some way to do this.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Arrived in BW Processing: Data packet not yet processed

    Hello Gurus,
    Data is being loaded from export datasource (8RL*****) ti 2 data targets
    The overall QM status is red (says processing is overdue)
    The details tab shows
    Extraction: Error occurred
    Transfer(IDoc and TRFC): Error occurred
    Processing (Data packet): Error occurred
       -- Transfer rule: Error occurred
         Bewegungsdaten received.Processing being started
         Message missing(35676 records) : Transfer rule finished
      Update rule (0 records):Missing messages
      Update(0 new/0 changed): Missing message
      Processing end: Missing message
    I checked the LUW in SM58 but didnt find anything.
    I checked infosource (PSA) - one request is in RED, but when i check the data in PSA there are no errors.
    What should I do in this case?
    What might be the excat error.
    Kindly inform.
    Regards,
    NIKEKAB

    Hi,
    Check the DataSource in RSA3, if it is working fine and able to see the data in RSA3, there is no problem in DS level, then checl the Mappings and any routines in BW for that DS, if this is also fine then check the below options.
    See Dumps in ST22, SM21 also.
    Check RFC Connection between ECC and BW systems, i.e. RSA1-->Source System->Right Click on Source system and Check.
    You must have the following profiles to BWREMOTE or ALEREMOTE users.So add it. Bcoz either of these two users will use in background to get extract the data from ECC, so add these profiels in BW.
    S_BI-WHM_RFC, S_BI-WHM_SPC, S_BI-WX_RFC
    And also check the following things.
    1.Connections from BW to ECC and ECC to BW in SM59
    2.Check Port,Partner Profiles,and Message Types in WE20 in ECC & BW.
    3.Check Dumps in ST22, and SM21.
    4.If Idocs are stuck i.e see the OLTP Idoc numbers in RSMO Screen in (BW) detials tab see in bottom, you can see OLTP Idoc number and take the Idoc numbers and then goto to ECC see the status in WE05 or WE02, if error then check the log else goto to BD87 in ECC and give the Idoc numbers and execute manually and see in RSMO and refresh.
    5.Check the LUWs struck in SM58,User Name = * (star) and run it and see Strucked LUWs and select our LUW and execute manually and see in RSMO in BW.
    See in SDN
    Re: Loading error in the production  system
    Thanks
    Reddy

Maybe you are looking for

  • Java system error

    Hi Guru: Now I could create a web report and execute it. But each time I save it, there is an error: Java system Error: Bean RSWR_TEMPLATE_PROCESS_PROXY is not found. How to solve it? Thank you very very much. Best regards, Eric

  • Icloud wont enable on my ipad2

    I have tried to enable icloud for the last 2 days and I continue to get "There was a problem enabling icloud Backup". All settings are correct, any suggestions?

  • Internet Explorer 11 bookmarks not syncing with Ipad/Iphone

    Hello. I have an Iphone 5 along with an Ipad Mini. Both are updated to the current IOS 7.1.1. I am using Internet Explorer 11 on my Toshiba Laptop for syncing booksmarks and such through Icloud to my devices. I am having an issue with the bookmarks o

  • Remote URL iView

    Hi, I tried to export data from a table view, which is filled by a query, into a excel file. Everything works fine, except the excel file is empty. I have done everything like described in: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp:/

  • Error 16 issues

    I hope someone can help on this...I have just spent the past 2 hours on the phone with support and have not solved the problem.  I have the Lightroom app installed and tried downloading photoshop from creative cloud and got an error 16 message.  I we