STOD, DTOS and RTOS with ARD and AWT: Converting a Serial Reading
STOD("1234.7", MV_real) puts 1234.0 into a REAL destination. Not 1234.7, and not a fault: 1756-RM018A states it in the operand notes, that if the Source value is a floating-point number the instruction converts only the non-fractional part of the number, regardless of the destination data type. STOD is a string-to-integer instruction and it stays one whatever you point it at. STOR is the one that keeps the decimal point, and the two are one letter apart in a drop-down list.
That line costs a weigh reading in tenths of a kilogram before anybody notices.
The other thing to know before you plan a serial link around these instructions is printed once, in the Common Attributes chapter, and it changes the design rather than the code: ASCII Serial Port instructions — AWT, AWA, ARD, ARL, ABL, ACB, AHL, ACL — are available only on controllers that have serial ports, and Logix Designer versions 37 and later do not support them. The September 2025 revision of the General Instructions reference has an ASCII String chapter and an ASCII Conversion chapter, and no ASCII Serial Port chapter at all.
So the conversions are alive and the port instructions are the part that has gone.

A STRING is a DINT length and an array of SINT, not text. The highlighted bytes are the first contiguous group of numeric characters, which is all STOD will look at.
What STOD actually does with a string that is not a clean number
Four rules, and together they make STOD far more forgiving than people expect and far less precise than they assume.
It converts positive and negative numbers.
It skips any initial control or non-numeric characters except a minus sign in front of a number. If the string contains several groups of numbers separated by delimiters, it converts only the first group. If the number it finds has a fractional part, the fraction is discarded. And a value beyond the limits of the destination data type is a minor fault, Type 4 Code 53, with the recovery being a smaller source value or a bigger destination.
So a weigh head that sends $06 1234.7 \ kg \ G needs no parsing at all.

Row two is the one that costs money. The destination being a REAL does not make STOD keep the fraction, and nothing sets a fault when it does not.
The STX at the front is skipped, the first group is converted, the backslash stops it.
That behaviour is why the manual’s own example gates a STOD on a read completing and points it straight at the raw message rather than at a MID result. You need FIND, MID and DELETE when the number you want is the third field rather than the first; you do not need them just because the string is untidy at the ends.
Two more faults come from the string type rather than from the number.
Type 4 Code 51 is raised when the LEN value of the string tag is greater than the DATA size, with the recovery being to check that nothing is writing to LEN and to enter the number of characters the string contains. That is worth reading twice, because writing to LEN
DATA; a user-defined string type of 24 will fault on the first long message rather than truncating quietly, which on balance is the behaviour you want.Going the other way, and what each conversion costs
DTOS produces the ASCII representation of a value and RTOS produces the ASCII representation of a REAL. If the source of a DTOS is a REAL, the instruction converts it to a DINT first, which is a second quiet truncation in the same family and catches the same people twice.
Neither is available in function block, and both work in ladder and in structured text.
The costs are not symmetric and the difference is bigger than it looks. LOGIX-RM002B puts DTOS on a ControlLogix 5580 at 0.328 µs plus 0.06 µs per destination character, so a six-character number is about 0.69 µs. RTOS is listed by example rather than by formula: 2.347 µs for a source of 1.234 and 2.268 µs for 1234.5677. Call it seven times a short DTOS, for the same job on a different data type. Going the other way, STOD takes 0.438 µs on the string 1234 and 0.738 µs on ABCDEFGH1234ABCDEFGH, and STOR takes 1.345 µs and 1.656 µs on the equivalent pair.
The 0.3 µs difference between those two STOD rows is the skipping, and it is cheap.
None of this matters on one message a second.
It matters when somebody builds a message assembly routine that runs unconditionally in a continuous task and converts forty values every scan whether or not anything asked for them. That is a real pattern, it is fixed by a condition rather than by a faster instruction, and the routine that does it is usually the one nobody has opened since commissioning.
The scan the conversion happens in, and the scans before it
Here is where this article joins the rest of this batch, from a different direction.

The conversions are synchronous: each one finishes in the scan that calls it. The read is not, and that mismatch is what the .EM bit exists to bridge.
A PID or a TOT misbehaves because of when it is called relative to the clock.
The three conversion instructions have no such problem — they are pure conversions, they complete in the scan that executes them, and calling one twice in a scan gives the same answer twice. What they need instead is to be called after something else has finished, and that something else takes an unknown number of scans.
An ARD is asynchronous by nature. Characters arrive at whatever baud rate the port is set to, and at 9600 baud a twelve-character message is about twelve and a half milliseconds of wire time before the first scan of work even starts. The control structure’s .EM bit is what says the read finished, and every one of the manual’s own examples — FIND, MID, DELETE, STOD — is written the same way: test .EM, do the conversion, clear .EM yourself. That last step is not decoration — leave .EM set and the next scan converts the same characters again, which on a totalising or counting routine doubles a reading rather than repeating a harmless one.
Clear the bit in the same rung that consumes the message. Not in a tidy-up routine later.
What to do now that ARD and AWT are not an option
If the device is genuinely serial and the project is new, the port instructions are not where to start.
The honest position is that this is a hardware question rather than a programming one, and the manual’s line about controllers that have serial ports is the beginning of it rather than the end. A ControlLogix 5580 has no serial port; a 1756-L7x does. What a new project usually ends up with is a device that speaks Modbus RTU behind a gateway, or an Ethernet-capable version of the same instrument, and neither of those uses ARD at all.
Modbus RTU is the common case and it is a register map rather than a string, which is a different and generally easier problem — reading a Modbus RTU power meter from a PLC covers the function codes and the map. If the device is on Ethernet and speaks its own ASCII protocol over a raw socket, the socket object on a 1756-EN2T is the route and it is worked through in Modbus TCP from a 1756-EN2T with the socket object — the five messages there are the same mechanism whatever bytes you put in them. And if you are still on a controller and a Logix Designer version where ARD works, the physical layer is its own source of grief, which the Allen-Bradley PLC serial cable deals with.
The string instructions themselves are unaffected by any of this.
Whatever delivers the bytes — a socket, a gateway, a MSG — they arrive in a STRING or in a SINT array, and all four conversions work on them exactly as before.
What to check next
Search the project for STOD and look at what each one is pointed at.
Any STOD whose destination is a REAL is either a deliberate truncation or a bug, and there is no third option — the ones you meant to keep the decimals for want STOR instead.
Then find every read-completion bit that gates a conversion and confirm something clears it. A message that converts twice is the failure that looks like a flaky instrument for months. If the message you are assembling is going the other way, into a device or a display, put the destination string’s declared size next to the longest message it can carry and check it once, because Type 4 Code 52 arrives on the first long one rather than on the first one. When the data behind the message is a recipe or a structure rather than a single value, moving a recipe into the PLC covers the UDT and the copy that breaks, and if the routine doing all this is going to be structured text, structured text for people who write ladder covers the constructs.