0% found this document useful (0 votes)
77 views60 pages

1020 Modbus Protocol

Uploaded by

ducdti99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views60 pages

1020 Modbus Protocol

Uploaded by

ducdti99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

PENKO Modbus protocol

PENKO Engineering B.V.


Your Partner for Fully Engineered Factory Solutions

Protocol description:
PENKO Modbus

1
PENKO Modbus protocol
Table of Contents
Introduction................................................................................................................................................... 5
1 Basics ..................................................................................................................................................... 6
1.1 Devices .......................................................................................................................................... 6
1.2 Data types...................................................................................................................................... 6
1.3 Address codes................................................................................................................................ 6
2 Addresses .............................................................................................................................................. 7
2.1 Inputs, outputs and markers ......................................................................................................... 7
2.2 Indicators and registers ................................................................................................................. 7
2.3 Weigher control............................................................................................................................. 8
2.4 Weigher status ............................................................................................................................ 10
3 Indicator values ................................................................................................................................... 12
4 Examples.............................................................................................................................................. 14
4.1 Read inputs/outputs.................................................................................................................... 14
4.2 Read/write markers..................................................................................................................... 16
4.3 Read indicator values .................................................................................................................. 18
4.4 Read/write register values .......................................................................................................... 20
4.5 Weigher control........................................................................................................................... 22
4.6 Weigher status ............................................................................................................................ 24
4.7 Tag list.......................................................................................................................................... 26
5 Advanced features............................................................................................................................... 27
5.1 Function codes ............................................................................................................................ 29
5.2 Error codes .................................................................................................................................. 30
5.3 Calibration functions ................................................................................................................... 32
5.3.1 CAL_ZERO ............................................................................................................................ 32
5.3.2 CAL_SPAN ............................................................................................................................ 32
5.3.3 CAL_MV ............................................................................................................................... 33
5.3.4 CAL_DEADLOAD................................................................................................................... 34
5.3.5 CAL_INSERT ......................................................................................................................... 34
5.3.6 CAL_POINT........................................................................................................................... 35
5.3.7 CAL_DELETE ......................................................................................................................... 35

2
PENKO Modbus protocol
5.3.8 CAL_GEOGRAPHIC_ORIGIN_SET ......................................................................................... 36
5.3.9 CAL_GEOGRAPHIC_ORIGIN_GET ......................................................................................... 36
5.3.10 CAL_GEOGRAPHIC_LOCAL_SET ........................................................................................... 37
5.3.11 CAL_GEOGRAPHIC_LOCAL_GET .......................................................................................... 37
5.4 Indicator functions ...................................................................................................................... 38
5.4.1 IND_MAXLOAD_SET ............................................................................................................ 38
5.4.2 IND_MAXLOAD_GET............................................................................................................ 38
5.5 PDI functions ............................................................................................................................... 39
5.5.1 PDI_PATH_SET ..................................................................................................................... 39
5.5.2 PDI_PROPERTY_SET ............................................................................................................. 41
5.5.3 PDI_PROPERTY_GET ............................................................................................................ 41
5.6 Printer functions .......................................................................................................................... 43
5.6.1 PRINT ................................................................................................................................... 43
5.6.2 PRINT_SUBTOTAL ................................................................................................................ 44
5.6.3 PRINT_TOTAL ....................................................................................................................... 45
5.6.4 PRINT_DAYTOTAL ................................................................................................................ 46
5.6.5 PRINT_BATCHTOTAL............................................................................................................ 47
5.6.6 PRINT_LAYOUT .................................................................................................................... 48
5.6.7 PRINT_ALIBI ......................................................................................................................... 49
5.6.8 PRINT_ALIBIMEMORY.......................................................................................................... 50
5.6.9 PRINT_EVENTMEMORY ....................................................................................................... 51
5.7 Total functions............................................................................................................................. 52
5.7.1 TOTAL_TOTALIZE ................................................................................................................. 52
5.7.2 TOTAL_SUBTOTAL ............................................................................................................... 53
5.7.3 TOTAL_TOTAL ...................................................................................................................... 54
5.7.4 TOTAL_DAYTOTAL ............................................................................................................... 55
5.7.5 TOTAL_BATCHTOTAL ........................................................................................................... 56
5.8 Controller functions..................................................................................................................... 57
5.8.1 RFN_PROCESS_RECIPE_GET ................................................................................................ 57
5.8.2 RFN_PROCESS_RECIPE_SET ................................................................................................. 57
5.8.3 RFN_PROCESS_CONFIG_GET ............................................................................................... 58

3
PENKO Modbus protocol
5.8.4 RFN_PROCESS_CONFIG_SET ............................................................................................... 58
5.8.5 RFN_PROCESS_DATA ........................................................................................................... 59

4
PENKO Modbus protocol
Introduction
The PENKO Modbus protocol supports the following basic features:

• Read weigher data and control weighers


• Read inputs and outputs
• Read/write markers
• Read/write registers and levels

Advanced features are available by using the register command mode, described in chapter 5.

TCP/IP: Modbus TCP/IP is supported. Use port 502 for a TCP/IP sessions.

Serial: Modbus RTU and ASCCI are supported.

Only one connection at the time can be active. Modbus TCP/IP is only active when both RS232 and RS422
are not set to Modbus.

5
PENKO Modbus protocol
1 Basics
The PENKO devices that support the protocol and the used data types and address codes.

1.1 Devices
The following PENKO devices support the Modbus protocol:

Device Series Modbus support


SGM7xx SGM8xx Yes, starting at version v1.3.3.9.0.7
1020 hardware version 1* No Modbus support
1020 hardware version 2* Yes, starting at version v1.3.6.9.0.1
Flex 2100 Yes, starting at version v1.8.4.9.0.1
Flex Yes, starting at version v1.8.4.9.0.1
Flex Multichannel Yes, starting at version v1.8.4.9.0.1
* See Main Menu - Info - Hardware Version

Flex multichannel supports Weigher 1, 2, 3 and 4. All other instruments only support Weigher 1.

1.2 Data types


Data type Description
Float Double Word floating point IEEE 754, 4 bytes
Long Double Word signed, 4 bytes
Word Unsigned Word, 2 bytes

1.3 Address codes


The following address codes are supported:

Modbus name Address code Usage


Read coils 0x Read internal markers
Read physical inputs
Read discrete inputs 1x Read physical outputs
Weigher status
Read indicators as Float
Read input register 3x Read indicators as Long
Read extended registers
Write internal markers
Write single coil 0x
Weigher control
Write single register 4x Write extended register
Write multiple coils 0x Write internal markers
Write multiple registers 4x Write extended registers

6
PENKO Modbus protocol
2 Addresses
The following addresses are used:

2.1 Inputs, outputs and markers


Inputs/Outputs/Markers Data type Address code Address Combined
Inputs 1 - 200 Bit 1x 1 - 200 100001 to 100200
Outputs 1 - 200 Bit 1x 201 - 400 100201 to 100400
Markers 1 - 600 Bit 0x 401 - 1000 000401 to 001000
Note: The outputs in PENKO devices cannot be written through Modbus.

2.2 Indicators and registers


Indicators/Registers Data type Address code Address Combined
Indicator 1 - 50* Float 3x 1 - 99 300001 to 300099
Indicator 1 - 50* Long 3x 101 - 199 300101 to 300199
3x 301001 to 302799
Ext Registers 1 - 900** Long** 1001 - 2799
4x 401001 to 402799
Note: Indicators and extended registers are 32 bit numbers. Modbus registers are 16 bit, so each indicator or
extended register is accessed through 2 consecutive registers. Even memory locations are the highest 16 bits, odd
memory locations are the lowest 16 bits. The Modbus default is first word low. Therefore OPC servers offer
settings for word swapping.

* The 1020 and SGM7xx/8xx series have 19 indicator values (1020 FMD = 13 values). The Flex series have
configurable indicators. Consult the Flex manual on how to set the indicators.

** The Flex series have 900 ext. registers and support the use of floating point registers starting at a configurable
position. The SGM7xx/8xx and 1020 have 150 ext. registers and support floating point registers above 100.

7
PENKO Modbus protocol
2.3 Weigher control
Weigher 1 control Data type Address code Address Combined
Zero reset* Bit 0x 1001 001001
Zero set* Bit 0x 1002 001002
Tare reset* Bit 0x 1003 001003
Tare set* Bit 0x 1004 001004
Toggle tare* Bit 0x 1005 001005
Activate preset tare* Bit 0x 1006 001006
Reserved Bit 0x 1007 001007
Reserved Bit 0x 1008 001008

Weigher 2 control Data type Address code Address Combined


Zero reset* Bit 0x 1009 001009
Zero set* Bit 0x 1010 001010
Tare reset* Bit 0x 1011 001011
Tare set* Bit 0x 1012 001012
Toggle tare* Bit 0x 1013 001013
Activate preset tare* Bit 0x 1014 001014
Reserved Bit 0x 1015 001015
Reserved Bit 0x 1016 001016

Weigher 3 control Data type Address code Address Combined


Zero reset* Bit 0x 1017 001017
Zero set* Bit 0x 1018 001018
Tare reset* Bit 0x 1019 001019
Tare set* Bit 0x 1020 001020
Toggle tare* Bit 0x 1021 001021
Activate preset tare* Bit 0x 1022 001022
Reserved Bit 0x 1023 001023
Reserved Bit 0x 1024 001024

Weigher 4 control Data type Address code Address Combined


Zero reset* Bit 0x 1025 001025
Zero set* Bit 0x 1026 001026
Tare reset* Bit 0x 1027 001027
Tare set* Bit 0x 1028 001028
Toggle tare* Bit 0x 1029 001029
Activate preset tare* Bit 0x 1030 001030
Reserved Bit 0x 1031 001031
Reserved Bit 0x 1032 001032
* Action on rising edge of bit.

8
PENKO Modbus protocol
The 1020 FMD has different control bits:

1020 FMD control Data type Address code Address Combined


Zero reset* Bit 0x 1001 001001
Zero set* Bit 0x 1002 001002
Peak reset* Bit 0x 1003 001003
Valley reset* Bit 0x 1004 001004
Hold reset* Bit 0x 1005 001005
T.I.R. reset* Bit 0x 1006 001006
Reserved Bit 0x 1007 001007
Reserved Bit 0x 1008 001008
* Action on rising edge of bit.

9
PENKO Modbus protocol
2.4 Weigher status
Weigher 1,2,3,4 status Data type Address code Weigher Address Combined
1 1089 101089
Hardware overload /
2 1105 101105
underload detected on Bit 1x
loadcell
3 1121 101121
4 1137 101137
1 1090 101090
Overload detected on 2 1106 101106
Bit 1x
loadcell 3 1122 101122
4 1138 101138
1 1091 101091
2 1107 101107
Weigher signal is stable Bit 1x
3 1123 101123
4 1139 101139
1 1092 101092
Weigher signal is in stable 2 1108 101108
Bit 1x
range 3 1124 101124
4 1140 101140
1 1093 101093
2 1109 101109
Weigher zero is corrected Bit 1x
3 1125 101125
4 1141 101141
1 1094 101094
Weigher in center of zero 2 1110 101110
Bit 1x
range 3 1126 101126
4 1142 101142
1 1095 101095
Weigher is in zero range, zero 2 1111 101111
Bit 1x
is possible 3 1127 101127
4 1143 101143
1 1096 101096
Weigher signal is in zero
2 1112 101112
tracking range, zero tracking Bit 1x
is possible
3 1128 101128
4 1144 101144
1 1097 101097
2 1113 101113
Weigher tare is active Bit 1x
3 1129 101129
4 1145 101145
1 1098 101098
2 1114 101114
Weigher preset tare is active Bit 1x
3 1130 101130
4 1146 101146
1 1099 101099
Used by internal process 2 1115 101115
Bit 1x
handling 3 1131 101131
4 1147 101147

10
PENKO Modbus protocol
Weigher 1,2,3,4 status Data type Address code Weigher Address Combined
1 1100 101100
Calibration is bad, invalid, not 2 1116 101116
Bit 1x
available 3 1132 101132
4 1148 101148
1 1101 101101
Calibration is enabled, used 2 1117 101117
Bit 1x
by internal process handling 3 1133 101133
4 1149 101149
If set weigher runs in 1 1102 101102
industrial mode, if reset 2 1118 101118
Bit 1x
weigher runs certified 3 1134 101134
operation mode 4 1150 101150
1 1103 101103
Weigher system in blocking,
2 1119 101119
warming up or scale is not Bit 1x
level
3 1135 101135
4 1151 101151
1 1104 101104
Register command mode 2 1120 101120
Bit 1x
active 3 1136 101136
4 1152 101152

The 1020 FMD has different status bits:

1020 FMD status Data type Address code Address Combined


Hardware overload / underload
Bit 1x 1089 101089
detected on loadcell
1090 101090
Overload detected on loadcell Bit 1x
101091
Force signal is stable Bit 1x 1091
101092
Force signal is in stable range Bit 1x 1092
101093
Force zero is corrected Bit 1x 1093
101099
Used by internal process handling Bit 1x 1099
101100
Calibration is bad, invalid, not available Bit 1x 1100
Calibration is enabled, used by internal 101101
Bit 1x 1101
process handling
Indicator runs in industrial mode Bit 1x 1102 101102
Invalid force Bit 1x 1103 101103
Register command mode active Bit 1x 1104 101104

11
PENKO Modbus protocol
3 Indicator values
The indicator values are available as float and long values. To gain the long values, add an offset of 100
to the address of the float value.

Note: This list is applicable for the 1020 and SGM7xx/8xx series. The Flex series has configurable
indicators. Consult the Flex manual on how to set the indicators.

Indicator Name Description Address Address Combined


code Float Long
1 WEIGHT multi range net weigher value 3x 1 300001 300101
2 FAST GROSS unfiltered gross weigher 3x 3 300003 300103
value
3 FAST NET unfiltered net weigher value 3x 5 300005 300105
4 DISPLAY filtered gross weigher value 3x 7 300007 300107
GROSS
5 DISPLAY NET filtered net weigher value 3x 9 300009 300109
6 TARE tare value 3x 11 300011 300111
7 PEAK highest reached weigher 3x 13 300013 300113
value
8 VALLEY lowest reached weigher value 3x 15 300015 300115
9 HOLD* stored weigher value 3x 17 300017 300117
10 WEIGHTx10 multi range net weigher value 3x 19 300019 300119
shown with extra decimal
11 FAST unfiltered gross weigher 3x 21 300021 300121
GROSSx10 value shown with extra
decimal
12 FAST NETx10 unfiltered net weigher value 3x 23 300023 300123
shown with extra decimal
13 DISPLAY filtered gross weigher value 3x 25 300025 300125
GROSSx10 shown with extra decimal
14 DISPLAY filtered net weigher value 3x 27 300027 300127
NETx10 shown with extra decimal
15 TAREx10 tare value shown with extra 3x 29 300029 300129
decimal
16 PEAKx10 highest reached weigher 3x 31 300031 300131
value shown with extra
decimal
17 VALLEYx10 lowest reached weigher value 3x 33 300033 300133
shown with extra decimal
18 HOLDx10* stored weigher value shown 3x 35 300035 300135
with extra decimal
19 SIGNAL direct mV value from the load 3x 37 300037 300137
cell(s)
*Hold and Holdx10 are added in the 1020 firmware version V1.5.1.9.0.6 and above. And in the
SGM7xx/SGM8xx series firmware version V1.6.1.9.0.3 and above.

12
PENKO Modbus protocol
The 1020 FMD has different indicator values:

Indicator Name Description Address Address Combined


code Float Long
1 FAST unfiltered tracking value 3x 1 300001 300101
TRACKING
2 TRACKING filtered tracking value 3x 3 300003 300103
3 PEAK highest reached weigher 3x 5 300005 300105
value
4 VALLEY lowest reached weigher value 3x 7 300007 300107
5 HOLD hold value - stored with zero 3x 9 300009 300109
button in hold mode, or with
hold input
6 T.I.R. total Indicated Readout value 3x 11 300011 300111
- the difference between the
peak hold and valley hold
value
7 FAST fast tracking shown with 3x 13 300013 300113
TRACKING extra decimal
x10
8 TRACKING tracking shown with extra 3x 15 300015 300115
x10 decimal
9 PEAKx10 peak shown with extra 3x 17 300017 300117
decimal
10 VALLEYx10 valley shown with extra 3x 19 300019 300119
decimal
11 HOLDx10 hold shown with extra 3x 21 300021 300121
decimal
12 T.I.R.x10 T.I.R. shown with extra 3x 23 300023 300123
decimal
13 SAMPLE direct ADC value from the 3x 25 300025 300125
load cell(s)

13
PENKO Modbus protocol
4 Examples
The following examples show the use of the Modbus commands using OPC KEPServerEX and Weintek
EasyBuilder Pro.

4.1 Read inputs/outputs


Read the status of input 1:

KepServer

The used format is 1xxxxx

Input # 1 = address 100001

Input # 2 = address 100002 etc.

Address: 100001

Data type: Boolean

EasyBuilder

The used address code is 1x

Input # 1 = address 1

Input # 2 = address 2 etc.

14
PENKO Modbus protocol
Read the status of output 1:

KepServer

The used format is 1xxxxx

Output # 1 = address 100201

Output # 2 = address 100202 etc.

Address: 100201

Data type: Boolean

EasyBuilder

The used address code is 1x

Output # 1 = address 201

Output # 2 = address 202 etc.

15
PENKO Modbus protocol
4.2 Read/write markers
Read/write marker 1:

KepServer

The used format is 0xxxxx

Marker # 1 = address 000401

Marker # 2 = address 000402 etc.

Address: 000401

Data type: Boolean

EasyBuilder

The used address code is 0x

Marker # 1 = address 401

Marker # 2 = address 402 etc.

16
PENKO Modbus protocol
Read/write marker 40:

KepServer

The used format is 0xxxxx

Marker # 40 = address 000440

Marker # 41 = address 000441 etc.

Address: 000440

Data type: Boolean

EasyBuilder

The used address code is 0x

Marker # 40 = address 440

Marker # 41 = address 441 etc.

17
PENKO Modbus protocol
4.3 Read indicator values
Read indicator 1 as Float:

KepServer

The used format is 3xxxxx

Indicator # 1 = address 300001

Indicator # 2 = address 300003 etc. 1

Address: 300001

Data type: Float

EasyBuilder

The used address code is 3x

Indicator # 1 = address 1

Indicator # 2 = address 3 etc.

1
PENKO indicators and registers are 32-bit values where Modbus register are 16-bit values and must therefore be
accessed as a signed 32-bit data type. Also see chapter 2.2

18
PENKO Modbus protocol
Read indicators 2 as Long:

KepServer

The used format is 3xxxxx

Indicator # 1 = address 300101

Indicator # 2 = address 300103 etc. 2

Address: 300103

Data type: Long (signed 32bit)

EasyBuilder

The used address code is 3x

Indicator # 1 = address 101

Indicator # 2 = address 103

2
PENKO indicators and registers are 32-bit values where Modbus register are 16-bit values and must therefore be
accessed as a signed 32-bit data type. Also see chapter 2.2

19
PENKO Modbus protocol
4.4 Read/write register values
Read extended register 1:

KepServer

The used format is 3xxxxx

Register # 1 = address 301001

Register # 2 = address 301003 etc. 3

Address: 301001

Data type: Long (signed 32bit)

EasyBuilder

The used address code is 3x

Register # 1 = address 1001

Register # 2 = address 1003

3
PENKO indicators and registers are 32-bit values where Modbus register are 16-bit values and must therefore be
accessed as a signed 32-bit data type. Also see chapter 2.2.

20
PENKO Modbus protocol
Write extended register 2:

KepServer

The used format is 4xxxxx

Register # 1 = address 401001

Register # 2 = address 401003 etc. 4

Address: 401003

Data type: Long (signed 32bit)

EasyBuilder

The used address code is 4x

Register # 1 = address 1001

Register # 2 = address 1003

4
PENKO indicators and registers are 32-bit values where Modbus register are 16-bit values and must therefore be
accessed as a signed 32-bit data type. Also see chapter 2.2

21
PENKO Modbus protocol
4.5 Weigher control
Set zero:

KepServer

The used format is 0xxxxx

Reset zero = address 001001

Set zero = address 001002

See page 4

Address: 001002

Data type: Boolean

EasyBuilder

The used address code is 0x

Reset zero = address 1001

Set zero = address 1002

22
PENKO Modbus protocol
Set tare:

KepServer

The used format is 0xxxxx

Reset tare = address 001003

Set tare = address 001004

See page 4

Address: 001004

Data type: Boolean

EasyBuilder

The used address code is 0x

Reset tare = address 1003

Set tare = address 1004

23
PENKO Modbus protocol
4.6 Weigher status
Check if weigher is stable:

KepServer

The used format is 1xxxxx

Stable = address 101091

See page 4

Address: 101091

Data type: Boolean

EasyBuilder

The used address code is 1x

Stable = address 1091

24
PENKO Modbus protocol
Check if tare is active:

KepServer

The used format is 1xxxxx

Tare active = address 101097

See page 4

Address: 101097

Data type: Boolean

EasyBuilder

The used address code is 1x

Tare active = address 1097

25
PENKO Modbus protocol
4.7 Tag list
An example of a tag list in the KEPServerEX OPC Server.

26
PENKO Modbus protocol
5 Advanced features
By using register commands, all device parameters can be read and/or written.

The following parameters are used:

Parameter Data type Address code Address Combined


Input - parameter 1 Double Word 4x 1149 401149
Input - parameter 2 Double Word 4x 1151 401151
Input - parameter 3 Double Word 4x 1153 401153
Input - parameter 4 Double Word 4x 1155 401155
Output - result 1 Double Word 3x 1141 301141
Output - result 2 Double Word 3x 1143 301143
Output - result 3 Double Word 3x 1145 301145
Output - result 4 Double Word 3x 1147 301147
Enable register command mode Bit 0x 1007 001007
Status register command mode Bit 1x 1104 101104

Input parameter 1:

Low word  Function code


High word  0

Output result 1:

Low word  Function code


High word  Error code

The other parameter and result registers depend on the used function.

Activating:

The register command mode is activated by setting bit 1007. On the rising edge of this bit extended
registers 71 -78 are cleared. Bit 1104 indicates that the register command mode is active.

Usage:

First write parameter 2, 3 and 4. Write parameter 1 as last because this parameter triggers the action.

27
PENKO Modbus protocol
Example tags in KepServer:

28
PENKO Modbus protocol
5.1 Function codes
The following function codes are present:

Name Code Description


NOP 0 No Operation
CAL_ZERO 1 Calibrate zero by weight
CAL_SPAN 2 Calibrate span by weight
CAL_MV 3 Calibrate in mV/V
CAL_DEADLOAD 4 Calibrate dead load by measuring weight
CAL_INSERT 5 Calibrate multipoint insert by measuring weight
CAL_POINT 6 Calibrate multipoint read point at parameter index
CAL_DELETE 7 Calibrate multipoint delete point at parameter index
CAL_GEOGRAPHIC_ORIGIN_SET 8 Calibrate set geographic origin calibration
CAL_GEOGRAPHIC_ORIGIN_GET 9 Calibrate get geographic origin calibration
CAL_GEOGRAPHIC_LOCAL_SET 10 Calibrate set geographic local calibration
CAL_GEOGRAPHIC_LOCAL_GET 11 Calibrate get geographic local calibration

IND_MAXLOAD_SET 101 Indicator set maximum load


IND_MAXLOAD_GET 102 Indicator get maximum load

PDI_PATH_SET 201 PDI path set


PDI_PROPERTY_SET 202 PDI property set
PDI_PROPERTY_GET 203 PDI property get

PRINT 301 Print ticket or line to printer


PRINT_SUBTOTAL 302 Subtotals to printer not supported by SGM series
PRINT_TOTAL 303 Totals to printer
PRINT_DAYTOTAL 304 Day totals to printer not supported by SGM series
PRINT_BATCHTOTAL 305 Batch totals to printer not supported by SGM series
PRINT_LAYOUT 306 Custom total layout to printer not supported by SGM
series and 1020
PRINT_ALIBI 307 Print to Alibi memory not supported by SGM700 series
PRINT_ALIBIMEMORY 308 print full alibi memory to printer not supported by
SGM700 series
PRINT_EVENTMEMORY 309 print full event memory to printer not supported by
SGM700 series

TOTAL_TOTALIZE 401 Totalize actual stable weight


TOTAL_SUBTOTAL 402 Read or reset actual subtotal
TOTAL_TOTAL 403 Read or reset actual totals
TOTAL_DAYTOTAL 404 Read or reset actual day totals
TOTAL_BATCHTOTAL 405 Read or reset actual batch totals

29
PENKO Modbus protocol
RFN_PROCESS_RECIPE_GET 501 Read MFL/CHK/BLT recipe
RFN_PROCESS_RECIPE_SET 502 Write MFL/CHK/BLT recipe
RFN_PROCESS_CONFIG_GET 601 Read MFL/CHK/BLT configuration
RFN_PROCESS_CONFIG_SET 602 Write MFL/CHK/BLT configuration
RFN_PROCESS_DATA 701 Read MFL/CHK/BLT process data

5.2 Error codes


The following error codes are present:

Name Code Description


SUCCES 0 Function successful

WRN_WARNING 1000 System warnings:


WRN_TIMEOUT 1001 Generic time-out warning
WRN_TOLOW 1002 Generic parameter to low warning
WRN_TOHIGH 1003 Generic parameter to high warning
WRN_ZERO 1004 Generic parameter/result is zero warning
WRN_NOTZERO 1005 Generic parameter/result is not zero warning
WRN_POSITIVE 1006 Generic parameter is positive warning
WRN_NEGATIVE 1007 Generic parameter is negative warning
WRN_FULL 1008 Generic something is full warning
WRN_EMPTY 1009 Generic something is empty warning
WRN_NOTFOUND 1010 Generic search not found warning

WER_WARNING 1100 Weigher warnings:


WER_NO_TARE 1101 Zero tare level, tare rst

ERR_ERROR 2000 System errors:


ERR_PARAMETER_INCORRECT 2001 Generic parameter error
ERR_TIMEOUT 2002 Generic time-out error
ERR_TOLOW 2003 Generic parameter to low error
ERR_TOHIGH 2004 Generic parameter to high error
ERR_ZERO 2005 Generic parameter/result is zero error
ERR_NOTZERO 2006 Generic parameter/result is not zero error
ERR_POSITIVE 2007 Generic parameter is positive error
ERR_NEGATIVE 2008 Generic parameter is negative error
ERR_FULL 2009 Generic something is full error
ERR_EMPTY 2010 Generic something is empty error
ERR_NOTFOUND 2011 Generic search not found error
ERR_FILE_NOT_FOUND 2012 Generic file not found error

WER_ERROR 2100 Weigher errors:


WER_NOT_STABLE 2101 Weigher not stable

30
PENKO Modbus protocol
WER_ABOVE_MAXLOAD 2102 Parameter above max load
WER_BELOW_ZERO 2103 Parameter below zero
WER_NOT_IN_ZERO_RANGE 2104 Not in zero range
WER_ARITHMIC_OVERFLOW 2105 Arrhythmic overflow occurred
WER_ADC_OVERFLOW 2106 A/D reads all 1's
WER_ADC_UNDERFLOW 2107 A/D reads all 0's
WER_GAIN_NEGATIVE 2108 Gain ref. < zero ref.
WER_GAIN_OVERFLOW 2109 Gain limit
WER_SAVE 2110 Save errors:
WER_SAVE_FLASH_EXHAUSTED 2111 Flash ROM exhausted
WER_SAVE_CREATE_HEADER 2112 Error on header creation
WER_SAVE_DATA_WRITE 2113 Error on data write
WER_SAVE_HEADER_VALIDATE 2114 Header validation failed
WER_SAVE_DEACTIVATE 2115 Deactivate old data fail
WER_LOAD 2116 Load errors
WER_LOAD_NOT_FOUND 2117 Item not found in store
WER_LOAD_DATA_ERROR 2118 Error in stored data
WER_BAD_CALIBRATION 2119 No calibration available
WER_NOT_ENABLED 2120 Action not enabled
WER_MCAL_NOT_FOUND 2121 Multi-point not found
WER_MCAL_OVERFLOW 2122 Calibration table full
WER_TARE_ACTIVE 2123 Not allowed, tare active
WER_NOT_ALLOWED 2124 Action is not allowed
WER_ADC_NOPOWER 2125 ADC has no power

ERR_DOSER 2200 Doser errors

ERR_POSITION 2300 Position errors

ERR_SPCAPP 2400 SPC-application errors

ERR_SCOPE 2500 Scope errors

ERR_INTERPRETER 2600 Interpreter errors

ERR_USB 3000 USB errors - use USB routines for returning error texts

ERR_FLASH 3100 FLASH file system errors

31
PENKO Modbus protocol
5.3 Calibration functions
This chapter describes the calibration function codes.

5.3.1 CAL_ZERO
Calibrate zero by weight. Function code = 1.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
1 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
1 Not used Not used Not used

5.3.2 CAL_SPAN
Calibrate span by weight. Function code = 2.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
2 Span weight Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
2 Not used Not used Not used

Example - calibrate span on 1.200kg:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
2 1200 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
2 Not used Not used Not used

32
PENKO Modbus protocol
Example - calibrate span without loading scale - will result in error:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
2 1200 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
138215426 Not used Not used Not used

The result is 138215426

 The function code (low word) is 2


 The error code (high word) is 2109 - WER_GAIN_OVERFLOW, Gain limit

5.3.3 CAL_MV
Theoretic calibration by millivolts. Function code = 3.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
3 Fixed point mV/V value Maximum weight at mV/V Not used

Reply:
Result 1 Result 2 Result 3 Result 4
3 Not used Not used Not used

Example - theoretic calibration of load cell 200kg @ 2.0012mV/V:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
3 20012 200 Not used

33
PENKO Modbus protocol
5.3.4 CAL_DEADLOAD
Calibrate dead load by measuring weight. Function code = 4.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
4 Actual weight on scale Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
4 Not used Not used Not used

Example - calibration of dead load with 12kg on the scale:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
4 12 Not used Not used

5.3.5 CAL_INSERT
Multipoint calibration up to 10 points. Insert or replace a calibration point. Function code = 5.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
5 Actual weight on scale Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
5 Not used Not used Not used

Example - add calibration point of 10.000kg - if the point already exists, its ADC value is replaced:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
5 10000 Not used Not used

34
PENKO Modbus protocol
5.3.6 CAL_POINT
Multipoint calibration up to 10 points. Read the calibration point at index (1...10). Function code = 6.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
6 Index (1...10) Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
6 Index Calibration reference weight Calibration in mV

Example - read calibration point 1 (10.000kg @ 9.9975mV/V):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
6 1 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
6 1 10000 9.9975

5.3.7 CAL_DELETE
Multipoint calibration up to 10 points. Delete the calibration point at index (1...10). Function code = 7.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
7 Index (1...10) Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
7 Index Not used Not used

Example - delete calibration point 1:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
7 1 Not used Not used

35
PENKO Modbus protocol
5.3.8 CAL_GEOGRAPHIC_ORIGIN_SET
Geographic correction. Set the origin calibration location. Function code = 8.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
8 Fixed point latitude degrees Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
8 Not used Not used Not used

Example - set origin latitude to 50.00 degrees:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
8 5000 Not used Not used

5.3.9 CAL_GEOGRAPHIC_ORIGIN_GET
Geographic correction. Get the origin calibration location. Function code = 9.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
9 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
9 Fixed point latitude degrees Not used Not used

Example - get origin latitude (50.00 degrees):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
9 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
9 5000 Not used Not used

36
PENKO Modbus protocol
5.3.10 CAL_GEOGRAPHIC_LOCAL_SET
Geographic correction. Set the actual scale location. Function code = 10.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
10 Fixed point latitude degrees Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
10 Not used Not used Not used

Example - set actual latitude to 50.00 degrees:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
10 5000 Not used Not used

5.3.11 CAL_GEOGRAPHIC_LOCAL_GET
Geographic correction. Get the actual scale location. Function code = 11.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
11 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
11 Fixed point latitude degrees Not used Not used

Example - get location latitude (50.00 degrees):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
11 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
11 5000 Not used Not used

37
PENKO Modbus protocol
5.4 Indicator functions
This chapter describes the indicator function codes.

5.4.1 IND_MAXLOAD_SET
Set the indicator maximum load. Function code = 101.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
101 Max load Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
101 Not used Not used Not used

Example - set the maximum load to 10.020kg:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
101 10020 Not used Not used

5.4.2 IND_MAXLOAD_GET
Get the indicator maximum load. Function code = 102.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
102 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
102 Max load Not used Not used

Example - get the maximum load (10.020kg):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
102 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
102 10020 Not used Not used

38
PENKO Modbus protocol
5.5 PDI functions
This chapter describes the PDI function codes.

5.5.1 PDI_PATH_SET
Set the PDI path to perform the action on. Function code = 201.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
201 Path no. 1,2,3,4 Path no. 5,6,7,8 Path no. 9,10,11,12

Reply:
Result 1 Result 2 Result 3 Result 4
201 Path no. 1,2,3,4 Path no. 5,6,7,8 Path no. 9,10,11,12

PDI (PENKO Device Interface) represents the device configuration in a tree structure. Every property has
its own unique path number. The tree is used in the PENKO configuration tools Pi Mach II and PDI Client,
both available at www.penko.com/software

For example, a part of the PENKO SGM820 looks like this:

39
PENKO Modbus protocol
Setpoint 1 has path number 1.1.1.3.5.1.1. This results in the following input parameters:

Fill the path with zeros to make 12 numbers: 1.1.1.3.5.1.1.0.0.0.0.0

Parameter 1 PDI_PATH_SET 201


Parameter 2 0x01 0x01 0x01 0x03 16843011
Parameter 3 0x05 0x01 0x01 0x00 83951872
Parameter 4 0x00 0x00 0x00 0x00 0

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
201 16843011 83951872 0

Reply:
Result 1 Result 2 Result 3 Result 4
201 16843011 83951872 0

The PDI path is now set.

If the path is not found, all zeros are returned.

40
PENKO Modbus protocol
5.5.2 PDI_PROPERTY_SET
Set a PDI property for the selected PDI path. Function code = 202.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
202 Property value Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
202 Not used Not used Not used

Example - set setpoint 1 to 0.500kg (path must be selected with PDI_PATH_SET ):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
202 500 Not used Not used

5.5.3 PDI_PROPERTY_GET
Get a PDI property from the selected PDI path. Function code = 203.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
203 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
203 Property value integer/string Property value string optional Property value string optional

Example - get setpoint 1 (0.500kg) (path must be selected with PDI_PATH_SET ):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
203 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
203 500 Not used Not used

41
PENKO Modbus protocol
Example - get the software version number (1.4.3.9.0.1) (path must be selected with PDI_PATH_SET ):

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
203 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
203 825111598 858667310 808333568

The result is a string containing the version number:

Result 2 825111598 0x31 0x2E 0x34 0x2E 1.4.


Result 3 858667310 0x33 0x2E 0x39 0x2E 3.9.
Result 4 808333568 0x30 0x2E 0x31 0x00 0.1

1.4.3.9.0.1

42
PENKO Modbus protocol
5.6 Printer functions
This chapter describes the printer function codes.

5.6.1 PRINT
Print ticket or line layout, depending on set layout in device. Function code = 301.

For the SGM series printing is only available at the SGM720/820 and SGM750/850.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
301 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
301 Gross weight Net weight Tare weight

Example - print:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
301 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
301 699 620 79

Device printer layout setting: ticket

Device printer layout setting: line

43
PENKO Modbus protocol
5.6.2 PRINT_SUBTOTAL
Print subtotal to printer. Function code = 302.

Not applicable for the SGM7xx/8xx series.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
302 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
302 Subtotal gross weight Subtotal net weight Subtotal tare weight

Example - print subtotal:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
302 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
302 3078 2742 336

Printed ticket:

44
PENKO Modbus protocol
5.6.3 PRINT_TOTAL
Print total to printer. Function code = 303.

For the SGM series printing is only available at the SGM720/820 (Ethernet) and SGM750/850 (serial).

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
303 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
303 Total gross weight Total net weight Total tare weight

Example - print total:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
303 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
303 7182 6398 784

Printed ticket:

45
PENKO Modbus protocol
5.6.4 PRINT_DAYTOTAL
Print day total to printer. Function code = 304.

Not applicable for the SGM7xx/8xx series.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
304 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
304 Day total gross weight Day total net weight Day total tare weight

Example - print day total:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
304 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
304 3454 3118 336

Printed ticket:

46
PENKO Modbus protocol
5.6.5 PRINT_BATCHTOTAL
Print batch total to printer. Function code = 305.

Not applicable for the SGM7xx/8xx series.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
305 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
305 Batch total gross weight Batch total net weight Batch total tare weight

Example - print batch total:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
305 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
305 10636 9516 1120

Printed ticket:

47
PENKO Modbus protocol
5.6.6 PRINT_LAYOUT
Print to Printer function custom layout 1-n. Function code = 306.

Not supported by 1020 and SGM series.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
306 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
306 Layout number 1-n Not used Not used

Example - print with custom layout:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
306 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
306 1 Not used Not used

48
PENKO Modbus protocol
5.6.7 PRINT_ALIBI
Print to Alibi memory function. Store the actual stable weight in Alibi memory. Function code = 307.

For the SGM series Alibi memory is only available at the SGM8xx series.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
307 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
307 UID* Gross/Net Preset (Tare)
* UID can exceed the maximum positive value of the LONG data type (signed). Use the DWORD data type
(unsigned).

Example - write to Alibi memory, with active tare:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
307 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
307 1944985600 1315 112

Corresponding Alibi records:


Entry Code Date/Value Time/Unit UID
00001/00004 Alibi 001 03-09-14 15:00:46 1944985600
00002/00004 Net 1.315 kg 3803586561
00003/00004 Tare 0.112 kg 1269178371
00004/00004 Gross 1.427 kg 0718544901

Example - write to Alibi memory, without active tare:

Reply:
Result 1 Result 2 Result 3 Result 4
307 1660428288 1711 0

Corresponding Alibi records:


Entry Code Date/Value Time/Unit UID
00001/00002 Alibi 001 03-09-14 15:02:34 1660428288
00002/00002 Gross 1.711 kg 1133518849

49
PENKO Modbus protocol
5.6.8 PRINT_ALIBIMEMORY
Print the complete Alibi memory to a printer. Function code = 308.

For the SGM series Alibi/printing is only available at the SGM820 and SGM850.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
308 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
308 Not used Not used Not used

Example - print the complete Alibi memory:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
308 Not used Not used Not used

Printed ticket:

50
PENKO Modbus protocol
5.6.9 PRINT_EVENTMEMORY
Print the complete Event log to a printer. Function code = 309.

For the SGM series Event/printing is only available at the SGM820 and SGM850.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
309 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
309 Not used Not used Not used

Example - print the complete Event log:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
309 Not used Not used Not used

Printer ticket:

51
PENKO Modbus protocol
5.7 Total functions
This chapter describes the total function codes.

5.7.1 TOTAL_TOTALIZE
Totalize actual stable weight. Function code = 401.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
401 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
401 Added gross weight Added net weight Added tare weight

Example - add actual stable weight to total:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
401 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
401 1512 1162 350

52
PENKO Modbus protocol
5.7.2 TOTAL_SUBTOTAL
Get the subtotal weights. Function code = 402.

Not applicable for the SGM7xx/8xx series.

Leave parameter 2 empty to read the subtotal weights.

Set parameter 2 to 0x55AA55AA to reset the subtotal weights.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
402 Optional Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
402 Subtotal gross weight Subtotal net weight Subtotal tare weight

Example - read the subtotal weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
402 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
402 12096 9296 2800

Example - reset the subtotal weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
402 1437226410 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
402 12096 9296 2800

When reading again, all subtotal weights are 0.

53
PENKO Modbus protocol
5.7.3 TOTAL_TOTAL
Get the total weights. Function code = 403.

Leave parameter 2 empty to read the total weights.

Set parameter 2 to 0x55AA55AA to reset the total weights.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
403 Optional Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
403 Total gross weight Total net weight Total tare weight

Example - read the total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
403 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
403 12096 9296 2800

Example - reset the total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
403 1437226410 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
403 12096 9296 2800

When reading again, all total weights are 0.

54
PENKO Modbus protocol
5.7.4 TOTAL_DAYTOTAL
Get the day total weights. Function code = 404.

Not applicable for the SGM7xx/8xx series.

Leave parameter 2 empty to read the day total weights.

Set parameter 2 to 0x55AA55AA to reset the day total weights.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
404 Optional Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
404 Day total gross weight Day total net weight Day total tare weight

Example - read the day total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
404 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
404 12096 9296 2800

Example - reset the day total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
404 1437226410 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
404 12096 9296 2800

When reading again, all day total weights are 0.

55
PENKO Modbus protocol
5.7.5 TOTAL_BATCHTOTAL
Get the batch total weights. Function code = 405.

Not applicable for the SGM7xx/8xx series.

Leave parameter 2 empty to read the batch total weights.

Set parameter 2 to 0x55AA55AA to reset the batch total weights.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
405 Optional Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
405 Batch total gross weight Batch total net weight Batch total tare weight

Example - read the batch total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
405 Not used Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
405 12096 9296 2800

Example - reset the batch total weights:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
405 1437226410 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
405 12096 9296 2800

When reading again, all batch total weights are 0.

56
PENKO Modbus protocol
5.8 Controller functions
This chapter describes the controller functions for the belt weigher, check weigher and mono filler.

5.8.1 RFN_PROCESS_RECIPE_GET
Get the value of the selected recipe parameter. Function code = 501.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
501 Recipe param Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
501 Recipe param Value Not used

Example - get the value of recipe parameter 1:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
501 1 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
501 1 2000 Not used

5.8.2 RFN_PROCESS_RECIPE_SET
Set the value of the selected recipe parameter. Function code = 502.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
502 Recipe param Value Not used

Reply:
Result 1 Result 2 Result 3 Result 4
502 Recipe param Not used Not used

Example - set the value of recipe parameter 2 to 500:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
502 2 500 Not used

57
PENKO Modbus protocol
5.8.3 RFN_PROCESS_CONFIG_GET
Get the value of the selected configuration parameter. Function code = 601.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
601 Config param Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
601 Config param Value Not used

Example - get the value of configuration parameter 1:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
601 1 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
601 1 2000 Not used

5.8.4 RFN_PROCESS_CONFIG_SET
Set the value of the selected configuration parameter. Function code = 602.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
602 Config param Value Not used

Reply:
Result 1 Result 2 Result 3 Result 4
602 Config param Not used Not used

Example - set the value of configuration parameter 2 to 500:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
602 2 500 Not used

58
PENKO Modbus protocol
5.8.5 RFN_PROCESS_DATA
Get the value of the selected process data parameter. Function code = 701.

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
701 Process param Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
701 Process param Value Not used

Example - get the value of process parameter 1:

Request:
Parameter 1 Parameter 2 Parameter 3 Parameter 4
701 1 Not used Not used

Reply:
Result 1 Result 2 Result 3 Result 4
701 1 2000 Not used

59
PENKO Modbus protocol

About PENKO
At PENKO Engineering we specialize in weighing. Weighing is inherently chemically correct, independent of consistency, type or temperature of
the raw material. This means that weighing any kind of material guaranties consistency and thus, it is essential to sustainable revenue generation
in any industry. As a well-established and proven solution provider, we strive for the ultimate satisfaction of custom design and/or standard
applications, increasing your efficiencies and saving you time, saving you money.

Whether we are weighing raw materials, components in batching, ingredients for mixing or dosing processes, - or weighing of static containers
and silos, or - in-motion weighing of railway wagons or trucks, by whatever means required during a process, we are essentially forming vital
linkages between processes and businesses, anywhere at any time. We design, develop and manufacture state of the art technologically
advanced systems in accordance with your strategy and vision. From the initial design brief, we take a fresh approach and a holistic view of every
project, managing, supporting and/or implementing your system every step of the way. Curious to know how we do it? www.penko.com

Certifications PENKO Professional Services


PENKO sets high standards for its products and product PENKO is committed to ensuring every system is installed, tested,
performance which are tested, certified and approved by programmed, commissioned and operational to client specifications. Our
independent expert and government organizations to ensure engineers, at our weighing center in Ede, Netherlands, as well as our
they meet – and even – exceed metrology industry guidelines. A distributors around the world, strive to solve most weighing-system issues
library of testing certificates is available for reference on: within the same day. On a monthly basis PENKO offers free training classes to
http://penko.com/nl/publications_certificates.html anyone interested in exploring modern, high-speed weighing instruments
andsolutions. Training sessions on request: www.penko.com/training

PENKO Alliances
PENKO’s worldwide network: Australia, Brazil, China, Denmark, Germany,
Egypt, Finland, France, India, Italy, Netherlands, Norway, Poland, Portugal,
Slovakia, Spain, Syria, Turkey, United Kingdom, South Africa, Slovakia Sweden
and Switzerland, Singapore.
A complete overview you will find on: www.penko.com/dealers

PENKO Engineering B.V. ▪ Schutterweg 35, NL 6718XC Ede ▪ Tel +31 (0) 318525630 ▪ Fax +31 (0) 31852971 ▪ [email protected]
Web ▪ www.penko.com ▪ Copyright © 2014 ETC All rights reserved. 7600L1102 EN PENKO Modbus Protocol R7

60

You might also like