averytc
Member
- Join Date
- Jul 2002
- Posts
- 114
I have a RedLion G303 that I’m feeding ASCII string data from a weight scale.
String is: <STX><Signed DATA><sp><lb/kg><CR>
<STX> = Start of String, decimal valve of 2
<Signed DATA> = 8 characters right justified, space padded, including a decimal point and polarity sign. Polarity is a ‘+’ or ‘–‘ to the immediate left of the most significant digit.
<sp> = Space Decimal value 32.
<lb/kg> = Two characters indicating pounds or kilograms.
<CR> = Carriage Return, decimal value of 13.
I want to pass this data to a SLC 5/05 via Ethernet. I am able to communicate with the plc and read/write data in both directions. I can connect the Scale (GSE 350) to my computer and read the data feed there, but I have not been able to see it in the G303. I have some minimal experience in C, and have gone as far as I can. Has anyone done this before?
Thanks,
Charlie
String is: <STX><Signed DATA><sp><lb/kg><CR>
<STX> = Start of String, decimal valve of 2
<Signed DATA> = 8 characters right justified, space padded, including a decimal point and polarity sign. Polarity is a ‘+’ or ‘–‘ to the immediate left of the most significant digit.
<sp> = Space Decimal value 32.
<lb/kg> = Two characters indicating pounds or kilograms.
<CR> = Carriage Return, decimal value of 13.
I want to pass this data to a SLC 5/05 via Ethernet. I am able to communicate with the plc and read/write data in both directions. I can connect the Scale (GSE 350) to my computer and read the data feed there, but I have not been able to see it in the G303. I have some minimal experience in C, and have gone as far as I can. Has anyone done this before?
Thanks,
Charlie