Jack1995

MrPLC Member
  • Content count

    10
  • Joined

  • Last visited

Posts posted by Jack1995


  1. On 2/14/2020 at 8:12 PM, gtsuport said:

    What is the model number of the plc?

    What port are you using for the communications?  Is it a built in port?

    gtsuport

    sorry for late reply, I m using Omron CP2E, using rs232 serial port, from the latest info i get, is it posible if i use lan for data communication instead of rs232?


  2. 6 hours ago, gtsuport said:

    Your TXD instruction is set to transmit 256 bytes of data.

    Can you receive information?

    Wondering if your cable is correct.  Omron 9 pin port is NOT standard wiring.

    gtsuport

    I can get signal that plc sending data to pc but I can't receive any information, my db9 is connected follow Omron manual. May I know how to change the transmit bytes from 256 bytes to lower bytes? Cause I m actually need it to constantly send 'P' every second only no other data


  3. Hi guys, This is my 1st time using TXD function to send a letter 'P' to PC by RS232, I have my pC can detect that a data being sent but it seems like didn't received the content, from the software i use to communicate with serial port, it just showing empty/FF FE(Hex) with whatever data i tried to send, I have tried changing the data type but it's still the same, pls help, Thanks.

    Setting.PNG

    TXD.PNG


  4. 3 hours ago, Michael Walsh said:

    A392.06 turns on each time that new data is received.  It sounds like your scale is not constantly sending data.  Does the light blink on the serial port light?   Is it possible that your scale is not using CR+LF as a terminator?  Each time that the port sees CR+LF, A392.06 will turn on.  

    No, the light on the serial port remains on after connect to the scale, it nvr blink. I m not sure if the sale is not using CR+LF as a terminator but i think it could be, I m currently asking the supplier bout the scale, if the scale is not using CR+LF as a terminator, does it means that it can't connect to PLC already or we can make it connect to PLC using different setting? Thanks 

     


  5. 12 hours ago, Michael Walsh said:

    I am not sure what setting a null character as the start code does.  I would set that to disable.  Instead of 2.00 I would suggest using A392.06 (Port 1 reception complete flag).  Also, what pinout are you using for the serial cable?  It is not a standard serial cable.

    Hi Michael, 1st of all thanks for your advise, I have tried after changing the setting as you told, it can read but not the value showing on the scale, and only read for once is there anyway to make RXD trigger by button? and I notice that the A392.06 is not being trigger, is that normal?

     

    A392.06.PNG

    Setting 2.PNG


  6. Thanks  Michael, the serial cable is wired according to omron rs-232c wiring diagram. I tried with  A392.06 instead of 2.00 before but the A392.06 not being trigger, I'm not sure why but i will try with what u said and update about the status here, again thanks a lot .


  7. Hi, I am very new to PLC, this is my 1st time using RXD function, I am connecting my PLC (cp2e-N) to a weighing scale using RS-232c and I have try using both RXD function but i can't received any of the reading, I try @RxD after that but after receive few reading, it start to stop receive anything, wonder any problem with my program or setting. Attached is my program please help, Thanks

    RXD.PNG

    Setting.PNG