I'm currently working on a project that requires interfacing to a USB
connected scale on the PC. The shipping application they're using runs
in a 5250 CA window and they'd like to have the weight from the scale
automatically populated to a field on the 5250 session. I'm planning
on writing the scale interface in C# and run it as a service on the PC
but I think the biggest challenge is getting the value into the 5250
session.
Another thing I was wondering is if I could configure the scale as an
AS/400 device (Longshot) something like a CA printer session. Then I
could just mod the RPG program to access the device.
Has anyone had experience with doing something like this?
-Brad
"B Bauer" <br...@bauer1.com> schrieb im Newsbeitrag
news:e6ba0a97-2f8d-4b2b...@b35g2000yqi.googlegroups.com...
Hi Brad,
we have connected the scale as "alternate input" between the PC and the
keyboard. So when we push the "get data"-button on the scale, we get the
data as they were entered on the keyboard. So the only thing we had to do
was to modify the input-field on the AS/400-Screen to the same format as the
data from the scale are transmitted.
Before pushing the scale-button, the user has to start the right application
an put the cursor on the right field.
That is the simpliest way, and no need to write interface-applications (if
your scale support this way).
Good luck
-- Peter
You can use a keyboard wedge connected to the scale but you'll have to
use RS-232 instead of USB.
The type of scale is a big factor. I'm currently working on automating
sending a weight from a Avery Weightronix E1110 to a Compsee Turbo
wedge which feeds a 5250 session on a Computer Lab thin client. I'm
99% done. Through the "'autoprint" function on the scale, it sends
the weight with a CR /LF appended to it when the target weight is
reached, so no operator intervention is required.
We have a similar process working on Doran scales connected to
keyboard wedges and thin clients on ten final assembly lines.
Bryan Burns
You can use a dataqueue where the scale interface will put the weight
and the 5250 program will get it.
> Another thing I was wondering is if I could configure the scale as an
> AS/400 device (Longshot) something like a CA printer session. Then I
> could just mod the RPG program to access the device.
You can configure an ascii device on a RS232 port, as400 do not support USB.
Or you can work with the scale inside a SPECIAL device file handling
program.
Here is an inexpensive $35 program.
Load it on the PC and it will sit and listen for the scales to send
the weight, then it send the information to the keyboard buffer. They
also have a version to listen for TCP/IP data.
Assuming the cursor is always in the input field on the screen it
works fine.
On Jun 29, 12:45 pm, B Bauer <b...@bauer1.com> wrote: