Reading Micrologix I/O and Mapped Fields

Just beginning to get familiar with Lookout. I am trying to read/write to mapped fields (B and N) in a Micrologix 1500 PLC. What is the syntax for Lookout to read/write to a channel such as B3:1/0? B3:1/0 is a mapped field for I:1.0/0. Any help is appreciated. I have included my fields list for reference. Thanks.
Sudhi
Attachments:
Micrologix1500.xls ‏53 KB

I will hopefully clarify the knowledgebase document.
I'll use your example to try to clarify:
If the AB PLC is I:4/0, and you are trying to read the first bit of the fourth module (assuming the fourth module is the 2nd input module), then the correct Lookout syntax would be: I:1_0 (second input module I:1 and the first bit 0).
Remember begin counting modules with 0 and number them with respect to their type.
With regard to your other examples, I assume these are registers or cards (input or output). Again depending on the type of card and the order in the plc, your examples would be:
B3:0/1 = B3:0_1
C5:0 = C5:0
assuming these last two are registers and not i/o cards.

Similar Messages

  • Read from database (Access) and update fields using MS ADODB

    Hello,
    I am trying to get records from database using MS ADODB._connection & ADODB._Recordset objects (from LabVIEW 6)
    I can:
    1. open connection (with ADODB._connection)
    2. write into tables (with ADODB._command)
    I can not: gets records and update fields using ADODB._connection & ADODB._Recordset.
    I do not know:
    1. how to connect between the connection that was opened and the recordset object
    2. where I can write the SQL text as input to the recordset
    Attached is DataBase.llb with DB_read.vi that display my steps.
    Thanks.
    Attachments:
    DataBase.llb ‏40 KB

    Try this one, after updating the names for database and the table you want.
    Let me know if it's working.
    p.s.: if you have problems, it could be a different adodb version ... but the sequence of methods is the same
    Attachments:
    EditdatabaseMe.vi ‏57 KB

  • Reading all select-option and parameter fields

    Hello All,
        I have a reaquire ment like ' i Will take a report name as input from user , and i  need to read all the fields declared with PARAMETERS and SELECT-OPTIONS. '
         one thing i can read the program and go line by line or scan the program.
    apart from this is there any other way to get all such fields declared with PARAMETERS and SELECT-OPTIONS
    Thanks & Regards
    Amarender Reddy B

    Hi,
      You can fetch it from table TVARV
    Regards,
    Prashant

  • Data Type, Message Type and Mapping for FTP

    Thanks in advance for your replies.
    As our first production XI scenario, we need to move several (at least 46) files from our SAP instance to a couple of different servers to support our legacy systems.  Once all locations are on SAP this requirement should go away.
    I only want to pick up the file from the one server and place it on the other and this leads me to some questions.
    How do I define the Data Type and Message Type for each of the files?   Do I need to consider the size of the record in each interface and create DT/MT with different sizes.
    Do I need a mapping program that simply maps one structure to the other?

    I recently completed a similar exercise.
    It looks like this...
    server1 ftp (Sender - delete file) - XI - Server2 ftp (receiver - create file).  This will move the file from one server to another.
    I used the same schema and mapped fields on a one to one basis.
    The Size of the files I process are between 6kb and 500kb each, but the mapping/fields remain constant, just the numebr of items change.
    Worked seemelessly for the last three weeks (since go-live)

  • Reading A xml file and sending that XML Data as input  to a Service

    Hi All,
    I have a requirement to read(I am using File adapter to read) a xml file and map the data in that xml to a service(schema) input variable.
    Example of  xml file that I have to read and the content of that xml file like below:
      <StudentList>
        <student>
           <Name> ravi</Name>
           <branch>EEE</branch>
          <fathername> raghu</fathername>
        </student>
      <student>
           <Name> raju</Name>
           <branch>ECE</branch>
          <fathername> ravi</fathername>
        </student>
    <StudentList>
    I have to pass the data(ravi,EEE,raghu etc) to a service input varible. That invoked Service input variable(schema) contains the schema similar to above schema.
    My flow is like below:
      ReadFile file adapter -------------------> BPEL process -----> Target Service.I am using transform activity in BPEL process to map the data from xml file to Service.
    I am using above xml file as sample in Native Data format(to create XSD schema file).
    After I built the process,I checked file adapter polls the data and receive the file(I am getting View xml document in EM console flow).
    But transform activity does not have anything and it is not mapping the data.I am getting blank data in the transform activity with only element names like below
    ---------------------------------------------------------------------------EM console Audit trail (I am giving this because u can clearly understand what is happening-----------------------------------------------------
       -ReceiveFile
            -some datedetails      received file
              View XML document  (This xml contains data and structure like above  xml )
        - transformData:
            <payload>
              <InvokeService_inputvariable>
                  <part name="body">
                     <StudentList>
                         <student>
                           <name/>
                            <branch/>
                            <fathername/>
                         </student>
                   </StudentList>
              </part>
             </InvokeService_inputvariable>
    'Why I am getting like this".Is there any problem with native data format configuration.?
    Please help me out regarding this issue as I am running out my time.

    Hi syam,
    Thank you very much for your replies so far so that I have some progrees in my task.
    As you told I could have put default directory in composite.xml,but what happenes is the everyday new final subdirectory gets created  in the 'soafolder' folder.What I mean is in  the c:/soafolder/1234_xmlfiles folder, the '1234_xmlfiles' is not manually created one.It is created automatically by executing some jar.
    Basically we can't know the sub folder name until it is created by jar with its own logic. whereas main folder is same(soafolder) ever.
    I will give you example with our folder name so that it would be more convenient for us to understand.
    1) yesterday's  the folder structure :  'c:/soafolder/130731_LS' .The  '130731_LS' folder is created automatically by executing some jar file(it has its own logic to control and create the subdirectories which is not in our control).
    2) Today's folder structure :  'c:/soafolder/130804_LS. The folder is created automatically(everytime the number part(130731,130804).I think that number is indicating 2013 july 31 st like that.I have to enquire about this)is changing) at a particular time and xml files will be loaded in the folder.
    Our challenge : It is not that we can put the default or further path in composite.xml and poll the file adapter.Not everytime we have to change the path in composite.xml.The process should know the folder path (I don't know whether it is possible or not.) and  everyday and file adapter poll the files in that created subfolders.
    I hope you can understand my requirement .Please help me out in this regard.

  • UDF to read a file name and use some of its contents to map fields in target.

    I have a scenario where I need to take the month and year from the file name and map it to suitable fields in the target. Ex - filename_apr2014 from this i should be able to read the month and year and map it. How to do this? I tried the udf -
    public String getFileName(Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return ourSourceFileName;
    got this error while testing the mapping -
    Runtime exception when processing target-field mapping /ns0:MT_<<>>_Output/I<<>>; root message: Exception:[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.mapping.api.DynamicConfiguration.get(com.sap.aii.mapping.api.DynamicConfigurationKey) of a null object loaded from a local variable at slot 2] in class <<>> method getSourceFileName[com.sap.aii.mappingtool.tf7.rt.Context@5b04fc0f]
    See error logs for details  

    Hi Satish - You declared "conf" twice.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    UDF -
    String filename    = "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
    filename = conf.get(key);
    return filename;
    And did you define the variable slot 2 in any of your UDF's?
    The above UDF return the filename and you should handle the sub string later..

  • Mapping and Monitoring all the User and the Field exits

    Hello Dears,
    Are possible, with the Solution Manager to map and monitor all the user and the field exists existing in my ECC6 Productivity Environment?
    Anyone has some documentation?
    Regards to all.
    FS.

    Hello Gurus,
    Someone has any information about this question?
    Regards to all.
    FS.

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

  • Retreive IDOC number and map it to a field in Target XML

    Hi Experts,
    IDOC to file scenario
    I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
    Do i have to use a UDF for this? can ne one pls explain?
    Regards,
    Teja

    Hi Ravi,
    You dont need use a UDF for this.
    this is a very simple requiremen.
    You can get the IDOC number from source IDOc
    under EDI_DC40 node field name DOCNUM.
    This DOCNUM fielsd will contain the IDOC number
    Map this DOCNUM field from source IDOC to target XML structure.

  • Data from a file need to be read and mapped  into a custom table of R/3

    Hello all,
    This is related to inbound to  SAP ECC via SAP PI.
    There is a requirement concerning PI part that data from a file need to be read and mapped  into a custom table of R/3.
    To have this scenario developed , do we have any other  option than the Proxy ?
    My understanding is as follows : File --> SAP PI --> Proxy
    You suggestions are welcome.
    Regards,
    Rachana

    Hi Ravi,
    As suggested by Inaki, you can use proxy communication in recever.
    but you can also use the below
    FILE -----> PI -------> PROXY
                                  RFC
                                  IDOC
    to communicate to ECC system.
    Regards
    srinivas

  • Acrobat form field that allows Reader user to browse and insert a picture into a predefined area

    Is there a way to do insert a form field into an AcroForm that allow Reader users to browse and insert a picture into that form field?
    I know that LiveCycle can do this, but I need to do this using an AcroForm. Or maybe there's a third-party plug-in that can be used in an AcroForm to do this?

    Jay,
    The new version of Reader, which was announced today (see AcrobatUsers.com), will now allow you to use the field.buttonImportIcon method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.737.html
    For a bit more information, see: http://forums.adobe.com/thread/743823
    Here's the minimum code that can be used in the Mouse Up event of a button that's configured with a layout that's something other than "Label only":
    // Mouse Up script for a button
    event.target.buttonImportIcon();
    Since this isn't backwards compatible with Reader, you'll probably want to add additional code to test what version is being used and alert the user if it's pre-11. You should also check the return value to see if anything went wrong. The hard part is getting everyone to upgrade, but this and a number of other features should make it worth it.

  • IDOC mapping issue (calculation using parent and child fields)

    We are mapping an IDOC to a file for output to a third party.  The IDOC has many segments, some of which are embedded.  This is where I'm having the issue.  I am trying to perform a calculation on a field from the parent node (E1EDP01-MENGE) with the field from the child node (E1EDP05-KRATE) to determine the total tax for that line (qty X rate). 
    <b>Issue:</b> The mapping that is in place is using the same MENGE value for all calculations, even where the E1EDP01 segment is not a parent of the E1EDP05 segment. 
    Please review the screen prints and explain how I can correctly group the E1EDP05 child segments rate field (KRATE) with the corresponding parent segment E1EDP01 quantity (MENGE).
    <b>Example:</b>
    Parent segment, E1EDP01 / Child segment E1EDP05 (There are many E1EDP05 segments for 1 E1EDP01 segment)
    E1EDP01 (parent node)
      E1EDP05 (child node)
    <b>Target structure</b>
    ITEM (parent) --->E1EDP01 is mapped at node level
      -->ITEM_DATA --->E1EDP01 is mapped at node level
      -->ITEM_TAX --->E1EDP01 is mapped at node level
           -->(fields for item_tax)
           -->Record type
           -->Invoice number
           -->Line total
           -->etc...
    I am mapping (E1EDP01-MENGE) for calculation with (E1EDP05-KRATE) to determine tax at the line item level. I have the context set at each Node, E1EDP01 for MENGE and E1EDP05 for KRATE.  I was using CopyValue, but this was using the frist occurence of MENGE for all line items.
    <b>mapping example</b>
    <u><b>*I am using MENGE (Copy_Value) then multiplying by KRATE to get the line item total.  This was causing the same MENGE (because of Copy_Value) for all line items.</b></u>
    E1EDP01-MENGE|Copy_Value|MULT--->TAX_ITEM-LINE_TOTAL
    E1EDP05-KRATE|
    I removed the CopyValue and now I'm getting the following error:
    Cannot produce target element /ns0:MT_DTN_INVOICE1/INVOICE/ITEM/ITEM_TAX[3]/LINE_TOTAL. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    How can I map this so the child records (E1EDP05) are grouped with the correct parent records (E1EDP01)?
    Thanks in advance!
    Michael

    Check this blog:
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    Regards
    Stefan

  • Mapping header and detail fields

    I want to map concatenated 1 header source field and  2 detail source fields into 1 target detail row field. Is it possible? I am getting message mapping error in SXMB_MONI. I changed the DT_Detail_Row.fieldFixedLengths, still getting error. Any suggestions  or ideas how I can map these fields?
    Thanks.

    Hey,
    y cant u use 2 Staandard concat functions
    where u concat ur two source fields using one concat and concat that output with the header source field using another concat fucntion and map that output to target field.
    detail1
                 Concat----
    >
    detail2                            concat----->target
                 Header----
    >
    cheers
    jithesh

  • Deleting Digital Signature and Read Only Features Become Edit-able fields again

    I have set up a tiered exceptions for an Adobe PDF document.  The first person signs and certain fields become read only.  The next person to sign in the tier signs the document and if he/she Clears Signature then the document reverts back to all fields becoming EDIT-ABLE again--even after the first person in the tier signed and their signature is still present.  I need this NOT TO BE THE CASE.  The document is set so that the employee can fill the form out and upon signing all fields--except those I set with EXCEPTIONS--should become UN-EDIT-ABLE.  If the Supervisor gets the document, signs and then decides to CLEAR HIS SIGNATURE--the employee's sections become EDIT-ABLE again.  This defeats the purpose of the employees' signature.  I need the document to revert back to only the fields the Supervisor had access to if he/she CLEARS there signature.
    Thanks

    I'm unsure. This is just a form that I downloaded from my department website:
    http://www.me.berkeley.edu/StudentAffairs/CurrentStudents/Graduate/GradHandbook/Chapter13F orms/ConfirmationofClassSchedu…
    I was just trying to fill in the form and electronically sign it, that's all.

  • Efficient optimized way to read from serial port and GPS data display using map

    Hi,
    I have a custom h/w which reads the data from GPS Rx and after parsing send it to PC over RS232.
    Each second it sends 201 bytes to PC. I have developed a VI to read the GPS data and display it. Project file is attached.
    Fulctionality of different loops are as following:
    1. LOOP 1: 1.1 Reads the serial data from com port.
                   1.2 Synclonize the frame using start bytes "a" and "z".
                   1.3 Reads next 4 bytes containg receiving error information.
                   1.4 Reads next 195 bytes. in which initial 80 byes are GPS data. rest are others.
    2. LOOP 2: 2.1 Extarcts the GPS information and put them in an array.
                      2.2 Extarcts the receive error infor and counts the total error by incrimenting the variable using shift reg.
    3. LOOP 3:3: 3.1 Displays the GPS data in chart and log the data in a file.
    4. FLOW : Uses the GMAP .NET based API to creat a MAP and display.
    Problem statement:
    1. Functionality acheived.
    2. However in between data set is being missed by the programm. 
    Quesitions:
    1. Is the developed VI is efficient in terms of using queue loacl variables etc.
    2. What are the improvments I can do to solve the problem.
    Any other suggestions|
    Thank you
    jayant
    jayant
    Attachments:
    Telemetry_Receiver_v2.zip ‏3075 KB

    One of the most common problems in serial communication is the need for an adequate timing: how much time is expected your device to spend before answering? Have you put and adequate pause in your code before reading from the serial port?
    Hope this helps
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • RAM upgrade on Satellite L30 (PSL33L)

    I want to upgrade the RAM of this laptop, but went exceed 2gb which are 1gb+1gb of 667mHz the computer will booting normally and work like usuall but after that the computer turn blue screen and restart. Currently using XP Pro SP3 with the latest bio

  • Database structure

    Can anybody tell me in detail the difference between logical and physical structure of the database. Physical means that physically files are stored on the disk. what about logical, why is it used. is it important. with that pl explain me the differe

  • My firewire ports seemed to stop working - SOS HELP!!!!

    Hey Out there...I have a Mac G4, running OS X 10.3.9. I was importing DV video to iMovie through firewire with no problems, then the next day my computer doesn't recognize my camera is attached. I bought a Lacie D2 DVD +- RW Double Layer burner, that

  • Safari quitting unexpectedly on Lion?

    Hi, My Safari keeps quitting unexpectedly and I am unable to open it. I'd really appreciate any help on this! Thanks Here's what the details say: Process:     Safari [673] Path:        /Applications/Safari.app/Contents/MacOS/Safari Identifier:  com.a

  • What format am I supposed to import CDS into on my new Macbook Pro? CDS will import, but not play in iTunes once I import.

    I am having trouble playing imported CDS into my new OSX Lion MacBook Pro. I am able to import them but then when I try to play music, nothing plays. Any help would be appreciated. Thanks