Jump to content

Recommended Posts

Posted
Hello, I tried to send the following string to the PLC SerialPort1.Write( "@00RR0000000100*" + CHR(13) ) and I tried to read the response TextBox1.Text = SerialPort1.ReadExisting().ToString I got a TimeoutException and a message: NO DATA Is it possible to check whether the PLC received the string?

Posted
Hello A couple of things. 1. Your Hostlink frame is missing the checksum (41 in your example). 2. The LED next to the comm port...any activity? It's not a 'standard' RS232 cable. 3. Is the plc's port set for Hostlink? Cheers Pp
Posted
Hello, ParaffinPower, 1. Yes, I'm aware that the CSF is missing, but it shouldn't disturb the communication. 2. The PLC is CP1E, and it is provided by a USB cable. But I'm not using this cable. In this case I'm using a second cable which is connecting 1:1 the serial port of the PC with the serial port of the PLC. There is no LED for this Comm port. 3. From the PC-side I'm defining the settings for Hostlink, from the PLC-side, I don't know.
Posted
I meant the 232 cable isn't standard. There's a 'universal' omron cable detailed in the downloads on here I think. Every CP1E I've seen has a Comms led next to the serial port (built-in aswell as the add on unit) As your frame looks ok, once you see the activity led flicker it can only be the port isn't set for hostlink or the baud rate/framing doesn't match. Pp

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...