Manual Connect - BRAIN en PDF
Manual Connect - BRAIN en PDF
BRAIN
Operating instructions
as of program version 3.05
38.026.297.001 en
38.026.297.001 en
Contents
Contents
1
Page
About these instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
1.1
Safe-keeping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2
Target group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3
1.3.1
1.3.2
1.3.3
Symbols used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How notes and information are depicted . . . . . . . . . . . . . . . . . . . . . . . . . .
How safety warnings are displayed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Viewing of menu call-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
7
8
8
2.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2
Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3
Warranty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
2.4
Virus protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
3.1
License packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
3.2
Developer mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
3.3
Software protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
13
4.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
4.2
Application tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
4.3
Modul tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
4.4
System tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
4.5
Directories tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
4.6
License tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
4.7
17
Device connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
5.1
5.1.1
5.1.2
5.1.3
5.1.4
18
18
18
19
20
Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection establishment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection clear-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
38.026.297.001 en
Contents
5.2
6
20
21
6.1
6.1.1
6.1.2
6.1.3
6.1.4
21
21
21
22
22
6.2
6.2.1
6.2.2
6.2.3
22
22
23
23
_connectServer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
7.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
7.2
7.2.1
7.2.2
7.2.3
7.2.4
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuring _connectServer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Assigning user accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuring operation in the network . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
24
25
26
27
_connectConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
8.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
8.2
29
8.3
Program structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
8.4
31
8.5
34
8.6
8.6.1
8.6.2
8.6.3
_connectServer Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
"Common" tab....................................................................................
"Connections" tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
"Devices" tab.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
34
35
38
46
8.7
8.7.1
8.7.2
8.7.3
8.7.4
_connect2File Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Naming log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
"Common" tab.... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
"Files" tab....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
"Devices" tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
50
51
52
54
8.8
8.8.1
BHI Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Adding and deleting master/slave devices and department . . . . . . . . .
57
59
38.026.297.001 en
10
11
Contents
8.9
8.9.1
8.9.2
60
60
61
8.10
61
_connectDiagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62
9.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62
9.2
62
9.3
Program structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
9.4
63
_connect2File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
10.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
65
10.2
65
10.3
Program structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
66
10.4
67
10.5
68
10.6
10.6.1
10.6.2
10.6.3
10.6.4
File transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data transfer from host to _connect2File . . . . . . . . . . . . . . . . . . . . . . . . . .
Data transfer from _connect2File to host . . . . . . . . . . . . . . . . . . . . . . . . . .
Controlling data output by events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
68
69
70
70
71
10.7
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
73
_connect2DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
11.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
11.2
75
11.3
Database setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
11.4
Database structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
77
11.5
Program structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
77
11.6
78
11.7
Defining filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11.7.1 Creating filter using the wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11.7.2 Creating filters manually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
79
80
81
11.8
Renaming filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
81
11.9
Editing filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
82
38.026.297.001 en
Contents
12
13
11.10
83
11.11
85
11.12
Exporting data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
85
11.13
86
11.14
Configuring _connect2DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
88
11.15
90
11.16
90
_connect2SAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92
12.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92
12.2
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92
12.3
12.3.1
12.3.2
12.3.3
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
_connect2SAP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SAP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Packing table configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
93
93
94
97
12.4
_connect2SAP Frontend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
99
12.5
12.6
12.6.1
12.6.2
12.6.3
12.6.4
_connect2SAP Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Starting the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Structure of the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Menu bar and toolbar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
101
101
101
102
102
12.7
Functional components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.1 Overview of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.2 Z_RFC_BCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.3 Z_RFC_BCT_MULTI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.4 Z_RFC_BCT_PRINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.5 Z_RFC_BCT_SPOOLER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.6 Z_BCT_LABEL_GLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.7 Z_BCT_DIMENSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.8 Z_BCT_REG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.9 Z_BCT_NULLSTELLEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.7.10 CFB_RFC_BCT_MULTI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
103
103
104
104
105
105
106
110
112
116
117
_connectScannerWI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
13.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
13.2
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
13.3
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
38.026.297.001 en
14
15
16
17
Contents
13.4
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
13.5
13.6
13.7
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
14.2
14.2.1
14.2.2
14.2.3
14.2.4
VirtualES - Admin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Starting program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Structure of the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Menu bar and toolbar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Defining new configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
121
121
122
123
123
14.3
14.3.1
14.3.2
14.3.3
14.3.4
14.3.5
14.3.6
VirtualES - View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Start program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Menu bar and toolbar functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Display data records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Check signatures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Registration of weighing results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
124
124
124
125
126
126
126
_edit.BRAIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
15.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
15.2
15.3
15.4
15.5
LogPathConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
16.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
16.2
16.3
16.4
38.026.297.001 en
Contents
17.2
17.2.1
17.2.2
17.2.3
17.2.4
17.2.5
17.2.6
17.2.7
18
BxNet language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Telegram structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Coding of the data description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
BxNet data types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Coding of the useful data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Dimensionful data: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Coding of prices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Coding of weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
134
135
135
136
136
137
137
138
165
166
167
189
18.4
BctFunctions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
18.4.1 Conversion function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
18.4.2 Parse functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
38.026.297.001 en
1
1
Read the operating manual through carefully before installing and using the program, to
ensure that you fully utilize the quality and possibilities of application offered.
We offer training in relation to our products. Please contact your Bizerba consultant for details.
Our products undergo continuous further development and are subject to different countryspecific regulations. Examples of pictures and graphics included in these instructions may
vary from the version you receive.
1.1
Safe-keeping
The operating manual is an integral part of this software and must be kept easily accessible for all personnel. If selling or passing on the software to others, the complete operating
manual must also be provided.
1.2
Target group
Basic knowledge of the MS-Windows user interface is advantageous for operation of the
program.
1.3
Symbols used
1.3.1
38.026.297.001 en
1
1.3.2
The signal word above the symbol indicates the risk level.
DANGER
Source of danger with high risk with direct threatening danger for
personnel!
Resulting in:
WARNING
Critical injuries
Serious health damage
CAUTION
Serious injuries
Health damage
Serious damage to property
Source of danger with slight risk with potentially threatening danger for personnel!
The consequences can be:
CAUTION
Injuries
Damage to property
1.3.3
In order to present the menu navigation clearly and concisely, this manual makes use of
the following abbreviations (example):
<Start> / "All programs" / "Bizerba" / "BspLicenseManager" / "BspLicenseManager"
38.026.297.001 en
With _connect.BRAIN, Bizerba industrial scales, marking systems and printers can be connected with a single communication software package. Regardless of the connected device types, these communicate via the Bizerba standardized BxNet language and so control all your processes. This communication tool permits all industrial scales, marking devices and printers to be connected very quickly and efficiently to a customer-specific EDP.
2.1
Overview
_connectServer
_connectConfig
Configuration tool
_connectDiagnostics
Diagnostic tool
_edit.Brain
Log view
_connect2DB
_connect2SAP
_connectScannerWI
VirtualES
2.2
Right
All rights regarding this documentation and the software program are held by Bizerba. The
information in this document can be modified without providing any special notice. BIZERBA is not under any obligations with regard to this document.
38.026.297.001 en
Proper purchase of the software licenses and instructions enables the programs to be
used in accordance with the number of licenses. Copies on CD are only permitted for data
backup purposes (working copies).
2.3
Warranty
Despite all efforts made, errors cannot be completely ruled out of descriptions. We welcome your hints or comments at all times.
We are not responsible for damages caused by:
This warranty does not cover defects / damage caused by unauthorized persons.
Our products are constantly further developed and are subject to various country-specific
regulations. Examples of pictures and graphics contained in these operating instructions
may vary from the version which you received.
2.4
Virus protection
This software is manufactured and supplied without viruses based on the latest technology. However, there is always a possibility that a computer may be contaminated by computer viruses or other damaging software.
For your own safety, we recommend to run anti-virus software on your computer on a regular basis and after loading software. Furthermore, we recommend to check on viruses after loading software of other manufacturers or data carriers.
We recommend that you purchase an anti-virus program for virus analysis, which is constantly updated to the latest status.
10
38.026.297.001 en
Licensing
3.1
License packages
Licensing
For the operation of _connect.BRAIN, the following license packages are available:
Premium
Professional
BasicPlus
Basic
Licenses for
CX
GX
IX
MX
CX
GX
IX
MX
1 CX device
1 GX device
1 IX device
1 MX device
1 device in _connect2DB
1 device in _connect2File
1 device in _connect2SAP
1 device in VirtualES
Device assignment
License for CX device:
License for GX device:
License for IX device:
3.2
Developer mode
38.026.297.001 en
11
Licensing
3.3
Software protection
12
38.026.297.001 en
4.1
Overview
Information about the program and its environment can be viewed via the menu item "?" of
a program and the submenu item "Info about ...". The information is found on different pages, which can be selected clicking the corresponding tabs.
Independent from the selected tab, the following buttons are always available.
Close the information window.
Save complete information in a zipped file.
Opens the Netviewer user dialog.
Send e-mail to a previously entered recipient. The complete information is
attached to the email as a zipped file.
4.2
Application tab
38.026.297.001 en
13
4.3
Modul tab
The "Modul" tab lists all programs required by the application. Missing files are marked
with a red icon.
Description
C:\Programme\Bizerba\...
23.06.2006 11:45
3444798 Bytes
ProdVer: ...
Product version
FileVer: ...
File version
14
38.026.297.001 en
4.4
System tab
Information on network
38.026.297.001 en
15
4.5
Directories tab
The "Directories" tab contains the read-only attributes of the single directories.
16
38.026.297.001 en
4.6
License tab
The "License" tab contains information on all modules available within this program and on
available and unused licenses. Furthermore, the "BspLicenseManager" button allows to
open the BSP license manager. To activate the button, select a main item.
4.7
The "3rd party" tab contains all third party applications that are installed together with the
_connect.BRAIN setup.
38.026.297.001 en
17
Device connection
Device connection
5.1
Modem
5.1.1
Overview
For modem connection, two different pre-configured modems are required. The PC-side
modem is called the transmitting modem, the device-side modem is the receiving modem.
5.1.2
Configuration
Create transmitting modems in the systems in modem pools and allocate them to the devices via modem connections. When opening a modem connection, _connectServer uses
the next free transmitting modem of the assigned modem pool.
Configure transmitting modems, modem pools and modem connections in _connectConfig, see page 45.
18
38.026.297.001 en
5.1.3
Device connection
Connection establishment
_connectServer configures the serial interface to which the modem is connected according
to the settings in _connectConfig. It opens the serial interface and initializes the modem.
The initialization process is determined by the parameters set in the modem and modem
connection configurations, see page 45.
Three attempts are initially made to actuate the modem. Procedure of each attempt:
1. Wait for "Serial-Com-Delay" time (modem).
2. Send AT\r\n sequence to the modem.
3. Wait for positive answer. Timeout for receiving an answer is the "Response-Timeout"
time (modem connection).
If the modem cannot be actuated after three attempts, the connection establishment process is terminated.
If a modem connection can be established, the parameters are sent to the modem. Not set
parameters are ignored. Procedure:
1. Transmit "Pre-Dial-String" (modem connection).
Timeout is the "Response-Timeout" (modem connection).
2. Transmit "Pre-Dial-String2" (modem connection).
Timeout is the "Response-Timeout" (modem connection).
For Bizerba modem configurations, this string is normally not required. It has been
created because some modem commands (e.g. reset, template loading) can only
be separately sent to the modem and not together with other commands.
3. Transmit "Pre-Dial-String" (modem).
Timeout is the "Response-Timeout" (modem connection).
4. Transmit "Pre-Dial-String2" (modem).
Timeout is the "Response-Timeout" (modem connection).
5. Transmit "Dialstring" (modem connection).
6. Timeout is the "Dial-Timeout" (modem connection).
7. Transmit "Post-Dial-String" (modem connection).
Timeout is the "Response-Timeout" (modem connection).
The "Post-Dial-String" of the modem connection is not a modem command (no leading AT). It can be used to configure a serial switch after the modem, for example.
8. Transmit "Post-Dial-String" (modem).
Timeout is the "Response-Timeout" (modem connection).
38.026.297.001 en
19
Device connection
5.1.4
Connection clear-down
Before closing the modem connection, the below mentioned commands are transmitted to
the modem. Not set parameters are ignored.
1.
2.
3.
4.
5.2
_connect.BRAIN supports the ADDI-DATA I/O board MSX-E1516. _connectServer/DigitalIO and the I/O board communicate via Ethernet.
According to ADDI-DATA, the I/O board must not be used as safety resource. This means, that inputs or outputs in safety relevant areas must
not be controlled by this I/O board.
About installation and configuration
When installing and configuring the I/O board, make sure that only one
computer communicates with the I/O board.
Access of more computers or _connect.BRAIN installations to the I/O board is not supported. It may cause problems when controlling outputs or signaling inputs.
About operation
Make sure that the network load between _connectServer/DigitalIO and
the I/O board does not become excessive during operation.
If the network load is excessive, inputs and outputs may be controlled too slowly and the I/
O board watchdog (monitoring program) will report an error. In this case input and output
control is no longer reliable.
20
38.026.297.001 en
6.1
6
6.1.1
6.1.2
Under DCOM configuration, the BCS configuration has to be set to "user starting application".
"Start" / "Settings" / "System control" /
"Administration" / "Component services"
"Component services" / "Computer" /
"Workstation" / "DCOM configuration"
Call up context menu for "BCS".
Select "Properties".
Call up "Identity" tab.
Activate "User starting the application".
38.026.297.001 en
21
6.1.3
If the BCS is always active on the terminal server, the following key can be entered in the
registry, so that the last Citrix application ends the BCS:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI
6.1.4
A batch file must be executed in the Citrix session, which maps the COMx port, for example: "net use COM1: \\client\COM1"). Subsequently, "BCS" is able to access the client serial port.
6.2
Installation under Windows Terminal Server is supported for Microsoft Windows 2000 and
2003 servers.
6.2.1
22
38.026.297.001 en
6.2.2
When using a serial interface at the client computer during a Terminal session, please
note that if the network temporarily breaks down, connectServer can no longer access the
serial port.
This problem can only be resolved when the connection from the application program to
connectServer is closed and subsequently reestablished. Close the connection as follows:
Call up "Close" or stop devices via _connect2File.
The operating systems reports that the "device" is no longer available. In this case, "Device" stands for COM port.
6.2.3
If the VirtualES server, view, or admin displays an authorization error, the access rights set
on the VirtualES server (BizMemServer) have to be adjusted using the dcomcnfg Windows
program.
Open the "Component services" windows via the Windows system administration.
Open "Computer" / "Workstation" / "DCOM configuration".
Call up the "Properties" of BizMemServer via the context menu.
Open the "Security" tabs and, via <Edit...>, adapt the settings for the "Start and activation rights" and "Access rights".
User name:
SYSTEM
Authorizations:
Permit
38.026.297.001 en
23
_connectServer
_connectServer
7.1
Overview
_connectServer (BCS.Exe) is the system control center for communication between programs and devices. _connectServer is installed as DCOM object which can be accessed
by means of the DCOM interface.
7.2
Configuration
7.2.1
Configuring _connectServer
24
38.026.297.001 en
7.2.2
_connectServer
Operating modes
_connectServer can be operated as application or service. By default, the program is installed as application. It is possible to change the operating mode via the command line
window.
You need administration rights to change the operating mode via the
command line window.
Application:
Service:
_connectServer is activated as soon as another program establishes connection via the DCOM or COM interface. _connectServer is deactivated as soon as the program that established
the last connection closes the connection. Since _connectServer is only active when used by other programs, this operating
mode facilitates changing the configuration and updating.
_connectServer becomes active when starting the operating
system and remains active until the operating system is shut
down. Since there will not be any delays due to repeated opening and closing of the program, this operating mode offers a
better performance. The automatic monitoring of services ensures that the program will be automatically re-started after a
program crash. The operation as service makes changing the
configuration and updating more difficult because the service
has to be manually closed and re-started.
Delete the set operating mode. A new operating mode can be set then.
BCS.exe -regserver
BCS.exe -service
38.026.297.001 en
25
_connectServer
7.2.3
Use the dcomcnfg Windows program to allocate the user account with which _connectServer will be started. The possible settings depend on the set operating mode of the program.
Open the "Component services" windows via the Windows system administration.
Open "Computer" / "Workstation" / "DCOM configuration".
Call up the "Properties" of BCS via the context menu.
Open the "Identity" tab and set the user account under which the program will be started.
Possible settings with operation as application:
"The interactive user.":
Use the account of the user that is currently logged on the
operating system.
"User starting the appli- Use the account of the user who starts the application. This
cation.":
can be a different user than the one currently logged on the
system if e.g. the application is started with RunAs in another
user context.
"This user.":
Use a preset user, no matter which application requires access.
26
38.026.297.001 en
7.2.4
_connectServer
The following configuration modifications are required to allow remote access to the _connectServer via a network.
Make the settings centrally using the domain controller or individually on
every computer connected in the network.
Create a new user group (hereinafter referred to as Bizerba) and a new user (hereinafter referred to as _connect.BRAIN). Allocate the new user to the user groups User,
Main user and Bizerba.
When creating a user, please observe the following:
Allocate existing and new users that shall have access to _connectServer to the Bizerba user group.
Adapt the DCOM configuration to the workstation and _connectServer as described
below.
38.026.297.001 en
27
_connectServer
Open the "Properties" via the context menu of the workstation and make the following
settings:
Settings in the "Standard properties" tab
Activate.
Set "Connect".
Set "Identify".
Set "Standard".
"Access rights"
"Configuration rights"
28
38.026.297.001 en
_connectConfig
8.1
Overview
_connectConfig
8.2
or
Answer the question with <no> to create a new configuration.
If necessary, confirm the message that the new configuration has been successfully
imported.
The start window of the program appears.
38.026.297.001 en
29
_connectConfig
8.3
Program structure
Menu bar
Tool bar
Work area
Overview area
The user interface contains the following areas, in addition to typical Windows elements:
Navigation area:
Work area:
Overview area:
30
38.026.297.001 en
_connectConfig
Select one of the three possible configurations via the toolbar buttons:
<BCS>
Configuration _connectServer - Bizerba communication server
<2File>
Configuration _connect2File - File based communication interface
<BHI>
Configuration BHI - Bizerba host interface
8.4
Functions for creating new item as well as rename, delete, copy, and
paste functions are available via the corresponding context menu.
"Open"
"Save"
"Save as..."
"_connect.BRAIN
Import/Export" / "data from _connectServer"
Establish server connection and load current server configuration in the _connectConfig work area.
"_connect.BRAIN
Import/Export" / "data to _connectServer"
"Last file"
or for example
"1: C:\Bizerba\...
\Beispiel.BCS"
"Exit"
Close _connectConfig.
38.026.297.001 en
31
_connectConfig
Add new device or new connection. The function is available when a structural level is marked in the navigation area,
e.g. "Serial".
"Rename F2"
"Delete Del"
"Copy CTRL+C"
"Paste CTRL+V"
"Status bar"
"Overview"
"Tabpages" /
"_connect2FileFiles"
32
38.026.297.001 en
_connectConfig
"Wizard"
"Import devices"
"Conversion tables" /
"Import from file"
"Conversion tables" /
"Export into file"
38.026.297.001 en
33
_connectConfig
8.5
The following buttons are available in the work area at different program positions.
<Configure object>
Example: Configure the interface that is assigned to a modem.
<...>
<Back>
<Default>
<Advanced>
8.6
_connectServer Configuration
34
38.026.297.001 en
8.6.1
_connectConfig
"Common" tab
Application
Make individual settings for _connectServer here.
Settings
"PC-Address:"
"Delete Protocolfile" Number of days after that commlog files will be deleted. With activated registration, commlog files save the data transfer between
_connectServer and the device.
Value range: 1-90 days
"_connect.BRAINlanguage:"
38.026.297.001 en
35
_connectConfig
_connect2SAP
Make the settings for the SAP system interface here. The SAP system is accessed via
three levels that can be individually configured:
Settings
"SAP Destination"
"SAP Host"
"SAP Gateway"
"SAP Reconnect
Time"
36
38.026.297.001 en
_connectConfig
_connectScannerWI
With _connectScannerWI, a scanner can be used in the keyboard wedge so that data is
transferred to the active program via keystrokes (e.g.Notepad) , see page 118.
Make the settings for these scanning operations here.
Settings
"Scanner"
Select scanner.
"End of Line"
"EraseChar"
Select the control character that is to be deleted from the data flow.
Testing connections
This function is used to check connection to single devices or all connected devices. Prior
to checking, the current configuration has to be send to the _connectServer.
Start the connection test via the menu or using the following icons of the toolbar:
Test connection.
38.026.297.001 en
37
_connectConfig
8.6.2
"Connections" tab
The "Connections" tab is used to define and configure connections, dialogs, conversion tables, modem connections, and local IP addresses for device connection.
"Port"
"Baudrate"
"Databits"
"Parity"
Parity.
Value range:
no parity
odd
odd
"Stopbits"
"Protocol"
38
38.026.297.001 en
_connectConfig
Assignment to a device family so that device-specific default settings and restrictions are taken in consideration.
Use the GX device family also for CX devices, see page 134.
"Card"
"Channel"
"Baudrate"
38.026.297.001 en
39
_connectConfig
Assignment to a device family so that device-specific default settings and restrictions are taken in consideration.
"Type"
Transmission type.
TCP_SERVER_CLIENT=client/server
"Device-IP"
"Hostname"
"Port"
Local TCP/IP port for communication with the device. Use port
number 1024 or higher because the area 0..1023 is reserved for
standard programs.
"Local IP address"
IP address that is locally to be used for communication with the device. If the entered IP address is selected whilst establishing a
TCO/IP connection, communication with the device is performed
via this IP address. If nothing is defined, the first found IP address
is used.
Indication of the local IP address is necessary for error-free
communication between the device and the PC when the PC
has several IP addresses.
When using the "Local IP address" setting, make sure that a
local IP address has been configured for all devices with
Ethernet configuration. Otherwise Ethernet communication
problems may occur.
The configuration can be checked in the overview area, see
page 30.
"use DHCP"
activated:
not activated:
"Check of valid con- Function for service technician, cannot be set via the _connectConnection to device
fig program.
(ping)"
40
38.026.297.001 en
_connectConfig
Interface dialogs
Standard interface dialogs can be viewed but not configured with the
exception of modem-specific settings in case of retail scales.
Configuration of newly created interface dialogs and of copies of the
standard interface dialog can be customized.
Settings for GX and IX device families
"Assignation"
"Connection-type"
Connection type.
Value range:
"Serial"
"Profibus"
"TCP/IP"
"Dialog-type"
"Blockcheck"
No block test.
Longitudinal redundancy check (LRC).
"Enquirychar"
"Pos/Neg acknowledge"
"Start characters 1/
2"
"End characters 1/
2"
"Delimiter"
"IgnoreChar"
38.026.297.001 en
41
_connectConfig
"Timeout in ms:"
"Dialog-type"
Dialog type.
Value range:
"SCHDLC":
"SCTCP":
"Init-command"
"Init-name"
Identifier.
"Retry"
"Modem-Type"
"Phone-No."
"Password"
"Blockcheck"
42
38.026.297.001 en
_connectConfig
38.026.297.001 en
43
_connectConfig
44
38.026.297.001 en
_connectConfig
"Silent-Delay"
"Pre-Dial-String"
"Pre-Dial-String2"
"Dial-Timeout"
"Post-Hook-String"
"Interface"
Serial interface.
"Dialstring"
"Dial-Timeout"
"Response-Timeout"
"Pre-Dial-String"
"Pre-Dial-String2"
"Post-Dial-String"
"Post-Hook-String"
"Modem-Pool"
38.026.297.001 en
45
_connectConfig
8.6.3
IP address that is locally to be used for communication with the device. If the entered IP address is selected whilst establishing a
TCO/IP connection, communication with the device is performed
via this IP address. If nothing is defined, the first found IP address
is used.
Indication of the local IP address is necessary for error-free
communication between the device and the PC when the PC
has several IP addresses.
"Devices" tab
Assign existing connections during device configuration. Depending on the device type or
family, the following settings can be made.
46
38.026.297.001 en
_connectConfig
Specification of the device type so that device-specific default settings and restrictions are taken in consideration.
"Connection-type"
"Interface"
"Dialog"
38.026.297.001 en
47
_connectConfig
Settings
"Logging/size"
"Load Receivers"
"Software-Vol."
GX:
Firmware version of the device. If the program version was incorrectly indicated, problems may occur during controlling or
querying of licenses which prevent correct functioning of the
program.
48
38.026.297.001 en
_connectConfig
Settings
"Header-Format"
GX, FX:
Select GxNet transfer format. The following formats are available
for Gx and Fx devices:
"Gx/Ix-Net(A!, I!, A?, I?)": new format, standard for all devices
"_connect2SAP"
"Connection"
"Virtual ES"
IX, SX:
Enable access to VirtualES. Via <Virtual ES>, the VirtualES - Admin program can be started. The _connectConfig program has previously transmitted the current settings to _connectServer.
"Registry-DB"
IX:
Enable or block access to the registry database for ST devices. If
required, define readout cycle in seconds. _connectServer reads
the data from the database and forwards them as spontaneous data to the superordinate program.
"Status"
38.026.297.001 en
49
_connectConfig
8.7
_connect2File Configuration
Use the <2File> button to configure the _connect2File program for file-based device communication. Program functions and operation are documented in a separate chapter of this
manual, see page 65.
8.7.1
Select the log file names so that they provide information on the content type and the relevant device.
Example:
record01.txt
The first part of the file name stands for the content type, for example
50
38.026.297.001 en
8.7.2
_connectConfig
"Common" tab
"GX-SendChannel"
"Files"
38.026.297.001 en
51
_connectConfig
8.7.3
"Files" tab
This tab is only displayed when the "_connect2File-Files" menu item is
activated in the "View" menu under "Tabpages".
_connect2File manages the log data of the connected devices. External access to the primary log data is disabled. For access by means of an external software, _connect2File
manages output files (also called "backup" in the program). The "Files" tab is used to configure the creation and management of the output files. In the navigation area, you may
create and configure separate log files that refer to a conventional _connect2File system
or to the _connect2File systems on terminal server clients.
Settings
"Log-Path"
Path for storing log files. Enter absolute path directly or select folder
via <..>.
"Filetype"
"Backup-Path"
Path for storing output files (output directory). Enter absolute path
directly or select folder via <..>.
"Filetype"
Use the <Advanced> button to open a window with additional settings for copying and data
backup ("Copy options" tab) and for accessing the output file ("Office-Applications" tab).
Settings in the "Advanced properties for log-files" window,
"Copy options" tab
"Max-Entry"
Number of entries after that the log data will be moved to the output
file.
"Max-Time"
Time interval after that log data will be moved to the output file.
"Copy at"
Time at that log data will be moved to the output file. If an output file
with an identical name already exists in the output directory and
cannot be overwritten due to configuration (see settings in the
"Backup-File" area), or if _connect2File is not active at the set time,
no action will take place. Not before the set time is reached again, a
new attempt is made to move the log data.
"Retry"
activated:
not activated:
"Retry-Delay"
"Header-Line"
activated:
not activated:
52
38.026.297.001 en
_connectConfig
"none"
"Excel"
"Word"
"Access"
"File"
File that is used to access the output file (excel, word or access file
with macro). Enter file name directly or select file via <..>.
"Macro"
38.026.297.001 en
53
_connectConfig
8.7.4
"Devices" tab
The conventional area contains a standard _connect2File system. The here created devices are visible for all clients and can
be used on all clients.
The terminal server area contains _connect2File systems for
terminal server clients. The here created devices are only visible on the respective client and can only be used by this client.
In the navigation area, select the "_connect2File-System" main entry or a client that
has been created under the "_connect2File system terminal server" main entry.
<Change>
Assign devices
Select one or more devices in the "Available Elements" area.
Assign devices with < >> >.
Remove assignment
Select one or more devices in the "Selected Elements" area.
Remove assignment of devices with < << >.
Save changes
<OK>
54
38.026.297.001 en
_connectConfig
_connect2File (standard)
Path and name of the file that contains the data to be sent to the
device.
"Error"
Path and name of the file that records defective data records, e.g.
transmission and syntax errors, or header not detected, see
page 73. The defective data records are not sent to the device.
"Dummy-files"
"Wait-Time"
Waiting time between two data records to be transmitted to the device in ms.
"Error-File"
activated:
"Devicestop"
activated:
not activated:
38.026.297.001 en
55
_connectConfig
56
38.026.297.001 en
_connectConfig
activated:
not activated:
"Telegramms"
activated:
not activated:
"Memocard"
activated:
not activated:
"Autostop"
activated:
not activated:
8.8
BHI Configuration
Via the <BHI> interface, the Bizerba host interface BHI is configured.
BHI is a host interface for Windows PCs for connecting the following devices:
SC retail scales
SW retail scales
BS retail scales
CE retail scales
GX price labelers
Host definition and program sequences are created by the program BHE (Bizerba Host
Editor) that is not documented here. The host data can be processed in ASCII, CSV or
XML file format. BHE contains data converters and data transmission programs (BCS-light
and SXCom).
38.026.297.001 en
57
_connectConfig
BHI is only required in connection with the WinCWS program and has
to be configured only when this program is used.
Settings
"System-Type/No."
The system type defines the device types that can be contained in
a BHI system.
Value range: SC/SW/BS, CE, GX
The system number is the number of a subsystem. A subsystem is
a logic unit comprising a single device or a group of retail scales or
price markers, which are supplied with data or from which data are
called up separately during communication.
Value range: 1-999
"Master devices"
The master device is a device in a subsystem, via which communication takes place with BHI. If more master devices are created,
these will be used as master devices for communication in the
event of failure of the first master device.
Value range: All devices of the selected system type that are created in _connect.BRAIN.
"Slave devices"
"Departments"
Department-related data (e.g. PLU data) can be filtered by department Only department-related data whose department number is
specified in the department list are transmitted. If the department
list is empty, all data records present in the host file are transmitted
to the subsystem.
Value range: 0-999
58
38.026.297.001 en
8.8.1
_connectConfig
The procedure is for master/slave devices and departments is largely identical and corresponds to the following description, by way of example. For editing slave devices or departments, select the respective tab.
Adding master device
Select the BHI system to be edited in the navigation area.
Select the "Master devices" tab in the work area.
Use the <Configure object> button or the enter key to open the "Master devices" window.
Select the device that shall be defined as master device in the "Available Elements"
area. Only devices that have been created in the system and correspond to the defined system type are displayed.
< >> >
Adding other master devices
If required, transfer other devices in the "Selected Elements" area in the same way.
Alternatively, these devices may be used as master device.
Removing master devices from list
Select the device to be deleted in the "Selected Elements" area and < << >
Terminating editing
<OK>
38.026.297.001 en
59
_connectConfig
8.9
8.9.1
New devices can be generated using a wizard. The wizard guides the user through the device-specific settings to the _connectServer and to the _connect2File if required.
"Extras" / "Wizard"
<Next >>
Select "Create a new device" and click <Next >>.
Entering the _connectServer settings
On the following pages, enter the _connectServer settings, see page 46. Close each
page using <Next >>.
Decide whether and how the device is assigned to _connect2File.
Answer the question "Do you want to add device to _connect2File environment?" and
click <Next >>.
The following responses are possible:
"yes":
The device is created in the _connectServer configuration
and assigned to the standard _connect2File system of the
_connect2Fileconfiguration.
"yes, add for existing ter- The device is created in the _connectServer configuration
minal server client":
and assigned to the terminal server client of the _connect2Fileconfiguration that has been selected in the relevant
dropdown list.
"yes, enter name of new The device is generated in the _connectServer configuration. A new terminal server client with the name that has
terminal server client":
been entered in the relevant input field is created in the
_connect2File configuration. The new device is assigned to
the new terminal server client.
"no":
The new device is created in the _connectServer, but not
added to the _connect2File configuration. Other _connect2File settings are omitted when proceeding through the
wizard.
If necessary, enter the _connectServer settings
Enter the input files, output files and application parameters for the _connect2File
configuration on the following pages of the wizard , see page 54. Close each page using <Next >>.
Completing device
Check the summed-up settings on the last page of the wizard. Use <Back> to return
to the previous page and correct settings.
Exit wizard with <Complete>.
60
38.026.297.001 en
8.9.2
_connectConfig
8.10
The <Import devices> function is used to generate links to other _connect.BRAIN devices
in the current configuration. This enables a _connect.BRAIN client (_connectControl, _connect2File, additional program) to easily operate with a distributed system.
"Extras" / "Import devices"
Enter the name of the _connect.BRAIN client from which devices have to be imported
in the "Computername" input field or select it using the <..> key.
<Show Devices>
Select devices for import.
<OK>
The devices appear in the _connectServer configuration on the "Devices" tab under the
"Network environment" main entry and the computer name. They can be viewed and used,
but not configured.
38.026.297.001 en
61
_connectDiagnostics
_connectDiagnostics
9.1
Overview
_connectDiagnostics provides you with an overview of the configuration and the use of the
_connectBRAIN program package. It accesses the _connectServer via the DCOM interface and finds out information about:
9.2
62
38.026.297.001 en
9.3
_connectDiagnostics
Program structure
Menu bar
Display area
Status bar
The user interface contains the following areas, in addition to typical Windows elements:
Navigation area:
Display area:
Status bar:
9.4
Information on device
38.026.297.001 en
Terminate _connectDiagnostics.
63
_connectDiagnostics
64
38.026.297.001 en
10
_connect2File
10.1
Overview
_connect2File
_connect2File is a user-friendly data interface for transferring BxNet data and control commands in the form of ASCII files.
Configure _connect2File via the _connectConfig program, see page 50.
_connect2File functions:
The data content of a telegram determines the log file(s) to which the reception
data are written. The automatic acknowledgement of total data can be suppressed for totals 1, 2 and 2 and carried out later by means of a release command, see page 57.
Prepare log files for data transfer in event-controlled mode
Call up macros in Microsoft Word and Excel
10.2
38.026.297.001 en
65
10
_connect2File
10.3
Program structure
10
Illustration 11: User interface _connect2File
1 Menu bar
2
Tool bar
Connection window
Status bar
The user interface contains the following areas, in addition to typical Windows elements:
Connection window:
66
Communication of each device is displayed in a connection window. The connection window shows the connection status and
the data transfer. The background color varies according to the
status:
38.026.297.001 en
10.4
_connect2File
Initialize access to all configured devices. Open connections and and start data exchange. Any devices that have
already been started are not re-initialized.
"test online"
"start"
"stop"
"Exit"
10
"arrangement vertical"
"arrangement horizontal"
"arrange symbols"
example
"1 GLP"
Consecutive number and device name of displayed windows. The active window is checkmarked. Select desired
window.
38.026.297.001 en
67
_connect2File
10.5
10
10.6
File transfer
An application that provides data for the devices, runs on the host. The host application
and the _connect2File program communicate by exchanging files in ASCII format. Data is
transferred via the hard disk of the _connect2File computer according to a defined protocol.
The WinCWS program is an example of a host application. This program provides the GX
device family with a master data ASCII file that is transferred to the GX device by _connect2File.
Sample file that transfers the text "hello GX" in the text field 1 of a GX device:
Line 1: A!GT01
Line 2: hello GX
68
38.026.297.001 en
10.6.1
_connect2File
10
38.026.297.001 en
69
_connect2File
10.6.2
10
10.6.3
_connect2File relocates its temporary log file in the output directory as soon as a defined
event occurs. This event may be related to files or received data. File-related events are
the following: a defined number of entries is reached, a defined period of time has elapsed,
a set time is reached or a header changed within the file. Configure these events in _connectConfig on the "Files" tab of the _connect2File configuration, see page 52.
In addition to file-related events, receipt of certain input data causes relocation in the output directory. Define this input data in _connectConfig by configuring the event file, see
page 56.
70
38.026.297.001 en
10.6.4
_connect2File
File structure
Data is transferred between the host and _connect2File in form of text files that contain
ASCII encoded characters in 7-bit format. The transfer files consist of headers and user
data. Headers always contain information on the data format, its attributes and the following user data. To distinguish headers from user data lines, they start with the following
identifiers:
!
A!
I!
?
A?
I?
Write access, old header format Gx-Net (!,?), only possible with
GX and FX devices
Write access to labeler, new header format Gx/Ix-Net(A!, I!, A?,
I?)
Write access to industrial device, new header format Gx/IxNet(A!, I!, A?, I?)
Read access, old header format Gx-Net (!,?), only possible with
GX and FX devices
Read access to labeler, new header format Gx/Ix-Net(A!, I!, A?,
I?)
Read access to industrial device, new header format Gx/IxNet(A!, I!, A?, I?)
A header is followed by one or more data records (user data). If the user data format
changes, a new header is added.
Example:
Header for data format x
User data in data format x
User data in data format x
Header for data format y
User data in data format y
User data in data format y
User data in data format y
38.026.297.001 en
71
10
_connect2File
Example of a file in the new format Gx/Ix-Net(A!, I!, A?, I?), headers highlighted
10
A!PV04|PW02|GW09|GL19|GL1A|GL16|PD00|GL2B|GL2C CR/LF
1|2|4711|0|1|KG;-3;100|20997|1545 CR/LF
1|2|4711|0|2|KG;-3;100|20997|1545 CR/LF
1|2|4711|0|3|KG;-3;100|20997|1545 CR/LF
1|2|4711|0|4|KG;-3;100|20997|1546 CR/LF
1|2|4711|0|5|KG;-3;100|20997|1546 CR/LF
A!PV01|PW02|PW00|PL00|PD03|PD14|GL17|GL19|GL1A|GD02|GL2B|GL2C CR/LF
8|1|5|KG;-3;500|0|650|2|4711|0|0|20997|1546 CR/LF
A!PV04|PW02|GW09|GL19|GL1A|GL16|PD00|GL2B|GL2C CR/LF
1|2|4711|0|1|KG;-3;100|20997|1546 CR/LF
1|2|4711|0|2|KG;-3;100|20997|1546 CR/LF
1|2|4711|0|3|KG;-3;100|20997|1546 CR/LF
1|2|4711|0|4|KG;-3;100|20997|1546 CR/LF
1|2|4711|0|5|KG;-3;100|20997|1546 CR/LF
A!PV01|PW02|PW00|PL00|PD03|PD14|GL17|GL19|GL1A|GD02|GL2B|GL2C CR/LF
8|1|5|KG;-3;500|0|650|2|4711|0|0|20997|1546 CR/LF
8|2|10|KG;-3;1000|0|650|2|4711|0|0|20997|1546 CR/LF
8|10|10|KG;-3;1000|0|650|2|4711|0|0|20997|1547 CR/LF
Example of a file with PSV_DATA data records from a labeler in the old format GxNet (!,?), header highlighted
!PV04|PW02|GL19|GL16|PD00|PD10|LX02 <CR/LF>
7|1|1|KG|-3|1064|0|106 <CR/LF>
7|1|2|KG|-3|1036|0|104 <CR/LF>
7|1|3|KG|-3|1002|0|100 <CR/LF>
7|1|4|KG|-3|1064|0|106 <CR/LF>
The header begins with the character ! for write access from the labeler. This is a string of
subfunction identifiers, which specify the following data. The pipe character | divides the
identifications. The header consists of one line and is concluded with <CR/LF>.
Example of a header in the new format Gx/Ix-Net(A!, I!, A?, I?) with explanation
A!PV04|PW02|GL19|GL16|PD00|PD10|LX02 <CR/LF>
72
38.026.297.001 en
A!
PV04
PW02
GL19
GL16
PD00
PD10
LX02
10.7
_connect2File
Troubleshooting
_connect2File processes an input file provided by the host record-by-record and sends the
single data records to the _connectServer. _connectServer transfers the data records to
the relevant device. Errors that occur during transfer are logged in an error file, see
page 55.
38.026.297.001 en
73
10
_connect2File
Example:
05:05.2011 16:59:16 acknowledgement timeout error: !GT02;Test
10
Format:
[TT:MM.JJJJ] [HH:MM:SS] [parsing error:] [Datenzeile]
Example:
05:05.2011 17:03:28 parsing error: abcdefg
74
38.026.297.001 en
11
_connect2DB
11.1
Overview
_connect2DB
11.2
11.3
Database setup
When using _connect2DB for the first time, the database setup wizard starts automatically.
The wizard can also be started directly via C:\Programme\Bizerba\BCT
\BCT2DB\DBConfig.exe.
38.026.297.001 en
75
11
_connect2DB
When setting up the database, choose between the following database types:
Database
type
Benefits
Microsoft Ac-
cess
Easy operation
Easy administration
Easy creation of evaluations
Disadvantages
11
Microsoft
SQL Server
(recommended)
It is recommended to use MS SQL Server from version 7.0. This version is easily scaleable. This will guarantee data security and access
speed even with large data volumes.
Before setting up a MS SQL Server database, the MS SQL Server has to be installed and
set up.
Select the database type in the first step of the wizard.
<Next >>
Setting up MS Access database
Confirm the available storage space display.
If storage space is sufficient, a MS Access database is saved as BCT2DB.dat in the C:
\ProgramData\Bizerba\BCT\db directory.
Setting up MS SQL Server database
Select server. Enter user name and password for establishing the connection to the
MS SQL Server.
The BCT2DB database is set up on the MS SQL Server.
76
38.026.297.001 en
_connect2DB
11.4
Database structure
11.5
Program structure
Tool bar
Display area
Error area
Status bar
38.026.297.001 en
77
11
_connect2DB
The user interface contains the following areas, in addition to typical Windows elements:
Display area:
Error area:
Status bar:
11.6
"Exit"
11
"Add..."
"Administrate"
"Clear contents of
database..."
"Language"
78
38.026.297.001 en
11.7
_connect2DB
Defining filters
Filters are used to collect selected data from the data flow of a connected device. A wizard
is available for creating filters.
11
38.026.297.001 en
79
_connect2DB
11.7.1
The device used for determining data records has to be connected and ready for use. The
device must be enabled for manual release of data records. With GX and CX devices provided with storage medium, it is also possible to read data records from the storage medium.
"Data filter" / "Add..."
Select a device for determining the data records to be filtered in the "Name" dropdown list.
Only with GX/CX devices: In the dropdown list "Channel Control", select the "keine
Kanalsteuerung" setting or a channel for data transfer. The settings must correspond
to the relevant settings of the device.
In the dropdown list "IxNet Converting (@41 --> A)", select whether and how data has
to be converted.
The following settings are possible:
11
<Next >>
Enter a comprehensive name for the new filter.
The filter name is also used for the relevant database table.
Permitted characters: upper case, lower case, numbers and spaces. Spaces are not
permitted at the beginning or at the end of the name.
No differentiation is made between upper/lower case in filter names.
<Next >>
For registration, activate data transfer of the device, e.g. transmission of total information.
or
Only with GX/CX devices with storage medium: Click <Memocard>, when data records of a storage medium shall be read instead of spontaneous telegrams.
If several telegrams are received or several data records of a storage medium are
read, these are displayed in a selection window.
Select telegram or data record and confirm it with <OK>.
The commands set under "Options..." (default data, see page 88) and the commands
that have been received during registration are available for saving in the database table.
Deactivate check-box for data that is not to be saved in the database table.
80
38.026.297.001 en
_connect2DB
If only data records that contain the selected data in the specified order are to be written in the database table, activate the "Only evaluate data in the telegram, which correspond to the indicated sequence." check-box.
Select the device whose data is to be filtered accordingly.
Only with GX/CX devices: Select whether the channel control has to be used and
specify the channel, if necessary.
Only with GX/CX devices: By activating or deactivating the corresponding checkboxes, specify whether spontaneous telegrams from the device shall be received or
the storage medium shall be read.
The "spontaneous telegrams" check-box is automatically activated for devices of other
device families.
Create filter with <Complete>.
The filter information is written in the C:\ProgramData\Bizerba\BCT\config\BCT2DB\devices.dat file. It is not saved user- specifically, but it is
valid for all users.
11.7.2
11
11.8
Renaming filters
New filters can be renamed as long as no data has been imported by means of the filter.
After importing data, the function is grayed out. Use a comprehensive name. The filter
name is also used for the relevant database table.
Permitted characters: upper case, lower case, numbers and spaces. Spaces are not permitted at the beginning or at the end of the name.
38.026.297.001 en
81
_connect2DB
11.9
Editing filters
The filter management is used to edit existing filters and view the related database tables.
The display is divided into the following tabs:
11
"Commands / Data":
"Devices":
"Data Browser":
82
"Channel Control"
Only for GX/CX devices. Deactivate channnel control or select channel that is used for data transfer.
"use MemoCard"
38.026.297.001 en
_connect2DB
Settings
"spontaneous telegrams"
"IxNet Converting
(@41 --> A)"
11
Editing lines
Click the field to be edited on the "Commands / Data" tab and select the desired field
name or command in the dropdown list.
Saving data filter management
<Save>
11.10
In the default setting, only simple device commands can be selected as filter criteria in
_connect2DB. Device commands with a complex structure comprising a number of values
and texts must first be made known to the program.
Define the handling of device commands with complex data structure or variable number
of parameters in the Collection_Command.dat configuration file. Each line contains a replacement command related to a complex device command.
Example:
GV02|GW05|GT03|LX02;%HGW05%_%DGW05%;%DGT03%
38.026.297.001 en
83
_connect2DB
The lines contain the following elements that are separated by a semicolon:
Header of the device command with a variable number of parameters for identification
of the command in the data flow (GV02|GW05|GT03|LX02)
Definition of a new header for designation of the column in the database table
(%HGW05%_%DGW05%)
11
When receiving device commands, the program searches for headers that are defined in
the configuration file. When a suitable command is found, the received data will be replaced according to the relevant command for storage in the database table.
Example 1: Resolution of a device command with a variable number of parameters
into a replacement command with one parameter
Instead of saving the received device commands, this replacement command saves the
new header and the new value that have been defined in the Collection_Command.dat.
Line in the Collection_Command.dat configuration file:
GV02|GW05|GT03|LX02;%HGW05%_%DGW05%;%DGT03%
The name of the first parameter (GW05) and the value of the first parameter (2) are connected by an underscore to form the name of the replacement command. This is also the
name of the filter element or of the column in the database table (GW05_2). The value of the
second parameter (Hallo) is saved as value of the replacement commands or contents of
the database column.
84
38.026.297.001 en
_connect2DB
The database columns GW03, GD02, GD02 and GD07 receive the values 1, 1.0, 2.1 and 3.4.
The replacement command of this example resolves the device command with a variable
number of parameters without generating new pseudo commands. The following simple
formula obtains the same result:
GV01|GW03|GD01|GD02|GD07|LX02;*;*
The asterisks cause only the sequences GV01 and LX02 to be deleted from the data packet.
The remaining data is transferred unchanged.
11.11
Deleting filters
"Data filter" / "Administrate"
Right-click the filter to be deleted.
In the context menu, select "Clear...".
The filter is deleted without query. If data related to the filter has already been read, the
corresponding database table appears in the navigation area under "Tables w/o Filters" and can be viewed in the display area.
Deleting the relevant database table
Right-click database table in the navigation area under "Tables w/o Filters".
In the context menu, select "Clear...".
The table is deleted without query.
11.12
Exporting data
38.026.297.001 en
85
11
_connect2DB
<Export data>
or
Via the "File" menu, select "Export...".
The program _connect2DB.Export starts.
The program _connect2DB.Export can also be called up separately
via the start menu.
Select the export format in the "Type" dropdown list.
<Forward >>
Select at least one data filter or one database table as data source.
<Forward >>
Enter the period from which data has to be exported.
Depending on the selected data source, the devices from which the data to be exported originates are displayed.
11
11.13
Exporting of database tables can also be started via the command line. The following parameters are available:
Parameters
Description
-export
-table
86
38.026.297.001 en
_connect2DB
Parameters
Description
-period
-from
-to
-format
-file
The export.cvs export file is saved in the C:\Temp directory without starting the DBExport
user interface. It contains all the data that has been imported in the mentioned period using the "Registration" filter.
38.026.297.001 en
87
11
_connect2DB
11.14
Configuring _connect2DB
Use the "Extras" menu item "Options" to configure the _connect2DB program. The configuration is saved in the C:\ProgramData/Bizerba/BCT/config/BCT2DB.ini file.
Tab settings "Devices"
"When starting program contact devices"
activated: When starting the program, establish automatic connection to the devices and start data transfer.
not activated: No automatic start of data transfer.
activated: The last three data records, that have not been saved
in the database table due to the filter criteria, are listed in the
lower part of the display area (error display). The list contains
the rejected data records with the following data:
Filters used
Data record
11
"Target directory"
"Time"
88
38.026.297.001 en
_connect2DB
"Clear backups/log
activated: Backup and log files are automatically deleted after
files older than n days" the entered number of days elapsed.
not activated: Backup and log files are not automatically deleted.
"Days:"
Number of days after that backup and log files are automatically
deleted.
activated: Start export file with a header that describes the following data records.
not activated: Start export file without header.
"Comma"
"PPoint"
11
"Available:"
38.026.297.001 en
89
_connect2DB
11.15
During data export, data is not deleted. The following options are available to delete database contents:
Delete database by means of integrated mechanisms (especially when MS SQL Server is used).
Delete database contents using the _connect2DB.Delete program. The program is
available via the _connect2DB menu.
"Extras" / "Clear contents of database..."
Enter password.
<Forward >>
Enter the creation time of the database contents to be deleted.
<Forward >>
Select database tables whose data is to be deleted.
<Complete>
Check and confirm security query.
11
11.16
The _connect2DB program supports data backup when a MS Access database is used.
Enter the settings for data backup and restore in the _connect2DB configuration, see
page 88. Only data stored in the MS Access database is backed up. Filters are not saved.
With the MS SQL Server, use the corresponding Microsoft data backup
tools.
"Extras" / "Options"
Saving data manually
Open the "Backup" tab.
<Carry out backup now>
A backup file is saved in the configured target directory.
Saving data automatically
Open the "Backup" tab.
Activate "Backup database every day" and enter the time for daily backup, see
page 88.
The data is automatically backed up at the set time every day.
Loading data backups
Open the "Restore" tab.
<Load backups>
Select backup file.
90
38.026.297.001 en
_connect2DB
<Forward >>
When loading data backups, the current data gets lost. Save the
current data before loading data backups.
After checking the security query, click <Finish>.
Enter password and confirm.
The selected data backup will be loaded.
11
38.026.297.001 en
91
_connect2SAP
12
_connect2SAP
12.1
Overview
_connect2SAP connects the Bizerba device world to the SAP environment. The program
consists of the following components:
12.2
Installation
If the _connect2SAP components have not been installed together with _connect.BRAIN,
execute the _connect.BRAIN setup again to install this component. Select "Change", set
the "_connect2SAP" option and follow the instructions on the screen.
Before installing _connect2SAP, make sure SAP GUI is installed. If
SAP GUI has not been installed yet, install it prior to the _connect2SAP
component.
12
Connect2SapRegistry
Connect2SapSpooler
Display names:
BCT2SAPRegistry.exe
BCT2SAPSpooler.exe
Changing operating mode later (service/program)
Call up the command line window via the start menu.
92
38.026.297.001 en
_connect2SAP
or
BCT2SAPSpooler.exe -service
Setting as program
BCT2SAPRegistry.exe -regserver
or
BCT2SAPSpooler.exe -regserver
12
BCT2SAPRegistry.exe -unregserver
or
BCT2SAPSpooler.exe -unregserver
12.3
Configuration
12.3.1
_connect2SAP configuration
38.026.297.001 en
93
_connect2SAP
12.3.2
SAP configuration
To control the _connect2SAP server from the SAP system, the connection data on the R/3
side has to be maintained. The technical properties of the RFC connection are summed up
under a logical name that is indicated in a program that was edited in the SAP programming language ABAP. Thus, when developing the ABAP client, the large amount of connection data must not be manually entered any longer. The connection data is exclusively
maintained using the SAP transaction SM59. First create a RFC destination as described
below. There are two possibilities for activation:
<Start-up>:
<Recording>:
When using the <Start-up> activation mode, communication between SAP and _Connect.BRAIN is established via _connect2SAP Frontend.
Create a registered server using <Recording>. The communication is carried out via the program components _connect2SAP
Registry and _connect2SAP Spooler. In the "Program ID" field,
specify the name used by _connect2SAP Registry or _connect2SAP Spooler when logging on SAP gateway. This is the
"SAP Destination" registered in _connectConfig, see page 36.
12
Input field
Value
Description
RFC destination
in the examples:
DEST_Z_RFC_BCT_F
RONTEND or
DEST_Z_RFC_REG
Connection type
TCP/IP connection
94
38.026.297.001 en
_connect2SAP
In the "Program" field, specify the _connect2SAP Frontend program with the complete
path.
12
38.026.297.001 en
95
_connect2SAP
Start _connect2SAP Registry or _connect2SAP Spooler and test the connection using
the SM59 transaction.
When the connection is established, a log with the duration of the transmission time for
the individual data packets will be generated.
12
96
38.026.297.001 en
12.3.3
_connect2SAP
The configuration described below is required for using the Packing table function (transaction Hupast) in SAP and connecting it to _connect.BRAIN. This function is used to register the weight of incoming deliveries.
12
38.026.297.001 en
97
_connect2SAP
12
98
38.026.297.001 en
_connect2SAP
Input field
value
Connect scale
activating
RFC destination
In this example:
Name of RFC destination created
DEST_Z_RFC_BCT_F in SM59 which has to be accessed.
RONTEND
Select RFC destination with
<Start-up> setting via
<Front End-Workstation>, see
page 94.
Scale name
In this example: ST
12.4
Description
12
_connect2SAP Frontend
38.026.297.001 en
99
_connect2SAP
12.5
The programs _connect2SAP Registry and _connect2SAP Spooler support communication between _connect.BRAIN and SAP via a RFC destination. They can be installed as
service or as program. During start, these components log on the SAP system using the
"SAP Destination" specified in _connectConfig, see page 36. In SAP, "SAP Destination" is
registered as program ID in the RFC destination. As soon as SAP uses the RFC destination, SAP tries to establish a connection, transfer data to the program and return the results to the SAP system by using the program ID.
The advantage of this procedure is that only
one PC is used for communication with the
devices. All SAP programs can establish a
connection to this PC.
12
_connect2SAP Spooler
_connect2SAP Spooler supports communication between SAP and _connect.BRAIN when
printing. SAP uses this component to send print jobs to the server. The spooler manages
the print jobs and handles errors. Print jobs can be deleted using the corresponding _connect2SAP Viewer monitoring program.
100
38.026.297.001 en
_connect2SAP
Print command
Label type
Handle
Labeling mode
Text field 1
Text field 2
End of a V command
PW00:
PW02:
GW09:
GT01:
GT02:
LX02:
12.6
_connect2SAP Viewer
12.6.1
Overview
12
The program lists the print jobs sent by the SAP system. Print jobs can be cancelled and
deleted here. The program is a client application and does not function without server.
12.6.2
38.026.297.001 en
101
_connect2SAP
12.6.3
12.6.4
12
"File" menu
"Create testjob..."
Device
Data line
"Refresh"
Update print job list. The function is also available as button with the
same name.
"Minimize"
"Exit"
Close program.
"Language" menu
Select here a language for the user interface.
Additional functions
<Delete>
102
38.026.297.001 en
12.7
Functional components
12.7.1
Overview of functions
_connect2SAP
12
38.026.297.001 en
103
_connect2SAP
12.7.2
Z_RFC_BCT
FUNCTION Z_RFC_BCT.
*"-------------------------------------------------------------*"*"Local interface:
*" IMPORTING
*"
VALUE(P_IN_BCT_HEADER) TYPE CHAR1024
*"
VALUE(P_IN_BCT_DATA) TYPE CHAR1024
*"
VALUE(P_IN_BCT_LEN_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_STATUS) LIKE BAPIRET2-MESSAGE
*" EXPORTING
*"
VALUE(P_RET_SYSTEM)LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_CODE) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_TEXT) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_HEADER) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_LEN_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_STATUS) LIKE BAPIRET2-MESSAGE
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"-------------------------------------------------------------ENDFUNCTION.
12
12.7.3
Z_RFC_BCT_MULTI
FUNCTION Z_RFC_BCT_MULTI.
*"-------------------------------------------------------------*"*"Local interface:
*" IMPORTING
*"
VALUE(P_IN_BCT_HEADER) TYPECHAR1024
*"
VALUE(P_IN_BCT_DATA) TYPECHAR1024
*"
VALUE(P_IN_BCT_LEN_DATA) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_STATUS) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_DEVICE) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_COUNT) LIKEBAPIRET2-MESSAGE
*" EXPORTING
*"
VALUE(P_RET_SYSTEM) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_CODE) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_TEXT) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_HEADER) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_DATA) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_LEN_DATA) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_STATUS) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_DEVICE) LIKEBAPIRET2-MESSAGE
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"-------------------------------------------------------------------ENDFUNCTION.
104
38.026.297.001 en
12.7.4
_connect2SAP
Z_RFC_BCT_PRINT
FUNCTION Z_RFC_BCT_PRINT.
*"-------------------------------------------------------------*"*"Local interface:
*" IMPORTING
*"
VALUE(P_IN_BCT_HEADER) TYPE CHAR1024
*"
VALUE(P_IN_BCT_DATA) TYPE CHAR1024
*"
VALUE(P_IN_BCT_LEN_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_STATUS) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_DEVICE) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_COUNT) LIKE BAPIRET2-MESSAGE
*" EXPORTING
*"
VALUE(P_RET_SYSTEM) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_CODE) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_TEXT) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_HEADER) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_LEN_DATA) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_STATUS) LIKE BAPIRET2-MESSAGE
*"
VALUE(P_RET_BCT_DEVICE) LIKE BAPIRET2-MESSAGE
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"-------------------------------------------------------------------ENDFUNCTION.
12.7.5
12
Z_RFC_BCT_SPOOLER
FUNCTION Z_RFC_BCT_SPOOLER.
*"-----------------------------------------------------------------*"*"Local interface:
*" IMPORTING
*"
VALUE(P_IN_BCT_DEVICE) LIKEBAPIRET2-MESSAGE
*"
VALUE(P_IN_BCT_STATUS) LIKEBAPIRET2-MESSAGE
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"-----------------------------------------------------------------*status 1 = Start spooler.
38.026.297.001 en
105
_connect2SAP
12.7.6
Z_BCT_LABEL_GLP
The layout WE_Chargenlabel.lay must be present on the GLP.
*
* Label printing report on Bizerba GLP printer via RFC-FB.
*
report z_bct_label_glp message-id z0 line-size 255.
*
* Tables:
*
tables:
mseg,
makt.
*
* Number of labels
12
*
parameters:
p_anz type i default 1.
*
* Communication structure for FB Z_RFC_BCT:
*
data:
p_in_bct_header like bapiret2-message,
p_in_bct_data like bapiret2-message,
p_in_bct_len_data like bapiret2-message,
p_in_bct_status like bapiret2-message,
p_in_bct_device like bapiret2-message,
p_ret_system like bapiret2-message,
p_ret_code like bapiret2-message,
p_ret_text like bapiret2-message,
p_ret_bct_header like bapiret2-message,
p_ret_bct_data like bapiret2-message,
p_ret_bct_len_data like bapiret2-message,
p_ret_bct_status like bapiret2-message,
p_ret_bct_device like bapiret2-message.
*
* Help fields:
*
data:
zerf_menge(13) type c,
fl type i.
*-------------------------------------------------------------------* GxNet
Parameter-Name
Parameters
*-------------------------------------------------------------------* GT01
*
106
GGT_ATX1
(PLU memory 1: part designation)
Character data
38.026.297.001 en
_connect2SAP
* GT02
*
GGT_ATX2
(PLU memory 2: measuring unit)
Character data
* GT21
*
GT_CAB1
(material number)
* GT22
*
GGT_CAB2
(quantity)
* GT23
*
GT_CAB3
(batch data)
* GW09
*
GGW_AUSZEICH_ART
(Labeling mode)
2 (fixed weight)
* LV01
*
LGV_SEQUENZ
(Device configuration)
* LX02
*
LGX_CLOSE
(logical end of command)
* PV01
*
PSV_PCK
(package synchronous labeling data)
* PW00
*
PSW_ETIKETTYP
(Specification of label data)
0 (Normal label)
* PW02
*
PSW_PACKHDL
(package handle: cons. number)
0-100
12
*
* Fill data:
mseg-matnr = '000000071432080001'.
mseg-charg = '1234567890'.
mseg-erfmg = '1542.380'.
mseg-meins = 'ST'.
makt-maktx = 'Testlabel'.
write mseg-erfmg to zerf_menge no-sign no-grouping.
if zerf_menge+9(4) = ',000'.
clear zerf_menge+9(4).
endif.
shift zerf_menge left deleting leading space.
translate zerf_menge using ',.'.
fl = strlen( zerf_menge ).
do p_anz times.
*
* send barcodes:
*
p_in_bct_header = '!LV01|GT21|GT22|GT23|LX02'.
concatenate
'0001{300502000200000070}0002{'mseg-matnr '}|'
'0001{300502000200000070}0002{'zerf_menge(fl) '}|'
'0001{300502000200000070}0002{'mseg-charg '}'
into p_in_bct_data.
perform call_rfc_bct.
*
* Send text data:
38.026.297.001 en
107
_connect2SAP
*
p_in_bct_header ='!PV01|PW00|PW02|GW09|GT01|GT02|LX02'.
concatenate
'0|1|2|' makt-maktx '|' mseg-meins
into p_in_bct_data.
perform call_rfc_bct.
enddo.
* ===============================================
* Call RFC functional component Z_RFC_BCT_MULTI:
12
*
call function 'Z_RFC_BCT_MULTI' destination'DEST_Z_RFC_BCT'
exporting
p_in_bct_header = p_in_bct_header
p_in_bct_data = p_in_bct_data
p_in_bct_len_data =p_in_bct_len_data
p_in_bct_status = p_in_bct_status
p_in_bct_device = p_in_bct_deviceimporting
p_ret_system = p_ret_system
p_ret_code = p_ret_code
p_ret_text = p_ret_text
p_ret_bct_header =p_ret_bct_header
p_ret_bct_data = p_ret_bct_data
p_ret_bct_len_data =p_ret_bct_len_data
p_ret_bct_status =p_ret_bct_status
p_ret_bct_device =p_ret_bct_device
exceptions
communication_failure = 1
system_failure = 2
others = 3.
skip.
write: /'p_in_bct_header ', p_in_bct_header(200),
/'p_in_bct_data ',p_in_bct_data(200),
/'p_in_bct_len_data ',p_in_bct_len_data(200),
/'p_in_bct_status ',p_in_bct_status(200),
/'p_in_bct_device ',p_in_bct_device(200).
write: /'p_ret_system ', p_ret_system(200),
/'p_ret_code ', p_ret_code(200),
/'p_ret_text ', p_ret_text(200),
/'p_ret_bct_header ',p_ret_bct_header(200),
/'p_ret_bct_data ',p_ret_bct_data(200),
/'p_ret_bct_len_data ',p_ret_bct_len_data(200),
/'p_ret_bct_status ',p_ret_bct_status(200),
108
38.026.297.001 en
_connect2SAP
/'p_ret_bct_device ',p_ret_bct_device(200),
/'sy-subrc ', sy-subrc.
*
* Initialize input fields for next call:
*
clear p_in_bct_header.
clear p_in_bct_data.
clear p_in_bct_len_data.
clear p_in_bct_status.
endform.
12
38.026.297.001 en
109
_connect2SAP
12.7.7
Z_BCT_DIMENSION
FUNCTION Z_BCT_DIMENSION.
*"-------------------------------------------------------------------*"*" Local interface:
*"IMPORTING
*"
REFERENCE(P_IN_BCT_DIM) TYPE STRING
*"EXPORTING
*"
REFERENCE(P_OUT_SAP_DIMENSION) TYPESTRING
*"
REFERENCE(P_OUT_SAP_VALUE) TYPE STRING
*"-------------------------------------------------------------------DATA :
12
ilen
TYPE i,
dimensiontab
szeinheit
TYPE string,
szstellen
TYPE string,
szvalue
TYPE string,
szvorkomma
TYPE string,
sznachkomma
TYPE string,
nhelp
TYPE i.
110
38.026.297.001 en
_connect2SAP
12
38.026.297.001 en
111
_connect2SAP
12.7.8
Z_BCT_REG
The function divides a logon data record received by _connect.BRAIN in SAP fields.
Example:
Recording data set:
I?LV01|RX04|LX02 Postenregistrierung addierend
Received data:
I!GV01|GW01|GT08|GT0A|GT11|GL0E|GL0C|GT0E|GL0A|GL15|GD07|GD01|GD02|LX02-1|
Scale_49|11000000|100000000+0|02122002|1618|19596352|101|101|kg;-3;75|kg;-3;75|
kg;-3;0
Data to SAP:
P_RET_SYSTEM
P_RET_CODE
P_RET_TEXT
P_RET_DATE
P_RET_TIME
P_RET_SCALENR
12
P_RET_TAREWEIGHT
P_RET_GROSSWEIGHT
P_RET_CONTINUOUSNR
System number
Error code
Error text
Date
Time
Scale number
Tare weight
Gross weight
Verification number
FUNCTION Z_BCT_REG.
*"*"Local interface:
*"-------------------------------------------------------------------*" EXPORTING
*"
REFERENCE(P_RET_SYSTEM) TYPE STRING
*"
REFERENCE(P_RET_CODE) TYPE STRING
*"
REFERENCE(P_RET_TEXT) TYPE STRING
*"
REFERENCE(P_RET_DATE) TYPE D
*"
REFERENCE(P_RET_SCALENR) TYPE STRING
*"
REFERENCE(P_RET_TAREWEIGHT) TYPE STRING
*"
REFERENCE(P_RET_GROSSWEIGHT) TYPESTRING
*"
REFERENCE(P_RET_CONTINUUSNR) TYPESTRING
*"
REFERENCE(P_RET_TIME) TYPE T
*"
REFERENCE(P_RET_DIMENSION) TYPE STRING
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"--------------------------------------------------------------------
112
38.026.297.001 en
_connect2SAP
DATA:
text
TYPE string,
datatab
headertab
ni
TYPE i,
szheader(220)
TYPE c,
szheader(220)
TYPE c,
szanswerheader(220)
TYPE c,
szanswerdata(220)
TYPE c,
ctyp
TYPE char1,
szdimensions
TYPE string,
szretsystem(220)
TYPE c,
szretcode(220)
TYPE c,
szrettext(220)
TYPE c,
szlendata(220)
TYPE c,
szstatus(220)
TYPE c,
szvalue
TYPE string.
szheader = 'I?LV01|RX04|LX02'.
szdata = ''.
szvalue = strlen( szdata ).
CALL FUNCTION 'Z_RFC_BCT' DESTINATION 'DEST_Z_RFC_BCT'
EXPORTING
p_in_bct_header = szheader
p_in_bct_data = szdata
p_in_bct_status = '0'
p_in_bct_len_data = szvalue
IMPORTING
p_ret_system = szretsystem
p_ret_code = szretcode
p_ret_text = szrettext
p_ret_bct_header = szanswerheader
p_ret_bct_len_data = szlendata
p_ret_bct_status = szstatus
p_ret_bct_data = szanswerdata
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3.
CASE syst-subrc.
WHEN 0.
WRITE : 'header', szanswerheader.
WRITE : 'data', szanswerdata.
WRITE : 'szRetSystem', szretsystem.
WRITE : 'szStatus', szstatus.
WRITE : 'szLenData', szlendata.
WRITE : 'szRetText', szrettext.
WRITE : 'szRetCode', szretcode.
CONDENSE szretcode.
IF szretcode = '0'.
WRITE : 'ok'.
38.026.297.001 en
12
113
_connect2SAP
* Customer program
* Separate header I! or I?
SHIFT szheader BY 2 PLACES.
* Data in table:
SPLIT szanswerheader AT '|' INTO TABLEheadertab.
SPLIT szanswerdata AT '|' INTO TABLEdatatab.
* Evaluate data:
ni = 1.
LOOP AT headertab INTO text.
CASE text.
WHEN 'GL15'.
READ TABLEdatatab INDEX ni INTO P_RET_CONTINUUSNR.
WHEN 'GT08'.
READ TABLEdatatab INDEX ni INTO P_RET_SCALENR.
WHEN 'GL0E'.
* Date must be indicated like this: year day month:
12
114
38.026.297.001 en
_connect2SAP
P_RET_CODE = szretcode.
P_RET_TEXT = szrettext.
WHEN 1 OR 2.
* 'communication_failure' or 'system_failure'
RAISE COMMUNICATION_FAILURE.
WHEN OTHERS.
* Other errors:
ENDCASE.
ENDFUNCTION.
" syst-subrc'Z_RFC_BCT'
12
38.026.297.001 en
115
_connect2SAP
12.7.9
Z_BCT_NULLSTELLEN
FUNCTION Z_BCT_NULLSTELLEN.
*"-------------------------------------------------------------------*"*"Local interface:
*" EXPORTING
*"
REFERENCE(SYSTEM_NR) TYPE ZFC_SYSTEM_NR
*"
REFERENCE(SUBRC) TYPE ZFC_SUBRC
*"
REFERENCE(SUBRC_TXT) TYPE ZFC_SUBRC_TXT
*" EXCEPTIONS
*"
ERROR
*"-------------------------------------------------------------------DATA:
12
szheader(220)
TYPE c,
szdata(220)
TYPE c,
szanswerheader(220)
TYPE c,
szanswerdata(220)
TYPE c,
ctyp
TYPE char1,
szdimensions
TYPE string,
szretsystem(220)
TYPE c,
szretcode(220)
TYPE c,
szrettext(220)
TYPE c,
szlendata(220)
TYPE c,
szstatus(220)
TYPE c,
szvalue
TYPE string.
szheader = 'I!GX02'.
szdata = ''.
szvalue = strlen( szdata ).
CALL FUNCTION 'Z_RFC_BCT' DESTINATION 'DEST_Z_RFC_BCT'
EXPORTING
p_in_bct_header = szheader
p_in_bct_data = szdata
p_in_bct_status = '0'
p_in_bct_len_data = szvalue
IMPORTING
p_ret_system = szretsystem
p_ret_code = szretcode
p_ret_text = szrettext
p_ret_bct_header = szanswerheader
p_ret_bct_len_data = szlendata
p_ret_bct_status = szstatus
p_ret_bct_data = szanswerdata
EXCEPTIONS
communication_failure = 1
system_failure = 2
OTHERS = 3.
CASE syst-subrc.
WHEN 0.
system_nr = szretsystem.
subrc = szretcode.
subrc_txt = szrettext.
116
38.026.297.001 en
_connect2SAP
WHEN 1 OR 2.
* 'communication_failure' or 'system_failure'
RAISE error.
WHEN OTHERS.
* other failure
ENDCASE.
" syst-subrc'Z_RFC_BCT'
ENDFUNCTION.
12.7.10
CFB_RFC_BCT_MULTI
FUNCTION CFB_RFC_BCT_MULTI.
*"-----------------------------------------------------------------*"*"Local interface:
*" IMPORTING
*"
VALUE(P_IN_BCT_HEADER) TYPE TEXT_512
*"
VALUE(P_IN_BCT_DATA) TYPE STRING
*"
VALUE(P_IN_BCT_LEN_DATA) TYPE TEXT_512
*"
VALUE(P_IN_BCT_DEVICE) TYPE TEXT_512
*" EXPORTING
*"
VALUE(P_RET_SYSTEM) TYPE TEXT_512
*"
VALUE(P_RET_CODE) TYPE TEXT_512
*"
VALUE(P_RET_TEXT) TYPE TEXT_512
*"
VALUE(P_RET_BCT_HEADER) TYPE TEXT_512
*"
VALUE(P_RET_BCT_DATA) TYPE TEXT_512
*"
VALUE(P_RET_BCT_LEN_DATA) TYPE TEXT_512
*"
VALUE(P_RET_BCT_STATUS) TYPE TEXT_512
*"
VALUE(P_RET_BCT_DEVICE) TYPE TEXT_512
*" EXCEPTIONS
*"
COMMUNICATION_FAILURE
*"
SYSTEM_FAILURE
*"-----------------------------------------------------------------ENDFUNCTION.
38.026.297.001 en
12
117
_connectScannerWI
13
_connectScannerWI
13.1
Overview
13.2
Prerequisites
The barcode scanner can be connected to a PC serial interface. It can transmit successfully read barcodes in form of numbers and separators to a PC.
The barcode scanner is set by default. That means, it only transmits correctly read
barcode data using CR+LF (carriage return and line feed) as separators. It does not
transmit any incorrect or unidentified barcode data, nor does it transmit meta information via barcode type, etc.
The PC has a free serial interface, to which the barcode scanner can be connected.
13
13.3
Installation
118
38.026.297.001 en
13.4
_connectScannerWI
Configuration
"Connection-type"
"Serial"
"Interface"
"Baudrate": 9600
"Databits": 8
"Parity": "none"
"Stopbits": 1
"Dialog"
"Logging/size"
"Header-Format"
"_connect2SAP"
"Connection"
"Status"
13
13.5
_connectScannerWI is automatically started with each user login. The started program appears as icon in the right part of the task bar. After closing the program, it can be restarted
manually via the start menu.
13.6
Program structure
After starting the program, _connectScannerWI appears only as icon in the right part of the
task bar. The user interface consists of a context menu and a status window. Open the
status window using the "Display window" function of the context menu. The program activities and the time are displayed.
38.026.297.001 en
119
_connectScannerWI
13.7
The following functions are available via the context menu of the program symbol:
"Display window"
"Fenster verbergen"
"Scanner starten"
"Scanner stoppen"
"Close"
Close _connectScannerWI.
13
120
38.026.297.001 en
14
VirtualES - View
14.1
Overview
VirtualES - View
The VirtualES program is a verifiable memory for weighing. The data are protected by
check sums and are protected against manipulation.
The VirtualES software component consists of two programs:
Admin
to configure the verifiable memory.
View
to read the verifiable memory content.
In order to be able to operate devices with a verifiable memory, access to VirtualES must
be activated in the device configuration. Activation is done in _connectConfig in the BCS
configuration of the devices. The "Use Virtual ES" option must be activated here. The Admin administration tool can also be called from here.
14.2
VirtualES - Admin
The VirtualES administration tool serves to configure the verifiable memory. It can be used
to define the properties that will be stored in the verifiable memory for each weighing, for
each configured device.
14.2.1
Starting program
38.026.297.001 en
14
121
VirtualES - View
14.2.2
14
Tool bar
Navigation area
Display area
The user interface contains the following areas, in addition to typical Windows elements:
Navigation area
Display area
122
38.026.297.001 en
14.2.3
VirtualES - View
"Save"
"Exit"
"Signatures"
14.2.4
"file" / "New"
or
Click the corresponding icon of the toolbar.
Select a device and go to the next selection window using "Forward >".
Only one device can be selected.
Select further parameters that are to be transferred to the protected memory.
Compulsory data (gross, net/tare, data record number, etc.) cannot be deselected.
38.026.297.001 en
123
14
VirtualES - View
14.3
VirtualES - View
The VirtualES - View display program serves for visualization of the saved data. Data records:
Date
Time
Scale number
Tare weight
Gross weight
Consecutive number
14.3.1
Start program
14.3.2
Program structure
14
Tool bar
Navigation area
Display area
The user interface contains the following areas, in addition to typical Windows elements:
Navigation area
Display area
124
38.026.297.001 en
14.3.3
VirtualES - View
"Save as"
"print"
"sideview"
Displays a preview of the selected area or the entire document. A printout can then be made from this preview.
"Printer settings..."
"Close"
"Remove Filter"
"Show signatures"
38.026.297.001 en
125
14
VirtualES - View
14.3.4
The data records of the verifiable memory can be viewed, searched and printed out.
Click on the selected scale.
The data records are displayed.
14.3.5
Check signatures
The signatures must match the data in test certificate no. D09-02.22.
VirtualES - View is opened.
Show signatures
"?" / "Show signatures"
Read signatures and compare with test certificate.
Close window
"OK"
The BCS server identification number is only displayed if the connection
with the Bizerba Communication Server (BCS) is activated and registration <RX04> has already taken place.
14.3.6
14
VirtualES saves the weighing results of the individual verified scales in a verifiable memory. The verifiable module and the saved data are protected by check sums and cannot be
changed unnoticed.
Select scale with right mouse button.
"VirtualES function test"
A pop-up window is opened.
"Registration"
The weighing results of the scale are registered and saved in VirtualES.
"Close"
The pop-up window is closed.
The saved data is displayed highlighted in the display area.
126
38.026.297.001 en
15
_edit.BRAIN
15.1
Overview
_edit.BRAIN
_edit.BRAIN is a program for viewing log files (*.log or *.commlog) created by other _connect.BRAIN applications.
15.2
15.3
Program structure
15
Tool bar
Bx-Net View
38.026.297.001 en
127
_edit.BRAIN
15.4
15
"New"
"Open"
"Save"
"Save as..."
Save an open *.log, *.commlog or text file with a freely selectable name.
"Save all"
"Close"
"Close all"
"Print"
"Send as E-Mail"
"Exit"
Close _edit.BRAIN.
128
38.026.297.001 en
_edit.BRAIN
"Redo"
"Cut"
"Copy"
"Paste"
"Delete"
"Select all"
Select all.
"Find"
Find data.
"Replace"
Replace data.
"Find next"
"Refresh"
Reload data.
"More"
15
38.026.297.001 en
129
_edit.BRAIN
"Clipboard"
"BxNet View"
"Toolbars"
View
Edit
File
15
130
38.026.297.001 en
15.5
_edit.BRAIN
After opening the *.commlog files, the following features are available.
"Detail"
"Find"
"Hexcode"
"Copy to Notepad"
"Invisible Row(s)"
"Visible Row(s)"
"Fonts"
After opening the *.log files, the following features are available.
"Detail"
"Copy to Notepad"
"Invisible Row(s)"
"Visible Row(s)"
"Decrypt line"
"Syntax validation"
To avoid error messages, all commands from the first to the last command of an IX string have to be selected.
"Fonts"
38.026.297.001 en
131
15
LogPathConfig
16
LogPathConfig
16.1
Overview
LogPathConfig is used to modify the log file standard directory or to delete entries. Then
all components write the related log files in the specified directory.
16.2
Program structure
16.3
16
"Return to default
log path"
"Open Folder"
16.4
132
38.026.297.001 en
LogPathConfig
Select date.
Enter extension.
The extension (zip, log, commlog, etc.)
can be displayed as list, separated by
semicolon.
The "Use recycle bin" checkbox allows to
specify whether the Windows trash shall
be used when deleting files.
Confirm input with <OK>.
Answer the following security query with
<Yes> or <No>.
16
38.026.297.001 en
133
Background information
17
Background information
17.1
Device families
17.2
BxNet language
BxNet is the generic term used for the interface languages GxNet and IxNet that alllow data exchange with Bizerba devices. BxNet is unique within the language group and therefore version-independent. The language scope is upgraded with each new function in the
devices. BxNet depends on the physical interface used and on the conversion type.
A data record in BxNet consists of one or more subfunction identifiers with the relevant data. The languages belonging to BxNet have the same structure, but distinguish themselves
by the subfunction identifiers related to the respective device group.
17
GxNet
GxNet language is used in labelers for both communication between the internal device
components and for communication with other devices in the system group. Via EDP connection, communication with each individual device is possible.
IxNet
IxNet language is adapted to the requirements of industrial devices. Industrial devices do
not use IxNet language internally, but solely as an interface language. _connect.BRAIN
converts IxNet commands in ASCII commands for industrial devices that do not know the
IxNet language.
134
38.026.297.001 en
17.2.1
Background information
Telegram structure
Commands and data are transmitted to a device as ASCII text in BxNet telegram format.
There are two different formats available in _connectServer and/or _connectControl:
Header (commands):
Data (user data):
Header structure
Language area
Command type
BxNet command
17.2.2
1 character (A or I)
1 character (! or?)
1..n BxNet command
Data description is coded for read or write access. To achieve backward compatibility with
the GxTools, there is an old and a new header format for data description. Assign the
header format to be used to a device in _connectConfig, see page 46.
current: Gx/Ix-Net(A!, I!, A?, I?), for labelers and industrial devices
The 1st character of the header stands for the device, the 2nd character for the type of
access:
A!
A?
I!
I?
17
38.026.297.001 en
Write access
Read access
135
Background information
17.2.3
Number of parameters
Dimensional value
1 (3 subparameters)
Variable
Text
17.2.4
Exceptions:
17
136
The first 32 characters of the ASCII character table (hexadecimal numeration <=
1FHEX) are control characters. They are represented in hexadecimal form. For identification, they are preceded by the escape character @.
Example: LF becomes @0A.
The same is valid for the 127th character of the ASCII character table (hexadecimal
numeration >= 7FHEX). These characters are treated as control characters. They are
also represented in hexadecimal form and preceded by the escape character @.
The characters "@" and "|" are treated as control characters because they can occur
within a text and be used as escape characters or separators.
Example:
[email protected] becomes [email protected]
38.026.297.001 en
17.2.5
Background information
Dimensionful data:
Dimensionful data consists of a unit, the number of decimal places and a related integer.
These three values are separated by semicolon ";".
Design
Parameters
Description
Unit
Integer
17.2.6
Coding of prices
Coding
19,90
EUR;-2;1990
12,99
USD;-2;1299
Coding
19,90
6|1990
12,99 $
64|1299
38.026.297.001 en
137
17
Background information
17.2.7
Coding of weights
current: Gx/Ix-Net(A!, I!, A?, I?), for labelers and industrial devices
Example:
Weight
Coding
2,995 kg
KG;-3;2995
45,93 kg
KG;-2;4593
Coding
2.995 kg
KG|-3|2995
45.93 kg
KG|-2|4593
17
138
38.026.297.001 en
Program interfaces
18
Program interfaces
18.1
The _connectServer DCOM communication interface provides functions for communication among _connectServer and client. The properties, methods and events are described
below.
18
38.026.297.001 en
139
Program interfaces
18.1.1
Methods
Close
It closes the connection to the connected device. If the Open method has not been carried
out, Close reports an error.
Syntax and parameter
C++
HRESULT Close ()
C#
int Close ()
no parameters
CreateReceiveQueue
It generates a reception queue. Then one or more filters can be created for the reception
queue using the SetReceiveFilterQueue method. Data can only be received after at least
one filter has been created for the reception queue.
Syntax and parameter
C++
HRESULT CreateReceiveQueue ([out] BSTR *szQueueName)
C#
int CreateReceiveQueue (out String szQueueName)
Parameters
Value
Description
szQueueName
Character string
18
140
38.026.297.001 en
Program interfaces
DeleteReceiveQueue
It deletes a reception queue. If there is not any reception queue with the indicated name in
the system, an error is triggered.
Syntax and parameter
C++
HRESULT DeleteReceiveQueue ([in] BSTR szQueueName)
C#
int DeleteReceiveQueue (string szQueueName)
Parameters
Value
Description
szQueueName
Character string.
Error
It provides the error number, the system number and the error text.
Syntax and parameter
C++
HRESULT Error ([out] long *lErrNr, [out] long *lSystemNr, [out] BSTR *szErrTxt)
C#
void Error (out int lErrNr, out int lSystemNr, out string szErrTxt)
Parameters
value
Description
lErrNr
Numeric data
Error number
lSystemNr
Numeric data
szErrTxt
Character string
18
38.026.297.001 en
141
Program interfaces
ErrorHeaderData
It provides the error number, the system number, the error text and the related data.
Syntax and parameter
C++
HRESULT ErrorHeaderData ([out] long *lErrNr, [out] long *lSystemNr, [out] BSTR
*szErrTxt, [out] BSTR *szErrHeader, [out] BSTR *szErrData)
C#
void ErrorHeaderData (out int lErrNr, out int lSystemNr, out string szErrTxt,
out string szErrHeader, out string szErrData)
Parameters
value
Description
lErrNr
Numeric data
Error number
lSystemNr
Numeric data
szErrTxt
Character string
szErrHeader
Character string
szErrData
Character string
Data portion of the error data record. This value is only indicated
when the device (e.g. GLP) transmits an error data record.
GetBCSVersion
It provides the version name of _connectServer (BCS).
18
C#
int GetBCSVersion (out string szVersion)
Parameters
Value
Description
szVersion
Character string
142
38.026.297.001 en
Program interfaces
GetCategory
It provides the number of the device family the open system is related to.
Syntax and parameter
C++
HRESULT GetCategory ([out] short *nCategory)
C#
int GetCategory (out short nCategory)
Parameters
Value
Description
nCategory
1:
basic systems
2:
labeler / printer
3:
retail scales
4:
industrial devices
5:
external devices
6:
WinCWS
7:
industry special
18
38.026.297.001 en
143
Program interfaces
Open
It opens access to a device via _connectServer.
Syntax and parameter
C++
HRESULT Open ([in] BSTR szIdentUser, [in] BSTR szDeviceName, [in] short nTelegramType, [in] short nAccess, [in] short bLightLicenceEnable)
C#
int Open (string szIdentUser, string szDeviceName, short nTelegramType, short
nAccess, short bLightLicenceEnable)
Parameters
Value
szIdentUser
szDeviceName
Name of an active
device (character
string)
nTelegramType
0:
normal
nAccess
0:
multiple access
1:
single access
0:
full version
18
bLightLicenceEnable
Description
1:
144
38.026.297.001 en
Program interfaces
Receive
It provides reception data (header and user data) and the transmission status. It requires
the handle from the Send method.
If the Open method has not been carried out, Receive reports an error.
Syntax and parameter
C++
HRESULT Receive ([out] BSTR *szHeader, [out] BSTR *szData, [in] BSTR szHandle,
[in] long lTimeout, [out] long *lStatus)
C#
int Receive (out string szHeader, out string szData, string szHandle, int lTimeout, out int lStatus)
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
Send
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
38.026.297.001 en
145
Program interfaces
ReceiveAuthorizationRequest
It provides a license code which is used by the client to generate a response. The client
inserts the calculated license code in the SendAuthorizationResponse method. This method is only used by the Bizerba software. If the Open method has not been carried out, ReceiveAuthorizationRequest reports an error.
Syntax and parameter
C++
HRESULT ReceiveAuthorizationRequest ([out] BSTR *szLizenzKey)
C#
int ReceiveAuthorizationRequest (ref string szLizenzKey)
Parameters
Value
Description
szLizenzKey
Character string
18
146
38.026.297.001 en
Program interfaces
ReceiveOne
It provides reception data (header and user data combined) and the transmission status. It
requires the handle from the Send method.
If the Open method has not been carried out, ReceiveOne reports an error.
Syntax and parameter
C++
HRESULT ReceiveOne ([out] BSTR *szHeaderData, [in] BSTR szHandle, [in] long
lTimeout, [out] long *lStatus)
C#
int ReceiveOne (out string szHeaderData, string szHandle, int lTimeout, out
int lStatus)
Parameters
Value
Description
szHeaderData
Character string
szHandle
Character string
Send
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
38.026.297.001 en
147
Program interfaces
ReceiveOneWithoutAck
It receives spontaneous telegrams without direct acknowledgement. When using this
method, the customer application can delay the transmission of the acknowledgement and
transmit data (e.g. lock) to the labeler prior to transmitting the acknowledgement. The acknowledgement is separately transmitted using the SendAcknowledge method.
The ReceiveOneWithoutAck method can only be used for spontaneous
data. The customer application has to acknowledge the data record with
SendAcknowledge so that a GLP proceeds after a lock.
Syntax and parameter
C++
HRESULT ReceiveOneWithoutAck ([out] BSTR *szHeaderData, [in] BSTR szHandle,
[in] long lTimeout, [out] long *lStatus)
C#
int ReceiveOneWithoutAck (out string szHeaderData, string szHandle, int lTimeout, out int lStatus)
Parameters
Value
Description
szHeaderData
Character string
szHandle
Character string
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
18
148
38.026.297.001 en
Program interfaces
ReceiveWithoutAck
It receives spontaneous telegrams without direct acknowledgement. When using this
method, the customer application can delay the transmission of the acknowledgement and
transmit data (e.g. lock) to the labeler prior to transmitting the acknowledgement. The acknowledgement is separately transmitted using the SendAcknowledge method.
The ReceiveWithoutAck method can only be used for spontaneous data. The customer application has to acknowledge the data record with
SendAcknowledge so that a GLP proceeds after a lock.
Syntax and parameter
C++
HRESULT ReceiveWithoutAck ([out] BSTR *szHeader, [out] BSTR *szData, [in] BSTR
szHandle, [in] long lTimeout, [out] long *lStatus)
C#
int ReceiveWithoutAck (out string szHeader, out string szData, string szHandle, int lTimeout, out int lStatus)
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
lTimeout
Numeric data
lStatus
0:
function OK
1:
timeout
Transmission status
38.026.297.001 en
149
18
Program interfaces
Reset
It cancels the current send request. If a send request is not cancelled, it remains active
until transmission is completed. Thus, it is impossible to start a new send request.
Use Reset to cancel the send request from the _connectServer transmission list. If the data record has already been sent to the device before Reset and the device continues responding after Reset, the response is identified as spontaneous data record and made
available because the corresponding send request no longer exists.
Syntax and parameter
C++
HRESULT Reset ([in] BSTR szHandle)
C#
int Reset (string szHandle)
Parameters
Value
szHandle
Character string
Description
Handle that is returned from the
method.
Send
18
150
38.026.297.001 en
Program interfaces
Send
It sends data to the connected evaluation unit. If the Open method has not been carried out,
Send reports an error.
Syntax and parameter
C++
HRESULT Send ([in] BSTR szHeader, [in] BSTR szData, [out] BSTR *szHandle, [in]
long lTimeout, [out] long *lStatus)
C#
int Send (string szHeader, string szData, out string szHandle, int lTimeout,
out int lStatus)
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
38.026.297.001 en
151
Program interfaces
SendAcknowledge
It closes the ReceiveWithoutAck method with a positive acknowledgement.
Syntax and parameter
C++
HRESULT SendAcknowledge ([in] BSTR szHandle)
C#
int SendAcknowledge (string szHandle)
Parameters
Value
szHandle
Character string
Description
Handle used in the ReceiveWimethod.
thoutAck
SendAcknowledgeNeg
It closes the ReceiveWithoutAck method with a negative acknowledgement. Transmits an
error message to the device.
Syntax and parameter
C++
HRESULT SendAcknowledgeNeg ([in] BSTR szHandle, [in] long lError, [in] BSTR
szErrTxt)
C#
int SendAcknowledgeNeg (string szHandle, int lError, string szErrTxt)
Parameters
Value
szHandle
Character string
Description
Handle used in the ReceiveWimethod.
thoutAck
lError
Numeric data
szErrTxt
Character string
18
152
38.026.297.001 en
Program interfaces
SendAuthorizationResponse
It compares the license code calculated by the client with the license code transmitted by
_connectServer via ReceiveAuthorizationRequest. This method is only used by the Bizerba software.
In case of noncompliance, an error is reported.
If the Open method has not been carried out, SendAuthorizationReponse reports an error.
Syntax and parameter
C++
HRESULT SendAuthorizationResponse ([in] BSTR szLizenzKey)
C#
int SendAuthorizationResponse (string szLizenzKey)
Parameters
Value
Description
szLizenzKey
Character string
SendCheck
It verifies whether data is available, the command has been completely processed or
transmitted, and a positive or negative acknowledgement has been received.
Syntax and parameter
C++
HRESULT SendCheck ([in] BSTR szHandle, [in] long lTimeout, [out] long *lStatus)
C#
int SendCheck (string szHandle, int lTimeout, out int lStatus)
Parameters
Value
szHandle
Character string
Description
Handle that is returned from the
method.
Send
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
2:
38.026.297.001 en
153
18
Program interfaces
SendOne
It sends data to the connected evaluation unit. If the Open method has not been carried out,
Send reports an error.
Syntax and parameter
C++
HRESULT SendOne ([in] BSTR szHeader Data, [out] BSTR *szHandle, [in] long lTimeout, [out] long *lStatus)
C#
int SendOne (string szHeader Data, out string szHandle, int lTimeout, out int
lStatus)
Parameters
Value
Description
szHandle
Character string
lTimeout
Numeric data
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
154
38.026.297.001 en
Program interfaces
SetReceiveQueueFilter
It sets a filter for reception data. The filter is required to receive data by means of customer-specific reception queues that have been created using the CreateReceiveQueue method. Without filters, spontaneous data is automatically assigned to the DUSTBIN reception
queue.
Example for a GX: Use CreateReceiveQueue to create an individual queue for package
data records starting with PV05. To allocate the package data records to a method, call up
the SetReceiveQueueFilter method using the queue name and the PV05 filter parameter. If
data records, e.g. starting with PV05 or PV06, are to be allocated to the same queue, call
up the SetReceiveQueueFilter method two times. Specify the same queue both times and
use the PV05 filter parameter at one time and the PV06 filter parameter the other time.
Syntax and parameter
C++
HRESULT SetReceiveQueueFilter ([in] BSTR szQueueName, [in] BSTR szFilter)
C#
int SetReceiveQueueFilter (string szQueueName, string szFilter)
Parameters
Value
Description
szQueueName
Character string
Queue name generated by _connectServer The CreateReceiveQueue method returns this name.
szFilter
Character string
18
38.026.297.001 en
155
Program interfaces
18.1.2
Events
DataArrival
It indicates reception of spontaneous telegrams and transmits the identification of the communication channel (handle) which can be used for receiving data via the Receive, ReceiveWithoutAck, ReceiveOneWithoutAck or ReceiveOne method.
Syntax and parameter
C++
long DataArrival(BSTR szQueueName)
C#
int DataArrival(string szQueueName)
Parameters
Value
Description
szQueueName
Character string
Identification of communication
channel (handle) This handle has
to be transferred in the reception
method (e.g. Receive) in order to
access data.
RemoteDataArrival
It answers a send request with a ?, A? or I? header. Transmits the identification of the
communication channel (handle) which can be used for receiving data via the Receive or
ReceiveOne method.
The ReceiveWithoutAck and ReceiveOneWithoutAck methods are only to
be used for receiving spontaneous data and must not be used in connection with the RemoteDataArrival event.
18
C#
int RemoteDataArrival(string szQueueName)
Parameters
Value
Description
szQueueName
Character string
Identification of communication
channel (handle) This handle has
to be transferred in the Receive or
ReceiveOne method in order to access data.
156
38.026.297.001 en
18.2
Program interfaces
The _connectServer DCOM information interface supplies all information on _connect.BRAIN and on the devices that have been created and activated in _connectConfig.
The available methods are described in the following paragraphs.
18
38.026.297.001 en
157
Program interfaces
18.2.1
Methods
Error
It reports an error message after failure of a previous action. Even if the Open method has
not been carried out, Error reports an error.
Syntax and parameter
C++
HRESULT Error ([out] long *lErrNr, [out] long *lSystemNr, [out] BSTR *szErrTxt)
C#
void Error (out int lErrNr, out int lSystemNr, out string szErrTxt)
Parameters
Value
Description
lErrNr
Number
Error number
szErrTxt
Character string
GetBCSVersion
It provides the version name of _connectServer (BCS). If the Open method has not been
carried out, GetBCSVersion reports an error.
Syntax and parameter
C++
HRESULT GetBCSVersion ([out] BSTR *szVersion)
C#
int GetBCSVersion (out string szVersion)
18
Parameters
Value
Description
szVersion
Character string
158
38.026.297.001 en
Program interfaces
GetDemo
It verifies whether _connect.BRAIN is used with license or in the developer mode.
Syntax and parameter
C++
HRESULT GetDemo ([out] BOOL *bDemo)
C#
int GetDemo (out int bDemo)
Parameters
Value
Description
bDemo
18
38.026.297.001 en
159
Program interfaces
GetDevice
It returns all active systems defined in the configuration. If the Open method has not been
carried out, GetDevice reports an error.
Syntax and parameter
C++
HRESULT GetDevice ([out] BSTR *szDeviceString, [out] long *lCount)
C#
int GetDevice (out string szDeviceString, out int lCount)
Parameters
Value
szDeviceString
SECT01
name
Description
= section
Example:
= two relaszDeviceString=SECT01|SYSTEM1|
ted values follow
PARA02|name|bizerbaScale1|
name = device name PARA02|devCategory|2|PARA02|
PARA02
devCategory
table 1
devType
= see table
devicestate
table 3
lCount
Number
= see
= see
devType|19|PARA02|devicestate|
0|
puts out:
SYSTEM1
bizerbaScale1
2
19
Number of active systems
18
1:
basic systems
2:
labeler / printer
3:
retail scales
4:
industrial devices
5:
external devices
7:
industry special
160
38.026.297.001 en
Program interfaces
not defined
12:
BT
34:
WM
1:
GD
14:
ITE
35:
GLM-I
2:
GH
15:
ITS
36:
CWM
3:
GV
16:
ITL
37:
CWE
4:
GS
17:
MCI
38:
ITCS
5:
Scanner
18:
MCE
39:
CWL Eco
6:
Terminal
19:
GLP
40:
GLF
7:
ST
20:
Empty
41:
GLM-E
8:
ITU
21:
HW
42:
GLM-B
9:
ITC1
22:
PSS
43:
GLM-P
10:
ITC2
26:
NTScale
44:
GLM-L
11:
EL
30:
45:
GLM-E Retail
active
1:
inactive
GetDeviceDCOM
It returns the devices connected to a remote PC.
Syntax and parameter
C++
HRESULT GetDeviceDCOM ([out] BSTR *szDevice, [out] long *lCount, BSTR szDComPC)
C#
18
int GetDeviceDCOM (out string szDevice, out int lCount, string szDComPC)
Parameters
Value
szDeviceString
see GetDevice
lCount
see GetDevice
szDComPC
Character string
38.026.297.001 en
Description
Remote PC name
161
Program interfaces
GetLicenseCountForSpecificLicense
This method is used to determine the number of available licenses of the specified license
type.
Syntax and parameter
C++
HRESULT GetLicenseCountForSpecificLicense([in] long licenseType, [out] long
*licenseCount)
C#
int GetLicenseCountForSpecificLicense(int licenseType, out int licenseCount)
Parameters
Value
licenseType
License type:
Description
1: BCS_LICENSE_TYPE_DEVICE_CX
2: BCS_LICENSE_TYPE_DEVICE_GX
3: BCS_LICENSE_TYPE_DEVICE_IX
4: BCS_LICENSE_TYPE_DEVICE_BRAIN
5: BCS_LICENSE_TYPE_VS
6: BCS_LICENSE_TYPE_INTERFACE_2FILE
7: BCS_LICENSE_TYPE_INTERFACE_2DB
8: BCS_LICENSE_TYPE_INTERFACE_2SAP
9: BCS_LICENSE_TYPE_DEVICE_MX
licenseCount
18
Number
GetLicenseExpirationDateForProductVersion
This method checks the expiry date of time-limited licenses. After expiring, the license is
no longer available and the function cannot be used in _connect.BRAIN any longer.
Syntax and parameter
C++
HRESULT GetLicenseExpirationDateForProductVersion([out] DATE *date)
C#
int GetLicenseExpirationDateForProductVersion(out system.DateTime date)
Parameters
Value
Description
date
Date
162
38.026.297.001 en
Program interfaces
GetLicenseExpirationDateForSpecificLicense
This method checks the expiry date of time-limited licenses. After expiring, the license is
no longer available and the function cannot be used in _connect.BRAIN any longer.
Syntax and parameter
C++
HRESULT GetLicenseExpirationDateForSpecificLicense([in] long licenseType,
[out] DATE *date)
C#
int GetLicenseExpirationDateForSpecificLicense(int licenseType, out system.DateTime date)
Parameters
Value
licenseType
License type:
Description
1: BCS_LICENSE_TYPE_DEVICE_CX
2: BCS_LICENSE_TYPE_DEVICE_GX
3: BCS_LICENSE_TYPE_DEVICE_IX
4: BCS_LICENSE_TYPE_DEVICE_BRAIN
5: BCS_LICENSE_TYPE_VS
6: BCS_LICENSE_TYPE_INTERFACE_2FILE
7: BCS_LICENSE_TYPE_INTERFACE_2DB
8: BCS_LICENSE_TYPE_INTERFACE_2SAP
9: BCS_LICENSE_TYPE_DEVICE_MX
date
Date
GetLicenseInformations
This method finds out information about the licensing system currently used, e.g. version
number and license server name. The information is generated as xml structure.
Syntax and parameter
C++
HRESULT GetLicenseInformations([out] BSTR *xmlLicensingInformations)
C#
int GetLicenseInformations(out string xmlLicensingInformations)
Parameters
Value
Description
xmlLicensingInformations
Character string
XML data
38.026.297.001 en
163
18
Program interfaces
GetLicenseNameForProductVersion
This method returns the license required by the installed _connect.BRAIN. The result can
be used to verify whether the required license is available on the license server. If the license is missing, _connect.BRAIN cannot be used any longer.
Syntax and parameter
C++
HRESULT GetLicenseNameForProductVersion([out] BSTR *licenseProductVersion)
C#
int GetLicenseNameForProductVersion(out string licenseProductVersion)
Parameters
Value
Description
licenseProductVersion
Character string
GetLicenseSystemName
The method identifies the licensing system currently used (up to now BSP only).
Syntax and parameter
C++
HRESULT GetLicenseSystemName([out] BSTR *licensingSystemName)
C#
int GetLicenseSystemName(out string licensingSystemName)
Parameters
Value
Description
licensingSystemName
Character string
18
164
38.026.297.001 en
Program interfaces
GetSerialNumber
It returns the _connectServer serial number. If the Open method has not been carried out,
GetSerial Number reports an error.
Syntax and parameter
C++
HRESULT GetSerialNumber ([out] BSTR *szSerialNumber)
C#
int GetSerialNumber (out string zSerialNumber)
Parameters
Value
Description
szSerialNumber
Character string
_connectServerserial number
Open
To allow access to the functions of the _connect.BRAIN DCOM interface, the interface has
to be opened using the Open method. A user name is specified to facilitate trouble shooting.
Syntax and parameter
C++
HRESULT Open ([in] BSTR szIdentUser)
C#
int Open (string szIdentUser)
Parameters
Value
szIdentUser
18.3
Description
18
The _connectControl DCOM communication interface uses the ActiveX control element
BCC.OCX to exchange data among client and _connectServer. The properties, methods
and events are described below.
38.026.297.001 en
165
Program interfaces
18.3.1
Properties
Version
It supplies the BCC.OCX version ID code.
Syntax
C++
BSTR Version
C#
string Version
18
166
38.026.297.001 en
18.3.2
Program interfaces
Methods
AboutBox
It shows the copyright and _connectServer information.
Syntax and parameter
C++
void AboutBox()
C#
void AboutBox()
no parameters
Close
It closes the connection to the connected device. If the Open method has not been carried
out, Close reports an error.
Syntax and parameter
C++
long Close ()
C#
int Close ()
no parameters
CreateReceiveQueue
It generates a reception queue. Then one or more filters can be created for the reception
queue using the SetReceiveFilterQueue method. Data can only be received after at least
one filter has been created for the reception queue.
Syntax and parameter
C++
long CreateReceiveQueue (BSTR *szQueueName)
C#
int CreateReceiveQueue (ref string szQueueName)
Parameters
Value
Description
szQueueName
Character string
38.026.297.001 en
167
18
Program interfaces
DeleteReceiveQueue
It deletes a reception queue. If there is not any reception queue with the indicated name in
the system, an error is triggered.
Syntax and parameter
C++
long DeleteReceiveQueue (BSTR szQueueName)
C#
int DeleteReceiveQueue (string szQueueName)
Parameters
Value
Description
szQueueName
Character string
Error
It provides the error number, the system number and the error text.
Syntax and parameter
C++
void Error (long *nErrNr, long *nSystemNr, BSTR *szErrTxt)
C#
void Error (ref int nErrNr, ref int nSystemNr, ref string szErrTxt)
Parameters
Value
Description
nErrNr
Number
Error number
nSystemNr
Number
szErrTxt
Character string
18
168
38.026.297.001 en
Program interfaces
ErrorHeaderData
It provides the error number, the system number, the error text and the related data.
Syntax and parameter
C++
long ErrorHeaderData (long *lErrNr, long *lSystemNr, BSTR *szErrTxt, BSTR
*szErrHeader, BSTR *szErrData)
C#
void ErrorHeaderData (ref int lErrNr, ref int lSystemNr, ref string szErrTxt,
ref string szErrHeader, ref string szErrData)
Parameters
Value
Description
IErrNr
Number
Error number
ISystemNr
Number
szErrTxt
Character string
szErrHeader
Character string
szErrData
Character string
Data portion of the error data record. This value is only indicated
when the device (e.g. GLP) transmits an error data record.
GetBCSVersion
It provides the version name of _connectServer (BCS).
Syntax and parameter
18
C++
long GetBCSVersion (BSTR *szVersion)
C#
int GetBCSVersion (ref string szVersion)
Parameters
Value
Description
szVersion
Character string
38.026.297.001 en
169
Program interfaces
GetCategory
It provides the number of the device family the open system is related to.
Syntax and parameter
C++
long GetCategory (short *nCategory)
C#
int GetCategory (ref short nCategory)
Parameters
Value
Description
nCategory
1:
basic systems
2:
labeler / printer
3:
retail scales
4:
industrial devices
5:
external devices
6:
WinCWS
7:
industry special
GetDemo
It verifies whether _connect.BRAIN is used with license or in the developer mode.
Syntax and parameter
C++
long GetDemo (short *nDemo)
C#
int GetDemo (ref short nDemo)
18
Parameters
Value
Description
nDemo
0:
170
38.026.297.001 en
Program interfaces
GetDevice
It returns all active systems defined in the configuration. If the Open method has not been
carried out, GetDevice reports an error.
Syntax and parameter
C++
long GetDevice (BSTR *szDeviceString, long *lCount)
C#
int GetDevice (ref string szDeviceString, ref int lCount)
Parameters
Value
szDeviceString
SECT01
name
Description
= section
Example:
= two relaszDeviceString=SECT01|SYSTEM1|
ted values follow
PARA02|name|bizerbaScale1|
name = device name PARA02|devCategory|2|PARA02|
PARA02
devCategory
table 1
devType
= see table
devicestate
table 3
lCount
Number
= see
= see
devType|19|PARA02|devicestate|
0|
puts out:
SYSTEM1
bizerbaScale1
2
19
Number of active systems
basic systems
2:
labeler / printer
3:
retail scales
4:
industrial devices
5:
external devices
7:
industry special
38.026.297.001 en
18
171
Program interfaces
not defined
12:
BT
34:
WM
1:
GD
14:
ITE
35:
GLM-I
2:
GH
15:
ITS
36:
CWM
3:
GV
16:
ITL
37:
CWE
4:
GS
17:
MCI
38:
ITCS
5:
Scanner
18:
MCE
39:
CWL Eco
6:
Terminal
19:
GLP
40:
GLF
7:
ST
20:
Empty
41:
GLM-E
8:
ITU
21:
HW
42:
GLM-B
9:
ITC1
22:
PSS
43:
GLM-P
10:
ITC2
26:
NTScale
44:
GLM-L
11:
EL
30:
45:
GLM-E Retail
active
1:
inactive
GetDeviceDCOM
It returns the devices connected to a remote PC.
Syntax and parameter
C++
long GetDeviceDCOM (BSTR *szDevice, long *lCount, BSTR szDComPC)
18
C#
int GetDeviceDCOM (ref string szDevice, ref int lCount, string szDComPC)
Parameters
Value
szDeviceString
see GetDevice
lCount
see GetDevice
szDComPC
Character string
172
Description
Remote PC name
38.026.297.001 en
Program interfaces
GetLicenseCountForSpecificLicense
This method is used to determine the number of available licenses of the specified license
type.
Syntax and parameter
C++
long GetLicenseCountForSpecificLicense(long licenseType, long *licenseCount)
C#
int GetLicenseCountForSpecificLicense(int licenseType, ref int licenseCount)
Parameters
Value
licenseType
License type:
Description
1: BCS_LICENSE_TYPE_DEVICE_CX
2: BCS_LICENSE_TYPE_DEVICE_GX
3: BCS_LICENSE_TYPE_DEVICE_IX
4: BCS_LICENSE_TYPE_DEVICE_BRAIN
5: BCS_LICENSE_TYPE_VS
6: BCS_LICENSE_TYPE_INTERFACE_2FILE
7: BCS_LICENSE_TYPE_INTERFACE_2DB
8: BCS_LICENSE_TYPE_INTERFACE_2SAP
9: BCS_LICENSE_TYPE_DEVICE_MX
licenseCount
Number
18
GetLicenseExpirationDateForProductVersion
This method checks the expiry date of time-limited licenses. After expiring, the license is
no longer available and the function cannot be used in _connect.BRAIN any longer.
Syntax and parameter
C++
long GetLicenseExpirationDateForProductVersion(DATE *date)
C#
int GetLicenseExpirationDateForProductVersion(ref system.DateTime date)
Parameters
Value
Description
date
Date
38.026.297.001 en
173
Program interfaces
GetLicenseExpirationDateForSpecificLicense
This method checks the expiry date of time-limited licenses. After expiring, the license is
no longer available and the function cannot be used in _connect.BRAIN any longer.
Syntax and parameter
C++
long GetLicenseExpirationDateForSpecificLicense(long licenseType, DATE *date)
C#
int GetLicenseExpirationDateForSpecificLicense(int licenseType, ref system.DateTime date)
Parameters
Value
licenseType
License type:
Description
1: BCS_LICENSE_TYPE_DEVICE_CX
2: BCS_LICENSE_TYPE_DEVICE_GX
3: BCS_LICENSE_TYPE_DEVICE_IX
4: BCS_LICENSE_TYPE_DEVICE_BRAIN
5: BCS_LICENSE_TYPE_VS
6: BCS_LICENSE_TYPE_INTERFACE_2FILE
7: BCS_LICENSE_TYPE_INTERFACE_2DB
8: BCS_LICENSE_TYPE_INTERFACE_2SAP
9: BCS_LICENSE_TYPE_DEVICE_MX
date
Date
GetLicenseInformations
18
This method finds out information about the licensing system currently used, e.g. version
number and license server name. The information is generated as xml structure.
Syntax and parameter
C++
long GetLicenseInformations(BSTR *xmlLicensingInformations)
C#
int GetLicenseInformations(ref string xmlLicensingInformations)
Parameters
Value
Description
xmlLicensingInformations
Character string
XML data
174
38.026.297.001 en
Program interfaces
GetLicenseNameForProductVersion
This method returns the license required by the installed _connect.BRAIN. The result can
be used to verify whether the required license is available on the license server. If the license is missing, _connect.BRAIN cannot be used any longer.
Syntax and parameter
C++
long GetLicenseNameForProductVersion(BSTR *licenseProductVersion)
C#
int GetLicenseNameForProductVersion(ref string licenseProductVersion)
Parameters
Value
Description
licenseProductVersion
Character string
GetLicenseSystemName
The method identifies the licensing system currently used (up to now BSP only).
Syntax and parameter
C++
long GetLicenseSystemName(BSTR *licensingSystemName)
C#
int GetLicenseSystemName(ref string licensingSystemName)
Parameters
Value
Description
licensingSystemName
Character string
38.026.297.001 en
175
18
Program interfaces
GetSerialNumber
It returns the _connectServer serial number. If the Open method has not been carried out,
GetSerial Number reports an error.
Syntax and parameter
C++
long GetSerialNumber (BSTR *szSerialNumber)
C#
int GetSerialNumber (ref string zSerialNumber)
Parameters
Value
Description
szSerialNumber
Character string
_connectServerserial number
18
176
38.026.297.001 en
Program interfaces
Open
It opens access to a device via _connectServer.
Syntax and parameter
C++
long Open (BSTR szIdentUser, BSTR szDeviceName, short nTelegramType, short nAccess, short bLightLicenceEnable)
C#
int Open (string szIdentUser, string szDeviceName, short nTelegramType, short
nAccess, short bLightLicenceEnable)
Parameters
Value
szIdentUser
szDeviceName
Name of an active
device (character
string)
nTelegramType
0:
normal
nAccess
0:
multiple access
1:
single access
0:
full version
bLightLicenceEnable
Description
1:
38.026.297.001 en
177
18
Program interfaces
Receive
It provides reception data (header and user data) and the transmission status. It requires
the handle from the Send method.
If the Open method has not been carried out, Receive reports an error.
Syntax and parameter
C++
long Receive (BSTR *szHeader, BSTR *szData, BSTR szHandle, long lTimeout, long
*lStatus)
C#
int Receive (ref string szHeader, ref string szData, string szHandle, int lTimeout, ref int lStatus)
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
Send
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
178
38.026.297.001 en
Program interfaces
ReceiveAuthorizationRequest
It provides a license code which is used by the client to generate a response. The client
inserts the calculated license code in the SendAuthorizationResponse method. This method is only used by the Bizerba software. If the Open method has not been carried out, ReceiveAuthorizationRequest reports an error.
Syntax and parameter
C++
long ReceiveAuthorizationRequest (BSTR *szLizenzKey)
C#
int ReceiveAuthorizationRequest (ref string szLizenzKey)
Parameters
Value
Description
szLizenzKey
Character string
18
38.026.297.001 en
179
Program interfaces
ReceiveOne
It provides reception data (header and user data combined) and the transmission status. It
requires the handle from the Send method.
If the Open method has not been carried out, ReceiveOne reports an error.
Syntax and parameter
C++
long ReceiveOne (BSTR *szHeaderData, BSTR szHandle, long lTimeout, long *lStatus)
C#
int ReceiveOne (ref string szHeaderData, string szHandle, int lTimeout, ref
int lStatus)
Parameters
Value
Description
szHeaderData
Character string
szHandle
Character string
Send
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
180
38.026.297.001 en
Program interfaces
ReceiveOneWithoutAck
It receives spontaneous telegrams without direct acknowledgement. When using this
method, the customer application can delay the transmission of the acknowledgement and
transmit data (e.g. lock) to the labeler prior to transmitting the acknowledgement. The acknowledgement is separately transmitted using the SendAcknowledge method.
The ReceiveOneWithoutAck method can only be used for spontaneous
data. The customer application has to acknowledge the data record with
SendAcknowledge so that a GLP proceeds after a lock.
Syntax and parameter
C++
long ReceiveOneWithoutAck (BSTR *szHeaderData, BSTR szHandle, long lTimeout,
long *lStatus)
C#
int ReceiveOneWithoutAck (ref string szHeaderData, string szHandle, int lTimeout, ref int lStatus)
Parameters
Value
Description
szHeaderData
Character string
szHandle
Character string
lTimeout
Number
lStatus
0:
function OK
1:
timeout
Transmission status
2:
38.026.297.001 en
181
18
Program interfaces
ReceiveWithoutAck
It receives spontaneous telegrams without direct acknowledgement. When using this
method, the customer application can delay the transmission of the acknowledgement and
transmit data (e.g. lock) to the labeler prior to transmitting the acknowledgement. The acknowledgement is separately transmitted using the SendAcknowledge method.
The ReceiveWithoutAck method can only be used for spontaneous data. The customer application has to acknowledge the data record with
SendAcknowledge so that a GLP proceeds after a lock.
Syntax and parameter
C++
long ReceiveWithoutAck (BSTR *szHeader, BSTR *szData, BSTR szHandle, long lTimeout, long *lStatus)
C#
int ReceiveWithoutAck (ref string szHeader, ref string szData, string szHandle, int lTimeout, ref int lStatus)
18
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
182
38.026.297.001 en
Program interfaces
Reset
It cancels the current send request. If a send request is not cancelled, it remains active
until transmission is completed. Thus, it is impossible to start a new send request.
Use Reset to cancel the send request from the _connectServer transmission list. If the data record has already been sent to the device before Reset and the device continues responding after Reset, the response is identified as spontaneous data record and made
available because the corresponding send request no longer exists.
Syntax and parameter
C++
long Reset (BSTR szHandle)
C#
int Reset (string szHandle)
Parameters
Value
szHandle
Character string
Description
Handle that is returned from the
method.
Send
18
38.026.297.001 en
183
Program interfaces
Send
It sends data to the connected evaluation unit. If the Open method has not been carried out,
Send reports an error.
Syntax and parameter
C++
long Send (BSTR szHeader, BSTR szData, BSTR *szHandle, long lTimeout, long
*lStatus)
C#
int Send (string szHeader, string szData, ref string szHandle, int lTimeout,
ref int lStatus)
Parameters
Value
Description
szHeader
Character string
szData
Character string
User data
szHandle
Character string
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
184
38.026.297.001 en
Program interfaces
SendAcknowledge
It closes the ReceiveWithoutAck method with a positive acknowledgement.
Syntax and parameter
C++
long SendAcknowledge (BSTR szHandle)
C#
int SendAcknowledge (string szHandle)
Parameters
Value
szHandle
Character string
Description
Handle used in the ReceiveWimethod.
thoutAck
SendAcknowledgeNeg
It closes the ReceiveWithoutAck method with a negative acknowledgement. Transmits an
error message to the device.
Syntax and parameter
C++
long SendAcknowledgeNeg (BSTR szHandle, long lError, BSTR szErrTxt)
C#
int SendAcknowledgeNeg (string szHandle, int lError, string szErrTxt)
Parameters
Value
szHandle
Character string
Description
Handle used in the ReceiveWimethod.
thoutAck
lError
Number
szErrTxt
Character string
38.026.297.001 en
185
18
Program interfaces
SendAuthorizationResponse
It compares the license code calculated by the client with the license code transmitted by
_connectServer via ReceiveAuthorizationRequest. This method is only used by the Bizerba software.
In case of noncompliance, an error is reported.
If the Open method has not been carried out, SendAuthorizationReponse reports an error.
Syntax and parameter
C++
long SendAuthorizationResponse (BSTR szLizenzKey)
C#
int SendAuthorizationResponse (string szLizenzKey)
Parameters
Value
Description
szLizenzKey
Character string
SendCheck
It verifies whether data is available, the command has been completely processed or
transmitted, and a positive or negative acknowledgement has been received.
Syntax and parameter
C++
long SendCheck (BSTR szHandle, long lTimeout, long *lStatus)
C#
int SendCheck (string szHandle, int lTimeout, ref int lStatus)
18
Parameters
Value
szHandle
Character string
Description
Handle that is returned from the
method.
Send
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
186
38.026.297.001 en
Program interfaces
SendOne
It sends data to the connected evaluation unit. If the Open method has not been carried out,
Send reports an error.
Syntax and parameter
C++
long SendOne (BSTR szHeaderData, BSTR *szHandle, long lTimeout, long *lStatus)
C#
int SendOne (string szHeaderData, ref string szHandle, int lTimeout, ref int
lStatus)
Parameters
Value
Description
szHandle
Character string
lTimeout
Number
lStatus
0:
function OK
Transmission status
1:
timeout
2:
18
38.026.297.001 en
187
Program interfaces
SetReceiveQueueFilter
It sets a filter for reception data. The filter is required to receive data by means of customer-specific reception queues that have been created using the CreateReceiveQueue method. Without filters, spontaneous data is automatically assigned to the DUSTBIN reception
queue.
Example for a GX: Use CreateReceiveQueue to create an individual queue for package
data records starting with PV05. To allocate the package data records to the method, call
up the SetReceiveQueueFilter method with the queue name and the PV05 filter parameter.
If data records, e.g. starting with PV05 or PV06, are to be allocated to the same queue,
call up the SetReceiveQueueFilter method two times. Specify the same queue both times
and use the PV05 filter parameter at one time and the PV06 filter parameter the other time.
Syntax and parameter
C++
long SetReceiveQueueFilter (BSTR szQueueName, BSTR szFilter)
C#
int SetReceiveQueueFilter (string szQueueName, string szFilter)
Parameters
Value
Description
szQueueName
Character string
Queue name generated by _connectServer The CreateReceiveQueue method returns this name.
szFilter
Character string
18
188
38.026.297.001 en
18.3.3
Program interfaces
Events
BCCDataArrival
It indicates reception of spontaneous telegrams and transmits the identification of the communication channel (handle) which can be used for receiving data via the Receive, ReceiveWithoutAck, ReceiveOneWithoutAck or ReceiveOne method.
Syntax and parameter
C++
void BCCDataArrival(BSTR szHandle)
C++
void BCCDataArrival(string szHandle)
Parameters
Value
Description
szHandle
Character string
Identification of communication
channel (handle)
BCCRemoteDataArrival
It answers a send request with a ?, A? or I? header. Transmits the identification of the
communication channel (handle) which can be used for receiving data via the Receive, ReceiveWithoutAck, ReceiveOneWithoutAck or ReceiveOne method.
Syntax and parameter
C++
void BCCRemoteDataArrival(BSTR szHandle)
C#
void BCCRemoteDataArrival(string szHandle)
Parameters
Value
Description
szHandle
Character string
Identification of communication
channel (handle)
38.026.297.001 en
18
189
Program interfaces
BCCError
It indicates the failure of a previous action. Further details are displayed by the error code
and text.
Syntax and parameter
C++
void BCCError(long lErrCode, BSTR szErrTxt)
C#
void BCCError(int lErrCode, string szErrTxt)
Parameters
Value
Description
lErrCode
Number
Error code
szErrTxt
Character string
Error text
18.4
BctFunctions
The BctFunctions.dll is a COM-Dll that makes available auxiliary functions for handling Bx
telegrams. It includes conversion functions for handling dimensionful values and UTF-8/
Unicode texts as well as parse functions for Bx telegrams in different formats.
18
190
38.026.297.001 en
18.4.1
Program interfaces
Conversion function
ConvertBxNetToWeight
Conversion function that breaks down a Bx dimension value in single components.
Syntax and parameter
C++
HRESULT ConvertBxNetToWeight([in] BSTR szWeightData, [in] BSTR szWeightDelimiter, [out] BSTR *szWeight, [out] BSTR *szWeightUnit);
C#
int ConvertBxNetToWeight(string szWeightData, string szWeightDelimiter, out
string szWeight, out string szWeightUnit);
Parameters
Description
szWeightData
szWeightDelimiter
szWeight
szWeightUnit
Example (C#)
string weight, weightUnit;
tools.ConvertBxNetToWeight("kg;-3;1234", ".", out weight, out weightUnit);
Console.WriteLine(weight + " " + weightUnit); // "1.234 kg"
18
38.026.297.001 en
191
Program interfaces
ConvertWeightToBxNet
Conversion function that creates a Bx dimension value from weight, decimal separator and
weight unit.
Syntax and parameter
C++
HRESULT ConvertWeightToBxNet([in] BSTR szWeight, [in] BSTR szWeightDelimiter,
[in] BSTR szWeightUnit, [out] BSTR *szWeightData);
C#
int ConvertWeightToBxNet(string szWeight, string szWeightDelimiter, string
szWeightUnit, out string szWeightData);
Parameters
Description
szWeight
szWeightDelimiter
szWeightUnit
szWeightData
Example (C#)
string weight.Data;
tools.ConvertWeightToBxNet("1.234", ".", "kg", out weightData);
Console.WriteLine(weightData); // "kg;-3;1234"
18
192
38.026.297.001 en
Program interfaces
ConvertTextUnicodeToBxNetUTF8
Function that converts a Unicode string in UTF-8. Characters that cannot be represented
in ASCII format are coded according to Bx rules.
Syntax and parameter
C++
HRESULT ConvertTextUnicodeToBxNetUTF8([in] BSTR szUnicodeText, [out] BSTR
*szBxNetUTF8Text);
C#
int ConvertTextUnicodeToBxNetUTF8(string szUnicodeText, out string szBxNetUTF8Text);
Parameters
Description
szUnicodeText
Unicode string
szBxNetUTF8Text
Example (C#)
string utf8;
tools.ConvertTextUnicodeToBxNetUTF8("fnf ", out utf8);
Console.WriteLine(utf8); // "f@C3@BCnf @E2@82@AC"
ConvertTextBxNetUTF8ToUnicode
Function that converts a UTF-8 string in Unicode. The input string must be coded according to the Bx rules.
Syntax and parameter
C++
HRESULT ConvertTextBxNetUTF8ToUnicode([in] BSTR szBxNetUTF8Text, [out] BSTR
*szUnicodeText);
18
C#
int ConvertTextBxNetUTF8ToUnicode(string szBxNetUTF8Text, out string szUnicodeText);
Parameters
Description
szBxNetUTF8Text
szUnicodeText
Example (C#)
string unicode;
tools.ConvertTextBxNetUTF8ToUnicode("f@C3@BCnf @E2@82@AC", out unicode);
Console.WriteLine(unicode); // "fnf "
38.026.297.001 en
193
Program interfaces
18.4.2
Parse functions
ParseTelegram
Parse function used to break down Bx telegrams (header and data separated) in single
components.
Syntax and parameter
C++
HRESULT ParseTelegram([in] BSTR szHeader, [in] BSTR szData, [out] VARIANT
*pHeaders, [out] VARIANT *pDatas);
C#
int ParseTelegram(string szHeader, string szData, out object pHeaders, out object pDatas);
Parameters
Description
szHeader
Bx header
szData
pHeaders
pDatas
Example (C#)
object headers, datas;
string[] headersArray, datasArray;
tools.ParseTelegram("I!LV01|RX01|GT08|LX02", "Scale1", out headers, out datas);
headersArray = (string[])headers; // "LV01", "RX01", "GT08", "LX02"
datasArray = (string[])datas; // "", "", "Scale1", ""
18
194
38.026.297.001 en
Program interfaces
ParseTelegramEx
Parse function used to break down Bx telegrams (header and data combined) in single
components.
Syntax and parameter
C++
HRESULT ParseTelegramEx([in] BSTR szHeaderData, [out] VARIANT *pHeaders, [out]
VARIANT *pDatas);
C#
int ParseTelegramEx(string szHeaderData, out object pHeaders, out object pDatas);
Parameters
Description
szHeaderData
pHeaders
pDatas
Example (C#)
object headers, datas;
string[] headersArray, datasArray;
tools.ParseTelegramEx("I!LV01|RX01|GT08|Scale1|LX02", out headers, out datas);
headersArray = (string[])headers; // "LV01", "RX01", "GT08", "LX02"
datasArray = (string[])datas; // "", "", "Scale1", ""
18
38.026.297.001 en
195
Program interfaces
ParseMemocardTelegram
Parse function used to divide memory card telegrams deriving from Gx (header and data
separated) in single telegrams Gx (header and data separated).
Syntax and parameter
C++
HRESULT ParseMemocardTelegram([in] BSTR szHeader, [in] BSTR szData, [out] VARIANT *pHeaders, [out] VARIANT *pDatas);
C#
int ParseMemocardTelegram(string szHeader, string szData, out object pHeaders,
out object pDatas);
Parameters
Description
szHeader
szData
pHeaders
Returns single header telegrams deriving from the memory card as array.
pDatas
Example (C#)
object headers, datas;
string[] headersArray, datasArray;
tools.ParseMemocardTelegram("A!MV07|GT01|LV01|RX01|GT08|LX02|LX02", "test|
Scale1", out headers, out datas);
headersArray = (string[])headers; // "A!GT01", "A!LV01|RX01|GT08|LX02"
datasArray = (string[])datas; // "test", "Scale1"
18
196
38.026.297.001 en
Program interfaces
ParseMemocardTelegramEx
Parse function used to divide memory card telegrams deriving from Gx (header and data
combined) in single telegrams Gx (header and data separated).
Syntax and parameter
C++
HRESULT ParseMemocardTelegramEx([in] BSTR szHeaderData, [out] VARIANT *pHeaders, [out] VARIANT *pDatas);
C#
int ParseMemocardTelegramEx(string szHeaderData, out object pHeaders, out object pDatas);
Parameters
Description
szHeaderData
pHeaders
Returns single header telegrams deriving from the memory card as array.
pDatas
Example (C#)
object headers, datas;
string[] headersArray, datasArray;
tools.ParseMemocardTelegramEx("A!MV07|GT01|test|LV01|RX01|GT08|Scale1|LX02|
LX02", out headers, out datas);
headersArray = (string[])headers; // "A!GT01", "A!LV01|RX01|GT08|LX02"
datasArray = (string[])datas; // "test", "Scale1"
18
38.026.297.001 en
197
Program interfaces
ParseMemocardTelegramEx2
Parse function used to divide memory card telegrams deriving from Gx (header and data
combined) in single telegrams Gx (header and data combined).
Syntax and parameter
C++
HRESULT ParseMemocardTelegramEx2([in] BSTR szHeaderData, [out] VARIANT *pHeaderData);
C#
int ParseMemocardTelegramEx2(string szHeaderData, out object pHeaderData);
Parameters
Description
szHeaderData
pHeaderData
Example (C#)
object headerdata;
string[] headerDataArray;
tools.ParseMemocardTelegramEx2("A!MV07|GT01|test|LV01|RX01|GT08|Scale1|LX02|
LX02", out headerdata);
headerDataArray = (string[])headerdata; // "A!GT01|test", "A!LV01|RX01|GT08|
Scale1|LX02"
18
198
38.026.297.001 en