Hi again,
Using RSLogix 500 with a MicroLogix 1400 and not sure yet which HMI I will be using.
I am using a serial printer connected to one of the 2 serial ports on my PLC.
From time to time, I need the system to print out a floating integer which is always changing. I was going to use the AIC instruction to convert the floating integer to a string and then an AWA instruction to send the string to the printer.
The problem is that RSLogix will not allow floating integers to be used as a source for a string. Only integers and long words are allowed.
On top of this hurdle, the floating integers I need printed must show up on the printer with one decimal place (ie 245.3)
Plus each line of print needs to also contain a 2nd (different) floating integer and a little predetermined text.
Can anyone provide some guidance on a workaround? Thanks in advance.
Using RSLogix 500 with a MicroLogix 1400 and not sure yet which HMI I will be using.
I am using a serial printer connected to one of the 2 serial ports on my PLC.
From time to time, I need the system to print out a floating integer which is always changing. I was going to use the AIC instruction to convert the floating integer to a string and then an AWA instruction to send the string to the printer.
The problem is that RSLogix will not allow floating integers to be used as a source for a string. Only integers and long words are allowed.
On top of this hurdle, the floating integers I need printed must show up on the printer with one decimal place (ie 245.3)
Plus each line of print needs to also contain a 2nd (different) floating integer and a little predetermined text.
Can anyone provide some guidance on a workaround? Thanks in advance.
Last edited: