1769-ascii

xltek

Member
Join Date
Nov 2011
Location
China
Posts
16
Hi there

I am new to ASCII, right now want to send a command, g r0x32, to a ASCII device to get feedback. I think I need to send a string with content of this command out, am I right? I appreciate your help if you have experience with ASCII or this module. Thanks in advance
 
You don't have to use String datatypes with the 1769-ASCII.

Instead, you follow the directions in the User Manual, Publication 1769-UM012. [Direct Link to PDF]

There are also examples in the samplecode.rockwellautomation.com database. Use "1769-ASCII" as your search keyword.

The basic steps for outputting a series of bytes from Channel 0 of the 1769-ASCII module are:

1. Put the output data bytes into the Local:S:O.TxData array.
2. Put the number of bytes to transmit into the Local:S:O.TxDataLength tag.
3. Increment the value in the Local:S:O.Ch0TxID tag.

Every time that TxID tag changes, the module will send the number of bytes you specify out of the serial port.

What exactly are the ASCII characters you need to send ?

You posted that you need to send "g r0x32".

0x32 is usually a way to write a hexadecimal value. 0x32 is actually the ASCII value for the number "2".

What you described sounds like four characters: Lowercase g, Space, Lowercase r, and the number 2. Is that correct ?
 
Last edited:
Thanks so much, Ken.
Yes, I need to send g r0x32 out first then read position feedback v xxxx.
I can put g r0x32 in the value of Local:S:O.TxData array, and the length will be 4, am I right?
Here I am not understand RxID since the port (ch0) is connected only to one device but it can visit more than one destinations such as memory, flash, registers. The command g r0x32 is going to ask the device send feedback of position data stored in memory. Can I keep the RxID unchanged if I only concern position?
I attached data tag/type. Could you please tell me the assignment of value is correct or not. I appreciate your help and time.

ASCII command.jpg
 

Similar Topics

This is maddening. I'm developing a new application where a 1769-L32E with a 1769-ASCII module is communicating with a Tegam micro-ohmmeter...
Replies
2
Views
1,581
so, Micrologix 1500. 1769-ASCii module. Bringing data in over the Channel 0 serial port. Setup is attached below. As is a snippet of the code...
Replies
4
Views
1,629
I tried searching but either there aren't any answers out there for my Google-fu isn't up to snuff. My customer has a laptop with Labview set up...
Replies
0
Views
1,554
Working with a customer who wants to do some ASCII handshaking between the PLC (a 1769-L24ER) and Labview on a laptop. I can send data from the...
Replies
4
Views
1,817
Hello Everyone, I am looking for some help on this dreaded 1769-Ascii module. I have been doing a lot of digging on this module in the forum...
Replies
2
Views
2,428
Back
Top Bottom