nicepal

MrPLC Member
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nicepal

  • Rank
    Sparky

Profile Information

  • Country Singapore
  1. CJ1W-ETN21 Detection

    Michael, Thanks, this sound great. Just that the scenario is  1 - We have 2 batches of machines 2 - Batch 1 is using 1 card 3 - Batch 2 is using 2 cards 4 - 2 cards communication seems to be more stable as compared to 1 card. Just that software portion is a little different for the 2 machines though they are identical. 5 - Customer request is to keep program the same. Use a method to "detect" if there is 1 or 2 card exist, then run different portion of programs for this. Instead of keeping 2 program version.   But hearing you saying declare 2 cards in I/O table but 2nd card physically not installed will generate a non-fatal (PLC will keep running) error. Maybe we can use this "error Bit" to determine if the 2nd Card is present or not.   Thanks in advance. Shall update again when tested working.
  2. CJ1W-ETN21 Detection

    To all the gurus. We have a project now that is using CJ2M PLC. However some hardware is using 1 piece of ETN21 card while some machines are using 2 cards. Programs sequence is quite similar. However Customer wants us to be able from program side able to detect if there is 1 card presence or 2 cards presence.   Not sure if there is certain bits or memory in PLC that program can tap to "detect" number of cards that is presence.
  3. CJ2M Function Block String to Real

    Seems the FVAL is in the Ladder format. Under Structure Text, like don't have direct. Anyway, I have work around this by extracting the Integer part to a DINT -> Real, the Decimal part to another DINT -> Real -> Convert into Decimal value. Add them together. Then check if it is E+ or E-, and Multiply or Divide according to the E number.
  4. String to Real

    Thanks. Just realized this is under NJ after I posted.:) Seems the FVAL is in the Ladder format. Under Structure Text, don't have direct. Anyway, I have work around this by extracting the Integer part to a DINT -> Real, the Decimal part to another DINT -> Real -> Convert into Decimal value. Add them together. Then check if it is E+ or E-, and Multiply or Divide according to the E number.
  5. I have this issue. working on Omron's CJ2M. String received can be +4.24737E-03 or +2.17737E+01 Somehow, the structure text function does not have STRING_TO_REAL. We need to extract some readings from a Meter and do some value comparison in the PLC to set the passing range. Any advise I can get from personnel here?
  6. String to Real

    I also have this issue. working on Omron's CJ2M. String received can be +4.24737E-03 or +2.17737E+01 Somehow, the structure text function does not have STRING_TO_REAL.  
  7. CJ1M xml communication

    Thanks Sparky. We tried checked withh the Vendor who also not very sure and cannot commit the feasibility. In the end, we proposed to link to Customer's Host PC through a PC where by PC will poll the data from PLC through that PLC. Reason being I have 3 PLC and also each PLC has 1~2 Barcode Reader that uses Ethernet protocol. Cost maybe be higher but I think as long I can link to PC, the rest of the issues leave it to PC to do the more difficult job.
  8. CJ1M xml communication

    Anyone here done any communication through Omron's PLC using xml to communicate with Host PC? I got a Customer enquiring on this, Transmit to and Receive from Host PC through Omron's CJ1M PLC using xml format.......
  9. CJ1M Date and Time Calculation

    I would like to thank all in providing your valuable advises. I have made some tests last weekend. 1) how i can calculate the time difference. - I captured the Start & End time and uses the CSUB (Calendar subtract) to calculate the duration. 2) how can I check the CF card that the file is more that 3 months ago (I intend to save the file with the YYMMDD kind of format) - I use the same CSUB function and calculate what is the date that is 90 days ago (90*24hr=2160hr). As the file is created under the formate of YYMMDD.txt, so I just issue a file delete command to CF Card to delete the file that is YYMMDD.txt. I had even saved those files under individual folder, named monthly ("09" for September). When 90 days is up, the program can go into individual folder to delete the required dated file.
  10. CJ1M Date and Time Calculation

    To all experts out there, I am using CJ1M-CPU23. I have a project that need to calculate when a Error start and when a Error End. Form the Time, I need to calculate how long the error takes to reset by operator. With this info, I need to write into the CF card a file capturing all errors with, how many time it occurs in a day, how long was the duration the error last added up together. And I also need to check that if the files was 4 months old, I need to delete them from CF card. Can anyone help to advise me how can I do this as now I am stuck on the time calculation portion. I need to know; 1) how i can calculate the time difference. 2) how can I check the CF card that the file is more that 3 months ago (I intend to save the file with the YYMMDD kind of format) Thanks in advance. I appreciate if someone out there can let me know by thursday as I need to reply Cstomer by 30/08/2007 Singapore time. Thanks a zillion.