Mendon Systems

MrPLC Member
  • Content count

    490
  • Joined

  • Last visited

Everything posted by Mendon Systems

  1. CJ1W-MAD42 wih plc CJ2M

    CIO 2000 is the control word for the MAD42. It should be set to #3 to enable both outputs. The first output word is CIO 2001.
  2. Help with analog expansion

    For that configuration the analog data will appear in CIO words 001-004 (AD041 inputs 1-4). You will need to initialize the AD041 module on startup to set the range by writing HEX data into words 101 and 102. The details of the settings are in section 7.2 of the W471 manual. To set all four AD041 inputs to 0-5vdc you would write #80FF HEX into both CIO 101 & 102 at startup (P_First_Cycle on). The analog data will magically appear in CIO words 001-004 with a range of 0-6000 corresponding to 0-5vdc.
  3. @MOV / EQU Command

    That's because turning off PartInFeeder  causes T3 to time out which moves 4 into CurrentSequence.  
  4. @MOV / EQU Command

    It sounds like something else in your program is using that register but without a LOT more information it's only a guess.
  5. Write PLC time as text to memory card

    Jay, I'm inclined to agree with you after reading his last post. All he would need to do is convert his INT to BCD and then convert it to ASCII with the STR8. Since he's apparently looking for a fixed length string of 5 digits a MID$ instruction would get rid of the leading zeroes for him.
  6. Write PLC time as text to memory card

    There are a few things that are a bit difficult with Omron, and you happened to pick a great example of that. For almost everything else they are quite easy to work with. Consider those data type warnings to be just advisory. It is possible to write a program that does not include any warnings, but generally not worth the effort.
  7. Write PLC time as text to memory card

    If the number is >32767 you can move the value into a Dword and use the FLTL instruction to convert it. That handles numbers up to 2,147,483,647.
  8. Write PLC time as text to memory card

    There IS another way to do it, but it is cumbersome at best. Convert the decimal value to floating point with the FLT instruction. Add 0.5 with the +F instruction. Convert the floating point number to a string with the FSTR instruction. The reason for adding 0.5 is that the FSTR instruction will truncate rather than round up so 0.9999 will result in 0 rather than 1. You will need to set the FSTR control words to 0 (decimal format), 5 (total # of digits), and 0 (# of decimal digits).
  9. Write PLC time as text to memory card

    Take a look at the ASC(086) instruction. It converts BCD digits into a string.
  10. Can't connect with serial USB connection

    Are you using a C200H-CN220 cable? A standard DB9 cable will not work because the PLC serial port has a non-standard pinout.
  11. Can't connect with serial USB connection

    That is possible I suppose. You could try updating your driver to see if that helps. Some of the USB/serial adapters will work with one computer or PLC and not work with another one. What type of adapter is it???
  12. CX Programmer

    Possibly something has disabled the serial port on your PC??? Check Device Manager to see if the com port shows up as working OK.
  13. OMRON PLC MEMORY AREAS

    I've never even seen a Siemens PLC so I can't help you there.
  14. OMRON PLC MEMORY AREAS

    From a functional standpoint the only difference in those 3 is that the W memory area data is cleared during a restart and there are some restrictions on accessing D memory at the bit level depending on what CPU you have. In theory the W area should be used as Work (scratchpad) memory, the D area should be used for Data storage, and the H area should be used for Holding bit storage. In practice you can use them however you want in your program.
  15. CJ1M Contacts and Timers

    I agree with Bob. That description sounds like a timer that is being used to generate some sort of clock pulse. The timer contact will be true for one program cycle whenever the timer expires. For example: if that timer is set to 5 seconds then the timer contact will be true for one scan every 5 seconds. There will be at least one more contact of that timer used somewhere else in the program as a clock pulse, probably to start (or stop) some logic sequence.
  16. CJ1M Contacts and Timers

    Not entirely sure what you are asking but ...... You can use any contact format of a timer that you want (NO or NC, and differentiated ON or OFF). The contact identification for timer #10 would be T0010. The mnemonic would be LD T0010 for a NO contact. If you are defining a symbol for a timer be sure to define it as a BOOL not a TIMER. The TIMER object type only applies to the CJ2M, but CX-P will default to TIMER for other CPU types also.
  17. Scan for used address symbols

    At the bottom of the Edit pull down tab is a "Delete Unused Symbols". I have never tried it so proceed at your own risk (i.e. be sure you have a backup copy) !!!
  18. bit communicate between 2plc

    Take a look at Tag Data Links, section 6 of the W465 manual. That's probably going to be the easiest way.
  19. plc startup ob? run program only 1 time at start

    You can use the P_First_Cycle flag to turn the bits off directly as Bob suggested. You can also use the TKON(820) & TKOF(821) instructions to turn on and off an entire task at any time you want. I often create an initialize task that runs once at startup and turns itself off with the TKOF instruction when complete. This works best if you assign the startup task as cyclic task 00 with Operation Start checked (default) and include a TKOF instruction as the last rung of the task immediately before the END(001) instruction.
  20. 1 Input, 3 Outputs

    That doesn't sound too difficult, but the logic for Up versus Down may take some thought. You can run a timer (maybe 1 second) from the button input then energize the Up or Down output when the timer expires. The trick is to decide which one you want to energize.
  21. Good converter from RS-232 to USB

    I have those two devices also. My Syba card has worked perfectly. The Belkin adapter works for most applications, but not all of them. I also have a Keyspan which will usually work when the Belkin doesn't.
  22. New content Icon???

    Just for the record ...... The General Topics forum icon is still not working. The Omron forum icon is fixed.
  23. Need Help For Examples

    You cannot do that. You will have to re-arrange the ladder or split the logic into separate rungs.
  24. New content Icon???

    The icon for the Omron forum is working correctly again. The one for the general topics form is still broken.
  25. New content Icon???

    Yes, I am aware of the individual "mark forum as read" and "mark site as read". That's not really the issue though. The new content icon is still not working as it should.