Professional Documents
Culture Documents
KCM Protocol
Order no.: 0590020612-EN “K-Tron assumes no responsibility for damages resulting from misuse of any equipment or negligence on the part of
operating personnel. Further, reference is made to the purchase order, acceptance or other document that contains
the express K-Tron disclaimer of warranties for a statement of the provisions limiting or disclaiming certain warranties
Date:2005/09/02 with respect to the Company's equipment. Except as otherwise expressly provided by K-Tron in any such document,
K-TRON MAKES NO WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, NOR
Original: 0290020608-EN ANY OTHER WARRANTY, EXPRESS OR IMPLIED, WITH RESPECT TO THE EQUIPMENT.”
If an error or ommission is found, please contact: documentation@ktron.com.
KIT Project No: 241
Table of Contents
11 Index ................................................................................................................................. 65
1 Safety Notes
V This is the safety alert symbol. It is used to alert you to the potential
personal injury hazards. Obey all safety messages that follow this
symbol to avoid possible injury or death.
V Ensure that only qualified and trained personnel work with the
KCM.
V Establish personnel responsibilities for operation and mainte-
nance.
V Ensure that personnel have read and understood the operating in-
structions to all installation components, particularly these safety
notes.
V The operator must have damaged or missing components re-
placed immediately.
V The operator of the KCM is responsible for compliance with the le-
gally prescribed accident and safety regulations.
Warning! Danger!
! DANGER V High voltage of 230 Vac may be present on the line power cables
of the KCM.
V Switch off the power to the KCM for 3 minutes before:
– any disassembly, maintenance and repair work
– replacing the motor.
V Only qualified electricians may work on the KCM.
V Protect the KCM against moisture entrance.
V Disconnect the KCM from the power supply before removal from
! CAUTION service.
V The operator is responsible for the proper removal of the KCM
from service.
1.11 Warranty
This document presents the numeric and digital data that is available
via the KCM Smart K-Link connectivity function. The KSL needs to be
at ver. 4 software.
2.1 Overview
Two sections are presented. The first section presents a summary ta-
ble of the variables that may be selected in Smart K-Link and the sec-
ond shows the index settings used when binary or bit data is selected.
Command, Alarm and Process Status functions fit this later category.
Using string data may require setting of an ASCII data block in the
PLC. Then select ASCII in the Poll Record Table.
AlarmDelay seconds integer R/W Time, in seconds, for the alarm to persist
before a hard alarm can occur.
AlarmMode integer R/W Alarm action:
Ignore = 0, Alarm immediate = 1, Alarm
timed = 2, Alarm Stop immediate = 3, Alarm
Stop timed = 4
AlarmNumber integer R/W Number of the actual alarm- see ASR list.
AlarmStartupDel seconds integer R/W Time, in seconds, upon machine start-up
when the process alarms are suppressed.
AlarmStat[16] binary R Alarm status, see alarm status listing.
CondAlarmStat binary R Condensed alarm status, see listing.
DrvCmdHiLimit percent float R/W Limit for drive command for when drive
command exceeds the value, an alarm oc-
curs.
DrvCmdLoLimit percent float R/W Limit for drive command for when drive
command fallls below the value, an alarm
occurs.
MassflowHiLim percent float R/W Limit for massflow for when massflow ex-
ceeds the value, an alarm occurs.
MassflowLowLim percent float R/W Limit for massflow for when massflow falls
below the value, an alarm occurs.
StpBitClrAl integer R/W When set, the stop bit clears alarms:
0 = stop bit does not clear alarms
1 = stop bit will clear alarms
Number Description
1 Load Timer
2 Line Clear Timer
3 Discharge Timer
4 Filter Delay Timer
5 Filter Pulse Timer
6 Motor Timer
7 Load Delay Timer
8 Discharge Delay Timer
9 Receiver Proximity Sensor
10 Buffer Hopper Proximity Sensor
11 Supply Hopper Proximity Sensor
12 Remote Start Timer
13 Remote Stop Timer
Number Description
ConfigBaud integer R/W Baud rate for the KCM config port.
ConfigMode integer R/W Sets the KCM config port function.
HostFile integer R/W Sets whether the built-in or downloaded kgr
file is used by the host function in the KCM.
HostProt integer R/W Defines the host protocol to be used.
KPort1Baud integer R/W Baud rate for K-Port1.
KPort1Prot integer R/W Defines the protocol for K-Port1.
KPort2Baud integer R/W Baud rate for K-Port2.
KPort2Prot integer R/W Defines the protocol for K-Port2.
AutoSpanLimit integer R/W Sets the limit on auto span calculation us-
ing the auto-calibration function.
AuxBoardType integer R Defines the aux board type.
CalibCorrel percent float R Variance of flow during the calibration cy-
cle.
CalibCorrLimit percent float R/W Sets the limit for variance of flow during the
calibration cycle without canceling activity.
CalibDriveCmd percent float R/W Drive command used during the auto-cali-
bration cycle.
CalibMatFed weight float R Amount of weigh the controller states was
delivered during the autocalibration cycle.
CalibTime seconds integer R/W Time for the auto-calibrate cycle.
CheckWeight weight float R/W Measured amount of product delivered dur-
ing the autocalibration cycle.
ChkWEnum integer R Subscroll listing showing calibration status
codes.
ControlType integer R Type of controller application used.
FltClearTime msec. integer R/W Built-in loader control, filter clear time.
GearReductionLo float R/W Sets the higher gear reduction/lowest
speed for K2 feeders with dual speed gear-
boxes.
GearSwitch integer R/W Turns on the dual speed control:
0 = high, 1 = low, 2 = auto high, 3 = auto low
InitialFeedFact rate float R/W Starting feedfactor
LoadEna integer R/W Enables the built-in loader control:
0 = off, 1 = on
LoadMaxTime seconds integer R/W Sets the maximum load time for the built-in
loader control.
LoadCloseTime seconds integer R/W Sets the valve close time for the built-in
loader control.
LoadDischTime seconds integer R/W Sets the time for discharge for the built-in
loader control.
LoadMotorTime seconds integer R/W Sets the motor run time for the built-in load-
er control.
Modulation integer R/W Turns on modulation:
0 = off, 1 = on
MotorCtrlGain float R/W Motor gain set by user.
NetWtHighLimit weight float R/W Maximum high limit on net weight.
NetWtLowLimit weight float R/W Minimum low limit on net weight.
PertValue float R Actual pert value.
PostRefillDelay seconds integer R/W Sets the time for post refill function.
RefArrDevlimit percent float R Maximum allowed variance in feedfactor
from empty to full points on the refill array
curve.
RefillDelTime seconds integer R/W Time for refill to occur before an alarm.
RefillEna integer R/W Turns on/off the automatic refill function:
0 = disabled, 1 = enabled, 2 = if running
RefillLevelMax weight float R/W High weight level that turns off refill.
RefillLevelMin weight float R/W Low weight level that starts the refill.
RefillMode integer R/W Sets the refill mode:
0 = Manual, 1 = Auto, 2 = AutoTerm
AdaptGain float R/W Learned gain value for LWF when adaptive
tuning is active.
AdaptTuning integer R/W Sets adaptive tune to on/off:
0 = off, 1 = on
AveFeedFactor rate float R Current average feeding factor.
BatCompMass weight float R Current batch weight delivered.
BatCompPerc percent float R Batch weight delivered in percent of set-
point.
LoadMaxTime seconds integer R/W Sets the maximum load time for the built-in
loader control.
LoadCloseTime seconds integer R/W Sets the valve close time for the built-in
loader control.
LoadDischTime seconds integer R/W Sets the time for discharge for the built-in
loader control.
LoadMotorTime seconds integer R/W Sets the motor run time for the built-in load-
er control.
MaxBatSize weight float R/W Maximum allowable batch size.
Modulation integer R/W Turns on modulation:
0 = off, 1 = on
MotorCtrlGain float R/W Motor gain as set by user.
NetWtHighLimit weight float R/W Maximum high limit allowed on net weight.
NetWtLowLimit weight float R/W Minimum low limit allowed on net weight.
PertValue float R Actual pert value.
PostRefillDelay seconds integer R/W Sets the time for post refill function.
Preact1Pulses integer R/W Preact value of motor encoder pulses from
fast to dribble control.
Preact2Pulses integer R/W Preact value of motor encoder pulses from
dribble to stop.
RefArrDevlimit percent float R Maximum allowed variance in feedfactor
from empty to full points on the refill array
curve.
RefillDelTime seconds integer R/W Time for refill to occur before an alarm
RefillEna integer R/W Turns on/off the automatic refill function:
0 = disabled, 1 = enabled, 2 = if running
RefillLevelMax weight float R/W High weight level that turns off refill.
RefillLevelMin weight float R/W Low weight level that starts the refill.
RefillMode integer R/W Sets the refill mode:
0 = Manual, 1 = Auto, 2 = AutoTerm
ScrewSpeed rpm float R Displays screw RPM when Gear Reduction
is set.
StableWtCnt float R/W Number of stable weight readings after
dribble that are required for batch com-
plete.
Density weight/ float R/W Density of fed product that is entered for
vol use in calibration.
CalWt1 weight float R/W Calibration weight at Cal Drive Cmd 1.
CalWt2 weight float R/W Calibration weight at Cal Drive Cmd 2.
CalDC1 percent integer R/W Calibration drive command at step 1.
CalDC2 percent integer R/W Calibration drive command at step 2.
Feedfactor rate float R Current value of feedfactor.
PowerOnStart integer R/W Actuates power-on start function:
0 = off, 1 = on
Desc Variable
PreLoad MF=SP Preload MF value with SP upon KCM starts or SP changes
KLink Tx Delay Enable K-Link to delay TxD to prevent network overloads
Empty DC Value of drive command when emptying the feeder. Default is 70%. LWB and LWF only.
Auto Span Limit Limit in actual range of the allowed span deviation from 1.000 to allow a auto-span calculation to
proceed. Default is 0.98-1.02 or an entry of 0.02.
Com1 Read Comm board K-Port 1 reads per second; <=100
Com1 Write Comm board K-Port 1 writes per second:<=10
Com1 Err Comm board K-Port 1 error counter:<= 1/hour
Com2 Read Comm board K-Port 2 reads per second:<=100
Com2 Write Comm board K-Port 2 writes per second:<=10
Com2 Err Comm board K-Port 2 error counter:<= 1/hour
Host Read Host channel reads per second: <=100
Host Write Host channel writes per second: <=10
Host Err Host channel error counter: <= 1/hour
IntCh msgs Internal channel (SFT/MDU) messages per second
IntCh err Internal channel (SFT/MDU) error counter
IntCh Load Internal channel (SFT/MDU) loading in percent: <= 50%
IntCh Node Internal channel (SFT/MDU) last failed node
IntCh Opcode Internal channel (SFT/MDU) last opcode
ResConfPort Resets the config port to defaults
RefArr Dev Lim Maximum allowed variance in Feedfactor from Empty to Full points on the Refill Array curve
Modulation% Screw modulation-percent- amplitude, debug variable.
KCDR-K10S When set to <1> configures K-Port 1 to function with a K-Commander or KDU using extended soft-
ware. When set to <0> returns K-Port 1to normal function.
ReprogCommBd When this variable is set to <1> and KCM power is cycled, automatic reprogramming of the comm
board by the KCM will occur. This value is reset to <0> after the programming activity is complete.
3 I-O Functions
This section presents I-O mapping for KCM products with parameter
code. These functions will be found in the I-O menu.
4 Command Functions
4.1 Overview
This section presents control and status functions for operation of the
KCM system.
Description Mnemonic
Alarm acknowledge CALA
Alarm clear CALC
Stop CSPC
Start CSTC
Clear database invalid bit in PSR CDBI
Stop and preserve alarms CSPA
Clear totalizer CTOC
Enable totalizer-PID only CTON
Disable totalizer-PID only CTOF
Description Mnemonic
HCU Loader clear alarms CHCA
HCU Loader Discharge to OFF CHDF
HCU Loader Discharge to ON CHDO
HCU Loader Run CHRU
HCU Loader Stop CHST
Description Mnemonic
Set MASS mode flag CMAM
Set VOL. Mode flag CVOM
Set tare values from gross weight CTAR
Automatic feed factor calculation CCFF
Empty feeder CETY
Refill start CCRF
Description Mnemonic
Set MASS mode flag CMAM
Set VOL. Mode flag CVOM
Set static tare values from gross weight CTAR
Dynamic belt tare CTR2
Empty feeder CETY
Automatic feed factor calculation CCFF
Description Mnemonic
Set MASS mode flag CMAM
Set VOL. Mode flag CVOM
Command ramp down of manual output CMRD
Command ramp up of manual output CMRU
Description Mnemonic
Set MASS mode flag CMAM
Set VOL. Mode flag CVOM
Set tare values from gross weight CTAR
Automatic feed factor calculation CCFF
Clear batch count CCBC
Pause batch run CPAS
Empty feeder CETY
Refill start CCRF
Description Mnemonic
Set MASS mode flag CMAM
Set VOL. Mode flag CVOM
Tare chute & plate sft CTAR
5.0.1 Introduction
This section presents the process status variables that are presented
for operational analysis. The variable that is read is a 32 bit (2 register
value) with the mnemonic of <CondensedProcStatus>. When the con-
dition is present, the specific bit is set high.
Bit Function
Code
0 KSU-II or KCM/KD display is present
1 Database invalid
2 Alarm Shutdown Input active
3 Disable Input active
4 Line mode active
5 Unused
6 Auto calibration in progress
7 CVAR – Examine changed variable
8 Unused
9 Machine running
10 Drive Enabled
11 Mass/Grav Mode
12 Alarm relay active
13 Alarm Shutdown output active
14 Any hard alarm is present
15 Any soft alarm is present - not timed out
16 Unused
17 Unused
18 Unused
19 Unused
20 Unused
21 Unused
22 Unused
23 Unused
Bit Function
Code
24 KCM initialization complete
25 Unused
26 Unused
27 Feeder emptying
28 HCU loading
29 Waiting to run
30 Smart K-Link Initialization complete
31 Pert function active
Bit Function
Code
8 Refill window set true
16 Refill Time-out set
18 Built-in Loader function enabled
19 Ratio setpoint mode
20 Direct setpoint mode
21 Refill_Enabled
22 Refill set to Auto mode
23 Refill timer set on (KCM = always true)
Bit Function
Code
8 Dynamic tare active
19 Ratio setpoint mode
20 Direct setpoint mode
Bit Function
Code
19 Ratio setpoint mode
20 Direct setpoint mode
Bit Function
Code
19 Ratio setpoint mode
20 Direct setpoint mode
Bit Function
Code
8 Refill window set true
16 Refill Time-out set
18 Built-in Loader function enabled
19 Paused
20 Batch complete
21 Refill_Enabled
22 Refill set to Auto mode
23 Refill timer set on (KCM = always true)
26 Dribble active
Bit Function
Code
18 Refill Bypass enabled
19 Ratio setpoint mode
20 Direct setpoint mode
6.0.1 Introduction
This list set is used for expanded PSW mapping for PSW bits 0-95.
Many of these special bits can be mapped to a digital output. These
bit functions are not used for Smart K-Link applications.
Word(0) 0-31
Word(1) 32-63
Word(2) 64-95
7.0.1 Introduction
This section presents the alarm status variables that provide feedback
on all types of machine alarms. You have 95 bits of alarm reporting. If
you wish to limit the register requirement you may bit map selected
conditions or extract the 32 bit Condensed Alarm Status-ASR word in
two registers. These are in the KCM.
Here is a list that identifies the ASW word number with the Alarm ID
code. Each ASW word is 32 bits long
Word(0) 0-31
Word(1) 32-63
Word(2) 64-95
8.0.1 Introduction
This section presents the various condensed alarm status words for
those who only wish to import a maximum of 2 registers or alarm data.
A list for each type of application will be presented here.
9.0.1 Introduction
This section shows the variables for KSL Line Function. The mnemon-
ics are indicated by lower case characters.
LineBatchSize weight float R/W Total batch size of line – for batch applica-
tions only.
LineMaxBatchSize weight float R/W Maximum total batch size of line – for batch
applications only.
LineMaxRate rate float R/W Full scale line massflow rate.
LineMassflow rate float R Actual line massflow rate.
LineSetpoint rate float R/W Line target massflow setpoint.
LineBatchComplete- weight float R Actual weight delivered in the total batch.
Mass
LineBatchComplete- percent float R Actual weight delivered in the total batch in
Percent percent of the line batch setpoint.
LineTotalizer weight float R/W Summary weight information.
TempProportion percent float R Proportional percent of the Line setpoint to
the total Line SP.
Use this table to construct functional commands for the KSL. Please
note that the commands for Line function are lowercase.
Description Mnemonic
Active selected recipe cacr
Batch pause for the line cpas
Recall the recipe crcr
Stop and preserve alarms for the line cspa
Stop and clear alarms for the line cspc
Start, run and clear alarms for the line cstc
Store the recipe cstr
Clear the line totalizer ctoc
In this section, the pre-loaded kgr files for KCM data communications
are shown. The user is also able to prepare and download custom kgr
files specific to process needs.
The KCM provides Built-In kgr files for each supported protocol. The
Built-In kgr files can be used as a quick-start to test communications
and as a starting point for building custom kgr files. Built-In kgr files
can be extracted, customized and downloaded to the KCM as a cus-
tom kgr file using SmartConfig program.
The select between the Built-In kgr files and a custom kgr file is made
in the KSU Communication menu. Setting the Host File selection in
that menu to <Built-In> selects the Built-In file as described in this sec-
tion. Selecting <KGR> file selects the custom downloaded kgr file that
the user designs.
The KSL supports only Modbus, AB-DF1 and Siemens 3694R proto-
cols.
• Modbus
• Modbus Plus
• Modbus TCP
• AB Allen Bradley DF1
• Siemens 3694R
• DeviceNet
• ProfibusDP
• EthernetIP
Note:
These protocols will require a communication adapter card to be in-
stalled in the KCM.
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
These bits show the functional condition and alarm status of the par-
ticular KCM. See section 7.1. for more information. These parameters
are two word integer reads.
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Ether-
net IP register
Use this table to configure the writes (float-2 register) for the applica-
tion.
Byte MB, MB+, AB-DF1, Device- Parameter Name KCM Application Data Type
Number MBTCP regis- Net, ProfibusDP,
ter Siemens, Eth-
ernt IP register
M Ref. Cmd 33
Mass mode 27 Refill Enable/Disable 62
Massflow 60 Refill Expired=11 28, 33
Massflow=2 27 Refill Level Max 60
MaxBatch Size 60 Refill Level Maximum 64
Maximum Batch Size 64 Refill Level Minimum 64
Maximum Flow 60, 61, Refill=10 28, 33
62, 64 Reill Level Min 61
MDU Failure(6) 47 Run Enable 26
Modbus 58 S
Modbus Plus 58 Scale Span 64
Modbus TCP 58 service variable index
Motor Speed 29, 60 information 25
Motor Speed=3 34 Setpoint 26, 60, 64
Motor Speed=4 31 Setpoint=1 27
Motor Speed=5 31 SFM 6
Motor speed=6 30, 32 Siemens 3694R 58
N Start 26
Net Chute=3 32 Start/Stop 26
Net Divert=4 32 Status 6
Net Weight 27 Stop 26
Net Weight=1 34 T
Netweight 60 Tare Run=10 29
Nominal Belt Load 60 TempProportion 56
Nominal Belt Loading 64 Totalizer 60
Normal Fb=16 32 Totalizer Clear=13 26
NW1=3 30 Totalizer Pulse=9 27
NW2=4 30 V
O Variable or process data 6
Overall Span 64 VOL 6
P Vol Mode 26
Pause 33 W
PID 6 WBF 6
Prefeed DC Span 64
Prefeeder Drive Enable=11
29
Prefeeder=8 30
pre-loaded kgr files 58
Process Variable 61, 64
ProfibusDP 58
Prop Contrib Freq 60
Prop Gain 64
PSR-map 27
PVUInput=3 31
R
Ratio/Direct 26
Ref Bypass=17 28
Ref Cmd=18 28
Ref. Bypass 33