1020 Modbus Protocol
1020 Modbus Protocol
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:
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.
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:
Flex multichannel supports Weigher 1, 2, 3 and 4. All other instruments only support Weigher 1.
6
PENKO Modbus protocol
2 Addresses
The following addresses are used:
* 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
8
PENKO Modbus protocol
The 1020 FMD has different control bits:
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
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.
12
PENKO Modbus protocol
The 1020 FMD has different indicator values:
13
PENKO Modbus protocol
4 Examples
The following examples show the use of the Modbus commands using OPC KEPServerEX and Weintek
EasyBuilder Pro.
KepServer
Address: 100001
EasyBuilder
Input # 1 = address 1
14
PENKO Modbus protocol
Read the status of output 1:
KepServer
Address: 100201
EasyBuilder
15
PENKO Modbus protocol
4.2 Read/write markers
Read/write marker 1:
KepServer
Address: 000401
EasyBuilder
16
PENKO Modbus protocol
Read/write marker 40:
KepServer
Address: 000440
EasyBuilder
17
PENKO Modbus protocol
4.3 Read indicator values
Read indicator 1 as Float:
KepServer
Address: 300001
EasyBuilder
Indicator # 1 = address 1
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
Address: 300103
EasyBuilder
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
Address: 301001
EasyBuilder
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
Address: 401003
EasyBuilder
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
See page 4
Address: 001002
EasyBuilder
22
PENKO Modbus protocol
Set tare:
KepServer
See page 4
Address: 001004
EasyBuilder
23
PENKO Modbus protocol
4.6 Weigher status
Check if weigher is stable:
KepServer
See page 4
Address: 101091
EasyBuilder
24
PENKO Modbus protocol
Check if tare is active:
KepServer
See page 4
Address: 101097
EasyBuilder
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.
Input parameter 1:
Output result 1:
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:
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
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_USB 3000 USB errors - use USB routines for returning error texts
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
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
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
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
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
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
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
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
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
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
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
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
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
39
PENKO Modbus protocol
Setpoint 1 has path number 1.1.1.3.5.1.1. This results in the following input parameters:
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
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
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
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
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
43
PENKO Modbus protocol
5.6.2 PRINT_SUBTOTAL
Print subtotal to printer. Function code = 302.
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
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
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.
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
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.
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
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.
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
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).
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
Reply:
Result 1 Result 2 Result 3 Result 4
307 1660428288 1711 0
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
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
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
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.
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
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
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
53
PENKO Modbus protocol
5.7.3 TOTAL_TOTAL
Get the total weights. Function code = 403.
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
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
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
54
PENKO Modbus protocol
5.7.4 TOTAL_DAYTOTAL
Get the day total weights. Function code = 404.
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
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
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
55
PENKO Modbus protocol
5.7.5 TOTAL_BATCHTOTAL
Get the batch total weights. Function code = 405.
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
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
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
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
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
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
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
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
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
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