BITS N BYTES

MrPLC Member
  • Content count

    911
  • Joined

  • Last visited

Everything posted by BITS N BYTES

  1. Sending data from CJ2M to CJ1M

    For your application and small amount of data you could use Serial PLC Link to exchange data via the serial ports of each PLC. Very simple, reliable and easy to setup. Requires NO PROGRAMMING in the PLC. It is setup/configured in the PLC settings.
  2. CP1E program missing input and outputs

    Final notes. IF you have the correct model CP1E-N type PLC have you selected the correct DEVICE TYPE and CPU TYPE in CX_Programmer?
  3. CP1E program missing input and outputs

    I hope your CP1E PLC model suffix is type CP1E-N. Only this model type will allow high speed pulse outputs. To configure the outputs you also use the PLC settings to configure either or both Pulse Output 1 and Pulse Output 2.   Again don't forget to download these new setting to the PLC and POWER CYCLE to accept new settings.  
  4. CP1E program missing input and outputs

    In order to use I/O for high speed tasks/instruction they must be configured in the PLC settings and downloaded to the PLC. After downloading you MUST power cycle the PLC for these new setting to work.  
  5. Bit Position Word

    The DMPX instruction control word C specifies how conversion occurs. Setting third digit of the C word to 0 specifies 16-to-4bits conversion. Between 1 and 4 words can be processed based the setting of digit 1 by setting it between 0-3. Setting digit of the C word to 1 specifies 256-to-8 bits conversion. In this case a block of contiguous block of 16 or 32 words is searched by setting digit to 0 or 1.   For a full explanation and sample code for this instruction in Omron Manual W340. Here is link:- http://www.edata.omron.com.au/eData/PLCs/CJ1/W340-E1-17.pdf    
  6. Bit Position Word

    Data Encoder:- DMPX(077) Instruction might be what you are looking for?
  7. Protected program

    Good luck. Let us know if this works out for you! Regards
  8. Protected program

    You could try using the BACKUP/RESTORE procedure using a CF card. BACKUP exiting PLC program to CF Card. RESTORE program to other PLC using CF Card. Depending on how the program was originally protected this should work. BUT if the other PLC is a different Version # this may cause a problem. CJ1 CF card backup & restore guide.pdf
  9. Really miss the ability to have individual element properties for instructions as available in CX-Programmer. Please, please add this to Sysmac Studio.
  10. data save

    Using IR and DR for Indirect Addressing.pdf
  11. Well how about sharing with this forum what the fault was and how you resolved it?
  12. Arduino: I had a plc dream...

    Does this suit your requirements? https://www.automationdirect.com/adc/overview/catalog/programmable_controllers/productivity_open_(arduino-compatible)
  13. There ARE some restrictions on the CP2E series PLC's relating to Function Blocks and Structured Text. See manual W614. Attached is extract from manual for ST. This MAY be causing your issue. W614-E1-01.pdf   Apologies, original attachment was not working W614-E1-01-Extract.pdf
  14. Looking for a good USB to Serial (RS232) Converter

    Whenever you need help with Serial communications my go to spot is:- https://www.serialcomm.com/USB_adapters/USB_converters/usb_to_rs232_adapter/usb_to_rs232_adapter.product_general_info.aspx Good prices and excellent tech support.   And NO! I am not affiliated with them.
  15. Sysmac HMI Identifier Fault

    YUP not the ONLY individual! Burnt me a few times.
  16. Just be sure that the elements of the AryOut have the same data type as as In. Made this mistake once before until reading manual.
  17. CP2E Modbus RTU Slave

    YES ModBus slave will work and is covered in Section 14-7 in OMRON manual W614. In general a function block is not needed in the slave as it is up to the MASTER in a ModBus network to define which data it wants to read.
  18. Connect more than 3 expansion modules CP2E

    Maximum 3. BUT if you purchase two PLC's and a serial  option board for each one, you can use Serial PLC Links function to transfer data between each PLC. In effect you have two PLC's each with max expansion of 3 units.
  19. CP1E Stepper Control

    This article may also help you. Though written for a CJ1M processor the principles apply just as well to a CP1E ALSO remember that if you change PLC settings for motion these MUST be downloaded to the PLC AND most importantly the PLC power must be cycled OFF->ON for the new settings to take effect.  
  20. LOVE THE AVG[195] FUNCTION - BUT!?

    The AVG[195] function is a really useful BUT it seems that it only works with cycles of the PLC. In other words if I specify the maximum number of cycles as N=64=0040hex the average data becomes valid [R+1 bit 15 turn ON] after 64 cycles of te PLC. If the PLC cycle was 5 mSec I would expect to get a valid average after 320mSeconds. This does indeed work correctly. The data that I am averaging changes about every 3 to 4 seconds and when I try to apply the AVG instruction all data in the AVG data area R+2 to R+[2+64] is the same as the most recent Source value. In other words the S [source Word] always equals the R [Result Word]. I cannot find a way to have the average instruction update with a different timebase other than the PLC scan. Instead I am using a word shift register and averaging the contents, seems crude and more complex than AVG. Any words of wisdom/ideas how to use AVG with a user applied timebase for cycles?
  21. Pointer cx programmer

    You might be better off using Indirect Addressing for your application.   https://forums.mrplc.com/index.php?/files/file/195-indirect-addressingzip/
  22. Easy way to pulse Output

    You don't want to use a PWM output with a mechanical relay! It will quickly wear out and fail!
  23. Canterbury, thanks for response when problem is resolved.Feedback on this site is always appreciated and helps EVERYONE.
  24. 1S Servo brake interlock warning

    Subindex should be 05 bit 7  set to 0?