Hubitron Hbg800-Dp Wireless Handwheel: SINUMERIK 840D/ 840D SL
Hubitron Hbg800-Dp Wireless Handwheel: SINUMERIK 840D/ 840D SL
HUBITRON HBG800-DP
wireless handwheel
SINUMERIK 840D/ 840D sl
http://support.automation.siemens.com/WW/view/en/70989159
Warranty and liability
Note The application examples are not binding and do not claim to be complete
regarding the circuits shown, equipment and any other eventuality. The
application examples do not represent customer-specific solutions. They are only
intended to provide support for typical applications. You are responsible for
ensuring that the described products are used correctly. These application
examples do not relieve you of the responsibility to use safe practices in
application, installation, operation and maintenance. When using these
application examples, you recognize that we cannot be made liable for any
damage/claims beyond the liability clause described. We reserve the right to
make changes to these application examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
application examples and other Siemens publications - e.g. catalogs - the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data, etc.
described in this application example, shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
Siemens AG 2013 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.
Table of contents
Warranty and liability................................................................................................... 2
1 General information ........................................................................................... 4
1.1 Prerequisites ........................................................................................ 4
1.2 Installing the wireless handwheel ......................................................... 5
1.3 Machine data ........................................................................................ 5
1.3.1 Machine data setting for the HBG handwheel impulse transfer
with PROFIBUS DP for SINUMERIK 840D sl / 840Di sl. ..................... 5
2 Adaptations to the PLC program ..................................................................... 6
2.1 Connecting the HBG 800-DP to PROFIBUS DP ................................. 6
2.2 Symbol list ............................................................................................ 7
2.3 Blocks used .......................................................................................... 7
2.4 Source code ......................................................................................... 8
2.5 Integrating the "HBG800_DP" function in the PLC user program ........ 9
2.6 Explanation of the parameters for the "HBG800_DP" function .......... 10
2.7 Parameterizing the FB1 "RUN_UP" for the "HBG800_DP"
function ............................................................................................... 13
2.8 Adapting the "HBG800_DP" function ................................................. 14
2.8.1 Free OEM data storage ...................................................................... 14
2.8.2 OEM text............................................................................................. 14
2.8.3 Display resolution ............................................................................... 14
2.8.4 Axis selection ..................................................................................... 14
Siemens AG 2013 All rights reserved
1 General information
The application describes the connection of the HUBITRON HBG 800-DP and
HBG 800-DP FS wireless handwheels to a SINUMERIK 840D sl, as well as their
operation.
Because this application can be used for both handwheel types as well as the
SINUMERIK 840D sl, 840D, 840Di sl and 840Di controller types, only the HBG
800-DP and SINUMERIK 840D sl types are mentioned in the subsequent
description.
In the application example, the HBG 800-DP emulates partially the buttons on the
MCP310/MCP483 machine control panel (MCP).
The assigned buttons of the HBG 800-DP front foil supplied from HUBITRON are
supported in the application. The free foil buttons are used as follows:
The application has been implemented for the HBG 800-DP with its factory
settings.
NOTICE After the application has been integrated, it is the responsibility of the user to
thoroughly check the safety-relevant functions of the machine!
1.1 Prerequisites
For the deployment of the application example on
SINUMERIK 840D sl Milling, the following conditions should be satisfied:
PROFIBUS DP
1. – 3. Geometry axes are the 1st – 3rd channel axes of the associated
channel
MCP310/MCP483 signals are transferred to the interface using FC24/FC19
NCK as of version 5.2
www.hubitron.de/downloads.htm
Use dip switches to set the required PROFIBUS DP address at the connecting
Siemens AG 2013 All rights reserved
With the factory setting (Invert Out) of the manufacturer, the 'Feed Stop' and
'Spindle Stop' signals have a sensible switching behavior. If you do not wish to
use the HBG 800-DP wireless handwheel with this default setting, then this can
be changed in the HBG Setup mode.
1.3.1 Machine data setting for the HBG handwheel impulse transfer with
PROFIBUS DP for SINUMERIK 840D sl / 840Di sl.
Index i = handwheel number in the NCK-1 (example for handwheel 2 => index i =
2-1 =1)
NC-MD11350 $MN_HANDWHEEL_SEGMENT[i] = 5 (PROFIBUS DP)
NC-MD11351 $MN_HANDWHEEL_MODULE[i] = Index +1
NC-MD11352 $MN_HANDWHEEL_INPUT[i] = 1
NC-MD11353 $MN_HANDWHEEL_LOGIC_ADDRESS[i] = address from the
STEP7 hardware configuration of the HBG 'Encoder' module (see Figure 2-1).
Fig. 2-1
Table 2-1
Symbol Address Data type
HBG800_DP FC FC
HBG DB DB
HBG_Instz_AV DB FB 2
HBG_Instz_CD DB FB 2
HBG_Instz_MD DB FB 2
For the HBG 800-DP function expansion, the following blocks are also required in
addition to the blocks mentioned in Section 2.2:
"GET", FB 2 function from the basic PLC program for the corresponding
controller version (gp8x0d.. or bp7x0_..).
Example:
RD1:= P#DB"hbg".DBX884.0 … RD1:=P#DB506.DBX884.0…
RD2:= P#DB"hbg".DBX892.0 … RD2:=P#DB506.DBX892.0…
NOTICE
After the first compilation of the source code, load the data blocks from Table 2-1
as well as the blocks before the "HBG800_DP" function named under
Section 2.3!
After each change and compilation of the source code, you must first load the
"HBG800_DP" function, then the "HBG" data block and the associated instance
data blocks!
CALL "HBG800_DP"(
HBG_On_Condition :=M200.0,
HBG_Stop :=M200.1,
HBG_In :=P#I100.0,
Siemens AG 2013 All rights reserved
HBG_Out :=P#Q100.0,
HBG_Safe_But_1 :=I151.2,
HBG_Safe_But_2 :=I151.3,
HBG_Inv_Fd_Sp_Stop :=TRUE,// TRUE = HBG factory default setting
HBG_Sel_Channel :=True,
HBG_Max_Incr :=100,
HBG_Release_Cus_Key :=FALSE,
HBG_Sp_Key_to_MCP :=TRUE,
Sp_Start_Ext_Active :=FALSE,
MPG2 :=TRUE,
HWheelMMC :=FALSE,
MCP310 :=FALSE,
HBG_Active :="ALMSG_DB".A7000xx[36],// ‘HBG is active'
HBG_Status :=DB506.DBB1,
HBG_Req_Channel_Sel :=DB506.DBX2.0,
HBG_Sp_Stop_Inv :=DB506.DBX2.1,// *Spindle Stop from HBG
HBG_Sp_Start_Ext :=DB506.DBX2.2,// Spindle Start from HBG
BAG_No :=DB506.DBB3,
Chan_No :=DB506.DBB4);
Note The following parameters of the 'HBG800_DP' block must have the specified
states in order to operate the device.
HBG_On_Condition : = TRUE
HBGStop : = FALSE
HBG_Active : = TRUE
The "HBG" data block defined in the symbol list (see Section 2.2) makes the data
bytes 0 – 9 available to the users for integration of the "HBG800_DP" function in
their PLC program.
The variable 'Text_1_OEM' contains general information that is displayed when the
HBG 800-DP is switched on. For the application example, the following text
HBG 800-DP
SIN840D sl
Siemens AG 2013 All rights reserved
is entered. The OEM can save its own information here, such as company name,
machine type.
Note: Variables with defined text lengths are stored in the '// Start OEM
modifications of HBG application' area of the 'HBG' data block. Any changes to
these text lengths require a change to the preassigned pointers and consequently
all subsequent pointers must be adapted.
The 'NC_MD510xy' variable can be used to adapt the display resolution of the
HBG 800-DP to the controller in the '// Start OEM modifications of HBG application'
area of the data block.
This function uses the channel axis number to determine the information of the axis
names, the current axis values (such as position and speed) and the machine axis
number. If no machine axis number is assigned to a channel axis number, its
selection causes the
SIN840D sl
ModeGr Ch
specify the sequence or cause the axes to be hidden. Because of the Axis
selection button to the Geometry axis assignment, 'ChanAx_No_Chx[1]' to
'ChanAx_No_Chx[3]' should not be changed.
Axis selection button 1 is assigned to 'ChanAx_No_Chx[1]', axis selection button 2
is assigned to 'ChanAx_No_Chx[2]', etc. 'ChanAx_No_Chx[5]' to maximum
'ChanAx_No_Chx[20]' are selected using axis selection button 5; after the number
of active channel axes is reached, the numbering begins with 'ChanAx_No_Chx[5]'
again. The value of the array includes the channel axis number.
Note The separating of the channel axis numbers and the filling of the freed axes with
'0'’ in the 'ChanAx_No_Chx' parameter produces the most efficient axis selection
on the HBG 800-DP for the operator.
Application examples for channel 1 with eight axes are shown in Table 2-3.
Table 2-3
No. Application description
1. ChanAx_No_Ch1: ARRAY [1..20] OF INT:=1,2,3,4,5,6,7,8,9,10,…
Siemens AG 2013 All rights reserved
With activated wireless handwheel, the buttons and the switch of the MCP are
locked, except for the 'Reset', 'Spindle Hold' and 'Feed Hold' buttons. The
'HBG_Release_Cus_Key' = 'FALSE' or 'TRUE' parameter can be used to lock or
release the free customer buttons.
NOTICE The user is responsible for releasing the locked MCP buttons. The user must
also guarantee safety for man and machine by the releasing this button lock.
In the 'HBG On/Off' network, 'Skip inputs of MCP' area of the 'HBG800_DP'
function, it is possible to specifically release or lock buttons of the machine control
panel, for example the RESET button. The buttons are masked using the
instruction 'L DW#16#Wert' and can be affected by adding or subtracting the bit-
specific value in the corresponding byte.
Example:
The RESET button must be locked for the MCP483. The associated signal is bit 7
of the input byte (n+3). The instruction 'L DW#16#00001580' masks byte (n+0 –
n+3) of the input area. The first two left-justified positions of the numerical value
cover 8 bits (bit 7 – 4 and bit 3 – 0) of byte (n+0). Bit 7 has a significance of 8. You
Siemens AG 2013 All rights reserved
must subtract this value from the value 8 of bits 4 – 7 of byte (n+3). Replace the
value 'DW#16#00001580' with the value 'DW#16#00001500' for locking the
RESET button.
HBG 800-DP
SIN840D sl
in the display. The wireless handwheel can now be removed from the charging
station.
For the further operation of the wireless handwheel, the HBG release of the
Siemens AG 2013 All rights reserved
The HBG can be switched off by pressing the EMERGENCY OFF button at the
device or by placing it in the charging station.
When switching off the HBG or by clearing the HBG release at the machine control,
the set override values of the MCP become active again.
The RESET, 'Spindle Hold' and 'Feed Hold' buttons of the machine control panel
are not locked.
3.2 Displays
3.2.1 Text displays
With the operation of the HBG 800-DP, the messages listed in Table 3-1 can
appear on the display. The messages overwrite the current display.
Table 3-1
Message Status
HBG 800-DP.
NC Alarm An NC alarm is present. The rotary encoder, the axis
movement buttons, the 'Feed Start' button and the
'Spindle Start' button on the HBG 800-DP are locked.
Reset The Reset button of the machine control panel
has been pressed. The rotary encoder, the axis
movement buttons, the 'Feed Start' button and the
'Spindle Start' button on the HBG 800-DP are locked.
HBG Status: The HBG 800-DP has detected an internal
Bit … operational status whose information is notified as a
bit. The bit and its status are displayed in the second
text line. The operation of the HBG is suppressed
when the message appears. The operating
instructions of the HBG 800-DP wireless handwheel
provide information about the HBG status bits.
Data Error: This message is used for the commissioning support
F… of the HBG 800-DP and is not to be expected during
its deployment.
An error while reading or converting the axis data
was detected. The current values can no longer be
displayed correctly.
The text in the second line indicates the data (e.g.
FB2- Act Val) that activated the message.
The operation of the HBG 800-DP is locked when
this message appears. To acknowledge the
message, the HBG release of the machine control or
the HBG must be switched on and off.
Application Version details of the HBG 800-DP application for
Version V02.00sl / SINUMERIK 840D sl / 840D (e.g. V02.00).
Version V02.00pl
Pressing an axis selection button selects the desired axis. The selection is
indicated by the LED assigned to the selection button illuminating.
The axis name is displayed with maximum five characters and the position value of
the selected axis in the first text line of the display. The position value display is
shifted to the right if the read position value requires more positions than available
in the display. If in this situation the INC machine function is selected, e.g. by
pressing the handwheel button, the position value is shifted to the left so that all
decimal places are displayed. The deselection of the INC machine function, e.g. by
pressing the jogging button, clears the display.
The current values for the speed and the override of the selected axis are
displayed in the second text line. They are replaced with the S value and the
spindle override value when a spindle is selected.
Note With SINUMERIK 840D, but not SINUMERIK 840D sl, for very large position
values, the position display of the HBG 800-DP, when compared to the position
display of the controller, can deviate by several increments at the last decimal
places.
To select 'Feed start', 'Spindle start' and for axis movements, both safety buttons of
the HBG 800-DP must be pressed simultaneously previously. This is also
necessary after clearing the 'HBG Stop', 'NC Alarm' and 'Reset' messages.
SIN840D sl
ModeGr Ch
This shows from which mode group and channel the axes are selected. When
pressed initially, the channel number is incremented; if this channel is located in
another mode group, it will also be updated. When the last channel number is
reached, the numbering begins again with the first displayed channel number
(normally ModeGr1 CH1).
The initial pressing of the jog operation button causes the handwheel function to be
deselected and jog operation to be activated. The selection is indicated by the LED
assigned to the jog operation button illuminating.
To traverse the selected axis, the two safety buttons must be pressed
simultaneously previously and then one of the axis movement buttons pressed.
When the jog operation button is pressed again, the INC1 machine function is
selected and the 'I1' increment value appears in the second text line instead of the
F or S value. When the button is pressed again, the increment is increased; when
the F or S value reappears in the display, the INC machine function is deactivated.
3.6.2 Handwheel
The handwheel is activated by pressing the handwheel button. When the button is
pressed initially, jog operation is deselected and the INC1 machine function
selected. The 'I1' increment value appears in the second text line rather than the F
Siemens AG 2013 All rights reserved
or S value. Pressing the button again increases the increment. INC1 is reselected
when the maximum value is reached.
To traverse the axis, the two safety buttons must be pressed simultaneously
previously and then the handwheel activated.
HBG 800-DP
SIN840D sl
The X, Y, Z axis selection buttons are used to select the desired geometry axis in
the workpiece coordinate system (WCS). If the WCS coordinate system with active
transformation is selected, the geometry axis involved with the transformation will
be identified with the 'Geo' suffix to the axis name, e.g. 'XGeo'. This indicates to the
user that a different machine axis performs the movement. If the machine
coordinate system (MCS) with active transformation is selected, the channel axis
involved with the transformation is displayed with the name of the assigned
geometry axis, e.g. 'XGeo'. Machine axes retain their axis identifier.
4 Internet links
This list does not claim to be complete and provides only a selection of suitable
information.
Table 4-1
Topic Title
\1\ HUBITRON control http://www.hubitron.de/downloads
technology
downloads
Siemens AG 2013 All rights reserved
5 Contact
Siemens AG
Industry Sector
I DT MC MTS APC 1 2
Frauenauracher Strasse 80
D - 91056 Erlangen
mailto: [email protected]
Siemens AG 2013 All rights reserved
6 History
Table 6-1
Version Date Revision
V1.0 05/2013 First edition
V2.0 04/2014 Second edition – traversal of axes from different channels
Siemens AG 2013 All rights reserved