gclshortt

MrPLC Member
  • Content count

    347
  • Joined

  • Last visited

Everything posted by gclshortt

  1. SCADA DEMO SOFTWARE

    http://www.plctalk.net/qanda/showthread.php?t=31767 http://www.plctalk.net/qanda/showthread.php?t=16209 http://www.plctalk.net/qanda/showthread.php?t=43450   The above links may help you out.  Regards,
  2. From PM this morning

    Hi Tuan, OPC Kepware will communicate either through the serial port or an ethernet port. It will not be able to communicate using the USB port of the PLC. This is mainly dedicated to Omron software only like CX programmer.  Regards,
  3. From PM this morning

    Hi Tuan, The USB port is a bus for communications with various kinds of Support Software running on a personal computer. High-speed communications are supported.  This is a port connected to Programming Devices only, such as the CX-Programmer. Regards,
  4. Turn 8 inputs into a number?

    https://assets.omron.eu/downloads/manual/en/w474_cs_cj_nsj_series_instruction_reference_manual_en.pdf Here is the above instruction manual for the CJ2H. The MOVB instruction will only move one bit at a time. Use the  MULTIPLE BIT TRANSFER  - XFRB  instruction. You will be able to specify the number of bits to move along with the starting bit location in the source and destination words. See diagram above. Regards,
  5. Turn 8 inputs into a number?

    We need to know the model number of the Omron PLC that you are using. Look at the instruction set under the data movement instructions heading. Example: http://www.edata.omron.com.au/eData/PLCs/CQM/W228-E1-08.pdf Here is the manual for the  CQM1/CPM1/CPM1A/SRM1 In this PLC the Move Bit (MovB) instruction will only move one bit at a time. You need to use the Transfer Bits (XFRB) instruction. This will allow you to specify the number of bits to move from the source to the destination. Here is a post that will show the XFRB instruction as part of the data movement instructions in the CP1H. http://accautomation.ca/omron-cp1h-data-movement/ Regards,
  6. From PM this morning

    Hi Tuan, Here is a link that will show the Omron Host link Protocol using VBA.  http://accautomation.ca/how-to-implement-the-omron-host-link-protocol-part-2-vba/ The CX software also comes with CX Server DDE. This should be on your installation disk.  http://accautomation.ca/implementing-the-omron-cx-server-dde-and-excel/ Here are some additional links that you may find helpful: Omron  Host Link Protocol using VB 6 http://accautomation.ca/how-to-implement-the-omron-plc-host-link-protocol/ Omron Host Link Protocol using VB.Net http://accautomation.ca/implementing-the-omron-host-link-protocol-vb-net/ Conditional movement of data using excel http://accautomation.ca/excel-conditional-movement-of-data/ Each of these links will take you to a specific post. At the bottom of each of these posts you will see a video also explaining the operation and programming. Hope this helps you out. Regards,
  7. From PM this morning

    Hi Tuan, Yes you are correct. The CJ2M-CPU13 will not accept the option boards. Only the CPU3_ will accept the boards. You can use the CJ1W-ETN21 Ethernet module. https://www.ia.omron.com/products/family/1451/ The other option is to use the serial communication. https://www.ia.omron.com/products/family/1651/feature.html RS-422A/485 Port: CJ1W-SCU[]1-V1 500 m max. (total cable length: 500 m max., T-branch branch lines: 10 m max.) Regards,  
  8. From PM this morning

    Hi Jay, What about RS422/RS485 card? CP1W-CIF12 RS-422A/485 Option Board (isolated, max. transmission distance: 500 m) https://www.ia.omron.com/products/family/2712/specification.html Regards,
  9. PID in CP1L,HELP ME

    http://www.plctalk.net/qanda/showthread.php?t=103909 The above thread may help you out. Regards,
  10. https://sourceforge.net/projects/advancedhmi/ AdvancedHMI is a good package. It is written in VB.Net and runs on visual studio. This is a free software. Team this up with SQL Server and you have a good system for logging. http://accautomation.ca/create-a-plc-with-hmi-training-and-learning-environment-free/ http://accautomation.ca/creating-a-hmi-login-screen-on-advancedhmi/ The above will be a sample of what you can do with AdvancedHMI.  I hope this helps you out. Regards,
  11. CX-Programmer

    https://assets.omron.eu/downloads/manual/en/r132_cx-programmer_fb_library_getting_started_guide_en.pdf The above getting started guide is good for learning about CX-Programmer. Then I would recommend learning about the Omron PLC that you will be programming.   
  12. MOV Addresses

    Thanks for picking up on that error Kaare_t. It's been awhile since I have programmed Mitsubishi.  
  13. That is great Linus.  Congratulations. The raspberry pie should be similar to the PC pinout. Thanks for the update. Garry
  14. MOV Addresses

    https://www.hiflexonline.nl/products/mitsubishi/plc/documentatie/Q_and_L_Programming%20Manual.pdf Look up 3.2.2 Using word (16 Bit) data K3L11 - The 12 points (bits) L0 to LB Regards, Garry
  15. Modbus RTU communication

    http://www.omronkft.hu/nostree/pdfs/sysmac/w494-e1-03.pdf The following link may help you out. http://forums.mrplc.com/index.php?/topic/20043-rtu-modbus-with-cj2m-plc-and-3g3rx-drives-on-rs485/ Regards,
  16. Hi Linus,  "I bought this other convertor yesterday night and did the desktop test first and data went both ways.  Thinking that I will finally succeed, I went ahead to connect to the PLC but then encountered the echo back when connecting with only the serial cable." It looks like you are close to a solution. Connecting to the RS232 port on the PLC involves only the three connection pins. The ground should be the same. 9 - 9. The SD and RD signals can only be one of two ways depending on the pin out of the serial cable from the Pi. 2-3, 3-2 or 2-2, 3-3. Raspberry Pie - Converter - RS232  to RS232 - Omron CP1L Regards,
  17. Need help to connect to CP1L to read DM data

    My previous post to you explains more detail.
  18. Need help to connect to CP1L to read DM data

    Hi Linus, Here are the following links for communication parameters: https://www.myomron.com/index.php?action=kb&article=1257 http://www.omronkft.hu/nostree/pdfs/plc/cp1/w462-e1-08_cp1l-cpu_opermanual.pdf In this manual look for  6-3 Serial Communications Establish communication using CX programmer first with the serial port. This will prove your cable is correct. Then proceed to using any other software. Regards, Garry
  19. Hi Linus, I would start with the computer running CX-programmer. You mentioned that you are able to communicate usb to the PLC. Have you been able to communicate using the Serial port on the computer to the serial port on the PLC? Note: If your computer does not have a serial port then use a USB to Serial converter. I have used the following with good success. http://www.ugreen.com.cn/product-681-en.html CX-Programmer should be able to communicate to the serial port on your PLC. This will prove that the cable is correct. You can then try your program for communication to the PLC. If that is working correctly then connect the PLC port to the raspberry pie serial port and test your program.   Regards,
  20. Usefull stuff?

    Share one mouse and keyboard between multiple computers Synergy combines your desktop devices together in to one cohesive experience. It's software for sharing your mouse and keyboard between multiple computers on your desk. It works on Windows, macOS and Linux. This program is ideal for your desktop application with multiple computers running. I have three windows computers on my desktop. Windows 10, Windows 7 and Windows XP. Using just one mouse and keyboard I can use all three computers at once. http://download.cnet.com/Synergy/3000-2072_4-10714570.html Regards,
  21. Hi Linus, There is nothing that needs to be done on the ladder program side for the computer to communicate to the Omron PLC via RS232.  The default setting for Omron RS232 is 9600, E, 7 2.   Since you mentioned Raspberry Pi, there is a program that will run on this device that will take care of all of the communication protocols to the Omron PLC. This is AdvancedHMI which is written in VB.Net and runs in visual studio. https://sourceforge.net/projects/advancedhmi/ http://accautomation.ca/omron-cp1h-advancedhmi-communication/ Here is how to make this software run on a Raspberry Pi: http://advancedhmi.com/forum/index.php?topic=666.0 Just another way to do the same thing that you are trying to accomplish. (Cable would be the same) Regards,
  22. Hi Linus, I have attached the cable pin out diagram. All of the handshaking has been jumped out on the PLC side. 4-5, 7-8. The computer side has 4-5 jumped out. It is important to try and discover if the program or cable is the cause of the communication error. You have indicated that you can communicate to the PLC via the USB connection. I would try the cable again with the other pins jumped using CX-Programmer. Once you have established communication using RS232 with the PLC, you will know that your cable connections are correct. Regards,
  23. Hi Linus, Can you communicate to the unit using CX Programmer through the same port? This will ensure that the cable and communication parameters are correct. Here is the cable pin out required for communication: http://accautomation.ca/wp-content/uploads/2017/05/How-to-implement-the-omron-host-link-protocol-vb-net-050-min.png Regards, Garry
  24. Hi Jay,

    I've put up a few links on the site for your visitors. 
    CP1H tutorial
    CLICK PLC tutorial
    Horner XL4 tutorial

    Regards,

    Garry

  25. Click PLC Series Tutorial

    This Click Series PLC tutorial will give you a good start in learning how to program this controller. Click PLC Series (Automation Direct) System Hardware – Video Installing the Software – Video Establish Communication – Video Numbering System and Addressing – Video Timers and Counters– Counter Video – Timer Video Compare and Math Instructions – Video Program Control Instructions – Video Shift Register – Video Drum Instruction – Video Send and Receive Instructions – Video AdvancedHMI Communiation – Video Create an Analog Voltage Input Tester for a PLC – Video Wiring Testing Analog PLC Input Click – VideoModbus RTU Click PLC Master to BRX PLC Slave Communication – Video If you have any questions or need further information, please contact me. Regards, Garry www.accautomation.ca