MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

38 Excellent


  • Rank

Contact Methods

  • Website URL http://
  • ICQ 0

Profile Information

  • Gender Male
  • Location Miami Beach FL
  • Country United States

Recent Profile Visitors

5884 profile views
  1. Function block for indexing and look up

    Per your first post, the program I posted was to lookup a matching Magazine ID and IF found display its Weight. To continue the process of adding a Magazine ID and Weight you would implement a new index search to find the first record that is empty [contains no data]. In the example I posted there are 100 records every 10 words. IF the initial search found no matching ID then then DR0 have a value of 1000 at completion of the existing FOR/NEXT loop. Add new ladder below posted example [VERY, VERY SIMILAR!!] This will reset DR0 to 0 and start a new indexed search using FOR/NEXT.l When a record with no data is found, copy the new Magazine ID to location DR0,IR0 and its Weight to location DR0,IR1 and BREAK out of the FOR/NEXT loop.          
  2. Function block for indexing and look up

    You are welcome. Always like a challenge and this one was easy!
  3. Function block for indexing and look up

    Attached is example with 100 iterations of FOR/NEXT:- ID String to search for is entered in D0-D4. Once entered turn ON W0.0. IF ID is Found THEN ID it is shown in D10-D14 and Weight is shown in D20-24.   Indexing with Lookup.cxp
  4. Function block for indexing and look up

    A 10 Character string uses 5 words. So first ID occupies E6_00 thru E6_4 and first weight E7_00 thru E7_4. So if first ID and Weight are in E6_00 and E7_00 then I assume you mean second ID and Weight are in E6_10 and E7_10?
  5. Function block for indexing and look up

    Ill be glad to help, but first. How many characters is the Magazine ID? How many characters is the Magazine weight? Where in E6 memory is the first Magazine ID and where in E6 memory is the second Magazine ID? Where in E7 memory is the first Weight for first Magazine ID and where in E7 memory is the Weight for the second Magazine ID?
  6. Function block for indexing and look up

    Don't index the string, leave it alone. Rather index a pointer! The string is represented by numbers by a group of 10 words, so IMHO there is absolutely NO need to Text Processing Instructions.  Enter the new magazine ID into a temporary area [ID_NEW]. This could be any unused area in the PLC you choose. Use a for/next loop that indexes the pointer starting at the first Magazine ID location E6_00. Compare the 10 Words of [ID_NEW] to the 10 words of the pointer ID location using five LD=L [Double words] comparison instructions to achieve this.  IF all ten words match copy them to a second temporary area  [ID_FOUND] break out of the for/next loop. IF all ten words don't match THEN increment the pointer to the next Magazine ID. Continue for/next. IF ID is found you now have two temporary memory areas [ID_NEW] and[ID_FOUND] to work with and manipulate as required.   Done this MANY times for similar applications.
  7. Communication Between Two VFD

    The majority of VFD's have an analogue output. Connect the Analogue output of drive 1 to the the analog input of drive 2. Then AOUT 2 to AIN 3 etc....  
  8. Index and data registers

    See this post.
  9. Can i wire 3 Prox. Sensor in Series to 1 input?
  10. Invert scale 0-990 --> 990-0

    Use the APR instruction!! CP1L_APR_SCALING Inverted.cxp
  11. Omron sysmac studio

    Downloaded files for Motion Control. See
  12. NJ Motion Control Manuals



    NJ Series CPU Motion Control Manuals
  13. NJ Motion Control Manuals View File NJ Series CPU Motion Control Manuals Submitter BITS N BYTES Submitted 04/10/17 Category Manuals
  14. Access to program internal variables?

    Local variables are accessible only within each POU. Global variables are accessible from every POU. Couldn't be a simpler concept. What exactly IS your gripe with this concept?
  15. question @ and !

    It's in the manual!! Omron Differentiated instruction timing..pdf