cheapest robust way to convert an ascii string serial to modbus tcp relay closure.

ganutenator

Lifetime Supporting Member
Join Date
May 2002
Location
kansas
Posts
1,440
Found an awesome point of sale for $500.
It sends an ascii string when a product is sold.
Need to convert this into a number between 0 and 255 or less and send this via modbus tcp/ip.

i'm thinking grid connect product.

then thinking twio like product (obsolete) converts this modbus tcp/ip message and fires relays.

Any suggestions?
 
Can you program what the ascii string is? If you can, just use the ascii chart (I have attached a picture) send out a decimal 49 = 1, 50 = 2, 51 = 3 and so forth. Then just use "ascii to int" function to convert the string. Now onced product A is sold POS will send (Decimal 49) if product B is sold POS will send out (Decimal 50).

If your not looking for a certain ascii string but just need a "High or Low" signal when product is sold, most POS system have the means of pulling a RS232 pin high this would be done in their setup configuration.

There is a lot of things going on with a POS system. Most won't send out RS232 information until end of transaction, but you might be able to use the "Customer Display" RS232 because it is designed to send information out everytime a Product is added to sale. If you just need to know everytime the transaction is complete then use the "Drawer Release" signal. This would actually fire a 12vdc signal for about 250ms.

I hope this helps.

ascii.gif
 

Similar Topics

..that you know of, other than the 1783-ETAP A? I am trying to setup a device-level ring testing setup environment for training that I may need...
Replies
2
Views
1,482
I have an application that needs 20 inputs and 20 outputs with only 10 XNOR and 10 NAND blocks. I could do it with relays, but this could end up...
Replies
16
Views
5,172
Hello, What would be the cheapest PLC running codesys I would be able to get my hands on? I like to expand my mind and I started out as an AB guy...
Replies
30
Views
13,490
I want to fill a hole in my skillset by picking up AB PLC programming. Although I'm at a very advanced level with GE PLCs (I mean GE-IP, no I...
Replies
9
Views
3,340
I almost have a complete, basic setup for a shop/learning fixture. I've got a used CPU317-2 DP, a G120C, and some purple hose. I'd like to add...
Replies
20
Views
5,384
Back
Top Bottom