You are on page 1of 61

Promess Montage- und Prüfsysteme GmbH

S7 PROFINET / PROFIBUS FUNCTION


BLOCK GUIDE
Copyright ©2016 Promess Gesellschaft für Montage- und Prüfsysteme mbH. All rights reserved.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
General Information
The manufacturer is not responsible for any consequences resulting from inappropriate, negligent or incorrect
installation, or unauthorized modification of UNIDRIVE SP parameters and its optional modules.

The contents of this guide are believed to be correct at the time of publication. In interests of a commitment to a policy of
continuous development and improvement, the manufacturer reserves he right to change the specifications or its
performances of the products without notice, as well as the contents of this guide.

All rights reserved. No parts of this guide may be reproduced, store or transmit completely or partially in any form
(electronic or mechanical including photocopying, recording or information storage) without permission in writing from
the publisher.

This guide is supplied for UFM V5 versions of Promess firmware installed on the SM-Application Plus of UNIDRIVE SP.
The firmware version can be checked in the supplied part list in the Promess green binder for each delivered assembly
press, on a sticker on the SM-Application Plus module or with your Promess provider.

This guide provides all the necessary information to use Promess function blocks with SIEMENS
PLC families S7-300 (from 314-2 DP) /400/1500

Copyright © september 2014 Promess Gesellschaft für Montage- und Prüfsysteme mbH
Release 2.6.1
Firmware version 5.03.00 and upper

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 1


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
Inhaltsverzeichnis
1 – REQUIREMENTS page 3 - 9
1.0.1 - Electrical installation page 4 4 – FLOWCHARTS page 58-60
1.0.2 - PLC Configuration Profibus Unidrive SP page 5 4.0.1 - Example1 page 59
1.0.2.1 - PLC Configuration Profibus Unidrive M page 7 4.0.2 - Example2 page 60
1.0.2 2 - PLC Configuration Profinet Unidrive SP page 9
1.0.2.3 - PLC Configuration Profinet Unidrive M page 12
1.0.3 - pre- Configuration FB 530 (MOVE FB) page 14
1.0.3.1 - pre- Configuration FB 550 (DATA FB) page 15

2 - FB530 (MOVE FB) page 16 - 29


2.0.1 - Function HOMING page 17
2.0.2 - Function CYCLE page 18
2.0.3 - Function Program No. load page 19
2.0.4 - Function STEP page 20
2.0.5 - Function MOVE page 21
2.0.6 - Function JOG page 22
2.0.7 - Function abort Movement page 23
2.0.8 - Status massage page 24
2.0.9 - Source read (live values) page 25 – 26
2.0.10 - Error Massages page 27 - 29

2.1 – Error Massage Move FB (FB630) page 30 - 32


2.1.1 - Error History MOVE FB page 31– 32

3 – FB 550 (DATA FB) page 33 – 62


3.0.1 - Function move-Parameter read page 34 - 35
3.0.2 - Function move -Parameter write page 36 - 37
3.0.3 - Function Gauging read page 38 - 39
3.0.4 - Function Variable page 40 - 41
3.0.5 - Function Variable write page 42 - 43
3.0.6 - Function part ID read page 44 - 45
3.0.7 - Function part ID write page 46 - 47
3.0.8 - Function Source read page 48 - 49
3.0.9 - Function Source write page 50 - 51
3.0.10 - Abort-Data Transmutation page 52
3.0.11 - Error Massages page 53 – 54

3.1 - Error Massage Data FB (FB650) page 55 - 57


3.1.1 - Error History DATA FB page 56 - 57

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 2


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

1. - REQUIREMENTS

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 3


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.0.1 - Electrical installation
It is strictly forbidden to make any electrical connections on UNIDRIVE SP and its optional modules under AC and DC
power supplies.

When the UNIDRIVE SP is OFF, remove its black terminal cover to connect the PROFINET / PROFIBUS -DP cable to
the SM-PROFINET / PROFIBUS module.

Table 1.1 Profinet connections Table 1.1.2 Profibus connections

Terminal Function Description

3 +RxD / +TxD Positive data line (B) - Red.

8 -RxD / -TxD Negative data line (A) - Green.

6 +5 V +5 V isolated for termination resistors only.

5 0V Isolated 0V for termination resistors only.

4 +CNTR RTS line.

1 Shield PROFIBUS-DP cable shield connection.

Correct shielding of the FIELDBUS-DP cable is required in accordance with the manufacturer recommendations to
reduce the electromagnetic interference.

NOTE Please refer to the Control Techniques SM-PROFINET / PROFIBUS-DP User Guide for more details.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 4


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.0.2 –nidrive PLC configuration Profibus SP
Please make sure that your I / Q Areas for the Unidrive equal to the OB1 Process Image of your S7 PLC

NOTE The addresses of the first 16 input words and the first 16 output words must be the same..

The addresses of the second 16 input words and the second 16 output words must be the same.

Install the GSD file (sp__0672.gsd), provided by Promess. The “SM-PROFIBUS-DP” DP slave is available in your
“Catalog” window under “PROFIBUS-DP”, “Additional Field devices” and “Drives”.

Table 1-2 SM-PROFIBUS-DP configuration

Module Order Number / Designation I Address Q Address

16 IN Words - Consistency 16 IN Words - Consistency 256...287


V5 MOVE FB
(FB530)
16 OUT Words -Consistency 16 OUT Words -Consistency 256...287

"E_Startadr_PB1" input of function block FB530 must be for.exp 256

16 IN Words - Consistency 16 IN Words - Consistency 288...319


V5 DATA FB
(FB550)
16 OUT Words -Consistency 16 OUT Words -Consistency 288...319

"E_Startadr_PB2" input of function block FB550 must be for.exp 288

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 5


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
example: HW Config (Profibus Unidrive SP)

The addresses of the first 16 input words and the first 16 output words must be the same.
NOTE The addresses of the second 16 input words and the second 16 output words must be the same.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 6


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.0.2 - PLC configuration Profibus M

Please make sure that your I / Q Areas for the Unidrive equal to the OB1 Process Image of your S7 PLC

NOTE The addresses of the first 16 input words and the first 16 output words must be the same..

The addresses of the second 16 input words and the second 16 output words must be the same.

Install the GSD file (M700.gsd), provided by Promess. The “SI-PROFIBUS-DP” DP slave is available in your “Catalog”
window under “PROFIBUS-DP”, “Additional Field devices” and “Drives”.

Table 1-2 SI-PROFIBUS-DP configuration

Module Order Number / Designation I Address Q Address

16 IN Words - Consistency 16 IN Words - Consistency 256...287


V5 MOVE FB
(FB530)
16 OUT Words -Consistency 16 OUT Words -Consistency 256...287

"E_Startadr_PB1" input of function block FB530 must be in.exp 256

16 IN Words - Consistency 16 IN Words - Consistency 288...319


V5 DATA FB
(FB550)
16 OUT Words -Consistency 16 OUT Words -Consistency 288...319

"E_Startadr_PB2" input of function block FB550 must be in.exp 288

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 7


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
Example: HW Config (Profibus Unidrive M)

The addresses of the first 16 input words and the first 16 output words must be the same.
NOTE The addresses of the second 16 input words and the second 16 output words must be the same.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 8


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

1.0.2.1 - PLC configuration Profinet SP

Please make sure that your I / Q Areas for the Unidrive equal to the OB1 Process Image of your S7 PLC

NOTE The addresses of the first 16 input words and the first 16 output words must be the same.

The addresses of the second 16 input words and the second 16 output words must be the same.

Install the GSDML file (GSDML-V2.2-CT_0160-SM_PROFINET-20120210.xml), provided by Promess. The “SM-


PROFINET-DP” DP slave is available in your “Catalog” window under “PROFINET-DP”, “Additional Field devices” and
“Drives”.
Table 1-2 SM-PROFINET-DP configuration

Module Order Number / Designation I Address Q Address

8* User Defined 32-bit Read 8* User Defined 32-bit Read (16 IN Words ) 256...287
V5 MOVE FB
B530
8* User Defined 32-bit Write 8* User Defined 32-bit Write (16 OUT Words ) 256...287

"E_Startadr_PB1" input of function block FB530 must be of.exp 256

8* User Defined 32-bit Read 8* User Defined 32-bit Read (16 IN Words ) 288...319
V5 DATA FB
B550
8* User Defined 32-bit Write 8* User Defined 32-bit Write (16 OUT Words ) 288...319

"E_Startadr_PB2" input of function block FB550 must be of.exp 288

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 9


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
Example: HW Config (Profinet Unidrive SP)
The addresses of the first 16 input words and the first 16 output words must be the same.
The addresses of the second 16 input words and the second 16 output words must be the same.
NOTE
!! Important: Please make sure that you don`t have a (IO Address) Gab between folowing Moduls 1-8 / 9-16 /17-24 / 25-32 !!

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 10


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
4.1.2 - Beispiel:
Configuration TIA
GSDML PORTAL
(Profinet V13
Unidrive SP )
NOTE In case of a new HW Configuration of the Unidrive SP you have to configure each User Defined 32bit Module according this chart

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 11


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

1.0.2.1 - PLC configuration Profinet M


The addresses of the first 16 input words and the first 16 output words must be the same.

NOTE The addresses of the second 16 input words and the second 16 output words must be the same.

Please make sure that your I / Q Areas for the Unidrive equal to the OB1 Process Image of your S7 PLC

Install the GSDML file (GSDML-V2.31-CT-UniDriveM-20161122.xml), provided by Promess. The “SI-PROFINET-DP” DP


slave is available in your “Catalog” window under “PROFINET-DP”, “Additional Field devices” and “Drives”.

Table 1-2 SI-PROFINET-DP configuration

Module Order Number / Designation I Address Q Address

16* User Defined 16-bit Read 16* User Defined 16-bit Read (16 IN Words) 256...287
V5 MOVE FB
B530
16* User Defined 16-bit Write 16* User Defined 16-bit Write (16 OUT Words) 256...287

"E_Startadr_PB1" input of function block FB530 must be of.exp 256

16* User Defined 16-bit Read 16* User Defined 16-bit Read (16 IN Words) 288...319
V5 DATA FB
B550
16* User Defined 16-bit Write 16* User Defined 16-bit Write (16 OUT Words 288...319

"E_Startadr_PB2" input of function block FB550 must be of.exp 288

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 12


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 FÜGEEINHEITEN
PROFINET / PROFIBUS – PROMESS S7 FB
Beispiel: HW Konfig (Profinet Unidrive M)

The addresses of the first 16 input words and the first 16 output words must be the same.
The addresses of the second 16 input words and the second 16 output words must be the same.
NOTE
!! Important: Please make sure that you don`t have a (IO Address) Gab between folowing Moduls 1-16 / 17-32 /33-48 / 49-64 !!

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 13


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.0.3 - FB530 Pre-configuration
NOTE To avoid FB Issues Please don´t use multiinstance DB Data Management

For the FB530 the following must be completed for proper operation:

“E_Startaddr_PB1/ I_Startaddr_PB1 " input:


This input must have the same value as the start address of the first 16 input words and the first 16 output words in your chosen
PLC configuration for assembly press (see section 1.1.2).

“T_Timeout_Bewegung / T_TIMER_Timeout_MOVE_FB " timer and “Z_Timeout_Bewegung / Z_VALUE_Timeout_MOVE_FB "


value:
The number and the value of this watchdog timer can be modified to check the runtime of joining program and movements for the
assembly press. If the assembly press runtime is abnormally too long then all the complex functions related to the motions are
stopped. An error then is set on the function block FB530 to indicate the fault (see section 2.1.10).
The value of " Z_Timeout_Bewegung / Z_VALUE_Timeout_MOVE_FB " must be greater than the runtime of the longest assembly
press joining programs.

" T_Timeout_Programmnummer / T_TIMER_Timeout_Program_No" timer and " Z_Timeout_Programmnummer /


Z_VALUE_Timeout_Program_No : " value:
The number and the value of this watchdog timer can be modified to check the runtime of uploading program into the drive. If the
uploading program is abnormally too long then the “UPLOAD PROGRAM" complex function is stopped. An error then is sets on the
function block FB530 to indicate the fault (see section 2.1.10).
The value of " (Z_Timeout_Programmnummer / Z_VALUE_Timeout_Program_No) " should be 10 s for normal operation.

“E_T_out_Beweg_abschalten / I_T_OUT_DISABLE_Timeout
" input: This input enable or disable the watchdog timer for the joining program and the motions of the assembly press.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 14


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.0.3.1 - FB550 Pre-configuration
NOTE To avoid FB Issues Please don´t use multiinstance DB Data Management

For the FB550 the following must be completed for proper operation:

“E_Startadr_PB2 / I_Startadr_PB2" Input:


This input must have the same value as the start address of the second 16 input words and the second 16 output words
in your chosen PLC configuration for assembly press (see section 1.1.2).

" T_Timeout_Werte / T_TIMER_Timeout_DATA_FB " timer and " Z_Timeout_Werte / Z_VALUE_Timeout_DATA_FB "
value:
The number and the value of this watchdog timer can be modified to check the runtime of data exchange between the
PLC and the assembly press. If the data exchange is abnormally too long then all the complex functions of the function
block FB550 are stopped. An error then is set on the function block FB550 to indicate the fault (see section 2.1.10).
The value of " Zeit (Z_Timeout_Werte / Z_VALUE_Timeout_DATA_FB) " should be 10 s for normal operation.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 15


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

2. -MOVE FB
FB530

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 16


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.1 - Function: HOMING

When the “A_REF_Bereit / O_READY_FOR_HOMING "output is set, the “Homing" function can be performed to run the homing routine. For
assembly press, a homing routine consists of retracting until it finds the absolute zero position.

When “A_Referenzanforderung / O_HOMING_REQ " output is set, the assembly press homing has to be performed before any other movements.

INPUT OUTPUTS
A_REF_Bereit / O_READY_FOR_HOMING
Ready to run the REFERENCE function

A_REF_Abgeschl_IO / O_HOMING_DONE_OK
Homing finished and function correctly performed
E_REF_Start / I_HOMING_Start
Run homing
A_REF_Abgeschl_NIO / O_HOMING_DONE_NOK
Function not correctly performed and homing aborted

A_Referenzanforderung / O_HOMING_REQ
Homing required

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 17


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.2 - Function: CYCLE
When the " A_ZYKL_STEP_Bereit / O_READY_FOR_CYCLE_STEP " Ready output is set, the "CYCLE" function can be performed to run the
entire joining program uploaded into the drive. The function is processed until the joining program end or up to the next Cycle Stop step performed
in the joining program.
The " A_ZYKL_STEP_IO / O_CYCLE_STEP_OK " and " A_ZYKL_END / O_CYCLE_END " outputs or " A_ZYKL_STOP / O_CYCLE_STOPPED "
output are simultaneously set when the running function is finished.

INPUTS OUTPUTS
A_ZYKL_STEP_Bereit /
O_READY_FOR_CYCLE_STEP
Ready to run the CYCLE function

A_ZYKL_STEP_IO / O_CYCLE_STEP_OK
Joining program finished and the function correctly
performed

E_ZYKLUS_Start / I_CYCLE_Start A_ZYKL_STEP_NIO / O_CYCLE_STEP_NOK


Run joining program Function not correctly performed and joining program
aborted

A_ZYKL_STOP / O_CYCLE_STOPPED
Joining program in a Cycle Stop state

A_ZYKL_END / O_CYCLE_END
Joining UFM program end reached

E_USER_INPUT / I_USER_INPUT A_USER_OUTPUT / O_USER_OUTPUT


Digital input(s) that can be set for the joining program Digital output(s) set by the joining program

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 18


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.3 - Function: PROGRAM NO LOAD
The “UPLOAD PROGRAM" function can upload a joining program stored on backup media PC or PDMS with program storage UFM 5.6.xx)) into
the drive.

Address number is assigned by Promess UFM software for each joining program stored on the backup media. The required joining program
number must be selected at the input " E_PROGRAMMNR / I_PROGRAMM_No_SELECT " before to use the upload command of this function.

When the " A_PRGNR_Bereit / O_READY_FOR_PRGNo_LOAD " Ready output is set, the “UPLOAD PROGRAM" function can be performed to
upload the selected joining program into the drive.

INPUTS OUTPUTS

A_PRGNR_Bereit / O_READY_FOR_PRGNo_LOAD
Ready to run the UPLOAD PROGRAM function
E_PROGRAMMNR_LADEN_Start /
I_PROGRAM_No_LOAD_Start
Upload selected joining program A_PRGNR_Abgeschl_IO/
O_PRGNo_LOAD_DONE_OK
Selected joining program uploaded and function correctly
performed

A_PRGNR_Abgeschl_NIO /
O_PRGNo_LOAD_DONE_NOK
Function not correctly performed and joining program
E_PROGRAMMNR / I_PROGRAMM_No_SELECT upload aborted
Number for joining program selection
A_aktive_Programmnr / O_Current_Program_No
Joining program number loaded currently

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 19


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.4 - Function: STEP
When the " A_ZYKL_STEP_Bereit / O_READY_FOR_CYCLE_STEP " Ready output is set, the "STEP" function can be performed to run steps of joining program
uploaded into the drive. Enable and disable the " E_STEP_Start / I_STEP_Start " input can be run step by step the joining program.

The " A_ZYKL_STEP_IO / O_CYCLE_STEP_OK " and " A_ZYKL_END / O_CYCLE_END " outputs or " A_ZYKL_STOP / O_CYCLE_STOPPED " output are
simultaneously set when the running function is finished.

INPUTS OUTPUTS
A_ZYKL_STEP_Bereit /
O_READY_FOR_CYCLE_STEP
Ready to run the STEP function

A_ZYKL_STEP_IO / O_CYCLE_STEP_OK
Joining program step finished and function correctly
performed

E_STEP_Start / I_STEP_Start A_ZYKL_STEP_NIO / O_CYCLE_STEP_NOK


Run joining program step Function not correctly performed and joining program step
aborted

A_ZYKL_STOP / O_CYCLE_STOPPED
Joining program in a Cycle Stop state

A_ZYKL_END / O_CYCLE_END
Joining program end reached11)

E_USER_INPUT / I_USER_INPUT A_USER_OUTPUT / O_USER_OUTPUT


Digital input(s) that can be set for the joining program Digital output(s) set by the joining program

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 20


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.5 - Function: MOVE
When the " A_MOVE_JOG_Bereit / O_READY_FOR_MOVE_JOG “ output is set, the "MOVE" functions can be performed to manually move the
assembly press ram until a target position.

For the "MOVE" function, the motion parameters can be set with the FB550 complex functions (see chapter 3.1.1 and 3.1.2). After completing the
“Move” function, the motion parameters are reset to their default values..

INPUT OUTPUTS
A_MOVE_JOG_Bereit /
O_READY_FOR_MOVE_JOG
Ready to run the MOVE function

A_MOVE_Abgeschl_IO /
E_MOVE_Start / I_MOVE_Start O_MOVE_FUNCTION_DONE_OK
Run manual motion to a target Position Target value reached and function correctly performed

A_MOVE_Abgeschl_NIO /
O_MOVE_FUNCTION_DONE_NOK
function not correctly performed and manual motion to the
target position aborted

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 21


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.6 - Function: JOG

When the " A_MOVE_JOG_Bereit / O_READY_FOR_MOVE_JOG " Ready output is set, the "JOG" function can be performed to manually move
the assembly press ram.The assembly press ram retracts if the " E_JOG_EINFAHREN_Start / I_JOG_RETRACT_Start " input is set or the
assembly press ram extends if the
" E_JOG_AUSFAHREN_Start / I_JOG_ADVANCE_Start " is set. These inputs must be disabled to stop the manual motion.

INPUTS OUTPUT

E_JOG_EINFAHREN_Start / I_JOG_RETRACT_Start
Retract the ram A_MOVE_JOG_Bereit /
O_READY_FOR_MOVE_JOG
E_JOG_AUSFAHREN_Start / Ready to run the JOG function
I_JOG_ADVANCE_Start
Extend the ram

NOTE The optional piezoelectric sensor remains in Reset mode when JOG manual motion is running.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 22


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.7 - abort MOVEMENT

“E_ABBRUCH_BEWEGUNGEN / I_ABORT_MOVEMENT " input:


If this input is set then all motion complex functions are aborted, the current motion is immediately stopped and an
associated error bit “O_xxx_DONE_NOK..." is enabled, a Homing will be required.
The " E_ABBRUCH_BEWEGUNGEN / I_ABORT_MOVEMENT " input must be disabled before performing a new motion
complex function.

“E_ABBRUCH_PROGRAMMNR / I_ABORT_PROGRAM_No " input:


If this input is set then “UPLOAD PROGRAM” complex function is aborted, the joining program upload is cancelled and
the associated error bit “A_PRGNR_Abgeschl_NIO / O_PRGNR_LOAD_DONE_NOK " is enabled.
The " E_ABBRUCH_PROGRAMMNR / I_ABORT_PROGRAM_No " input must be disabled before performing the
“UPLOAD PROGRAM” complex function.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 23


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.8 - Status Messages

“A_Referenzanforderung / O_HOMING_REQ" output:


When the " A_Referenzanforderung / O_HOMING_REQ " output is set, the "REFERENCE" complex function must be performed
before all other motion complex functions to make the assembly press homing.

“A_Bewegung_aktiv / O_MOVEMENT_ACTIVE" output:


This output is set when the assembly press joining program, homing or other motions is running.

“A_Teil_IO / O_PART_OK " and “A_Teil_NIO / O_PART_NOK" outputs:


These status outputs are set when the end or a Cycle Stop of the joining program is reached. Mainly, “A_Teil_IO / O_PART_OK ”
means good part and “A_Teil_NIO / O_PART_NOK ” means bad part. These outputs is enabled until a new start of the joining
program or homing and disabled when the joining program or homing is running. The " A_Teil_NIO / O_PART_NOK " status can be
analyzed with the “E_A_PB_EING_STATUS / I_O_PB_INPUT_STATUS-Doppelwort " double-word (see pages 23 and 24).

“A_aktive_Programmnr / O_Current_Program_No" output:


This output returns the joining program number uploaded currently by the PLC into the assembly press drive.

“A_operate_PIEZO_aktiv / O_operate_PIEZO" output:


The output is set when the optional piezoelectric load cell is in measuring mode. It is also set when the
“E_operate_PIEZO / I_operate_PIEZO " input is set to enable the piezoelectric load cell measurement for assembly press manual
motions.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 24


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.9 - Source read (live Values)
Three source signals can be selected simultaneously. These assembly press data signals are available to be read. (See fallowing table 2-1)
The assembly press current force and position are the most popular source signals used in assembly applications.

INPUTS OUTPUTS
A_QUELL_1_WERT_gueltig/
O_SOURCE_1_VALUE_VALID
E_QUELL_1_LESEN_IDX / Value of source signal 1 is valid and can be read
I_SOURCE_1_READ_IDX
Index selection of source signal 1 A_QUELL_1_WERT / O_SOURCE_1_VALUE
Value of the selected source signal 1

A_QUELL_2_WERT_gueltig/
O_SOURCE_2_VALUE_VALID
E_QUELL_2_LESEN_IDX / Value of source signal 2 is valid and can be read
I_SOURCE_2_READ_IDX
Index selection of source signal 2
A_QUELL_2_WERT / O_SOURCE_2_VALUE
Value of the selected source signal 2

A_QUELL_3_WERT_gueltig/
O_SOURCE_3_VALUE_VALID
E_QUELL_3_LESEN_IDX / Value of source signal 3 is valid and can be read
I_SOURCE_3_READ_IDX
Index selection of source signal 3 A_QUELL_3_WERT / O_SOURCE_3_VALUE
Value of the selected source signal 3

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 25


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

Table 2-1 E_QUELL_x_LESEN_IDX / I_SOURCE_x_READ_IDX source


signal selection

Binary Decimal Read source signal


0000001 1 Current position
0000010 2 Current force
0000011 3 Step cycle time
0000100 4 Virtual Input 1
0000101 5 Virtual Input 2
0000110 6 Virtual Input 3
0000111 7 Virtual Input 4
0001001 9 Slope
0001010 10 Slope 2
0001101 13 Virtual output 1
0001110 14 Virtual output 2

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 26


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.0.10 - Error Hessages

“E_A_STOERUNG / I_O_ERROR":
This bit is set when an error occurs while a complex function is running. When the next complex function is performed
successfully, this error bit is reset.

“E_A_FEHLERCODE / I_O_ERRORCODE": “E_A_FUNKTION / I_O_FUNCTION":


An error code is set in this byte when an error occurs A code is set in this byte to identify the running complex
while a complex function is running. function where the error occurs.
Table 2-2 Error codes of E_A_FEHLERCODE / I_O_ERRORCODE byte Table 2-3 Codes of E_A_FUNKTION / I_O_FUNCTION byte

Error code Description Code Complex function


1 The complex function aborted by the user. 1 REFERENCE
2 A PROFINET error aborted the complex function. 2 CYCLE
3 The complex function aborted by the Timeout. 3 STEP
4 The UFM software has received a homing request. 4 MOVE
The assembly press can’t start the joining program 5 UPLOAD PROGRAM
5 because no program has been uploaded into the
drive.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 27


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
“E_A_SCHRITT / I_O_STEP_IN_PLC":
The step number of the complex function is set in this byte when an error occurs.

“E_A_PB_EING_DW1 / I_O_PB_INPUT_DW1":
This double word returns the status of the first two PROFINET words of the assembly press when an error occurs while a
complex function is running.

"E_A_PB_AUSG_DW1 / I_O_PB_OUTPUT_DW1":
This double word returns the status of the first two PROFINET words of the PLC when an error occurs while a complex
function is running.

“E_A_PB_EING_STATUS / I_O_PB_INPUT_STATUS":
This double word stores some diagnostic bits (available in the following table 2-4) when a fault or an error occurs while
the joining program is running.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 28


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 2-4 Diagnostic bits of E_A_PB_EING_STATUS / I_O_PB_INPUT_STATUS double word

Bit Designation Description Bit Designation Description


15 STA_15 not used 31 STA_31 not used

14 STA_SConfig Sensor configuration problem. Offset upper than ± 10% on the zero point of signal 1
30 STA_Offset
(force).
13 STA_Motor Motor overload.
NOK status was set by step command in the joining
12 STA_PBUS PROMESS-BUS fault. 29 STA_ManNOK
program.
11 STA_Brake Optional brake problem. OK status was set by step command in the joining
28 STA_ManOK
program.
Conversion limit has been reached for the DMS
10 STA_ADC
amplifier. 27 STA_Math SM-Application module runtime error.
09 STA_DTrip triP occurs on the drive. 26 STA_Trigger Trigger fault.
08 STA_MReset SM-Application module Reset. 25 STA_Cbuffer Curve storage exceeded.
07 STA_MaxPos Assembly press maximum position reached. 24 STA_CLower Curve lower limit violated.
06 STA_FollowError Contouring error too large. 23 STA_CUpper Curve upper limit violated.
05 STA_Comp Strain compensation error. 22 STA_GRight Gauging right limit violated.
No joining program uploaded into the assembly press 21 STA_GLeft Gauging left limit violated.
04 STA_NoPrg
drive.
20 STA_GLower Gauging lower limit violated.
The PLC disabled the Start signal while the joining
03 STA_SLost
program is running. 19 STA_GUpper Gauging upper limit violated.

02 STA_EStop Emergency stop enabled. 18 STA_GMissed Gauging not captured.

01 STA_Ref Homing request while the joining program is running. 17 STA_NoSignal Force/Signal limit not reached.

Overload limit reached while the joining program is 16 STA_SEarly Force/ Signal limit too early.
00 STA_Ovl
running.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 29


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

2.1 -
Error Massage Move FB
(FB630)

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 30


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
2.2.1 - Error History
“E_STOERUNG / I_ERROR":
This bit is set when an error occurs while a complex function is running.

“E_TAG / I_DAY": “E_STUNDE / I_HOUR":


This byte is the day when the error occurred. This byte is the time when the error occurred.

“E_FEHLERCODE / I_ERRORCODE": “E_FUNKTION / I_FUNCTION":


An error code is set in this byte when an error occurred A code is set in this byte to identify the running complex
while complex function was running. function where the error occurs.

Table 2-5 Error codes of E_FEHLERCODE / I_ERRORCODE byte Table 2-6 Codes of E_FUNKTION / I_FUNCTION byte

Error code Description Code Complex function


1 The complex function aborted by the user. 1 REFERENCE
2 A PROFINET error aborted the complex function. 2 CYCLE
3 The complex function aborted by the Timeout. 3 STEP
4 The UFM software has received a homing request. 4 MOVE
The assembly press can’t start the joining program 5 UPLOAD PROGRAM
5 because no program has been uploaded into the
drive.

“E_SCHRITT / I_STEP":
The step number of the complex function is set in this byte when an error occurred.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 31


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
“E_PB_EING_DW1 / I_E_PB_INPUTS":
This double word returns the status of the first two Fieldbus words of the assembly press when an error occurred while a
complex function was running.

“E_PB_AUSG_DW1 / I_A_PB_OUTPUTS":
This double word returns the status of the first two Fieldbus words of the PLC when an error occurred while a complex
function was running.

“E_E_PB_EING_STATUS / I_A_PB_IN_STATUS":
This double word stores some diagnostic bits (available in the table 2-4) when a fault or an error occurred while the
joining program was running.

“E_DB_ADDR / I_DB_ADDR":
Data block (DB) number to store the errors in the history.

“E_DB_ANZAHL_EINTRAEGE / I_DB_NUMBER OF ENTRIES":


Maximum number of errors to be saved in the history.

“E_ABLAUF_RESET / I_PROCESS_RESET":
When this bit is set, the errors are saved in the history.

“E_DB_LOESCHEN / I_DB_DELETE":
when this bit is set, the history of saved errors is deleted.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 32


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

3. -DATA FB
FB550

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 33


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.1 - Function:
complexe
READ "MOVE"
: REFERENCE
PARAMETERS
When the " A_MOVE_PAR_LESEN_Bereit / O_MOVE_PAR_READ_READY " Ready output is set, the "READ MOVE PARAMETERS " function can be
performed to read the parameter data for "MOVE" complex function.

" E_M_PAR_QUELL_L_DB_ADDR / I_M_Par_Source_RD_DBaddr " and " E_M_PAR_QUEL_L_BYTE_ADDR / I_M_Par_Source_RD_Byaddr " inputs specify
the data block number and starting address for the stored parameter data to be read.

INPUTS OUTPUTS

E_MOVE_PAR_LESEN_Start / A_MOVE_PAR_LESEN_Bereit /
I_Move_Par_Read_Start O_MOVE_PAR_READ_READY
Start Read MOVE parameters Ready to run the READ MOVE PARAMETERS function

A_MOVE_PAR_LESEN_IO /
E_M_PAR_QUELL_L_DB_ADDR /
O_MOVE_PAR_READ_OK
I_M_Par_Source_RD_DBaddr
Data block (DB) number to store the parameter data. Reading of parameters finished and function correctly
performed

E_M_PAR_QUEL_L_BYTE_ADDR / A_MOVE_PAR_LESEN_NIO /
I_M_Par_Source_RD_BYaddr O_MOVE_PAR_READ_NOK
starting (byte) address of the selected data block Function not correctly performed and reading of parameters
(DB) to store the data. aborted

NOTE After each motion, some parameters reset to their default values.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 34


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Table 3-1 MOVE parameters 160 to 166 with
E_M_PAR_QUELL_L_DB_ADDR / I_M_Par_Source_RD_DBaddr = 551 and E_M_PAR_QUEL_L_BYTE_ADDR / I_M_Par_Source_RD_Byaddr = 0

Bits 0 to 3 Overload source signal selection:


1 = Position
2 = Force
4 = Virtual input 1
5 = Virtual input 2
6 = Virtual input 3
7 = Virtual input 4

Bits 4 & 5 Overload comparative operator selection:


Source 0=≥
Type Address Default value Description
parameter 1=≤
160 REAL DB551.DBD640 Current position Target position 2=≥±

Bits 6 to 9 Source signal selection for Mode 1:


161 REAL DB551.DBD644 Homing speed Motion speed
1 = Position
162 REAL DB551.DBD648 Homing overload Overload limit 2 = Force
4 = Virtual input 1
163 DINT DB551.DBD652 Configuration
5 = Virtual input 2
164 REAL DB551.DBD656 Target value for Mode 1 6 = Virtual input 3
7 = Virtual input 4
165 REAL DB551.DBD660 10 Hand wheel Ratio
Bits 10 & 11 Manual mode selection:
166 REAL DB551.DBD664 Acceleration
0 = Mode 0 : Movement to a position
1 = Mode 1 : Movement to reach a source signal value

Bit 12 Comparative operator selection for Mode 1 :


0=≥
1=≤

Bit 13 Signal behavior selection:


0 = Signal value increases
1 = Signal value decreases

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 35


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.2 - Function:
complexe
WRITE "MOVE"
: REFERENCE
PARAMETERS
When the " A_MOVE_PAR_SCHR_Bereit / O_MOVE_PAR_WRITE_READY" Ready output is set, the “WRITE MOVE PARAMETERS " function can be
performed to write the parameter data for "MOVE" complex function.

“E_M_PAR_QUELL_S_DB_ADDR / I_M_Par_Source_WR_Dbaddr " and " E_M_PAR_QUEL_S_BYTE_ADDR / I_M_Par_Source_WR_BYaddr " inputs specify
the data block number and starting address (byte) to write the parameter data.

INPUTS OUTPUTS

E_MOVE_PAR_SCHR_Start / A_MOVE_PAR_SCHR_Bereit /
I_Move_Par_Write_Start O_MOVE_PAR_WRITE_READY
Start Write MOVE parameters Ready to run the WRITE MOVE PARAMETERS function

A_MOVE_PAR_SCHR_IO /
E_M_PAR_QUELL_S_DB_ADDR / O_MOVE_PAR_WRITE_OK
I_M_Par_Source_WR_DBaddr
Data block (DB) number of stored parameter data. Writing of parameters finished and function correctly
performed

E_M_PAR_QUEL_S_BYTE_ADDR / A_MOVE_PAR_SCHR_NIO /
I_M_Par_Source_WR_BYaddr O_MOVE_PAR_WRITE_NOK
starting (byte) address of the selected data block Function not correctly performed and writing of parameters
(DB) to store the data. aborted

NOTE After each motion, some parameters reset to their default values.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 36


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Table 3-2 MOVE parameters 160 to 166 with
E_M_PAR_QUELL_S_DB_ADDR / I_M_Par_Source_WR_Dbaddr = 552 and E_M_PAR_QUEL_S_BYTE_ADDR / I_M_Par_Source_WR_Byaddr = 0

Bits 0 to 3 Overload source signal selection:


1 = Position
2 = Force
4 = Virtual input 1
5 = Virtual input 2
6 = Virtual input 3
7 = Virtual input 4

Bits 4 & 5 Overload comparative operator selection:


Source 0=≥
Type Address Default value Description
parameter 1=≤
160 REAL DB552.DBD640 Current position Target position 2=≥±

Bits 6 to 9 Source signal selection for Mode 1:


161 REAL DB552.DBD644 Homing speed Motion speed
1 = Position
162 REAL DB552.DBD648 Homing overload Overload limit 2 = Force
4 = Virtual input 1
163 DINT DB552.DBD652 Configuration
5 = Virtual input 2
164 REAL DB552.DBD656 Target value for Mode 1 6 = Virtual input 3
7 = Virtual input 4
165 REAL DB552.DBD660 10 Hand wheel Ratio
Bits 10 & 11 Manual mode selection:
166 REAL DB552.DBD664 Acceleration
0 = Mode 0 : Movement to a position
1 = Mode 1 : Movement to reach a source signal value

Bit 12 Comparative operator selection for Mode 1 :


0=≥
1=≤

Bit 13 Signal behavior selection:


0 = Signal value increases
1 = Signal value decreases

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 37


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
3.0.3 - Function: READ GAUGINGS
When the “A_MW_LESEN_Bereit / O_GAUGING_READ_READY " Ready output is set, the "READ GAUGINGS" function can be performed to read the gauging
data of the last joining program was running. 16 gaugings can be read at the same time.

“E_MW_LESEN_IDX / I_Gauging_Read_IDX " and “E_MW_Laenge / I_Gauging_Length " inputs specify the gauging(s) to be read.

“E_MW_LESEN_DB_ADDR / I_Gauging_Read_DB_ADDR " and “E_MW_LESEN_BYTE_ADDR / I_Gauging_Read_BYTE_ADDR " inputs specify the data block
number and starting address to store the gauging data. Each gauging can receive up to 7 double words.

INPUTS OUTPUTS

E_MW_LESEN_Start / I_Gauging_Read_Start
Read gaugings A_MW_LESEN_Bereit /
O_GAUGING_READ_READY
Ready to run the READ GAUGINGS function
E_MW_LESEN_IDX / I_Gauging_Read_IDX
Starting address (0 to 15) to select the
gauging to be read

E_MW_Laenge / I_Gauging_Length A_MW_LESEN_IO / O_MOVE_PAR_READ_OK


Number of gauging(s) to be read (1-16) Reading of gaugings finished and function correctly
performed
E_MW_LESEN_DB_ADDR /
I_Gauging_Read_DB_ADDR
Data block (DB) number to store the data.
A_MW_LESEN_NIO / O_MOVE_PAR_READ_NOK
E_MW_LESEN_BYTE_ADDR /
Function not correctly performed and reading of gaugings
I_Gauging_Read_BYTE_ADDR
aborted
starting (byte) address of the selected data block
(DB) to store the data.

NOTE The maximum value allowed for " E_MW_LESEN_IDX / I_Gauging_Read_IDX " and "E_MW_Laenge / I_Gauging_Length“ selection must be smaller than or equal to 16.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 38


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-3 Gaugings 1 and 16 with
E_MW_LESEN_DB_ADDR / I_Gauging_Read_DB_ADDR = 553 = and E_MW_LESEN_BYTE_ADDR / I_Gauging_Read_BYTE_ADDR = 0

Type Address Description Type Address Description

BOOL DB553.DBX3.0 If 1 then the value of the Y signal is recorded. BOOL DB553.DBX423.0 If 1 then the value of the Y signal is recorded.

If 0 then the result is OK (the recorded value is If 0 then the result is OK (the recorded value is
inside the limits). inside the limits).
BOOL DB553.DBX3.1 If 1 then the result is NOK (the recorded value is BOOL DB553.DBX423.1 If 1 then the result is NOK (the recorded value is
outside the limits). outside the limits).

BOOL DB553.DBX3.2 If 1 then the value has not been recorded. BOOL DB553.DBX423.2 If 1 then the value has not been recorded.

If 1 then the upper limit has bee violated by the If 1 then the upper limit has bee violated by the
BOOL DB553.DBX3.3 BOOL DB553.DBX423.3
recorded value. recorded value.

If 1 then the lower limit has bee violated by the If 1 then the lower limit has bee violated by the
BOOL DB553.DBX3.4 BOOL DB553.DBX423.4
recorded value. recorded value.

GAUGING 16
GAUGING 1

If 1 then the left limit has bee violated by the If 1 then the left limit has bee violated by the
BOOL DB553.DBX3.5 BOOL DB553.DBX423.5
recorded value. recorded value.

If 1 then the right limit has bee violated by the If 1 then the right limit has bee violated by the
BOOL DB553.DBX3.6 BOOL DB553.DBX423.6
recorded value. recorded value.

REAL DB553.DBD4 Start of Trigger for the recorded values. REAL DB553.DBD424 Start of Trigger for the recorded values.

REAL DB553.DBD8 End of Trigger for the recorded values. REAL DB553.DBD428 End of Trigger for the recorded values.

REAL DB553.DBD12 Upper limit monitoring for recorded value. REAL DB553.DBD432 Upper limit monitoring for recorded value.

REAL DB553.DBD16 Recorded value of the Y signal. REAL DB553.DBD436 Recorded value of the Y signal.

REAL DB553.DBD20 Lower limit monitoring for recorded value. REAL DB553.DBD440 Lower limit monitoring for recorded value.

REAL DB553.DBD24 Recorded value of the X signal. REAL DB553.DBD444 Recorded value of the X signal.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 39


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.4 - Function:
complexe
READ VARIABLES
: REFERENCE

When the " A_VAR_LESEN_Bereit / O_VAR_READ_READY " Ready output is set, the "READ VARIABLES" function can be performed to read the value of
variables of the last joining program was running. 58 local variables and 6 global variables can be read at the same time.

" E_VAR_LESEN_IDX / I_VAR_Read_IDX " and " E_VAR_LESEN_Laenge / I_VAR_Read_length " inputs specify the variable(s) to be read.
" E_VAR_LESEN_DB_ADDR / I_VAR_Read_DB_ADDR " and " E_VAR_LESEN_BYTE_ADDR / I_VAR_Read_BYTE_ADDR " inputs specify the data block
number and starting address to store the value of variables.

INPUTS OUTPUTS

E_VAR_LESEN_Start / I_VAR_Read_Start
Read variables A_VAR_LESEN_Bereit / O_VAR_READ_READY
Ready to run the READ VARIABLES function
E_VAR_LESEN_IDX / I_VAR_Read_IDX
Starting address (0 to 15) to select the
first variable to be read

A_VAR_LESEN_IO / O_VAR_READ_OK
E_VAR_LESEN_Laenge / I_VAR_Read_length Reading of variables finished and function correctly
Number of variable(s) to be read (1-16) performed

E_VAR_LESEN_DB_ADDR /
I_VAR_Read_DB_ADDR
Data block (DB) number to store the values.
A_VAR_LESEN_NIO / O_VAR_READ_NOK
E_VAR_LESEN_BYTE_ADDR /
Function not correctly performed and reading of variables
I_VAR_Read_BYTE_ADDR aborted
starting (byte) address of the selected data block
(DB) to store the data.

NOTE The maximum value allowed for "17) I_VAR_Read_IDX" and "18) I_VAR_Read_Langth" selection must be smaller than or equal to 64.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 40


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-4 Variables 1 to 64 with E_VAR_LESEN_DB_ADDR / I_VAR_Read_DB_ADDR = 554 and E_VAR_LESEN_BYTE_ADDR / I_VAR_Read_BYTE_ADDR = 0

Variable Type Address Variable Type Address Variable Type Address Variable Type Address

REAL REAL REAL REAL


1 DB554.DBD0 17 DB554.DBD64 33 DB554.DBD128 33 DB554.DBD192
Local Local Local Local

REAL REAL REAL REAL


2 DB554.DBD4 18 DB554.DBD68 34 DB554.DBD132 33 DB554.DBD194
Local Local Local Local

REAL REAL REAL REAL


3 DB554.DBD8 19 DB554.DBD72 35 DB554.DBD136 34 DB554.DBD198
Local Local Local Local

REAL REAL REAL REAL


4 DB554.DBD12 20 DB554.DBD76 36 DB554.DBD140 35 DB554.DBD202
Local Local Local Local

REAL REAL REAL REAL


11 DB554.DBD40 27 DB554.DBD104 43 DB554.DBD168 59 DB554.DBD230
Local Local Local Global

REAL REAL REAL REAL


12 DB554.DBD44 28 DB554.DBD108 44 DB554.DBD172 60 DB554.DBD234
Local Local Local Global

REAL REAL REAL REAL


13 DB554.DBD48 29 DB554.DBD112 45 DB554.DBD176 61 DB554.DBD238
Local Local Local Global

REAL REAL REAL REAL


14 DB554.DBD52 30 DB554.DBD116 46 DB554.DBD180 62 DB554.DBD242
Local Local Local Global

REAL REAL REAL REAL


15 DB554.DBD56 31 DB554.DBD120 47 DB554.DBD184 63 DB554.DBD246
Local Local Local Global

REAL REAL REAL REAL


16 DB554.DBD60 32 DB554.DBD124 48 DB554.DBD188 64 DB554.DBD250
Local Local Local Global

Local variables: Values unsaved after a program change, the closing of UFM software or the power down of the assembly press drive (values set to 0).
NOTE Global variables: Values saved after a program change, the closing of UFM software or the power down of the assembly press drive.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 41


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.5 - Function:
complexe
WRITE VARIABLES
: REFERENCE
When the " A_VAR_SCHR_Bereit / O_VAR_WRITE_READY " Ready output is set, the “WRITE VARIABLES" function can be performed to write values to the
variables for the next joining program to run. 58 local variables and 6 global variables can be write at the same time.

" E_VAR_SCHR_IDX / I_VAR_Write_IDX " and " E_VAR_SCHR_Laenge / I_VAR_Write_length " inputs specify the variable(s) to be write.
" E_VAR_SCHR_DB_ADDR / I_VAR_Write_DB_ADDR " and " E_VAR_SCHR_BYTE_ADDR / I_VAR_Write_BYTE_ADDR " inputs specify the data block number
and starting address where the value of variables are stored.

INPUTS OUTPUTS

E_VAR_SCHR_Start / I_VAR_Write_Start
Start Write variables A_VAR_SCHR_Bereit / O_VAR_WRITE_READY
Ready to run the WRITE VARIABLES function
E_VAR_SCHR_IDX / I_VAR_Write_IDX
Starting address (0 to 15) to select the
first variable to be write

A_VAR_SCHR_IO / O_VAR_WRITE_OK
E_VAR_SCHR_Laenge / I_VAR_Write_length Writing of variables finished and function correctly
Number of variable(s) to be write (1-16) performed

E_VAR_SCHR_DB_ADDR / I_VAR_Write_DB_ADDR
Data block (DB) number of stored values.
A_VAR_SCHR_NIO / O_VAR_WRITE_NOK
E_VAR_SCHR_BYTE_ADDR / Function not correctly performed and writing of variables
I_VAR_Write_BYTE_ADDR aborted
starting (byte) address of the selected data block
(DB) to store the data.

The maximum value allowed for " E_VAR_SCHR_IDX / I_VAR_Write_IDX " and " E_VAR_SCHR_Laenge / I_VAR_Write_length " selection must be smaller than
NOTE or equal to 64.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 42


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-5 Variables 1 to 64 with E_VAR_SCHR_DB_ADDR / I_VAR_Write_DB_ADDR = 555 and E_VAR_SCHR_BYTE_ADDR / I_VAR_Write_BYTE_ADDR =0

Variable Type Address Variable Type Address Variable Type Address Variable Type Address

REAL REAL REAL REAL


1 DB555.DBD0 17 DB555.DBD64 33 DB555.DBD128 33 DB555.DBD192
Local Local Local Local

REAL REAL REAL REAL


2 DB555.DBD4 18 DB555.DBD68 34 DB555.DBD132 33 DB555.DBD194
Local Local Local Local

REAL REAL REAL REAL


3 DB555.DBD8 19 DB555.DBD72 35 DB555.DBD136 34 DB555.DBD198
Local Local Local Local

REAL REAL REAL REAL


4 DB555.DBD12 20 DB555.DBD76 36 DB555.DBD140 35 DB555.DBD202
Local Local Local Local

REAL REAL REAL REAL


11 DB555.DBD40 27 DB555.DBD104 43 DB555.DBD188 59 DB555.DBD230
Local Local Local Global

REAL REAL REAL REAL


12 DB555.DBD44 28 DB555.DBD108 44 DB555.DBD172 60 DB555.DBD234
Local Local Local Global

REAL REAL REAL REAL


13 DB555.DBD48 29 DB555.DBD112 45 DB555.DBD176 61 DB555.DBD238
Local Local Local Global

REAL REAL REAL REAL


14 DB555.DBD52 30 DB555.DBD116 46 DB555.DBD180 62 DB555.DBD242
Local Local Local Global

REAL REAL REAL REAL


15 DB555.DBD56 31 DB555.DBD120 47 DB555.DBD184 63 DB555.DBD246
Local Local Local Global

REAL REAL REAL REAL


16 DB555.DBD60 32 DB555.DBD124 48 DB555.DBD188 64 DB555.DBD250
Local Local Local Global

Local variables: Values unsaved after a program change, the closing of UFM software or the power down of the assembly press drive (values set to 0).
NOTE Global variables: Values saved after a program change, the closing of UFM software or the power down of the assembly press drive.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 43


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.6 - Function:
complexe
READ ID: REFERENCE
CODE
The ID code can contain up to 120 ASCII characters. The ID code consists of three parts (ID 1, ID 2 and ID 3), ID 1 and ID 2 can contain 20 ASCII
characters and ID 3 can contain 80 ASCII characters. Each ID part can be read independently or together.
When the " A_ID_LESEN_Bereit / O_ID_READ_READY " output is set, the “READ ID CODE" function can be performed to read the ID code
characters.
The " E_ID_LESEN_IDX / I_ID_Read_IDX " input specifies the number of ID parts to be read at the same time.
" E_ID_LESEN_DB_ADDR / I_ID_Read_DB_ADDR " and " E_ID_LESEN_BYTE_ADDR / I_ID_Read_BYTE_ADDR " inputs specify the data block
number and starting address to store the ID code characters.

INPUTS OUTPUTS

E_ID_LESEN_Start / I_ID_Read_Start
Read ID code A_ID_LESEN_Bereit / O_ID_READ_READY
Ready to run the READ ID CODE function
E_ID_LESEN_IDX / I_ID_Read_IDX
Number (0-2) of ID parts (ID 1 to ID 3) to be read
together
A_ID_LESEN_IO / O_ID_READ_OK
Reading of ID code finished and function correctly
E_ID_LESEN_DB_ADDR / I_ID_Read_DB_ADDR performed
Data block (DB) number to store the ID characters

E_ID_LESEN_BYTE_ADDR / A_ID_LESEN_NIO / O_ID_READ_NOK


I_ID_Read_BYTE_ADDR Function not correctly performed and reading of ID code
starting (byte) address of the selected data block aborted
(DB) to store the data.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 44


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-6 ID CODE with E_ID_LESEN_DB_ADDR / I_ID_Read_DB_ADDR = 556 and E_ID_LESEN_BYTE_ADDR / I_ID_Read_BYTE_ADDR = 0

Character Type Address Character Type Address Character Type Address

1 CHAR DB556.DBB0 1 CHAR DB556.DBB20 1 CHAR DB556.DBB40

2 CHAR DB556.DBB1 2 CHAR DB556.DBB21

3 CHAR DB556.DBB2 3 CHAR DB556.DBB22

4 CHAR DB556.DBB3 4 CHAR DB556.DBB23

5 CHAR DB556.DBB4 5 CHAR DB556.DBB24 20 CHAR DB556.DBB59

6 CHAR DB556.DBB5 6 CHAR DB556.DBB25

7 CHAR DB556.DBB6 7 CHAR DB556.DBB26

8 CHAR DB556.DBB7 8 CHAR DB556.DBB27


ID CODE

9 CHAR DB556.DBB8 9 CHAR DB556.DBB28

10 CHAR DB556.DBB9 10 CHAR DB556.DBB29 40 CHAR DB556.DBB79


ID1

ID2

ID3
11 CHAR DB556.DBB10 11 CHAR DB556.DBB30

12 CHAR DB556.DBB11 12 CHAR DB556.DBB31

13 CHAR DB556.DBB12 13 CHAR DB556.DBB32

14 CHAR DB556.DBB13 14 CHAR DB556.DBB33

15 CHAR DB556.DBB14 15 CHAR DB556.DBB34 60 CHAR DB556.DBB99

16 CHAR DB556.DBB15 16 CHAR DB556.DBB35

17 CHAR DB556.DBB16 17 CHAR DB556.DBB36

18 CHAR DB556.DBB17 18 CHAR DB556.DBB37

19 CHAR DB556.DBB18 19 CHAR DB556.DBB38

20 CHAR DB556.DBB19 20 CHAR DB556.DBB39 80 CHAR DB556.DBB119

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 45


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.7 - Function:
complexe
WRITE ID
: REFERENCE
CODE
The ID code can contain up to 120 ASCII characters. The ID code consists of three parts (ID 1, ID 2 and ID 3), ID 1 and ID 2 can contain 20 ASCII
characters and ID 3 can contain 80 ASCII characters. Each ID part can be write independently or together.
When the " A_ID_SCHR_Bereit / O_ID_WRITE_READY " Ready output is set, the “READ ID CODE" function can be performed to read the ID
code characters.
The " E_ID_SCHR_IDX / I_ID_Write_IDX " input specifies the number of ID parts to be read at the same time.
E_ID_SCHR_DB_ADDR / I_ID_Write_DB_ADDR " and " E_ID_SCHR_BYTE_ADDR / I_ID_Write_BYTE_ADDR " inputs specify the data block
number and starting address where the ID code characters are stored.

INPUTS OUTPUTS

E_ID_SCHR_Start / I_ID_Write_Start
Write ID code A_ID_SCHR_Bereit / O_ID_WRITE_READY
Ready to run the WRITE ID CODE function
E_ID_SCHR_IDX / I_ID_Write_IDX
Number (0-2) of ID parts (ID 1 to ID 3) to be write
together

A_ID_SCHR_IO / O_ID_WRITE_OK
Writing of ID code finished and function correctly performed
E_ID_SCHR_DB_ADDR / I_ID_Write_DB_ADDR
Data block (DB) number of stored ID characters

E_ID_SCHR_BYTE_ADDR /
A_ID_SCHR_NIO / O_ID_WRITE_NOK
I_ID_Write_BYTE_ADDR
Function not correctly performed and writing of ID code
aborted
starting (byte) address of the selected data block
(DB) to store the data.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 46


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-7 ID CODE with E_ID_SCHR_DB_ADDR / I_ID_Write_DB_ADDR = 557 and E_ID_SCHR_BYTE_ADDR / I_ID_Write_BYTE_ADDR = 0

Character Type Address Character Type Address Character Type Address

1 CHAR DB557.DBB0 1 CHAR DB557.DBB20 1 CHAR DB557.DBB40

2 CHAR DB557.DBB1 2 CHAR DB557.DBB21

3 CHAR DB557.DBB2 3 CHAR DB557.DBB22

4 CHAR DB557.DBB3 4 CHAR DB557.DBB23

5 CHAR DB557.DBB4 5 CHAR DB557.DBB24 20 CHAR DB557.DBB59

6 CHAR DB557.DBB5 6 CHAR DB557.DBB25

7 CHAR DB557.DBB6 7 CHAR DB557.DBB26

8 CHAR DB557.DBB7 8 CHAR DB557.DBB27


ID CODE

9 CHAR DB557.DBB8 9 CHAR DB557.DBB28

10 CHAR DB557.DBB9 10 CHAR DB557.DBB29 40 CHAR DB557.DBB79


ID1

ID2

ID3
11 CHAR DB557.DBB10 11 CHAR DB557.DBB30

12 CHAR DB557.DBB11 12 CHAR DB557.DBB31

13 CHAR DB557.DBB12 13 CHAR DB557.DBB32

14 CHAR DB557.DBB13 14 CHAR DB557.DBB33

15 CHAR DB557.DBB14 15 CHAR DB557.DBB34 60 CHAR DB557.DBB99

16 CHAR DB557.DBB15 16 CHAR DB557.DBB35

17 CHAR DB557.DBB16 17 CHAR DB557.DBB36

18 CHAR DB557.DBB17 18 CHAR DB557.DBB37

19 CHAR DB557.DBB18 19 CHAR DB557.DBB38

20 CHAR DB557.DBB19 20 CHAR DB557.DBB39 80 CHAR DB557.DBB119

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 47


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.8 - Function:
complexe
READ SOURCES
: REFERENCE
When the " A_QUELL_LESEN_Bereit / O_SOURCE_READ_READY " Ready output is set, the function "READ SOURCES" can be performed to read up to 255
source parameters from the assembly press. Each source parameters can be read independently or together .

" E_QUELL_LESEN_IDX / I_Source_Read_IDX " and " E_QUELL_LESEN_Laenge / I_Source_Read_Length " inputs specify the source parameter(s) to be read.
" E_M_PAR_QUELL_L_DB_ADDR / I_M_Par_Source_RD_DBaddr " and " E_M_PAR_QUEL_L_BYTE_ADDR / I_M_Par_Source_RD_BYaddr " inputs specify
the data block number and starting address to store the source parameters.

INPUTS OUTPUTS
E_QUELL_LESEN_Start / I_Source_Read_Start
Start Read source parameters A_QUELL_LESEN_Bereit /
O_SOURCE_READ_READY
E_QUELL_LESEN_IDX / I_Source_Read_IDX Ready to run the READ SOURCES function
Starting address (0 to 254) to select the
first source parameter to be read

A_QUELL_LESEN_IO / O_SOURCE_READ_OK
E_QUELL_LESEN_Laenge / I_Source_Read_Length
Reading of source parameters finished and function
Number of source parameter(s) to be read (1 to 255)
correctly performed

E_M_PAR_QUELL_L_DB_ADDR /
I_M_Par_Source_RD_DBaddr
Data block (DB) number to store the source parameters
A_QUELL_LESEN_NIO / O_SOURCE_READ_NOK
E_M_PAR_QUELL_L_BYTE_ADDR / Function not correctly performed and reading of source
I_M_Par_Source_RD_BYaddr parameters aborted
starting (byte) address of the selected data block
(DB) to store the data.

The maximum value allowed for "35) I_Source_Read_IDX" and "36) I_Source_Read_Langth" selection must be smaller than or equal to 255.
NOTE If the addressing is incorrect, no source signals will be read and an error message will appear.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 48


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-8 Source signals with
E_M_PAR_QUELL_L_DB_ADDR / I_M_Par_Source_RD_DBaddr = 551 and
E_M_PAR_QUEL_L_BYTE_ADDR /_M_Par_Source_RD_BYaddr = 0

Signal source Type Address Description Virtual output 2 REAL DB551.DBD56

Not used REAL DB551.DBD0 Not used REAL

Current position REAL DB551.DBD4 160 REAL DB551.DBD640 Target position*

Current load REAL DB551.DBD8 161 REAL DB551.DBD644 Motion speed*

Execution time of step REAL DB551.DBD12 162 REAL DB551.DBD648 Overload limit

Virtual input 1 REAL DB551.DBD16 163 DINT DB551.DBD652 Configuration

Virtual input 1 REAL DB551.DBD20 164 REAL DB551.DBD656 Target value for Mode 1

Virtual input 1 REAL DB551.DBD24 165 REAL DB551.DBD660 Hand wheel Ratio*

Virtual input 1 REAL DB551.DBD28 166 REAL DB551.DBD664 Acceleration

Not used REAL Not used REAL

Virtual output 1 REAL DB551.DBD52 Not used REAL DB551.DBD1020

NOTE Source signal 163 cannot be read using this function because this would lead to an incorrect interpretation

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 49


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
1.1 - Fonction
3.0.9 - Function:
complexe
WRITE SOURCES
: REFERENCE
When the " A_QUELL_SCHR_Bereit / O_SOURCE_WRITE_READY " Ready output is set, the function “WRITE SOURCES" can be performed to write up to 255
values signals to source parameters. Each value can be write independently or together .

" E_QUELL_SCHR_IDX / I_Source_Write_IDX " and " E_QUELL_SCHR_Laenge / I_Source_Write_length " inputs specify the source parameter(s) to be write.
" E_M_PAR_QUELL_S_DB_ADDR / I_M_Par_Source_WR_DBaddr " and " E_M_PAR_QUELL_S_BYTE_ADDR / I_M_Par_Source_RD_BYaddr " inputs specify
the data block number and starting address where the value of source parameters are stored.

INPUTS OUTPUTS

E_QUELL_SCHR_Start / I_Source_Write_Start
Start Write source parameters A_QUELL_SCHR_Bereit /
O_SOURCE_WRITE_READY
E_QUELL_SCHR_IDX / I_Source_Write_IDX Ready to run the WRITE SOURCES function
Starting address (0 to 254) to select the
first source parameter to be write

E_QUELL_SCHR_Laenge / I_Source_Write_length A_QUELL_SCHR_IO / O_SOURCE_WRITE_OK


Number of source parameter(s) to be write (1 to 255) Writing of source parameters finished and function
correctly performed
E_M_PAR_QUELL_S_DB_ADDR /
I_M_Par_Source_WR_DBaddr
Data block (DB) number of stored source parameters

E_M_PAR_QUELL_S_BYTE_ADDR / A_QUELL_SCHR_NIO / O_SOURCE_WRITE_NOK


I_M_Par_Source_WR_BYaddr Function not correctly performed and writing of source
parameters aborted
starting (byte) address of the selected data block
(DB) to store the data.

The maximum value allowed for "38) I_Source_Write_IDX" and "39) I_Source_Write_Langth" selection must be smaller than or equal to 255.
NOTE If the addressing is incorrect, no source signals will be read and an error message will appear.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 50


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
Tables 3-9 Source signals with
E_M_PAR_QUELL_S_DB_ADDR / I_M_Par_Source_WR_Dbaddr = 552 and
E_M_PAR_QUELL_S_BYTE_ADDR / I_M_Par_Source_RD_BYaddr = 0

Signal source Type Address Description Virtual output 2 REAL DB552.DBD56

Not used REAL DB552.DBD0 Not used REAL

Current position REAL DB552.DBD4 160 REAL DB552.DBD640 Target position*

Current load REAL DB552.DBD8 161 REAL DB552.DBD644 Motion speed*

Execution time of step REAL DB552.DBD12 162 REAL DB552.DBD648 Overload limit

Virtual input 1 REAL DB552.DBD16 163 DINT DB552.DBD652 Configuration

Virtual input 1 REAL DB552.DBD20 164 REAL DB552.DBD656 Target value for Mode 1

Virtual input 1 REAL DB552.DBD24 165 REAL DB552.DBD660 Hand wheel Ratio*

Virtual input 1 REAL DB552.DBD28 166 REAL DB552.DBD664 Acceleration

Not used REAL Not used REAL

Virtual output 1 REAL DB552.DBD52 Not used REAL DB552.DBD1020

NOTE To write the source parameters for “MOVE” function, the “WRITE MOVE PARAMETERS” must be used. Otherwise, source parameter 163 might be misinterpreted

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 51


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
3.0.10 - Interrupt request (abort Function)

“E_ABBRUCH_DATEN / I_Abort_Data_Transmition" input:


If this input is set then all data exchange complex functions are aborted.
The running function is stopped and the associated error bit “I_xxx_xxx_NIO / O_ ... _..._NOK" is enabled.

The " “E_ABBRUCH_DATEN / I_Abort_Data_Transmition


" input must be disabled before performing a new complex function of data exchange.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 52


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
3.1.11 - Error Messages
“E_A_STOERUNG / I_O_ERROR":
This bit is set when an error occurs while a complex function is running. When the next complex function is performed
successfully, this error bit is reset.

“E_A_FEHLERCODE / I_O_ERRORCODE": “E_A_FUNKTION / I_O_FUNCTION":


An error code is set in this byte when an error occurs A code is set in this byte to identify the running complex
while a complex function is running. function where the error occurs.
Table 3-10 Error codes of IN_OUT_ERRORCODE byte Table 3-11 Codes of IN_OUT_FUNCTION byte

Error Code Complex Function


Description
code
6 READ "MOVE" PARAMETER
1 The complex function aborted by the user.
7 WRITE "MOVE" PARAMETER
2 A PROFINET error aborted the complex function.
8 READ GAUGINGS
3 The complex function aborted by the Timeout.
9 READ VARIABLES
10 The " E/ I_..._..._IDX" input value is higher than allowed.
10 WRITE VARIABLES
11 The " E/ I_..._..._Leange/Lenght" input value is 0.
11 READ ID CODE
The " E/ I_..._..._Leange/Lenght" input value is higher than
12 12 WRITE ID CODE
allowed.
The maximum allowable value is exceeded for " E/ 13 READ SOURCES
13 I_..._..._IDX" and The " E/ I_..._..._Leange/Lenght" input 14 WRITE SOURCES
selection.
14 The prohibited source parameter 163 was addressed.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 53


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

“E_A_SCHRITT / I_O_STEP_IN_PLC":
The step number of the complex function is set in this byte when an error occurs.

“E_A_PB_EINGAENGE ":
PB Interface (INPUTS)

“E_A_PB_AUSGAENGE / I_A_PB_OUTPUTS":
PB Interface (OUTPUTS)

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 54


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

3.1 - Error Massages DATA FB


(FB650)

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 55


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
3.1.1 - Error History
“E_STOERUNG / I_ERROR ":
This bit is set when an error occurs while a complex function is running.

“E_TAG / I_DAY ": “E_STUNDE / I_HOUR":


This byte is the day when the error occurred. This byte is the time when the error occurred.

“E_FEHLERCODE / I_ERRORCODE": “E_FUNKTION / I_FUNCTION":


An error code is set in this byte when an error occurred A code is set in this byte to identify the running complex
while complex function was running. function where the error occurs.
Table 3-12 Error codes of IN_OUT_ERRORCODE byte Table 3-13 Codes of IN_OUT_FUNCTION byte

Error Code Complex Function


Description
code
6 READ "MOVE" PARAMETER
1 The complex function aborted by the user.
7 WRITE "MOVE" PARAMETER
2 A PROFINET error aborted the complex function.
8 READ GAUGINGS
3 The complex function aborted by the Timeout.
9 READ VARIABLES
10 The " I_..._..._IDX " input value is higher than allowed.
10 WRITE VARIABLES
11 The " I_..._..._Lenght " input value is 0.
11 READ ID CODE
12 The "I_..._..._Lenght " " input value is higher than allowed.
12 WRITE ID CODE
The maximum allowable value is exceeded for " I...IDX "
13 13 READ SOURCES
and The “ I_..._..._Lenght " input selection.
14 The prohibited source parameter 163 was addressed. 14 WRITE SOURCES

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 56


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
“E_SCHRITT / I_STEP":
The step number of the complex function is set in this byte when an error occurred.

“E_PB_EINGAENGE / I_E_PB_INPUTS":
Not available at the moment...

“E_A_PB_AUSGAENGE / I_A_PB_OUTPUTS":
Not available at the moment ...

“E_DB_ADDR / I_DB_ADDR":
Data block (DB) number to store the errors in the history.

“E_DB_ANZAHL_EINTRAEGE / I_DB_NUMBER OF ENTRIES":


Maximum number of errors to be saved in the history.

“E_ABLAUF_RESET / I_PROCESS_RESET":
When this bit is set, the errors are saved in the history.

“E_DB_LOESCHEN / I_DB_DELETE":
when this bit is set, the history of saved errors is deleted.

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 57


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS

4. - FLOWCHARTS

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 58


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
4.2.1 - Example 1

Start

NO
Read and write YES CYCLE OK ?
variables allowed?
YES
Motion YES NO
authorization?
NO Disable the interrupt input of data Read gaugings YES
exchange functions allowed?

NO
Disable the interrupt input of
motion functions
READ VARIABLES
Disable interrupt input of data exchange
functions

Homing NO NO
VARIABLES OK ?
request?
YES
YES READ GAUGINGS

REFERENCE WRITE VARIABLES

READ GAUGINGS NO
OK?
NO REFERENCE NO
VARIABLES OK ?
OK? YES
YES
YES

CYCLE Results

Optional feature

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 59


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de
PROMESS UFM V5 ASSEMBLY UNITS
PROFINET / PROFIBUS – PROMESS S7 FUNCTION BLOCKS
4.2.2 - Example 2

Start

YES Disable interrupt input of data


Good program? exchange functions
NO
Motion YES
authorization?
Upload program YES
NO READ ID CODE
allowed?
NO
Disable interrupt input of YES
motion functions ID code OK?
Disable interrupt input of uploading
program function NO

WRITE ID CODE
Homing NO
UPLOAD PROGRAM
request?
YES NO
ID code OK?

REFERENCE NO YES
UPLOAD OK?

YES CYCLE

NO REFERENCE
OK ? NO
Reading and Writing CYCLE OK?
YES NO
the ID code YES
allowed?
YES
Optional feature Results

S7 PROFINET / PROFIBUS Function Block Guide for UFM V5 Assembly Units 60


Promess Gesellschaft für Montage- und Prüfsysteme • Nunsdorfer Ring 29 • D-12277 Berlin • Tel : +49 (0)/30 / 62 88 72 0 • Fax : +49 (0)30 / 62 88 72 59
promess@promessmontage.de • www.promessmontage.de

You might also like