ASCII Read & Write in ControlLogix

Join Date
Jul 2007
Location
Kiruna
Posts
600
Hi,

I'm having some problems getting the ARD instruction to work for me in a CLX L-62. I have configured the Serial Port for ASCII and have being able to write sucessfully to both HyperTerminal and my ASCII device.


For a read I am inputting a string in Hyper Terminal but when i execute an ARD the Serial Port Control returns an error 004Hex.

Has anyone any suggestions.

Has anyone else experienced this?
 
This is my approach, this is a compact logix.

I'm send program and serial port config.

This is a bar code reader.


ascii1.jpg


ascii3.JPG
 
Hi Bill,

My config is the same. My ACB count is always zero and .ER is always active. I have tried setting this up with Hyper Terminal too and still cannot perform a read?
 
This error normally happens if your serial port is configured as System... is it?

Should be configured as USER, otherwise read is not possible.

- [font=comic sans ms,sans-serif]fuzzy logic[/font]
 
Verify cable from pc to serial port, it can be the same cable used for programming, check hyperterminal config, try to clear the buffer as shown in first rung. .ER should be off.
 
Guys,

I had Serial Port set for System. Oops!I have changed this to user and now Im getting a little further. The .ER is gone now but I'm still not reading any data. I am attempting to read 4 characters from HyperTerminal.

Any more suggestions? I'll post a zip my logic. Cant figure out how to past a screen shot here.

Thanks
 
Morphius, your logic is ok, if your pc is connected to the plc serial port and you´re running hyperterminal just write down something on hyperterminal and then press return that should be enough to send some caracters from pc to serial port.
 
Ok. Have it working. Sort Of!!! I'm reading back some jibberish from the device. I think its because the amount of characters been sent is always varying.

Have to see if the device sends some sort of temrinating character to tell me when it has sent me the reply to my request.
 
Morphuis, yes when you type several keys on your keyboard while on hyperterminal and you then hit RETURN, what you have typed is sent to the serial port together with control characters like line feed and carriage return, so please take into acount this characters, i know there is a way to configure sending characters in order not to carry control characters, but that has to be done inside the device that is sending data toward the plc, otherwise take into account all the characters being sent and enhance your buffer and number of characters expected.
 

Similar Topics

Hi Everybody, I need to know, how to programming read and write "Hex Value" to the equipment by port RS-232 "Ascii" (CJ1W-SCU41-V1 Unit ID.1) of...
Replies
0
Views
1,063
Hi All, I wrote some code for a small hydro scheme a couple of months ago. Part of the project was to read data from a grid analyser via RS232...
Replies
0
Views
1,649
Good morning to all, I need to modify an existing PLC MIcrologix 1500 configured with a Modem on Channel 1 (DF1 Full Duplex) and an...
Replies
7
Views
1,427
I am working on a project, inside an AB CLX, I implemented the Modbus TCP Client AOI published on AB website, to interreact with a Modbus ASCII...
Replies
7
Views
3,556
PLC is ControlLogix 1756-L73 CPU with firmware 28 In the PLC the value for A60[110] is "AT", Style ASCII, Data Type INT. In KEPServerEX I tried...
Replies
4
Views
1,538
Back
Top Bottom