Micrologix 1500 - transmitting data

Sundar

Member
Join Date
Apr 2003
Posts
13
I want to send data periodically from micrologix 1500 through serial port using AWA instruction.
I could do this with SLC 5/03. I used the COP instruction to copy the data from the integer files to the string file and then use the AWT to transmit the string.
I can't do this in Micrologix as the COP instruction now expects the source and destination file types to be the same.

Is there any way out ?

Thanks

Sundar
 
Number to ASCII

If there's a concatentate (sp.) ascii function, you could
convert the number to ascii, and then combine the
converted ascii with your header information, into one
string..

then..transmit that string to the port.

Ex:

ST80:0 "HEADER INFORMATION. DATA IS: "
ST80:1 "1234" (THE CONVERTED NUMERIC DATA

ST80:2 = ST80:0 & ST80:1 = "HEADER INFORMATION. DATA IS: 1234"

The only problem is that I don't remember if you can combine
strings like this in a 1500. (My book's at work.)
 
Thanks.

The problem is a little more involved.
The string that I have to send out would be a fixed length string, two bytes per integer. The bytes would be the hex values.
The method suggested by you would result in a variable length string.

We have been able to sort out this issue. I will post the solution we after we test it out thoroughly.

Sundar
 

Similar Topics

Good Day i Have Micrologix 1500 LSP, and I want to get data from plc and send it through Modbus RTU slave; I have only ch0 on that plc I Order...
Replies
6
Views
868
Hello folks, Hope everyone is doing fine. I got an OMRON NS10-TVOOB-V2 hmi screen last day and planning to use it with Micrologix 1500. 1. Is...
Replies
4
Views
1,183
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,395
Hi to all, Unfortunatelly I can not provide any help with PLC but will do on some other forum for microcontrolers. I need help with PLC to panel...
Replies
10
Views
1,550
Back
Top Bottom