BITS N BYTES

MrPLC Member
  • Content count

    911
  • Joined

  • Last visited

Everything posted by BITS N BYTES

  1. NS LADDER MONITOR

    Jay, the PDF training sheet was extremely helpful and got me up and running. The method of accessing the comment files from the NS Screen [click two upper corners to open system setting selection] IS in the documentation that came with Ladder Monitor but is buried, guess I missed it! As always, thanks for your timely and accurate response. FYI - The problems experienced with CF card compatability for the NS10 firmware upgrade [sanDisk = OK, PNY = NOT OK] do not appear to be an issue for the Ladder Monitor application. Have just tested with SanDisk[32MB] and PNY[64MB], they both work just fine.
  2. NS LADDER MONITOR

    I am not seeing the comments in the NS Ladder Monitor Application! Ran I/O Comment extracting tool from CX Programmer to generate the _.cxt file. Ran I/O Comment extracting tool to generate the _.ioc file for NS Ladder. Copied the application files for the NS Ladder Monitor program to the CF Card. Copied G_.ioc and L_.ioc to lrdata folder on CF Card. Put CF Card in NS-10 and powered up. Ladder Monitor 2.60 application appears in selction of special screen on NS10 Application. When START is pressed NS-10 boots up Ladder Application. The following error message appears:- File Open Error Cannot open I/O comment file OK When OK is pressed the Ladder Monitor application opens and works GREAT. BUT, I have NO I/O comments displayed, which is one of the primary purposes of using the Ladder Monitor application. First Question? Which selection should be made for SAVE AS to get the correct format for NS Ladder Monitor? In CX Programmer there are 2 possible selections for saving _.cxt files. 1. CX-Programmer Text Files [*.cxt] 2. CX-Programmer diagram text file [*.cxt] Second Question? I have tried the I/O Comment extracting tool on both types of file saved above. When the extraction tool runs it generates 2 files G_.ioc and L_.ioc from the source _.cxt file. In my application the G_.ioc is 85MB and the L_.ioc is 0MB!!!! whether the _.cxt file generated from CX Programmer is with CX-Programmer Text Files [*.cxt] or CX-Programmer diagram text file [*.cxt] the L_.ioc is always 0MB!! Final question? How do I get the comments to display correctly?? Am I doing something wrong?? CX-Programmer V5.00 Ladder Monitor 2.60 NS-Series Version 3.11 NS10-TV01-V1 System Version 6.03 Project Data Version 6.00
  3. NS10 FIRMWARE UPGRADE

    SUCCESS AT LAST!! Used a SanDisk card for the firmware upgrade. Worked perfectly.
  4. [CS1G-H] Float data to BCD.

    Sorry to confuse you. I meant to say the FIX[450] instruction.
  5. [CS1G-H] Float data to BCD.

    If it's a CS1-H or CS1-D use the FIXD[841] instruction.
  6. NS10 FIRMWARE UPGRADE

    Well it's Monday! Bought virgin 64Meg Compact flash this weekuend. Copied V6.3 files to card. Loaded in NS10 display. All config. dipswitches OFF position. Power up......................... Still NOT working. Red RUN light and following message on display:- Welcome to NS series! Version;3.10 Hardware Devices; OK Now Loading System Programs....... Red warning Message in center of screen **ERROR No. 10; Fail in loading files or executing programs; Please recover the system program Now I am really baffled. Any ideas what's wrong?
  7. NS10 FIRMWARE UPGRADE

    BELIEVE ME, I TRUST YOU!! Since almost completing my project screen development in NS-Designer V5 [Love the TEST feature] I thought it time to try it in the new NS10 screen this week. Tried formatting my existing CF to FAT16 and downloading the V6.3 screen updates. WHAT A MESS!! NS10 is now completely unusable, boots with an Error Code 10. As you suggest, I'll buy a new card today and retry on Monday. Hope it works! Thanks.
  8. NS10 FIRMWARE UPGRADE

    Hi Jay, thanks for your reply. I already have a number of Compact flash Cards that are FAT32 formatted. When formatting flash cards with Windows XP I bekeive one can select the desired format. Default is FAT32 but by selecting FAT it changes the formatting method to FAT16. If I reformat the card to FAT in Windows XP will this work on the NS10???? Just don't want to keep buying more cards!! Another CF card issue;- I believe that if the CF card is up to 2GB capacity it can be formatted FAT32 or FAT16. Over 2GB there is usually a selector switch on the card that limits the formatted memory to 2GB for FAT16 applications.
  9. OMRON C28K replacement for same

    You say the output lines are getting flaky. Since you are using a relay output unit why not just replace the relays. If my memory serves me right the relays in the C28K series are socket mounted inside the unit. Its worth a try!!
  10. Stumped on Subroutine

    I agree with Jay BUT with one small difference; "you must handle the resetting of the output coil before leaving the subroutine or turning off the task" I would recommend an alternate approach [used it MANY times] Handle the resetting of the output coils at the BEGINNING of each task by moving 0 to the output word. If you do not wish to reset all outputs then logically AND the output word with a mask and write back to the output word. Use ANDW(034).
  11. Stumped on Subroutine

    Use the task instructions:- TKON(820) and TKOF(821)
  12. Stumped on Subroutine

    First things first. What PLC you are using?
  13. EVEN NUMBER ENTRY - NS10 HMI

    Using NS10 HMI with CJ1M-CPU21. Data entry range is from 2-500. I only want to accept even numbers 2,4,6,8.......498,500. Odd number entries are just completely ignored, no warning or popups. Any neat ideas? Should/Could I use script function for this purpose?
  14. EVEN NUMBER ENTRY - NS10 HMI

    Jay, THNXS - I'll give that a try. Where do I find the tenkey? Does not seem to be in my library? Or am I looking in the wrong place.
  15. EVEN NUMBER ENTRY - NS10 HMI

    JAY THE FORMULA WORKED GREEEAAATTTT in my PLC. Got it working in the NS "EDIT MACRO 2" within the functional object "NUMERAL DISPLAY & INPUT". I am able to get a value 1 or zero returned, macro as follows:- $W10=GETNUMVAL(); 'Put numerical keypad entry NS register W10 $W11=$W10&H0001; 'If numerical entry is odd $W11=0 else $W11=1 What I cannot find in the macro editor is a function that allows me to close the numerical entry keypad and go back to the original screen. I understand the function CLOSEPOPW but the numerical keypad does not seem to have a popup window value. What I am eventually trying to do is :- IF $W11=0 [Numerical keypad entry is EVEN] THEN Complete normal data entry process. ELSE Abort data entry, close keypad and display message box. ENDIF I'll keep on plugging away at the NS-10 macros. The Macro manual V075-E1-03 leaves a LOT to be desired. Any ideas would be most welcome.
  16. EVEN NUMBER ENTRY - NS10 HMI

    EUREKA!!!
  17. EVEN NUMBER ENTRY - NS10 HMI

    Could you please expand description a little bit further. I don't quite understand! THNX
  18. ASCII Lower/Uppercase Conversion

    Using CJIM-CPU21 for RS232 serial communications from a host device. I have defined the message format and protocol but the host device cannot [more like integrator will not] guarantee that message strings will be in the same case [uppercase/lowercase]. In some instances the case could even be mixed in the same message string. Does anyone have a neat idea to convert all characters in the RECEIVED message string to uppercase format??
  19. ASCII Lower/Uppercase Conversion

    Thnx anonymous, that looks like a very simple solution I would not have thought of. I guess I have been working with BITS N BYTES too long. Need to improve my WORDS N MESSAGES skills.
  20. COMPARE MULTIPLE WORDS

    THNX I'll try the test in my application. If the Japanese engineers have tables, do they also have chairs and desks?? Maybe they've been on the Saki too much!
  21. COMPARE MULTIPLE WORDS

    I am using used the BCNT instruction to obtain the number of ON bits in 16 words of data. Does any one have a simple yet FAST [least # instructions] that will achieve the same result but on a word array. The array spans 160 words from D1-D160. Each word contains either a value or a 0. I have found the TCMP instruction that seems to satisfy my needs, but I have to do this 16 times, either with 16 instructions or a single instruction with a FOR NEXT loop. Each TCMP instruction compares the values of in 16 word groups with 0 and outputs the results in D201 thru D216. A final BCNT on D210-260 gives the total words between D1-D160 that are greater than 0. This is used within an interrupt on a CJ1M and I need the speed to be as fast as possible. Any neat ideas from the GURUS?? Need to know how many
  22. COMPARE MULTIPLE WORDS

    Thanks again Jay. Found this new instruction in the latest manual you sent. As a matter of interest how does one estimate instruction times for Omron instructions when the multiple word execution times are NOT a direct multiple of the single word times. For example the BCNT2 instruction execution times for a CJ1M-CPU21 is quoted as 16 microseconds for 1 word and 757.67 for 1000 words. How do you recommend one should estimate the execution time for 160 words? How do you apply this to similar instructions where single and multiple word execution times do not appear to be directly proportional?
  23. COMPARE MULTIPLE WORDS

    NOT DOING TOO WELL TODAY!! Should read:- "Each TCMP instruction compares the values in 16 word groups [D1-D16 then D17-D32 etc. etc] with 0 and outputs the results in D201 thru D216 [TCMP on D1-16 outputs in D201 then TCMP on D17-D32 outputs in D202 etc. etc.] A final BCNT on D201-216 gives the total words between D1-D160 that are greater than 0."
  24. COMPARE MULTIPLE WORDS

    I meant to say "repeat TCMP instruction 10 times" NOT 16.
  25. PID CONTROL INSTRUCTIONS

    Does anyone have experience with these instructions. Trying to understand how the PID[190] instruction works! After reading the description in the CJ1 Instruction Set Manual W340-E3-04 I am still confused. Anyone have a clearer description or example of how it works and is formatted? My application is to control the Axis Speed in a Position Control Unit in stepper mode. I know the Current Position [D100] and the Target Position [D200] and need to modify the Speed [D300] with the PID instruction [starting at [400] to change the rate at which the Target position is reached. I believe the basic instruction to achieve this are:- MOV D200 D400 (Move the Target Position to first parameter word of the PID) PID D100 D400 D300 (Modify the Speed [D300] to close the loop between the Targeted Position [D200] and Current Position [D100]. I am really confused by description of the Input Ouput range in the sixth data word of the instruction. In my case this is bits 08 to 11 for Input and bits 04 to 07 of D406. Is this some kind of filter that ignores the higher bits of the Input and Output word? In other words if bits 08 thru 11 are OFF the upper 8 bits of the Input D400 are ignored. Therefore if D400=26000 (decimal)=6590Hex, only 0090Hex or 144 Decimal are used within the PID routine. How is the Work Area [in the above case D409 thru D438] of the PID instruction utilized? Is it automatically handles by the PID instruction itself or does it require external data? Any clearer explanation than available in the manual would be most welcome! BTW - you can probably tell from my recent posts I am a new Omron user [Only AB for the last 20 Yrs]. This is a great site with a wealth of useful information. Many thnxs to to all for their input.