Search the Community

Showing results for tags 'serial ports cp1l-em'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 155 results

  1. I've setup an Omron NX102 PLC with two CIF105 cards communicating with about 40 MX2 VSD's (20 on each card). Generally it works pretty well. I used the attached document to set up the devices. The links on the document to the examples don't work, so I'm unsure if I missed anything. My problem is that every day, sometimes multiple times a day the communication seems to die. i.e I either loose the output to the VSD and nothing will run. Or it all runs but I loose the feedback, as in I get no running signal even though the drives are running causing a fault in my program. I'm at a bit of a loss as to what might be causing the issue. To resolve it, I put the PLC into program mode and back into run mode and everything is happy again.    Has anyone had a similar issue or offer any advise? MX2_Control_Serial.pdf
  2. Hi Everyone,I have a customer that needs a CQM1H (CPU51) replaced. They purchased the processor new-old-stock from a source they found online. It arrived in the original packaging and had the safety label around the top of the unit, so it seems that it is as advertised and no need to suspect that it would have problems. I purchased secondhand, a power supply to attach to it and program it from the bench instead of in the machine. The customer also provided me with an SD card containing the project file(s) for the machine. I am able to load the project in CX-ONE (running on Win 7) just fine. My computer has a native serial port (COM1) and I built a programming cable to work with the DB9 peripheral port according to a diagram I found online.The processor powers up right away with the ERR/ALM continuously on. No other LEDs came on initially, and after a bit of playing around with communications settings, I finally landed the right protocol and my computer seemed to identify the processor correctly. I compiled the source and attempted a transfer to the PLC. I got some failed message (or maybe messages) at the end of the transfer. It did seem to send all of the binary code, it just ended with an error message that I unfortunately didn't write down or grab a screenshot.Anyway, what I have now is a PLC processor with the ERR/ALM LED on always, I've never seen it in RUN mode, and now after the programming attempt, I'm seeing the COMM LED strobing at about a .5sec frequency (with or without a cable attached to the peripheral port), AND I cannot get CX-Programmer to again acknowledge the processor anymore. I'd like to reset this back to the way it arrived to me, but can't figure out how to make that happen offline. The DIP switches don't seem to cause that effect. I should say also that the DIP switch settings are all OFF except 3 and 7.Any help is much appreciated!Thanks,John  
  3. Following my post from yesterday and the fix proposed by @chelton, I went ahead and expanded the solution to multiple PLCs in the shop. Now I'm stumbling on another layer of difficulty : I have to RECV in a CP1L-E (10.1.14.214) from a NJ-301 (10.1.46.118). Both PLC's are physically connected to the same Ethernet Switch in the shop, but the IT guys decided to add a new subnet for PLCs and equipment some time ago. I read Michael Walsh's answer on this post but I couldn't figure out how to set things up properly with 2 subnets that are not consecutive. What do I need to setup in the CP1L-E to be able to RECV properly? There is certainly a routing table setup that I need to add but I cannot figure it out by myself. Here is the current setup : In the NJ, I have a UINT variable mapped At %W0, Network Publish set to "Output" The RECV command in the CP1L-E is as follows: C0 = 0001 (1 word) C1 = 0001 (Port 0, network 1) C2 = 7600 (node 118, unit address 0) C3 = 0203 (port 2, 3 retries) C4 = 0032 (5 sec timeout) The Built-in Ethernet parameters in the CP1L-E are attached Thanks !
  4. I am trying to connect a Panel PC (Bartec RS-422) and an Omron PLC (CJ2H RS-232) I am using a Kinematics 2199 RS232 to RS422 converter. Results: Testing software Multiway v9.5 1) Using a usb to rs-232 cable on another PC     - I am able to send and receive a hostlink commands between the panel rs-422 converter and the PC rs-232. commands come through correctly 2) Using the PC to connect to the PLC     - If I connect directly to the PLC using the usb to serial cable and a short adapter I made to map the Omron PLC pin out 2-2,3-3, 5-9, I can send and receive hostlink commands to the PLC. Everything works as expected 3) Using the Panel and the USB Cable    - If I connect the usb converter to the Panel I am also able to communicate with the PLC 4) using the RS-422 port on the Panel     - If I connect the panel RS-422 port and converter and then connect to the PLC. I can only send commands; I cannot get any responses come through from the PLC. My converter box has LEDs on the RX and TX channels and I can see the PLC tries to send something. But something must be corrupted as multiway does not show and response.  I have tried a bunch of things but I am at a loss on how to diagnose this issue. Since I can get the two PCs talking to each other sending and receiving, I can rule out any wiring issue between the converter box and Panel.  Since I can plug the USB into the Panel and get it to work correctly, I can rule out any operating system issues and PLC configuration issues. The only link I cannot verify is that from the converter box to the PLC, I am not sure if the PLC can push hostlink data that has not been requested.  I have no idea why I can write to the PLC but not read. If anyone can provide any insights, I would greatly appreciate it, It has been two days and I am stuck. I am looking at maybe getting a logic analyzer to try and see what the PLC is sending back, but that will be months away.  I am happy to try any suggestions       
  5. Hello. What is the best option using TCP/UDP communication to use CP1L-EM40 as SLAVE / IO Expansion? For MASTER I’m using CJ2M-CPU31. Since now I’ve used FINS _CPU010_SendData and _CPU011_ReceiveData function blocks. The problem is, that I’m communicating with 6 slave IO units and to read/write all 6 units it takes up to 1 – 2 seconds. I’ve tried Ethernet/IP protocol but CP1L units doesn’t support this protocol. Is there some kind of different TCP/UDP protocol which is faster than FINS?  In older days you could use PC Link but this protocol is for RS232 / RS485 comm. I know I could use CP1W-EIP61 but I don't have this adapter and I can't afford to buy one Thanks. 
  6. Send data TXD548)

    Hi,   After a long time, searching for missing communication I think to have found the cause. In this CMP2A plc there is a receiving device connected to the RS-232 port. . During operation it can happen that in the same cycle there will be 2 functions to send different data.. I never receive those 2 data,  only 1 is received. I can set a delay for sending this but this seems to be 'overkill', Is there a simpler way to do this..? The 2 pics are part of the program. After putting the P_off before the other transmits, I always receive the TXD(48) DM1621...   Please advise,      
  7. I'm trying to simply send 1 word of data from 1 CP1L-E to another one, on the same subnet. I dont have any CP1W-EIP61 adapters and wish to know if it's possible to do it using only the built-in Ethernet Port on the PLCs. Setup: Sender PLC's IP address is 10.1.14.62 Receiver PLC's IP address is 10.1.14.214 1 word of data needs to be sent from W20 in the sender to W20 in the receiver Both PLC's are connected to the same network switch in the plant My current control word parameters : C = 0001 (1 word of data) C+1 = XX00 (XX = which port number should I use?) (00 = local network) C+2 = D6FA (D6 hex = 214 decimal, which is the node address of the receiver PLC) (FA = Unit address setting for CPEL-E Built in ethernet port) C+3 = 0005 (0 = Response required, 0 = port #0, 05 = 5 retries) C+4 = 0064 (10 sec monitoring time) In the receiver PLC, the W20 word never changes. In the sender PLC, the Error flag (A202.00) always turns on. What am I doing wrong?
  8. CP1L Serial TXD Data Error

    Hi, I have a problem with serial communication (no protocol) using rs485 module, the received data is error. I'm using CP1L CPU, CP1W-CIF11 module as transmitter, and USB to RS485 converter as receiver. When I check the received data on PC, it's incorrect (bit error?). I just send 2 bytes data, 0x61 ('a') and 0x62 ('b'). My configuration: DIP switch CPU 4 = off, DIP switch CIF11 1 to 6 = on,on,on,off,off,off, 2 wire RS485. (I also attached the program and settings) https://postimg.cc/gallery/pr293Jc   Could you help me to solve this problem? Thanks   Program and Settings:     Result:   
  9. Serial question

    I have a cell phone modem connected to my Omron CP1L on serial 2   Here is the issue  I need to pull the phone number out of the msg received (receiving text messages)  I receive a text msg and a lot of other crap like time and date ect. RDX says store in D100 the problem is that after I receive the SMS I see the phone number and copy the number to D200 to D2xx The next text comes in and it is added to the length of the previous text and the new phone number is not in the same D area as the first.  It seems the only time the serial port works is if you declare 20 characters and you get 20 characters Works every time. But sometimes I may get 12 characters and other times I can get more than 100. I have used the restart and clear port command with no luck.  If I set RDX to a large number and receive complete will not come on and the next receive will be added to the first.  I need a clear buffer for each receive.  How do I get around this?  If you set the RDX to 10 but 12 characters were received the 2 extra characters will be in the buffer and added to the next receive.  I can’t use end receive if x because there is nothing that is always available in the msg. And even if I do any characters received after end code is left in the buffer and screws up the next receive. I have never seen anything like this. Any ideas? Thanks Rob  
  10. Serial Port issue

    Sorry its long !! I am recieving text from a GSM modem for text msg Send and receive (SMS) works ok but would be better if I could make use of the start code and end code. This way I could cut down on all the crap that is received when a text arrives. I get this  CMTI: "SM",0 I have it stored into D80 and I have that trigger a TXD that sends AT+CMGRD=0 and that tells the GSM to send the msg (The 0 is the current msg in memory) ------ The problem is that there is Carriage  Return and Line Feeds in the received msg ----      AS below ((AT+CMGRD=0 +CMGRD: "REC UNREAD","+19028991212","","22/10/20,16:57:54-16"  Hello this is the msg  OK)) When the PLC sees the carriage return it stops receiving data. And I have no start code or end code setup. (I am using characters received) The way around this is to set a high  character count in the RXD (More than the actual msg (More than the msg length)   The main issue with that is I get garbage in as the msg gets bigger. Its unreliable. I clear the port after each receive and that helps but still get the odd garbage. (Never get garbage when connected to a terminal prg). Any Ideas???? ps Even the Start Code is unreliable as it will start receiving a few characters late. Rob  
  11. Serial Ports not working

    I have a CP1L-EM and the serial ports - both of them have an issue with the port ready flag will not turn on. Power cycle still no port ready flag In settings both ports are set up as 15200 8N1 CR/LF Verified and power cycled and still no port ready flag. Is there someplace in the PLC where the ports can be disabled? Rob  
  12. NB HMI Macro

    Hello there. How to transfer data from one memory area to another using macro ?   Data Type - Double Word Length - 4 Format - BIN Integer - 3, Decimal - 1   From Area - D To Area - LW
  13. Until recently, I haven't had to connect to a piece of hardware using a serial connection in quite sometime. Well, that all changed yesterday when I needed to connect to a Watlow F4T Controller. I dug around in the bottle drawer of my desk and pulled at not one, but two USB-Serial Converters that I saved for just such an occasion! My old ones worked on everything from Allen Bradley SLCs, to Schneider Drives. Unfortunately, neither appear to work in a Windows 10 environment. Searching the internet, I was not able to find any drivers for these old converters, but did find some posts in another forum stating that Microsoft changed how it manages its USB ports from Win 7 to Win 10. Thanks Microsoft! Sorry, I will cut this rant short and just ask my question. Can anyone recommend a USB-Serial Converter that works in a Windows 10/11 environment?  Respectfully, Shane 
  14. Change Subnet On CP1L PLC

    I am trying to change the subnet of this CP1L plc. Currently it is at 192.168.250.*** and I would like to change it to 192.168.54.***. I already tried starting fresh by writing to the controller with ip 0.0.0.0 and then putting my desired ip address after. When I try to write to the controller with a subnet other than .250 for example 192.168.54.13, the controller saves the node address(.13) but keeps the same .250 subnet which results in me being able to ping 192.168.250.13 successfully but get no response from pinging 192.168.54.13. Yes I did change my local network card when pinging different subnets and also did a network reset in CX-P after every ip change. Let me know if there is anything I am missing!! 
  15. need help with programing a cp1w

    hi i am tryning to make a program that takes 4-20ma signals from a  pressure sensor and converting it to show ML on a hmi screan. im using a CP1L with a CP1W-Ad041. but i cant figurout how to set up the setings in cx programer correctly. any tips?
  16. Please Help me, I want to connect aczet brand weighing machine CG203L to PLC CP1L-M. But several times I tried it didn't work, I've tried repeatedly in the settings section to adjust the baud rate and mode and have tried one by one but to no avail. Can any of your friends help? thank you
  17. I'm trying to understand the basics of using a serial to ethernet converter such as this Comtrol DM-EIP-2101, with Studio5000 code. Basically I have a weighing machine that only outputs data via RS-232 and I need to send that data to a PC that will process it through a Studio5000 program and have the data displayed on an HMI using FTview SE. Is it as simple as just connecting the serial and ethernet to the converter and it does all the work? Obviously checking ip addresses and firmware will need to be verified. The main thing I am unsure of is the process of passing the individual data packets from the machine to the Logix code on the PC,  things like what the weight of the item was, was it over weight or under, etc....  Would there be an AOI or tags built into the software for a machine like this Checkweigher? I've worked with much smaller items like Cognex Dataman cameras and I know you can just use their AOI that allows you to simply call a tag if you want to display information like if a scanned barcode was correct or whatever. If anyone has done something similar I'd appreciate any guidance. It can be difficult getting the information from the manufactures so I'm looking for answers anywhere I can. EDIT: I guess I should also clarify that only using one or the other (serial or E/IP) is not an option. It will be a serial connection from the Weighing machine to the converter and then Ethernet to the PC.
  18. Dear forum, I am facing a trouble at the moment and hoping somebody can assist. I have one HMI software, GT Designer 3, HMI: GS2107 and/or GT2107, the software works so far so fine. The software is used on several products, I dont want to maintain two or even more software versions. Two serial devices are connect: 1x MODBUS RS-485 1x MODBUS RS-232. The data transfer is done via DDT, no direct calls. The DDT transfer the MODBUS address to the internal GD-Registers. The GD-Registers are used within the HMI. My trouble is that in some cases, there is no RS-232 device connected. This creates time outs, slows down the HMI and its just not nice looking (I have a warning implemented "WARNING NO CONNECTION TO SERIAL DEVICE RS-232". Is there a way, that I can select (retained) that the RS-232 is connected / or not? Once the software is configured "NO RS-232 CONNECTED" I can handle the rest of the software.   Anybody an idea how to do this? Many thanks.
  19. G9SP Configurator

    I am at a client site that has a line with multiple Omron G9SP-N20S safety controllers installed and I need to make a modification to the system.  I tried to install the Omron Configurator and it asks for a serial number, and will not install without one.  Omron said that it is on the CD that ships with the unit, but the equipment manufacturer did not supply any of the CDs.  The only Omron solution is to order a replacement CD, that will take 5 days, which is 5 days too long as there is a hard stop in 2 days.  I have tried entering numbers found on the controller, with no success.  Does anyone have a better way, special contacts at Omron, to et it faster?
  20. Omron PLC PID Control (CX-Programmer)

    Hello every one in this video, you will learn about Omron PLC PID Control (CX-Programmer) you could download as free by using the below referral link: Omron PLC PID Control (CX-Programmer) | Udemy I marked free download for 1000 people. I hope it will be useful for you.   Regards Mehdi  
  21. Hi, I have a CP1L and CP1E Omron PLC, and I try to make communication between my PLCs and my system (raspberry pi with Linux OS) using Node-red and specifically using the OMRON-FINS node ( https://flows.nodered.org/node/node-red-contrib-omron-fins) and more detail ( https://github.com/ptrks/node-omron-fins ). So I’m looking for a module to create an Ethernet port for my PLCs. ( both PLCs have RS232 port) . Can you please guide me to find a compatible RS232 to Ethernet module for my PLCs?  Thank you
  22. hmi for CP1L

    how to sett up cx programer settings to use hmi/nb5q-tw00b with a CP1L-L14DR-A? and what address do i use for I/O on the hmi?
  23. Hi, I have a project including 32 digital outputs, 8 Pt100 probes, 4 thermocouples, and 4 analog inputs so I have to choose an OMRON PLC. The supplier in my country has only CP2E and CP1E PLCs. Is there a way to connect more than three expansion modules to the PLC? On the website is stated that the maximum number of expansion units is 3, if the answer is no, is there a solution to this problem? Thank you
  24. Here is a post that we recently completed on the Automation Direct USB to RS485 Adapter.  The USB-485M is a 2-wire USB to RS-485 serial communication adapter for RS485 use. It does not require an external power supply or complicated configuration. It has a Type A (plug) USB connector for the computer side and a universal female RJ45/RJ12 modular connector. This will accept RJ12 and RJ45 plugs.  The USB-485M supports multiple baud rates and is USB V2.0 Compliant. Read the rest of the post... YouTube Video on the installation and communication to a Solo Process Temperature Controller via Modbus RTU. https://www.youtube.com/watch?v=aWE05ZNZNXw Let me know what you think, Garry www.accautomation.ca  
  25. I am trying to get a G9SP taking over serial to a NX1P2 using a NX1W-CIF01.  I have the details in Manual P545-E1 and it uses a example file which i am unable to locate OMRON_G9SP_SERI232_LD_EV100.SMC I have got the coms working with a CP1L using the example in Manual Z922-E1.  I was wondering if anyone has the example file or a working example they can share for Sysmac Studio. The serial comms will take a little bit to get going but it is the code for the checksum for the sending data that i would rather not have to translate from CX Programer fort he CP1L to Sysmac Studio...... P545-E1-01.pdf.lnk Z922-E1-07.pdf.lnk