Introduction:
Scale and Packing Station
Introduction
for Connecting a Scale to the Packing Station
- Goal:
To be able to determine the weight of a handling unit at the packing station
with the touch of a button (Release 4.6C).
- Technical prerequisites:
A scale that can be connected to a PC using a serial interface.
- Settings outside the SAP System:
- The 'Scale_for_R3.exe' program must exist on the PC.
You can get the program at SAP. Do not start the program directly, instead use
a batch-file (example in scale.bat) with the following contens:
scale_for_r3.exe -aSCALE_AT_PACKINGSTATIONXX
-gHOST -xSERVICE
You either start the batch-file everyday or put in in the autostart-group of
your pc.
- A scale-specific program that transfers scale information (weight,unit,
etc) into the DDE fields of the 'Scale_for_R3.exe' program
must be running on the PC. The connection between the scale-specific program
and the program 'Scale_for_R3.exe' is made via the registry.
The program SETUP_SCALE.exe helps you to
make the necessary reg-entries:
In the path 'HKEY_CURRENT_USERS ->
Software -> VB and VBA Program Settings' a node 'HUDDEDRV' is created. Within this
a node with the name of the scale SCALENAME
(Note: This name has
to be the same as entered in the packing station profile) is created. The following
entries (String Values): 'LinkTopic' (name of the DDE-field), 'LinkUnit' (Unit),
'LinkValue' (Weight) are required.In the program SETUP_SCALE.exe you get
proposals how to connect WinWedge 1.2 of TAL
( www.taltech.com ) or BSP (www.bizerba.com).
You have to get a licence for those programs.
- Settings inside the SAP System:
- Remote Function Call (RFC) destination:
In order to link the SAP System to the scale.exe program, you must create an
RFC destination. You can use the SM59 transaction to create and maintain RFC
destinations. The necessary link must be a type T link (TCP/IP). Select "Registration" as the activation type and
enter the name SCALE_AT_PACKINGSTATIONXX
as program ID. Enter the Gateway Host HOST and
the Gateway Service SERVICE at the
Gateway-options.
- Enter the name of the RFC destination you
created in the packing station profile. (transaction HUPAST_C)
- Enter the name of the scale, as it is listed
in the PC's registry, in the packing station profile (SCALENAME).
- Using the scale:
Once you have made all the settings, you must start the scale-specific program
(such as Sartorius.exe), before you call up the packing station transaction.
Then, you can use the Weigh button to determine the
weight of objects at the packing station.