
Carboxyll (Customer) asked a question.
Communicate Serial RS-232 ASCII using PC (Putty)
I'm trying to send an ASCII character to a Click Plus. My end goal is to receive character from a computer to index a stepper motor 90 degrees.
I have configured port 2 to send receive ASCII and confirm I can output a serial string and read it using Putty (Serial Monitor). So I can assume my com settings are correct? I'm trying to send from Putty to the Click PLC, but I can't seem to get any response from the Click PLC using a Data Viewer. I can confirm the RX lights up. When I change the TXT1 value with Dataview, the motor does turn. I also don't see any ASCII or HEX when looking in TextView
Am I missing a small detail?
Try changing C5 to a edge contact rising edge. I believe C5 always being on is copying a 0 to TXT1 thus overwriting any incoming data?
Ah yes, That would always reset it. I did fix it, but it did not work. I should also mention, I'm monitoring the PLC on COM10 and TX/RX on Com11 using the Automation Direct RJ11 serial converter.
The receive is configured with a termination of 0x00 (Null). Since you are using a terminal software it’s more likely to be using: CR, LF, or CR/LF.
In addition you cannot leave the Receive enabled like that. It will only execute once without retriggering it. Take a look at this programming example it may help resolve your issue:
https://support.automationdirect.com/examples/CLICK/EP-COM-008_CLICK.zip