Scale Setup: Difference between revisions

From KeystoneIntranet
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 31: Line 31:
#Let the scale read for about 10 seconds (it is useful to have some weight on the scale if possible)
#Let the scale read for about 10 seconds (it is useful to have some weight on the scale if possible)
#Select Transfer->Capture Text->Stop
#Select Transfer->Capture Text->Stop
[[File:HyperTerminalScale.PNG|480px]]
[[File:HyperTerminalScale.PNG]]


===View Scale Output===
===View Scale Output===
Line 37: Line 37:
#Open the file in Notepad++
#Open the file in Notepad++
#Select View->Show Symbol->Show All Characters (this will allow you to see any special characters in the scale output)
#Select View->Show Symbol->Show All Characters (this will allow you to see any special characters in the scale output)
[[File:NotepadPlusPlusScale.PNG|480px]]
[[File:NotepadPlusPlusScale.PNG]]


===Determine End of Line and Record Length===
===Determine End of Line and Record Length===
Line 51: Line 51:
#Note the starting position of the repeated characters, this will become the CHECKCOL device parameter
#Note the starting position of the repeated characters, this will become the CHECKCOL device parameter
#Note the characters themselves, this will become the CHECKCODE or CHECKCODEHEX device parameter (if the check code contains special control codes, use the chart below to determine the hex values for the characters)
#Note the characters themselves, this will become the CHECKCODE or CHECKCODEHEX device parameter (if the check code contains special control codes, use the chart below to determine the hex values for the characters)
[[File:ASCIIControlCodes.png|720px]]
[[File:ASCIIControlCodes.png]]


===Determine Weight===
===Determine Weight===
Line 76: Line 76:
#Select or create the scale device
#Select or create the scale device
#Enter the scale parameters in the Device Configuration tab (sample below)
#Enter the scale parameters in the Device Configuration tab (sample below)
[[File:DeviceMaintenanceScale.PNG|480px]]
[[File:DeviceMaintenanceScale.PNG]]


===Start/Restart Services===
===Start/Restart Services===

Latest revision as of 19:40, 27 August 2024

Tools

  • HyperTerminal (for viewing and capturing scale output)
  • Notepad++ (for decoding special control characters in scale output)

Procedure

Setup Keystone Device Server

On the PC connected to the scale, either Keystone must be installed (with the Device Server service running) or the Keystone Device Server must be manually installed (for example if the PC uses Remote Desktop to run Keystone.) If you need to manually install Keystone Device Server, use the following procedure:

  1. Create a folder in the root of the C: drive called "CCDeviceServer"
  2. Copy the CCDeviceServer.exe from a PC at the site that has Keystone installed (located in C:\Program Files (x86)\Keystone\Bin) into the C:\CCDeviceServer folder
  3. Run a Command Prompt as Administrator
  4. Type: C:\CCDeviceServer\CCDeviceServer.exe /install
  5. Start the "Keystone Device Server" service

Configure Keystone Device Server

  1. Open a web browser
  2. Navigate to "http://127.0.0.1:6021"
  3. Click "Configuration"
  4. Setup a unique Device Server ID (DS followed by plant number is usually a good choice)
  5. Enter the WAN IP address of the main server in the Aggregator IP Address field
  6. Click "Submit"

Error creating thumbnail: /bin/bash: /usr/bin/convert: No such file or directory Error code: 127

Capture Scale Output

  1. Using HyperTerminal, connect to the scale
  2. Once the scale is reading properly, select Transfer->Capture Text, select a filename to save the scale output and click Start
  3. Let the scale read for about 10 seconds (it is useful to have some weight on the scale if possible)
  4. Select Transfer->Capture Text->Stop

View Scale Output

  1. Open the file in Notepad++
  2. Select View->Show Symbol->Show All Characters (this will allow you to see any special characters in the scale output)

Determine End of Line and Record Length

  1. On a complete scale data line, hit the END key and note the "Col" number in the status bar
  2. Add the number of end of line characters to the value from step #1 (for example, is you see CRLF you would add 2)
  3. This number is the RECL device parameter
  4. [Keystone 4.3.6+] If there are end of line characters after the cursor, these will become the EOLHEX device parameter (convert to hex)

Determine Check Code

  1. Look for one or more characters that are repeated on each line of the scale output (preferably before the weight)
  2. Note the starting position of the repeated characters, this will become the CHECKCOL device parameter
  3. Note the characters themselves, this will become the CHECKCODE or CHECKCODEHEX device parameter (if the check code contains special control codes, use the chart below to determine the hex values for the characters)

Determine Weight

  1. Look for the weight (if the weight is zero or a low number, allow for at least 6 digits)
  2. Note the starting position of the weight, this will become the WEIGHTCOL device parameter
  3. Note the length of the weight (usually 6), this will become the WEIGHTLEN device parameter

Configure Unit of Measure

  1. The default U/M for scales is LB (pounds.)
  2. If the scale sends weight in a different U/M, set the UNITOFMEASURE device parameter to the U/M that the scale is sending.

Determine Overcapacity Indicator

(Keystone 4.3.9.5+)

  1. Consult the scale documentation to determine which character(s)/code(s) indicate an over-capacity condition
  2. Note the starting position of this indicator, this will become the OVERCAPCOL device parameter
  3. Note the characters themselves, this will become the OVERCAPCODE or OVERCAPCODEHEX device parameter (if the over-capacity code contains special control codes, use the chart in the "Determine Check Code" section to determine the hex values for the characters)

Update Keystone Device Information

  1. Open Device Maintenance
  2. Select or create the scale device
  3. Enter the scale parameters in the Device Configuration tab (sample below)

Start/Restart Services

  1. On the main server, start or restart the Device Aggregator
  2. Wait a few seconds, then start or restart the Device Server
  3. On the PC connected to the scale, start or restart the Device Server

Old outdated information

Sample scale settings using classic device server (pre aggregator):

Start Device server on computer that will be connected to the scale:
Start/Run "c:\program files\GivenHansco\cc\bin\ccdevsv" /i /l 
Login as ADMIN
Open Device Maint. off of the System Maint Menu
Create new device:
Device ID e.g.: SCALE01
Description: e.g. SMITHFIELD SCALE
type: SCALE
Dev Server ID: Leave Blank (Used for Device Server/Aggregator)
In Device Aggregator Box:
 ip address -- if stand alone 127.0.0.1
 port 6000

Copy and paste the sample device config settings

COMPort=1
BaudRate=9600
DataBits=8
StopBits=1
Parity=N
CheckCode=LB
CheckCol=9
WeightCol=2
WeightLen=6
RECL=17
UnitOfMeasure=LB

modify baud, databits, stopbits, parity to match what scale guy tells you.

Make sure scale is connected
F5 - test 
Automatic 
F2 TEST

hopefully it finds it