Robafe

MrPLC Member
  • Content count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Robafe

  • Rank
    Sparky

Profile Information

  • Country Canada
  1. Database CP1L ?

    Need a simple 5 word 10 record DB That I can Add a record Search for a record Delete a record I was looking at (Dim) but cant rap my head around it. Thanks for any help  
  2. Database CP1L ?

    Simple question The Dim command, will it do this... Or is there a easier or better way I have a phone # and a Bin location.. Customer buys item on line. The Item is placed in a bin with customers phone # This will consist of X words. I want to store this information Basically simullar to this I want to be able to search via the Bin location to get the customers phone number There could be 1000 records in the DB DIM ? and do you have a simple example of how to use it ? 123 456 7890 A001   Thanks guys Rob  
  3. 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  
  4. Serial Port issue

    Is there a wiring diagram for hardware flow control? for the serial ports???? Rob  
  5. Serial Port issue

    It stops receiving as soon as it sees any CR LF Never gets to the end code (port 2) Also  Port 1 is setup to receive 14 chars. A phone # and location code 9025552565A001 when I send it over and over it will change on of the #s Like instead of 902 it will show 912  Basically the same issue as I have with port 2 I wired the connector up from an example on this site I will find it and past it here. I have had a lot of issues with these omrons.  2 CP1L and one will NOT connect to my NB the other connects works ok Modem  PLC            2 - 3            3 - 2            5 - 9     (4,6)    (4,5)     (7,8)     (7,8)   Rob  
  6. 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  
  7. CP1L-EM

    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  
  8. Serial Ports not working

    You asked for it Remember DUMB First off, I still cant get the CP1L-EM 20 to connect to the NB The CP1L-EM 30 Connected right away And the DUMB part was I didnt check the Com Port switches on the EM 30  I was so happy the NB worked I totally forgot...... Doh Rob  
  9. Serial Ports not working

    I have it working now- phew....... A very dumb and embarrassing mistake on my part. I really thank you for your help. Rob  
  10. Yes it is because i have been trying to get attention for this problem. Out of pure fustration  I now have it fixed and I have to tell you the problem was very embarrassing.... But I thank you very much for your help. This is a great place for less experienced like me to get help Rob  
  11. Serial Ports not working

    I was poking around in the A bits killer is I couldn’t get the MB connected to my plc Cp1l em 20 so I load my pre into my Cp1l em 30 and the MB connected right up then I noticed the serial ports not working. I swear someone doesn’t want me to succeed with this project  Sending and receiving SMS msg to from a Waveshare 4G DTU  Thanks a lot for the reply photovoltaic …  
  12. 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  
  13. How do i only reload D&H from a backup ? as it loads them all when I open the PLC_MEM.MEM OK now I have a working Network link to the NB BUT I have NO ready to send or receive on ether com 1 or 2     A392.05 A392.13 What would lock out both ports for sending and recieving??? I have never had so much weird **** happen. Both com ports will connect to the CX Programmer no prob. This is a WTF day. I went from a working system to dissaster by moving the NB from serial to network any ideas Rob  
  14. "PLC No Response" NB HMI Omron

    Found the issue The display scrambled a bunch of settings including PLC Control where the setting is that allows the screen to be controlled by the PLC. I also found w-bit changed to other settings all through the NB program. Dont know what would make that happen. I was using Ethernet to program the screen and changed to USB. Never had any issues with Ethernet. Rob  
  15. "PLC No Response" NB HMI Omron

    Thanks photovoltaic Update on this issue New PLC works with a straight connection or across the network with the NB But (DM 0000) that is the screen change control has no effect on the NB  I can input data and it shows data but no more screen change control. And I have buttons on the screen that update the screen I want to be in based on if statements. Just for the hell of it I connected the origonal PLC and no way will it connect over TCIP to the screen even though the settings are the same  as they are on the new plc. So now to figure out why the screen will not respond to D-0000   Rob