Done ASCII many many times & have more to do, it is never fun
Does the device have any other language protocol options?
HMI & SCADA are easier to program ASCII but we are not allowed to use them
because it becomes a gateway component in the process that could go down.
On Allen Bradley I found the hard way that Point I/O ascii does not support variable length time delimited carriage returns. It worked for 25 of the 30 ASCII devices, We went to Anybus for the others.
I always use a sniffer so I know I am concatenating my strings correctly before I even attempt connect to a PLC also to make sure the device replies as expected.
I recommend spending about $ 100 in serial communications tools .
Even if you only use it one time I
this serial tool called Docklight
https://docklight.de/
at $ 59 it is worth every penny
https://docklight.de/information/#docklight-tap-pro
This utility converts ASCII, Hex, Decimal & Binary.
And lets you save the sequences that work so you can use them to program the PLC.
It lets you verify baud rate, Parity etc.
Also it can run loops to verify consistency.
A sniffer cable is also great to have so you can see if the PLC is sending the correct command & if the device is replying.
$ 45 for a sniffer cable
https://www.commfront.com/products/full-duplex-rs232-monitor-control-cable?variant=9209126659
It requires either 2 serial ports on your computer or 2 USB to 232 adaptors
Everybody @ work uses this to help set up ASCII & I have not seen a better utility.
.