Kilroy (Customer) asked a question.

P2000 ASCII OUT only writes one line

I am working with a P2000 application. Trying to use ASCII out to stream some data to an external system. Using the rs232 port on the CPU. Streaming out to Hyperterminal on a PC for testing, both setup 57.6 baud, 8,N,1, no flow control. I build my string, ascii out pushes it out, I receive it fine. Problem is, it only writes the line one time. If I stop and start the plc, it will write another line out of the port.

 

The values in monitor continue to change, but nothing is coming out of the port. RTS/CTS are set OFF on the P2000 port. I am assuming, since the data receives fine the first time, that my wring is ok.


  • g.mccormick (Customer)

    What do you have for an enable infront of the instruction? The instruction is edged triggered, meaning that when the enable changes from OFF to ON, it will execute once. If you want the instruction to execute continuously at some interval, then use/create a self-resetting timer (perhaps 1sec) and have the timer done be the enable to the instruction.

  • Kilroy (Customer)

    Ok, I'll try that. I just had a boolean value setting the rung so that I could turn the output on and off from the cmore panel

  • g.mccormick (Customer)

    The bool that you toggle should work as an experiment. If you toggle your bool off then back on, does the data send?

    • Kilroy (Customer)

      Worked great thanks. Ended up putting a throttle on it. Thanks very much for your assistance.