Document text
SIEMENS
FM 458-1 DP
Function Blocks
Manual
Edition 12.2004
Contents, Foreword
Input/output blocks
Communication blocks
Service-/diagnostic blocks
SIMOLINK blocks
Closed-loop control blocks
= i
O
=
ö
z
fo]
fa)
A
ø
ndex
Safety guidelines
/\ DANGER
/N WARNING
/N CAUTION
CAUTION
NOTICE
Correct usage
Trademarks
This Manual contains notices which you should observe to ensure your own personal
safety, as well as to protect the product and connected equipment. These notices are
highlighted in the Manual by a warning triangle and are marked as follows according to
the level of danger:
indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
used with the safety alert symbol indicates a potentially hazardous situation which, if not
avoided, may result in minor or moderate injury.
used without safety alert symbol indicates a potentially hazardous situation which, if not
avoided, may result in property damage.
used without the safety alert symbol indicates a potential situation which, if not avoided,
may result in an undesireable result or state.
Note the following:
This device and its components may only be used for the applications described in the
catalog or the technical description, and only in connection with devices or components
from other manufacturers which have been approved or recommended by Siemens.
SIMATIC® and SIMADYN DØ are registered trademarks of Siemens AG.
Third parties using for their own purposes any other names in this document which refer
to trademarks might infringe upon the rights of the trademark owners.
Copyright © SIEMENS AG 2004 All rights reserved
The reproduction, transmission or use of this document or its
contents is not permitted without express written authority.
Offenders will be liable for damages. All rights, including rights
created by patent grant or registration of a utility model or design,
are reserved.
Siemens AG
A&D
Frauenauracher Straße 80
91056 Erlangen
Siemens Aktiengesellschaft
Disclaimer of liability
We have checked the contents of this manual for agreement with
the hardware and software described. Since deviations cannot be
precluded entirely, we cannot guarantee full agreement.
However, the data in this manual are reviewed regularly and any
necessary corrections included in subsequent editions.
Suggestions for improvement are welcomed.
© Siemens AG 2004
Technical data subject to change.
Editions
NOTE
Overview
(chapter editions)
FM 458-1 DP
Manual
Function Blocks
Edition 12.2004
Please note that the current edition of this documentation contains
different editions of the individual chapters. The following overview tells
you when a chapter was revised the last time.
Chapter
Foreword
Input/output blocks
Communication blocks
Logic blocks
Service-/diagnostic blocks
SIMOLINK drive coupling
Closed-loop control blocks
Function Blocks - FM 458-1 DP
Edition 12.2004
Edition 12.2004
Edition 12.2004
Edition 12.2004
Foreword
Purpose of this
Manual
Basic knowledge
required
Validity of the
Manual
Additional support
Training Center
NOTE
This Manual explains the principle use and functions of the STEP 7
automation software with the main focus on the appropriate technological
and drive control components T400, FM 458-1 DP, SIMADYN D,
SIMATIC TDC or D7-SYS.
TDC: Technology and Drives Control
This Manual addresses programmers and commissioning engineers.
General knowhow regarding automation technology is required in order to
understand the contents of the Manual
This Manual is valid for SIMATIC D7-SYS Version 6.2.
If you have questions relating to the use of the products described in the
Manual, which cannot be answered here, then please contact your local
Siemens office. You can also call the Hotline:
e Tel.: +49 (180) 5050-222
e Fax: +49 (180) 5050-223
e e-mail: [email protected]
Appropriate training courses are available in order to make it easier to get
to know the SIMADYN D automation system. Please contact the central
Training Center in D-Erlangen (1&S IS INA TC):
e Tel.: +49 (9131) 7-27689, -27972
e Fax: +49 (9131) 7-28172
e Internet: |www.siemens.de/sibrain
e Intranet: | http://info-tc.erlm.siemens.de/
This user part of the Manual does not include any detailed
information/instructions with individual descriptions, but is only intended
to provide a basic procedure. More detailed information on the dialog
boxes in the software and how they are handled is provided in the
appropriate online help.
Function Blocks - FM 458-1 DP iii
Edition 12.2004
Foreword
Information
This manual is part of the overall documentation for the technological and
drive control components T400, FM 458, SIMADYN D, SIMATIC TDC
overview and SIMATIC D7-SYS:
System and
communications
configuring D7-SYS
STEP 7 option packages
for D7-SYS
Hardware
Function blocks
The first project in a few steps
This Section provides an extremely simple entry into the methodology when
assembling and programming the SIMATIC TDC/SIMADYN D control
system. It is especially conceived for first-time users of a control system.
System software
This Section provides basic know-how about the structure of the operating
system and an application program of a CPU. It should be used to obtain an
overview of the programming methodology, and basis for configuring user
programs.
Communications configuring
This section provides you with basic know-how about the communication
possibilities and how you configure links to the communication partners.
Changeover from STRUC V4.x to D7-SYS
Essential features are included in this section, which have changed over
STRUC V4.x with the introduction of SIMATIC D7-SYS.
Basis software
This section explains the essential use and the functions of the STEP 7
automation software. For first users, it provides an overview on configuring,
programming and commissioning a station.
When working with the basis software, you can access the online help which
provides you with support when it comes to detailed questions on using the
software.
CFC
The CFC language (Continuous Function Chart) allows you to graphically
interconnect blocks.
When working with the particular software, you can also use the online help
which can answer detailed questions regarding the use of the
editors/compiler.
SFC
Configuring sequence controls using SFC (Sequential Function Chart) of
SIMATIC S7.
In the SFC editor, you generate a sequence chart using graphic resources.
The SFC elements of the chart are then positioned according to specific
rules.
The complete hardware spectrum is described as reference in this Manuals.
These Reference Manuals provide you with an overview of selected function
blocks for the associated technological and drive control components T400,
FM 458-1 DP, SIMADYN D and SIMATIC TDC.
Function Blocks - FM 458-1 DP
Edition 12.2004
Foreword
Guide Ås first time user, we recommend that this Manual is used as follows:
e Please read the first section on using the software in order to get to
know some of the terminology and basic procedure.
e Then use the particular sections of the Manual if you wish to carry-out
certain processing steps (e.g. loading programs).
If you have already executed a small project, and have gained some
experience, then you can read individual sections of the Manual in order
to get up to speed about a specific subject.
A&D Technical Can be accessed globally at any time of the day:
Support
World-wide (Nurnberg)
Technical Support
Local time: 0:00 to 24:00 / 365 days
Phone: +49 (180) 5050-222
Fax: +49 (180) 5050-22:
GMT: +1:00
Europe / Africa (Nurnberg) United States (Johnson City) Asia / Australia (Peking)
Authorization Technical Support and Technical Support and
Authorization Authorization
Local time: Mo.-Fr. 8:00 to 17:00 Local time: Mo.-Fr. 8:00 to 17:00 Local time: Mo.-Fr. 8:00 to 17:00
Phone: +49 (180) 5050-222 Phone: +1 (423) 262 2522 Phone: +86 10 64 75 75 75
Fax: +49 (180) 5050-223 Fax: +1 (423) 262 2289 Fax: +86 10 64 74 74 74
E-Mail: [email protected] | | E-Mail: [email protected] | | E-Mail: [email protected]
GMT: +1:00 GMT: -5:00 GMT: +8:00
Technical Support and Authorization speak generally German and English.
Function Blocks - FM 458-1 DP V
Edition 12.2004
Contents
Foreword.uLunn. høstes iii
1 JInput/output bIOCKS:. 42245056. hei ee ie Ain ee ee ei eaa r aa ied 1-1
1.1 SBM Rotary encoder block siisii injana hanain aaan na AEA a aAA EY 1-2
2; Gommiunication blocksaninsatelraananuemnisgidpd ae e eaa aaa no ameh oana saaa maeaea Tanie e ei aana Eai 2-1
2.1 Gentral:coupling: POCKET ita EE NAE 2-1
2.1.1 @CSL2F PROFIBUS FMS coupling central block ........rursrrrrnnnnonvrrnnnrnnrrnnrennrrnnnnrnnnn 2-1
2.1.2 @CSL2L PROFIBUS FDL central block..........rrrnnnnnnonnnnnrnrrnnrnnnrrrrnnnnrrnnrernrnrrnnnnnnnnnen 2-1
2.1.3 @CSPRO Central block PROFIBUS DP coupling ..............:.::cccceseeeeeeeceeeeeeeteeneneees 2-1
2.1.4 @PRODP Central block PROFIBUS DP coupling ................::cccceeceeeeceeceeeeeeeteeeenaeees 2-2
2.2 Kopplung PROFIBUS DP ............:::cccccceeeeeeeeeeeaeceeeeeeeeecaaeaeeeeeeeseseeeceaaeceeeeeeesecsanneeeees 2-3
2.2.1 DPDIAG Diagnostics overview, PROFIBUS DP.............0::::ccccceeeeeeceeeeeeeeeeeteestnaeeeeees 2-3
2.2.2 DPSLDG Slave diagnostics, PROFIBUS DP ...............cccccccceeeeeeeeeeceeeceeeeeeeteestnaneeeees 2-6
2.2.3 DPEVT Alarm information, PROFIBUS DP ......rrununnrrannnnrnrernernnrnnnnnrsnernnransnersvnrnerrnnen 2-9
2.2.4 DPPEVT Process alarm information, PROFIBUS DP Symbol................::::::cee 2-12
2.3 FM 458-specific coupling ..........2...:ccccceceeeeeeeceeeeeeceeeeeeeseceaeaeeeeeeesesensaeaeeeeeeeeeeteeeeaees 2-15
2.3.1 @CPB P-bus, central coupling DIOCK...0..... eee eect ee eet ee ee eetneeeeeteeeeetineeeeetnaeeeernnaa 2-15
2.3.2 S7RD_P Reading data from a SIMATIC-CPU (P Bus) seese 2-16
2.3.3 S7WR_P Sending data to a SIMATIC-CPU (P BUS) .......rrrrnrornnrnnrnrrnnrnnnnnnrrnrnnnnnnen 2-18
2.3.4 BRCV Block-oriented data reception via an S7 Coupling ...........:::::::cceeceeeeeeeeeeeeees 2-20
2.3.5 S7STAT S7 CPU operating State nisrani E EE ARAA 2-23
2.3.6 S7RD, S7RD B, S7RD I, S7RD D Read from the peripheral area of the S7-
GRU LL mane ete ea eae a ee tad ead ee eed 2-25
2.3.7 S7WR, S7WR B, S7WR |, S7WR D Write into the peripheral area of the S7-
GPU ai orei ek AR dar telle eee ruger Re 2-27
2.4 Parameterizing SIMADYN D orori aa A a E EA A EAEn R 2-29
2.4.1 @FMPAR Parameter processing on FM 458-1 DP modules........urrnnrrrnronnrrrrnven vnr 2-29
2.4.2 CBCONF COMBOARD configuration. ............:::::ccccceeeeeeeeceecaeeeeeeeeeseceanaeeeeeeesetennaees 2-32
2.4.3 CBRFAW Receiving warnings from a COMBOARD ....rurnnnrrnnnnnnrrnnrennrrrenernnrrersennnne 2-36
2.4.4 PNAME Parameter names: ans acs actee tase ee cedies eee eens ade neida 2-38
2.4.5 PSTAT Change enable for parameters .......0...ccccceeeeeeeeeeeeneeeeeeeneeeeeeneeeeeeneeeeeeaas 2-40
3 Logic blocks ihrer raider arenaer keine mesk akser arkiveres endene dekade eee 3-1
3.1 SAV TR Save FB for NOV RAM ....arrnnnnnornnonnnnrrnnrnnnrrrrnnrnrrnnrnrernrrrrnn nn nnnennernrrnnnnnnnnen 3-1
3.2 PAS7 Initiate process interrupt at the S7-CPU........rnrrnnrnnnrnnvnnrnrrrnnnnrnnrrrnrnnrrnrennernern 3-3
Function Blocks - FM 458-1 DP vii
Edition 12.2004
Contents
4 Service-/diagnostic blocks .....rrrrnannvnnnnnnnnvennnnnnvnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnsnnnnnnnnnnnnnnene 4-1
4.1 FMLED Control FM 458-1 DP diagnostics LED ....rrannrrrnnrrnnrrnnrnnnrrvnrrnnrrenernnrrrersrnnnnn 4-1
5: -SIMOLINK drive coupling --:.m-sermasserennnsnnnenndanrknndnnnrennmndnnnennndnnrknndmnnrennnndnranevnndaennnksnrsnnennd nd 5-1
5.1 @SL SIMOLINK central block .........rrnnnnrrnnrrrnrnnnn eeeeeeee cece ee eeeeccceaaeeeeeeeeesecciaeeeeeeeeeneees 5-1
5.2 SLAV, SLAVE R SIMOLINK receive block for one actual value...........».rrrvrvrrrvrrrerer 5-9
5.3 SLD SIMOLINK delta evaluation. ..............cccccceeeeeececeeeeeeeeeececeeeeeeeeeesecsicieeeeeeeeeteees 5-11
5.4 SLDIS SIMOLINK dispatchet..............::::ccccececeeeeeeeceeceeeeeeeseceneaeeeeeeesetennueaeeeeeeeeeeteees 5-12
5.5 SLSV, SLSV R SIMOLINK send block for one setpoint ...........arrrrrnnrrrrrnrrrrrrrrrnnnnnn 5-13
5.6 SLSV2, SLSV2R SIMOLINK send block for 2 setpoints..........r.rererererererernnnnnnnnnnnnnn 5-15
5.7 SLSVAV SIMOLINK send and receive block for one Slave ...............:::::c:ceseeeeeeeees 5-17
6: Glosed-loop Control. blocks a ea arer Taea are pa aaaea a aa aaa a Eal waen Ea aaa iie eraai 6-1
6.1.1 INT_M Modulo integrator for axis cycle correct integration .........rrassnvrrnnnonnrrnnnrnnnnnn 6-1
ea EEE S de |-1
viii Function Blocks - FM 458-1 DP
Edition 12.2004
1 Input/output blocks
Assignment of the input/output blocks to processor- and peripheral
devices.
ee
Å he hdd ba bd ba ei
458 mel EF
EV a E A
*) with SBM2 Module
Function Blocks - FM 458-1 DP 1-1
Edition 12.2004
Input/output blocks
1.1 SBM Rotary encoder block
Symbol
hardware address
encoder type
alarm- or normal FP
rated speed
Brief description
Mode of operation
1-2
— position in increments
— max. increments/revolution
baud rate — normalized speed
resolution
— group error message
— error detection
The SBM function block is used to realize the following tasks:
e Initialize the rotary encoder, which is connected at the SBM2 module
e Determine the position and speed from the encoder data
e Error handling when communication errors develop between the
encoder and SBM2 module
During the initialization phase of the system, the initialization I/O are read
and the appropriate mode set at the SBM2 module. The following
settings are made for the EQN1325 encoder:
e The encoder power supply is set to 5 V
e Number of revolutions to 4096
e Signal periods per revolution 8192
After the mode has been set, the zero position is determined, and the
starting values for the position and the speed output at the connections.
In the standard mode, the block can assume four different statuses:
e NRM
The values read-out from the SBM2 module (position and speed) are
displayed at the block connections. If an error is detected, the block
goes into the ERR error condition.
e ERR
The following errors can occur in operation:
e Encoder is defective or is not connected
e Encoder was disconnected
e Data transfer error for serial communications between the encoder
and SBM2 module
e SBM2 module not available
In the first three cases, the block goes into the "INI" initialization
status and in the latter case into the "OFF" status.
Function Blocks - FM 458-1 DP
Edition 12.2004
Input/output blocks
e INI
as for the "initialization phase“ mode
e OFF
Output QF is set and processing terminated.
Hardware address of the SBM2 (initialization input)
Encoder type (initialization input
TYP = 0 not available default: 1)
TYP = 1 EQN1325
TYP > 1 incorrect encoder type
Baud rate (initialization input
BDR = 0100 kHz default: 0)
BDR = 1500 kHz
BDR = 21 MHz
BDR = 32 MHz
BDR > 3incorrect baud rate
Resolution in bits (default: 23)
Value range: 16 < EXP < 32
I/O
Configure the block in cyclic tasks or interrupt tasks (initialization input
DM=0 SBM in interrupt tasks default: 0)
This mode is only practical in conjunction with the alarm-
controlled SIMOLINK events (sync interrupt from SLB). Using this
sync interrupt, in this mode, the values of the SBM module are
de-latched. The block should then be configured in the alarm task
started by the same event.
DM=1 SBM in cyclic tasks
If the block is computed in cyclic tasks, then the SBM2 module
register is read-out in the system mode. The contents of the register
are then read-out in the normal mode and the values for the output
connections computed.
Rated speed in revolution/min (RS>0) (default: 1.0)
:0)
Max. number of increments per revolution (default: 0)
(depending on the input connection EXP)
RPMmi default: 0.0
Normalized speedform the rotary encoder ar
)
)
Group error message (default: 0
no error, QF=1 for error (if YFz0)
Error status of the block (default:
YF=0x0000 no error, YF>0x0000 (refer to error statuses) 160000 0000)
Function Blocks - FM 458-1 DP 1-3
Edition 12.2004
Input/output blocks
0x0040 Encoder fault/error
— Check the hardware (encoder, cable etc.)
0x0080 No voltage or short-circuit
0x0100 No data transfer from or to the encoder
— check the hardware (encoder, cable etc.)
— check the hardware (encoder, cable etc.)
0x2000 Invalid baud rate parameterized
0x4000 Sampling time too high; speed computation not possible
3 Sampling time: < 4.0 ms
Configuringdata Computation time [us] FM 458-1 DP 13,2
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Special features Can only be used with an EQN 1325 encoder
1-4 Function Blocks - FM 458-1 DP
Edition 12.2004
2 Communication blocks
2.1 Central coupling blocks
NOTE Additional information on this group of function blocks, e.g. symbol,
mode of operation, I/O and technical data are provided in the online
help for the particular block.
2.1.1 @CSL2F PROFIBUS FMS coupling central block
Brief description e the function block initializes and monitors the PROFIBUS FMS
coupling (CS7 and SS5 module).
e the function block may only be configured in the sampling interval
32 ms <= TA <= 256 ms and only in the communications FP
"Transmit". Otherwise, an entry is made in the communications error
field.
2.1.2 @CSL2L PROFIBUS FDL central block
Brief description e the function block initializes and monitors the PROFIBUS FDL
coupling (CS7 and SS5 module).
e the function block may only be configured in the sampling interval
32 ms <= TA <= 256 ms and only configured in the communications
FP "transmit". Otherwise an entry will be made in the communications
error field.
2.1.3 @CSPRO Central block PROFIBUS DP coupling
Brief description e the function block initializes and monitors the PROFIBUS DP coupling
(EXM 448/EXM 448-1).
e the function block may only be configured in the sampling interval
32 ms <= TA <= 256 ms . Otherwise an entry is made in the
communications error field.
Function Blocks - FM 458-1 DP 2-1
Edition 12.2004
Communication blocks
2.1.4 @PRODP Central block PROFIBUS DP coupling
Brief description e the function block initializes and monitors the PROFIBUS DP coupling
at connector X03 on FM 458-1 DP.
e the function block may only be configured in the sampling interval
32 ms <= TA <= 256 ms . Otherwise an entry is made in the
communications error field.
2-2 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.2 Kopplung PROFIBUS DP
2.2.1 DPDIAG Diagnostics overview, PROFIBUS DP
Symbol
DP module name.connector
Brief description
Mode of operation
DPDIAG
BO
DW
DW
DW
DW
DW
DW
DW
DW
BY
—Diagnostics valid
— Slave diagnostics; bits 0 to 31
— Slave diagnostics; bits 32 to 63
— Slave diagnostics; bits 64 to 95
— Slave diagnostics; bits 96 to 127
— Data transfer list; bits 0 to 31
— Data transfer list; bits 32 to 63
— Data transfer list; bits 64 to 95
— Data transfer list; bits 96 to 127
— Master status
ID W |-- Identification number
QTS BO |- Block status
YTS W |- Status display
The task of the DPDIAG function block is to provide the following
information and data to the user program (i.e. the configured CFC
software):
System diagnostics (an overview of which slave had signaled
diagnostics)
Data transfer list (overview of with which slave data transfer took
place within the PROFIBUS-DP time frame)
Master status (master-specification information such as the Stop,
Operate and Clear stati)
The PROFIBUS-DP interface is selected using connection CTS.
The function block only enters a communications error for errors, which
are detected during initialization. A communications error cannot be
acknowledged and this function block is only used for diagnostics. This
means, that in normal operation, a communications error is not entered.
Only the cause of the error is signaled at output YTS.
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
I/O
CTS
Module name.connector of the Profibus-DP interface
(Initialization
connection)
EN
Block enable
The block is not processed if EN=0; output OK=0 and YTS=1;
the last value is kept at the other outputs
(Default: 1)
OK
Diagnostics data valid
(Default: 0)
DG1
Overview of which slave signaled diagnostics data. This output is
bit-coded. Every bit is assigned to a slave with its Profibus
address.
Bit 3 of the 32 bit is, for example, assigned to the slave with
Profibus address 3.
Comment: The bits 0 up to and including 2 are always 0 as the
associated addresses (0 to 2) should be reserved for the DP
master, for a PG and an OP.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
DG2
Overview of which slave had signaled diagnostics data. This
output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. The bit 0 of the 32-bit word is, for example, assigned to
the slave with Profibus address 32.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
DG3
Overview of which slave had signaled diagnostics data. This
output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. The bit 0 of the 32-bit word is, for example, assigned to
the slave with Profibus address 64.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
DG4
Overview of which slave had signaled diagnostics data. This
output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. The bit 0 of the 32-bit word is, for example, assigned to
the slave with Profibus address 96.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
DL1
Overview of with which slave data transfer took place. This output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. For example, bit 3 of the 32-bit word is assigned to the
slave with Profibus address 3.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
2-4
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
DL2
Overview of with which slave data transfer took place. This output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. For example, bit 0 of the 32-bit word is assigned to the
slave with Profibus address 32.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default:
oO
=
DL3
Overview of with which slave data transfer took place. This output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. For example, bit O of the 32-bit word is assigned to the
slave with Profibus address 64.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default:
DL4
Overview of with which slave data transfer took place. This output
is bit-coded. Every bit is assigned to a slave with its Profibus
address. For example, bit 0 of the 32-bit word is assigned to the
slave with Profibus address 96.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default:
MST
Status of the DP master:
Stop (0x40 ), Clear (0x80) or Operate (0xCO)
(Default:
Master identification number:
(0x8037 for EXM448 as Profibus interface, Ox80EB when
using X3 of the FM458-1)
(Default:
QTS
Block output QTS is used to display whether the block is operating
error-free (QTS = 1) or was de-activated after a communications
error message was entered (QTS = 0).
(Default:
YTS
Detailed status display:
e YTS=0 Dok.
e YTS=1 > Block processing inhibited (EN=0)
For additional values at YTS, refer to: D7-SYS Online Help "Help
events". (Press the F1 button in the CFC and call the topic
"Help on events" under "CFC for D7-SYS".)
(Default:
Configuring data
Computation time [us] FM458-1 DP 42,7
Can be inserted online No
Can be configured in Cyclic tasks
Executed in Initialization mode
Normal mode
module.
Special features This function block may only be configured
once for each PROFIBUS communications
Function Blocks - FM 458-1 DP
Edition 12.2004
2-5
Communication blocks
2.2.2 DPSLDG Slave diagnostics, PROFIBUS DP
Symbol
DPSLDG
BO |-- Diagnostics valid
BY |-- Status 1, standard diagnostics
BY |- Status 2, standard diagnostics
DP module name. connector
Slave address
Number of device-related
diagnostic bytes
Enable BY |- Status 3, standard diagnostics
BY |- Master Profibus address
W |- Slave identification number
DW |- Diagnostic bytes v, w, x u. y 1)
DW |-- Diagnostic bytes v, w, x u. y ”
BO |- Block status
W |- Status display
9 normally invisible
Brief description The DPSLDG function block provides diagnostics data from a DP slave
to the user program. This diagnostics data correspond, with the exception
of the maximum possible length, to EN 50170. According to this
Standard, the diagnostics data can be a maximum of 244 bytes long. The
function block supports a maximum of 240 bytes
On the EXM448, there are restrictions regarding the quantity of
diagnostics data. Only diagnostics data (Standard diagnostics data) is
supplied which the function block DIAPRO supplies.
Note The consistency of the outputs is not ensured. When new diagnostics
data is received, some of the outputs can have "New" information and
some can still have "old" information.
Mode of operation The PROFIBUS-DP interface is selected using connection CTS.
The function block only enters a communications error for errors, which
are detected during initialization. A communications error cannot be
acknowledged and the function block DPSLDG is only used for
diagnostics. This means, that in normal operation, a communications
error is not entered. Only the cause of the error is signaled at output
YTS.
2-6 Function Blocks - FM 458-1 DP
Edition 12.2004
I/O
Communication blocks
CTS
DP module name, connector of the Profibus DP interface
(Initialization connection)
SLA
Diagnostics data required from the slave with the appropriate
station number (3 to 123)
(Initialization connection)
(Default: 3)
LEN
Number of the device-related diagnostic bytes; this means the
diagnostics bytes which extend beyond the Standard diagnostics.
Here, a maximum value of 234 may be set. Whether device-related
diagnostics data is available and, if yes, which significance they
have, should be taken from the user documentation of the relevant
DP slave.
(Initialization connection)
(Default: 0, i.e. only
Standard diagnostics, not
device-related diagnostic
bytes)
EN
Block enable. If EN=0, the block is not processed;
output OK=0 and YTS=1, the last value remains at the other
outputs.
(Default: 1)
OK
Diagnostics data valid
(Default: 0)
ST1
Status 1 of the diagnostics according to the Standard (byte 1).
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
ST2
Status 2 of the diagnostics according to the Standard (byte 2).
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
ST3
Status 3 of the diagnostics according to the Standard (byte 3).
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS DP
coupling".
(Default: 0)
MPA
Master Profibus address (byte 4 of the diagnostics according to the
Standard)
Identification number of the slave
(bytes 5 and 6 of the diagnosics according to the Standard)
D01
to
D59
Device-related diagnostic bytes; 4 bytes are combined in one
32-bit
word. Bytes 7, 8, 9 and 10 of the diagnostics telegram can be
found
in D01.
For a more detailed description, refer to the user manual
"FM 458-1 DP", chapter "Configuring", section "PROFIBUS
DP
coupling".
When data is entered at LEN, this has an influence on the
update
of the outputs. For LEN=0, these outputs are not updated.
For LEN=234, D01 up to and including D59 are updated.
Comment:
Bytes 1 to 6 of a diagnostics telegram for PROFIBUS DP
corresponds to the Standard Diagnostics; bytes from 7 onwards
depend on the particular slave (referred to the particular device).
(Default: 0)
QTS
Block output QTS is used to display whether the block is operating
error-free (QTS = 1) or was de-activated after a communications
error message was entered (QTS = 0).
(Default: 0)
Function Blocks - FM 458-1 DP
Edition 12.2004
2-7
Communication blocks
YTS Detailed status display: (Default: 0)
e YTS=0 > o.k.
e YTS=1 > Block processing inhibited (EN=0)
e YTS=2 > An initialization connection (SLA er LEN) was
changed in cyclic opertion; this change only becomes effective
the next time that the FM458-1 starts
e YTS=3 > The block has already been configured once for the
slave addressed via SLA
e YTS=4 > The slave, with the address specified at SLA, has not
been configured in the PROFIBUS network.
For additional values at YTS, refer to: D7-SYS Online Help "Help
events". (Press the F1 button in the CFC and call the topic
"Help on events" uncer "CFC for D7-SYS".)
Configuring data Computation time [us] FM458-1 DP 29
Can be inserted online No
Can be configured in Cyclic tasks
Executed in Initialization mode
Normal mode
Special features The function block may only be configured
once for each slave.
2-8
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.2.3 DPEVT Alarm information, PROFIBUS DP
Symbol
Brief description
Mode of operation
Expanded info
—Sub-module
— Sub-network
YO!1 DW |-- Diagnostic bytes 0, 1, 2 and 3
YO2 DW |-- Diagnostic bytes 4, 5,6 and 7
YO3 DW |- Diagnosebytes 8, 9, 10 and 11
YO4 DW |-- Diagnostic bytes 12, 13,14 and 15
YO5 DW |-- Diagnostic bytes 16, 17, 18 and 19
YO6 DW |- Diagnostic bytes ... 1)
— Diagnostic bytes ... 1
— Block status
W |- Status display
1) normally invisible
The DPEVT function block (DP event) provides more detailed information
about a Profibus-DP process or diagnostics alarm. The information/data,
provided at the outputs, correspond to the information/data which a
SIMATIC S7 module also has when processing the appropriate alarm
OBs (e.g. 0B40, OB55 etc.).
When an alarm event is output, all of the values at the outputs are
updated.
When the appropriate alarm occurs, the alarm task configured for this
purpose, is started, Within the alarm task, DPEVT reads-out the alarm
information. Å new alarm of the same time is only detected again after
the alarm task has been completed.
When a communications error occurs, the cause is also output at output
YTS and the QTS output is set to "0".
Function Blocks - FM 458-1 DP 2-9
Edition 12.2004
Communication blocks
I/O
EXT
For EXT=0, only the data/information at outputs Y01
to Y05 is updated.
For EXT=1, in addition, the information/data at outputs Y06 to
Y21 is updated.
(Default:
OB
The number of the appropriate SIMATIC S7 organizational block
(OB) is displayed at this output. In an error-free state, values 40,
55, 56, 57, 82, 83 and 86 are possible here. The actual value
depends on the process alarm configured in the HWConfig for the
particular alarm task.
(Default:
STA
Station address of the slave which had initiated the alarm. Values
of between 1 and 126 are valid values for this address.
(Default:
SLO
Slot of the module which initiated the alarm. Values of between 1
and 244 are valid values for the slot data.
(Default:
SUB
Sub-module of the module which initiated the alarm. Values of
between 1 and 31 are valid values for the sub-module data.
A value of 0 means no sub-module.
(Default:
SBN
Sub-network to which the module, which initiated the alarm, is
connected. Values of between 1 and 255 are valid values for the
sub-network data. The number for the sub-network can be taken
from the properties dialog box in NetPro or HY-Config.
(Default:
YO1
The first 4 bytes with information about the last alarm event are
available at this output. The actual significance corresponds to
the first byte of the local data of the appropriate S7-OB.
As a whole, the local data comprise 20 bytes; the structuring of
the local data can be taken from the help for the appropriate OB.
(Default:
YO2
The second 4 bytes with information about the last alarm event
are available at this output.
(Default:
YO3
The third 4 bytes with information about the last alarm event are
available at this output.
(Default:
YO4
The fourth 4 bytes with information about the last alarm event are
available at this output.
(Default:
Y05
The fifth 4 bytes with information about the last alarm event are
available at this output.
(Default:
Y06
to
Y21
You can obtain additional information/data about the alarm, which
goes beyond the local data of the S7-OBs, at these outputs.
The information/data correspond to that which you would obtain if
you would have called the SFB54 "RALRM" within the appropriate
S7-OBs. The outputs are only updated if EXT=1 is set to 1.
Normally, these outputs are switched so that they are invisible,
and, when required, must be first made visible in the CFC, under
the tab "I/O".
(Default:
QTS
Block output QTS is used to display whether the block is
operating error-free (QTS = 1) or was de-activated after a
communications error message was entered (QTS = 0).
(Default:
YTS
Detailed status display for additional values at YTS,
refer to: D7-SYS Online Help "Help events".
(Press the F1 button in the CFC and call the topic "Help on
events" uncer "CFC for D7-SYS".)
(Default:
2-10
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
Configuring data Computation time [us] FM458-1 DP 23,6
Can be inserted online No
Can be configured in Alarm tasks
Executed in Initialization mode
Normal mode
Special features The DPEVT may only be configured in an
alarm
task for which one of the following alarm
CAUSES
is configured in HW-Config:
e Process alarm 1 (0B40)
e DPV1 status alarm (0B55)
e DPV1 update alarm (0B56)
e DPV1 manufacturer-specific alarm (0B57)
e Diagnostics alarm (OB82)
e Withdraw/insert alarm (OB83)
e Failure, subrack alarm (OB86)
If this is not the case, DPEVT signals an
appropriate communications error and stops
processing.
Function Blocks - FM 458-1 DP 2-11
Edition 12.2004
Communication blocks
2.2.4 DPPEVT Process alarm information, PROFIBUS DP Symbol
Symbol
I |- Station
I |- Slot
I |- Sub-module
I |- Sub-network
— Event classes and IDs
—10 flag
— Input module
— Output module
— Logical address
—0B40 POINT ADDR
— Block state
W |-- Status display
The DPPEV (DP process event) provides more detailed information
about the Profibus DP process alarm (OB40 alarm). Contrary to the
DPEVT, only selected information/data is available, but then, in a
conditioned form.
Brief description
Mode of operation When an alarm event is output, all of the values at the outputs are
updated.
For a communications error, the cause is additionally output at YTS and
the QTS output is set to "0".
2-12 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
I/O
STA Station address of the slave which had initiated the alarm. Values (Default: 0)
of between 1 to 126 are valid values for this address.
SLO Slot of the module which initiated the alarm. Values of between 1 (Default: 0)
and 244 are valid values for the slot data.
SUB Sub-module of the module which initiated the alarm. Values of (Default: 0)
between 1 and 31 are valid values for the sub-module data.
A value of 0 means no sub-module.
SBN Sub-network to which the module, which initiated the alarm, is (Default: 0)
connected. Values of between 1 and 255 are valid values for the
sub-network data. The number for the sub-network can be taken
from the properties dialog box in NetPro or HW-Config.
EVC This output corresponds to the local data variables (Default: 0)
0B40 EV CLASS of the 0B40 for a SIMATIC-S7. A value of
B#16#11(11 hexadecimal) means that the alarm is active.
IOF This output corresponds to the local data variables (Default: 0)
0B40 IO FLAG of the OB40 for a SIMATIC-S7.
The significance is as follows:
B#16#54 (54 hexadecimal) > Input module
B#16#55 (55 hexadecimal) > Output module
The (present) possible information is available, in a
conditioned form, at outputs IN and OUT.
IN IN=1 > Input module has initiated an alarm (Default: 0)
IN=0 > The alarm was not initiated from an input module
OUT OUT=1 > Output module had initiated an alarm (Default: 0)
OUT=0 > The alarm was not initiated from an output module
MDL This value outputs the logical basis address of the module. (Default: 0)
The value corresponds to the local data variables
OB40_MDL_ADDR of the OB40 for a SIMATIC-S7.
PAD This value supplies additional information about the cause of the (Default: 0)
process alarm. The value corresponds to the local data variables
OB40_POINT_ADDR of the OB40 for a SIMATIC-S7. Additional
information about this is provided in the SIMATIC documentation.
YYR Year (Default: 0)
(specifies in which year the alarm was initiated)
YMO Month (Default: 0)
(specifies in which month the alarm was initiated)
YDA Day (Default: 0)
(specifies on which day the alarm was initiated)
YHR Hour (Default: 0)
(specifies at which hour the alarm was initiated)
YMI Minute (Default: 0)
(specifies at which minute the alarm was initiated)
YSE Second (Default: 0)
(specifies at which second the alarm was initiated)
QTS Block output QTS is used to display whether the block is (Default: 0)
operating error-free (QTS = 1) or was de-activated after a
communications error message was entered (QTS = 0).
Function Blocks - FM 458-1 DP 2-13
Edition 12.2004
Communication blocks
YTS Detailed status display; for additional values at YTS, (Default: 0)
refer to: D7-SYS Online Help "Help events".
(Press the F1 button in the CFC and call the topic
"Help on events" uncer "CFC for D7-SYS".)
Configuring data Computation time [us] FM458-1 DP 23,6
Can be inserted online No
Can be configured in Alarm tasks
Executed in Initialization mode
Normal mode
Special features The DPPEV may only be configured in an
alarm task for which the following alarm
cause is configured in HW-Config
e Process alarm 1 (0B40)
If this is not the case, DPPEV signals an
appropriate communications error and stops
processing.
A new alarm of the same time is only again
detected after the alarm task has been
completed.
2-14 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.3 FM 458-specific coupling
2.3.1 @CPB P-bus, central coupling block
Symbol
@CPB
CPU-module-name.PBUS {GV CTS CDM] BOJ-— coupling status
QTS| BO} - block status
Brief description The central block for the P-bus coupling can only run with an FM 458
application module.
e This function block is responsible for initializing and monitoring the P
bus coupling.
e The function block can only be configured once for each application
module FM 458, as there is only one P-bus coupling for each FM 458.
If a function block is configured a multiple number of times, this is
detected when initializing, and results in an entry in the
communications error field.
e The block may only be configured in the sampling interval
32 ms <= TA <= 256 ms. Otherwise, an entry is made in the
communications error field.
Mode of operation When initializing the function block, general preparations are made to
enable the coupling. The coupling is only enabled after the standard
mode has been run-through (executed) several times.
After the coupling has been enabled, the central block monitors that
senders and receivers are correctly registered. Further, if required, it re-
organizes and updates the block output CDM at each processing cycle.
The function block cannot be used to initialize another P-bus coupling or
monitor this. It can only initialize its own P-bus coupling on which CPU is
configured. An entry is made in the communications error field if another
module name is specified at the CTS input (other than its own).
The CDM block output provides information about the coupling status.
The connection is a 1, if the coupling is enabled for general send/receive
operation. The CDM block output is 0, as long as the coupling is still
being initialized, or is being re-initialized (after a temporary fault).
Function Blocks - FM 458-1 DP 2-15
Edition 12.2004
Communication blocks
The configured name of its own CPU is specified
at this initialization input.
Specifies the coupling status (default: 0)
(faulted = 0, not faulted = 1).
:0)
Operating status of the function block (default: 0
There is an irreparable fault for QTS = 0, for QTS
= 1,
the function block operates error-free.
Configuringdata Computation time [us] FM 458-1 DP 16,5
Can be configured in Cyclic tasks
Executed in Normal mode
Initialization mode
Special features -
2.3.2 S7RD P Reading data from a SIMATIC-CPU (P Bus)
Symbol
S7RD P
Offs in 128By-PBus-Buffer OFF PTR| DWF PirBuffer Transmitdata
Number bytes to be read LEN QF] BO Error-Status Block
Enable EN YF WF Statusinfo Block
Brief description This block can only be used for the SIMATIC application module FM 458-
1 DP.
A SIMATIC-CPU can transfer up to 128 bytes to the FM 458-1 DP in its
output area of the P bus. Block S7RD_P reads this data from the P-Bus
and provides it, via its pointer interface, to the read blocks (DRD...,
CPY_Y) for further processing in the CFC configured software.
Mode of operation This block operates similar to the telegram block CRV_P. A maximum of
128 bytes can be accessed via the pointer interface. These bytes are
sent from the SIMATIC-CPU to the FM 458-1 DP via the P bus.
Data can be read using the read blocks (DRD...) or the copy block
(CPY_P).
This block only communicates with a SIMATIC-CPU. This means that the
required byte or word swap operations are automatically made
(depending on the data type of the connected read/write blocks). The
entry, which is normally required at the SW-connection of the read/write
block, is not evaluated and is therefore not required.
2-16 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
The computation time essentially depends on the amount of data
transferred. A base computation time of approx. 10 us as well as approx.
1 us/byte can be assumed as nominal value.
Associated blocks The following blocks can be connected to this block (pointer input):
DRD, DRD 8, DRD 8D, DRD_8I, DRD BY, DRD_D, DRD I, CPY_P
I/O
Default:
OFF Offs in 128By-PBus-Buffer 0
Offset of the value to be sent within the 128 byte memory relative to the start of
the buffer; max. offset: Buffer length - length of the data type
LEN Number bytes to be read 0
Number of bytes which are read by the SIMATIC-CPU via the P bus.
Max. number: 128 bytes
EN Enable 1
For EN=1 at each call, the data sent from the SIMATIC-CPU (max. 128 bytes)
is read.
PTR PtrBuffer Transmitdata 16400000000
Pointer to the telegram data buffer; to connect with the same connection type
of other pointer-based communication blocks. The CFC connection can be
changed online.
The connection also includes monitoring information to ensure correct
configuring.
QF Error status block 0.0
QF=1: There is an error; for details, refer to YF
YF Statusinfo Block 1640000
88 as for the DRD block!
Configuring data Computation time [us] FM 458-1 DP 10,0 + 1 for each byte
Can be inserted online Yes
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Special features The block must be configured in the same
sampling time
as the blocks, connected via the pointer interface
(CFC connection via connections PTR). This can
only be used for the FM 458-1 DP!
Several S7RD P blocks can be configured.
Although this is not a typical application, it can
make sense if, for example, the 128 byte area
should be read in several blocks or if data is
required in different sampling times.
Function Blocks - FM 458-1 DP 2-17
Edition 12.2004
Communication blocks
2.3.3 S7WR P Sending data to a SIMATIC-CPU (P Bus)
Symbol
Offs in 128By-PBus-Buffer
Number bytes to be write
Number bytes to be write
Brief description
Mode of operation
Associated blocks
I/O
This block can only be used for the SIMATIC application module FM 458-
1 DP.
An FM 458-1 DP can send up to 128 bytes to the SIMATIC-CPU via the
P-Bus. The block S7WR_P sends data which were previously loaded
with write blocks via the pointer interface.
This block operates similar to the telegram block CTV_P. A maximum of
128 bytes can be transferred via this pointer interface and via the P bus
to the SIMATIC CPU. This data is previously loaded into the telegram
buffer using write blocks DWR... of the copy block CPY_Y.
This block only communicates with a SIMATIC-CPU. This means that the
required byte or word swap operations are automatically made
(depending on the data type of the connected read/write blocks). The
entry, which is normally required at the SW-connection of the read/write
block, is not evaluated and is therefore not required.
The computation time essentially depends on the amount of data
transferred. A base computation time of approx. 5 us as well as approx.
0.7 us/byte can be assumed as nominal value.
The following blocks can be connected to this block (pointer input):
DWR, DWR_8, DWR_8D, DWR_8I, DWD_BY, DWR_D, DWR_I, CPY_P
Default:
OFF Offs in 128By-PBus-Buffer 0
Offset of the value to be sent within the 128 byte memory relative
to the start of the buffer;
max. offset:
Buffer length - length of the data type
LEN Number of bytes to be written 0
Number of bytes which are to be sent to the SIMATIC CPU via the P bus.
Max. number: 128 bytes
EN Enable
For EN=1, at each call, the telegram buffer (max. 128 bytes) is sent to
the SIMATIC-CPU.
PTR PtrBuffer Transmitdata 16#00000000
Pointer to the telegram/data buffer; to connect with the same connection
type of other pointer-based communication blocks.
The CFC connection can be changed online.
The connection also includes monitoring information to ensure correct
configuring.
2-18
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
QF Error status block 0.0
QF=1: There is an error; for details, refer to YF
YF Statusinfo Block 16440000
88 as for the DRD block!
Computation time [us] FM 458-1 DP 5,0 + 0.7 for each byte
Configuring data
Can be inserted online
Yes
Can be configured in
Interrupt tasks
Cyclic tasks
Executed in
Initialization mode
Normal mode
Special features
Function Blocks - FM 458-1 DP
Edition 12.2004
The block must be configured in the same
sampling time
as the blocks, connected via the pointer interface
(CFC connection via connections PTR).
This can only be used for the FM 458-1 DP!
Several S7WR_P blocks can be configured.
Although this is not a typical application, it can
make sense if, for example, the 128 byte area
should be written in several blocks or if data is
required in different sampling times.
2-19
Communication blocks
2.3.4 BRCV Block-oriented data reception via an S7 coupling
Symbol
Establish ready to receive
Addressing parameters ID
Addressing parameters R ID
Maximum length, receive data
— Receive data is ready
— Status parameter NDR
— Length of data received before
— Number of receive operations
— Status parameter ERROR
— Status, fault display
— Block status
W |- Status display
Brief description The function block allows block-oriented data reception via a configured
S7 coupling.
Mode of operation The BRCV block receives data from a "remote" partner. The "remote"
partner is an SFB/FB, type BSEND (SFB/FB 12) on a SIMATIC S7-400
CPU.
After each data segment which has been received, an acknowledgement
is sent to the partner SFB/FB and the LEN parameter is updated.
The block is ready to receive when a "1" is connected to the control input
ENR. A running task can be interrupted with ENR=0.
The maximum length of the receive area is specified by the data at input
RLN. The length of the data block received is displayed at output LEN.
I/O
ENR Control parameter Default: 0
The block is ready to receive with ENR = 1
ID Addressing parameter Initialization input,
Reference to the local connection description Default: 0
(this is specified as a result of the STEP7 configured connection)
RID The value at input RID specifies the association with the send SFB/FB. Initialization input,
The value at the input must match the R_ID parameter for SFB/FB on Default: 0
the
send side. This allows several SFB/FB pairs to communicate via the
same logical coupling. The block pairs of a logical coupling, defined
using
RID or R_ID must be unique for this coupling.
RLN The maximum length of the received data is defined here. Initialization input,
Only values of between 0 and 65535 may be configured. Default: 0
PTR The receive data, to be evaluated by the blocks for direct Default: 0
communication,
is made available here (e.g. types DRD, DRD |, etc.).
2-20 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
NDR Status parameter NDR Default: 0
0: Task was still not started (ENR input)or is still running
1: Task was successfully completed
LEN Length of the previously received data in bytes Default: 0
CTR This output counts the total number of successfully complete data Default: 0
receive
cycles since the last change from STOP to RUN.
ERR An error is output at block output ERR. The detailed information about Default: 0
the
type of the error is available at output STA.
This output corresponds to the ERROR output of an SFB/FB 13
of an S7-CPU.
STA Detailed status display Default: 0
This output corresponds to the STATUS output of an SFB/FB 13 of an
S7-CPU.
ERR = 0:
e STA=00H
No alarm, no fault
e STA=11H
Non-synchronous data is received, output LEN indicates the number
of pieces of data previously received in bytes.
ERR = 1:
e STA=01H
Communication problems
(e.g. the coupling description to the ID not loaded, coupling has still
not been established from the partner or the coupling was
interrupted)
e STA=04H
Error regarding the data length
The data block sent is longer than the receive range set using input
RLN.
e STA=05H
Reset request received, incomplete transfer
e STA=12H
R_ID already exists in the coupling
e STA=14H
too little working memory
QTS Block output QTS indicates whether the block is operating (QTS = 1)or | Default: 0
became inactive after a communications error message was entered
(QTS = 0).
YTS Detailed status display Default: 0
e YTS=0 > O.K. (ready)
e YTS=1
The block is in the DISABLED state, i.e. ENR=0
e YTS=2
The initialization connection is changed, the change only becomes
effective at the next STOP > RUN transition; the FB operates with
the values at ID, RID and RLN set when running-up
For other values at YTS, in addition, a communications error is entered
in
the diagnostics buffer and the block is no longer processed (QTS=0)
Function Blocks - FM 458-1 DP 2-21
Edition 12.2004
Communication blocks
Configuring data
2-22
Computation time [us]
FM458-1 DP 5,7
Can be inserted online No
Can be configured in Alarm tasks
Cyclic tasks
Executed in
Initialization mode
Normal mode
Special features
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.3.5 S7STAT S7 CPU operating state
Symbol
Brief description
Mode of operation
S7STAT
BO |- S7-CPU in RUN
BO |- S7-CPU in STOP
BO |- S7-CPU in HOLD
outputs.
—actual operating state
— previous operating state
The actual and previous S7-CPU operating states are displayed at the
The actual and previous operating state of the S7-CPU is determined and
displayed at connectors ACT for the actual and OLD for the previous
operating state. Output RUN is set to TRUE if the S7-CPU is either in the
RUN or RUN-R state.
Output value Operating state RUN STP HLD
to ACT or OLD
0x0010 Stop 0 1 0
0x0020 Cold start 0 0 0
0x0040 New start 0 0 0
0x0080 Re-start 0 0 0
0x0100 RUN 1 0 0
0x0200 RUN-R 1 0 0
0x0400 Hold 0 0 1
NOTE All other values are used for extended diagnostics.
I/O
RUN S7-CPU in RUN (Default: 0)
STP S7-CPU in STOP (Default: 0)
HLD S7-CPU in HOLD (Default: 0)
ACT Actual operating state of the S7-CPU (Default: 0x8000)
OLD Previous operating state of the S7-CPU (Default: 0x8000)
Please refer to the help for STEP7 for a more detailed description of the
operating states.
Function Blocks - FM 458-1 DP
Edition 12.2004
2-23
Communication blocks
Configuring data
2-24
Commutation time [ys] FM458-1 DP
Can be inserted online yes
Can be configured in Alarm tasks
Cyclic tasks
Executed in
Normal mode
Special features
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.3.6 S7RD, S7RD B, S7RD |, S7RD D Read from the peripheral area of the
S7-CPU
Symbol
Brief description
Mode of operation
Offset
Enable
— Output
— error output
The function blocks, read from the peripheral area of the S7-CPU, can
only run with an FM 458 application module.
The S7RD, S7RD B, S7RD I, S7RD D blocks only differ by the data
type at the output, which must correspond with the parameters to be
read:
e S7RD: REAL
e S7RD B: BOOL
e S7RD I: INT
e S7RD D: DINT
With this block, data can be read into the assigned net data area of the
SIMATIC S7-CPU, (periphery output) assigned to the FM 458 application
module. This PE area is 128 bytes.
If the enable signal is set, the appropriate value is read from the PA area
and made available at output Y.
The offset determines at which location in the PA area, the value is
retrieved.
Depending on the block- or data type, the offset is specified as follows:
e for REAL data type in 4-byte steps (data length)
value range of the offset: 0... 31
e for BOOL data type in 1-byte steps (data length).
value range of the offset: 0... 127
e for INT data type in 2-byte steps (data length).
value range of the offset: 0... 63
e for DINT data type in 4-byte steps (data length).
value range of the offset: 0... 31
Output QF has the value 1, if an invalid offset was selected, or the block
is not configured on the FM 458.
Function Blocks - FM 458-1 DP 2-25
Edition 12.2004
Communication blocks
å or Jose fem
len — fees fee)
far ferro dere) ——SSSCSC*Y
Configuringdata Computation time [us] FM 458-1 DP 3,3
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Normal mode
Initialization mode
2-26 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.3.7 S7WR, S7WR B, S7WR 1, S7WR D Write into the peripheral area of
the S7-CPU
Symbol
Brief description
Mode of operation
1/0
Input
Offset
Enable
— Error output
The function blocks, write the peripheral area (I/O) of the S7-CPU can
only run with one FM 458 application module.
The S7WR, S7WR_B, S7WR I, S7WR D blocks differ by the data type
at the input, which must correspond with the parameters to be written:
e S7WR: REAL
e S7WR B: BOOL
e S7WR I: INT
e S7WR D: DINT
Using this block, data can be written into the net (useful) data area of the
SIMATIC S7-CPU, assigned to the FM 458 application module (periphery
input). This PE area is 128 bytes. If the enable signal is set, the input
value is accepted via the input and entered in the PE area.
The offset determines at which position in the PE area, the input value is
saved. Depending on the block- or data type, the offset is specified as
follows:
e for REAL data type in 4 byte steps (data length).
value range of the offset: 0... 31
e for BOOL data type in 1 byte steps (data length).
value range of the offset: 0... 127
e for INT data type in 2 byte steps (data length).
value range of the offset: 0... 63
e for DINT data type in 4 byte steps (data length).
value range of the offset: 0... 31
Output QF has the value 1, if an invalid offset was selected, or the block
is not configured on the FM 458 application module.
(frue 00)
or fora feee
C
‘QF Error output (default: 0)
Function Blocks - FM 458-1 DP 2-27
Edition 12.2004
Communication blocks
Configuringdata Computation time [us] FM 458-1 DP 3,3
alpene
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Normal mode
Initialization mode
2-28 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
2.4 Parameterizing SIMADYN D
2.4.1 (ØFMPAR Parameter processing on FM 458-1 DP modules
Symbol
EXM448 module name. connector
Parameter language selection
Parameter type float to Comboard
Parameter change enable
BASEBOARD-Function
Brief description
Mode of operation
@FMPAR
COMBOARD status
Block status
Status 1.COMBOARD parameter channel
Status 2.COMBOARD parameter channel
The FB @FMPAR can only be configured on a FM 458-1 DP module.
FB @FMPAR monitors the COMBOARD (communications submodule of
the SIMOVERT MASTER DRIVES, e.g. CBP for PROFIBUS DP) and
processes the parameter tasks which are defined for it.
Several @FMPAR central blocks for various COMBOARDs can be
configured on a FM 458-1 DP module.
It should be configured in a slow sampling time (approx. 100 ms). The
maximum permissible sampling time is 200 ms (as a result of the
monitoring using adjacent modules).
The existence and correction functioning of the COMBOARD is
automatically identified and is displayed at output CS.
Only one COMBOARD may be configured using FB @FMPAR.
Parameter processing:
Parameters are configured in the comment at each I/O. If the comment
starts with "@TP_", then this I/O is designated as parameter. Every
parameter can be allocated a parameter name (FB-PNAME). Further, a
setting parameter can also be allocated a minimum and a maximum (FB-
PLIM).
The block handles the following tasks:
e Checks the module code of the COMBOARD
e Monitors the COMBOARD (lifebit counter)
e Transfers the configuration data to the COMBOARD
e Processes the parameter channels
e In standard operation, processes the parameter tasks (in the
sampling time cycle).
Function Blocks - FM 458-1 DP 2-29
Edition 12.2004
Communication blocks
The name of the COMBOARD which is to be processed, is configured at
input CTS of the FB @FMPAR. If a name has not be configured at input
CTS, then the FB @FMPAR shuts itself down with an error signal at
output YT 1/2.
NOTE Function blocks CRV and CTV may only be configured once. They can
be configured on any and on different processor modules. However,
parameter processing is possible for all processor modules.
Initialization I/O:
CTS Configured name of the EXM448 coupling module and connector X02, separated by ".".
(Default: - )
CF Parameter data type to transfer SIMADYN D data types REAL and
SDTIME via the parameter channel of the COMBOARD:
e CF=1: Parameter data type, float
e CF=0: 32-bit integer "14"
(Default: 1)
PLA Parameter language selection (parameter language):
The parameter names are activated, which are configured at all PNAME
function blocks, whose PLA input has the same value
(Default: 0)
Inputs:
PEN Enables the parameter change:
e PEN=1: allows the operator control parameters to be changed through all of the
parameter channels
e PEN=0: inhibits operator control parameter changes via all parameter channels
(Default: 1)
BBF BASEBOARD-Function
e BBF=0: SIMATIC FM 458-1 DP operates as TECHBOARD (parameter number from
external view 1000..1999, 3000..3999)
e BBF=1: SIMATIC FM 458-1 DP operates as BASEBOARD (parameter number from
external view 0..999, 2000..2999)
(Default: 0)
Status outputs:
CS COMBOARD status:
e CS=1, COMBOARD is operational.
e CS=0, COMBOARD has failed or is not available.
(Default: 0)
2-30 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
Diagnose outputs:
QTS Block status:
e QTS=1: Block is operational and is operating error-free.
e QTS=0: Block is shutdown due to a fault with an error output at YT1/2
(Default: 0)
YT1 e YT1=0: OK status
e Initialization mode: status of the block initialization
e Standard mode: Status of the 1“ parameter channel from COMBOARD
For additional values, refer to: D7-SYS online help "Help on Events". (press
the F1 key in the CFC and call-up the topic "Help on events"
under "CFC for D7-SYS".)
(Default: 0)
YT2 e YT2=0: OK status
e Intialization module: Status of the block initialization
e Standard mode: Status of the 2" parameter channel of COMBOARD
For additional values, refer to: D7-SYS online help "Help on events". (press key F1 in the
CFC and call-up the topic "Help on events"
under "CFC for D7-SYS".)
(Default: 0)
Configuringdata Computation time [us] FM 458-1 DP 3,3
Can be inserted online --
Can be configured in Cyclic tasks
Executed in Initialization mode
Normal mode
Special features e 10<=sampling time<=200 ms
e Block may not be switched-in or
switched-out per task group.
Function Blocks - FM 458-1 DP 2-31
Edition 12.2004
Communication blocks
2.4.2 CBCONF COMBOARD configuration
Symbol
name of the module to the right
new configuration command
station address
COMBOARD parameter 01
COMBOARD parameter 02
COMBOARD parameter 03
COMBOARD parameter 04
COMBOARD parameter 05
COMBOARD parameter 06
COMBOARD parameter 07
COMBOARD parameter 08
COMBOARD parameter 09
COMBOARD parameter 10
COMBOARD parameter 11
COMBOARD parameter 12
COMBOARD parameter 13
COMBOARD parameter 14
COMBOARD parameter 15
COMBOARD parameter 16
COMBOARD parameter 17
COMBOARD parameter 18
COMBOARD parameter 19
COMBOARD parameter 20
COMBOARD parameter 21
COMBOARD parameter 22
COMBOARD parameter 23
COMBOARD parameter 24
COMBOARD parameter 25
COMBOARD parameter 26
COMBOARD parameter 27
COMBOARD parameter 28
Brief description
CBCONF I cBCONF
WwW
W
WwW
W
W
W
W
W
W
W
WwW
WwW
W
W
WwW
W
W
W
W
W
W
W
W
W
W
WwW
W
WwW
e FM458 modules
e 7400 technology module
Configuring ona
FM458 module
— block status
— status display
— COMBOARD diagnosis 01
— COMBOARD diagnosis 02
— COMBOARD diagnosis 03
— COMBOARD diagnosis 04
— COMBOARD diagnosis 05
— COMBOARD diagnosis 06
— COMBOARD diagnosis 07
— COMBOARD diagnosis 08
— COMBOARD diagnosis 09
— COMBOARD diagnosis 10
— COMBOARD diagnosis 11
— COMBOARD diagnosis 12
— COMBOARD diagnosis 13
— COMBOARD diagnosis 14
— COMBOARD diagnosis 15
— COMBOARD diagnosis 16
— COMBOARD diagnosis 17
— COMBOARD diagnosis 18
— COMBOARD diagnosis 19
— COMBOARD diagnosis 20
— COMBOARD diagnosis 21
— COMBOARD diagnosis 22
— COMBOARD diagnosis 23
— COMBOARD diagnosis 24
— COMBOARD diagnosis 25
— COMBOARD diagnosis 26
— COMBOARD diagnosis 27
— COMBOARD diagnosis 28
FB CBCONF can be configured on the following modules:
The function block CBCONF may only be configured once on a FM458
module per COMBOARD. It is configured on the FM458 module on
which the function block @FMPAR was configured for the appropriate
COMBOARD.
2-32
Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
The block saves the configured configuration data in the admin. area of
the COMBOARD. It executes this once after run-up and user-controlled
in the RUN mode. In the RUN mode, it outputs diagnostics data from the
COMBOARD at its outputs.
Mode of operation
New configuration data can be transferred online to COMBOARD with a
positive edge at input SET.
I/O
CTR Configured name of the "righthand" adjacent module (initialization connection). The
following data can be entered:
e CTR=0if an adjacent module was not configured
e CTR=<module name> or
e CTR=<module name>.<connector> if an adjacent board is configured.
(default value: - )
SET The configuration data is transferred online to the COMBOARD with a rising
edge at this input.
(Default value: 0)
MAA The station number should be assigned depending on the particular protocol
(e.g. USS: 0..30, PROFIBUS DP: 3..125).
(Default value: 0)
P01...P28 Max. 28 additional COMBOARD-specific configuration parameters.
(Default value: 0)
QTS Block status:
e QTS = 1: Block is operational.
e QTS = 0: The block is disabled with an error output at YTS
(Default value: 0)
YTS Status display, possible values
e -0: OK status
e -7CB3: T400 operates as TECHBOARD and a BASEBOARD is available
Additional values, refer to: D7-SYS Online Help "Help on events" (press key F1 in the CFC
and call-up the topic "Help on events" under "CFC for SIMADYN D".)
(Default value: 0)
D01...D28 Max. 28 words of diagnostics data of the COMBOARD
(Default value: 0)
Function Blocks - FM 458-1 DP 2-33
Edition 12.2004
Communication blocks
Significance of the
configuring input
The "CB-Param" and "SCB-Param" columns establish the assignment to
the COMBOARD User Manuals.
for several
COMBOARDs
Input CB-Param CB1: CBP: CBP2: CBP2: CB2:
new/old DP DP DP USS CAN
MAA P918 Bus address |Bus address |Bus address Bus address |Bus address
P01 P711/ (not used) Diagnostic Diagnostic - PKW task
P696 selection selection
P02 P712/ PPO-Typ PPO-Typ PPO-Typ - PZD
P697 receive
P03 P713/ (END) (END) Protocol selection: PZD send
P698 0: Profibus-DP
2: USS
P04 P714/ SIMATIC OP - PZD
P699 writes in: send length
0: EEPROM
1. RAM
P05 P715/ Slave to slave - PZD
P700 data transfer send rate
failed:
0: Error
1: Warning
P06 P716/ (END) - PZD
P701 receive
Broadcast
P07 P717/ - PZD
P702 receive
Multicast
P08 P718/ Baud rate PZD
P703 6=9,6 receiver
kBaud cross
7=19,2
kBaud
8 = 38,4
kBaud
P09 P719/ PKW: 0:no, PKW task
P704 127:yes, Broadcast
3:one word,
4:one D word
P10 P720/ PZD: Baud rate
P705 No. of words
P11 P706.1 (END) CAN layer
P12 P706.2 Bus timing
P13 P706.3 (END)
P14 P706.4
P28
2-34 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
Input SCB- SCB2: SCB2: SCB1:
Param |USS-Slave Peer CAN
MAA P683.2 |Bus address | (not used)
P01 P682 SCB1/SCB2-protocol selection:
0:CAN, 1:USS 4-wire,
2:USS-2-wire, 3:Peer
P02 P685.2 | PKW: 0:no, (not used)
127:yes,
3:one word,
4:one D word
P03 P686.2 | Process data: | (not used)
No. of words
P04 P684.2 | Baud rate
P05 P687.2 | Telegram failure time
P06 (END) (END)
P07
P08
P09
P10
P11
P12
P13
P14
P28
Significance of the Refer to the COMBOARD User Manuals
diagnostic outputs
Configuringdata Computation time [us] FM458-1 DP 3,3
Can be inserted online --
Can be configured in Cyclic tasks
Executed in Initialization mode
Normal mode
Special features e The block can only be configured once for
each communications submodule.
e Additional block required on the CPU
modules: @FMPAR
Function Blocks - FM 458-1 DP 2-35
Edition 12.2004
Communication blocks
2.4.3 CBRFAW Receiving warnings from a COMBOARD
Symbol
CBRFAW
EXM448 module name, connector + GV CTS CW W|- COMBOARD alarms 96 - 81
QTS| BO|- Module status
YTS W|- Status, COMBOARD alarm
channel
Brief description e The block can only be configured on a FM458 module.
e This block receives warnings A81 to A96 of a COMBOARD
(communications submodule of SIMOVERT MASTER DRIVES, e.g.
CBP2 for PROFIBUS DP).
e Input CTS of the CBRFAW function block is used to define from which
COMBOARD the warnings are to be received.
e Function block CBRFAW may only be configured on a FM458 module
of each COMBOARD. It is configured on the FM458 module, on which
a @FMPAR function block was also configured for the appropriate
COMBOARD.
I/O Initialization inputs:
CTS Configured name of the EXM448/EXM448-2 module and connector X01 or X02, separated by
(Default: - )
Outputs:
CW Outputs COMBOARD warnings A81 to A96
(Default: 0)
QTS Block status:
e QTS=1: Block is being processed and is operating error-free.
e QTS=0: Block is shut down due to a fault with error output at YTS.
(Default: 0)
YTS Status of the COMBOARD warning channel:
YTS=0: OK condition
For additional values, refer to: D7-SYS online help "Help on events". (press the F1 key in the
CFC and call-up the topic "Help on events" under "CFC for SIMADYN D".)
(Default: 0)
2-36 Function Blocks - FM 458-1 DP
Edition 12.2004
Configuringdata
Communication blocks
Computation time [us]
FM458-1 DP 3,3
Can be inserted online
Can be configured in
Cyclic tasks
Executed in
Initialization mode
Normal mode
Special features
e The block can only be configured once for
each communications submodule.
e Additionally required block:
@FMPAR
Function Blocks - FM 458-1 DP
Edition 12.2004
2-37
Communication blocks
2.4.4 PNAME Parameter names
Symbol
parameter language selection
Brief description
Mode of operation
2-38
parameter name 1
parameter name 2
parameter name 3
parameter name 4
parameter name 5
parameter name 6
parameter name 7
parameter name 8
parameter name 9
parameter name 10
parameter name 11
parameter name 12
parameter name 13
parameter name 14
parameter name 15
parameter name 16
parameter name 17
parameter name 18
parameter name 19
parameter name 20
l
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
S
— status output
The block is required to configure names for parameters.
The PNAME function block can be configured on the following modules:
e T400 technology module (@DRIVE function block is required)
e FM module
(@FMPAR function block is required)
The block can be configured in the slowest sampling time.
The block saves the configured names in the parameter list of the
function block @FMPAR, and then disables itself.
Function Blocks - FM 458-1 DP
Edition 12.2004
I/O
Communication blocks
Parameter language selection (parameter langage): The configured parameter names are
exactly activated when the data coincides with the PLA input at the @FMPAR block.
(Initialization input)
(Default value: 0)
The parameter number and the parameter name, separated by a colon are specified
at the Nnn inputs. Example: "H123: parameter name". The parameter number must
always consists of a letter (H or L) and three digits. The parameter name should be
a maximum of 16 characters long; longer names will be cut-off and shorter names,
filled with blanks. .
(Initialization input)
(Default value: Empty string)
Status display, possible values
- 0: OK status (all of the names are activated).
Alarms:
- 1: The names are not activated, as another language is set at function block @FMPAR
- 2: For at least one parameter number, there is no parameter (the name is ignored)
Additional values, refer to: D7-SYS Online Help "Help on events" (press key F1 in the CFC
and call-up the topic "Help on events" under "CFC for SIMADYN D")
(Default value: 0)
Configuringdata Computation time [us] FM 458-1 DP 3,3
Can be configured in Cyclic tasks
Executed in Initialization mode
Normal mode
Special features additionally required block on the FM
modules: @FMPAR
Function Blocks - FM 458-1 DP 2-39
Edition 12.2004
Communication blocks
2.4.5 PSTAT Change enable for parameters
Symbol
Password W |- Access level
Level 1 — Device status
Level 2 — Status display
Level 3
Level 4
Level 5
Level 6
Level 7
Level 8
Device status
Brief description Using the function block, the following can be realized
e a current device status can be configured,
e the access level can be defined by entering a password,
e the device status and the access level is used to define whether a
parameter may be changed.
The statuses and access level, in which a parameter is to be inhibited or
enabled, are defined using the PLIM function block.
Function block PSTAT may only be configured once in each FM module.
I/O
Current password:
If password PSW does not coincide with the PWi values, then this corresponds to access level
0: this does not permit any change.
If password PSW coincides with a value of PWi, then this corresponds to access level i and all
lower access levels.
In access level 8, there are no access authorizations as a result of the access level (all other
access restrictuions, e.g. using the device status, are retained).
(Default: 0)
Appropriate password for access level i (password i):
(Default: 0)
Actual "device status": There are 16 statuses.
Permissible entry range: 1 to 16
(Default: 1)
2-40 Function Blocks - FM 458-1 DP
Edition 12.2004
Communication blocks
Actual access stage i (word level):
The access stage i, determined by the entry at input PSW, is output as binary value. For access
stage n, bit n is set to 1 and all of the other 15 bits, are set to 0.
e.g. for access level = 7, WLVcorresponds to 240000000001000000.
(Default: 240000000000000000)
Device status (word state):
The actual device status STE is output as a binary value. For the current device status ST=n, bit
nis set to 1 and all of the other 15 bits are set to 0.
e.g. for STE=7, WST corresponds to 24000000001000000.
(Default: 240000000000000001)
Status display:
7C72: Function block is configured several times
7CA9: no @FMPAR function block configured
7CC3: one or several incorrect entries were made at input PWi
7CC4: illegal entry at input STE
(Default: 0)
For additional values, refer to: D7-SYS online help "Help on events". (press
key F1 in the CFC and call-up the topic "Help on events" under
"CFC for SIMADYN D".)
Configuringdata Computation time [us] FM 458-1 DP 3,3
Can be configured in Alarm-Tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Special features e Function block may only be configured once
per FM module
e Function block additionally required on the
FM modules:
@FMPAR and PLIM
Function Blocks - FM 458-1 DP 2-41
Edition 12.2004
3 Logic blocks
3.1 SAV TR Save FB for NOV RAM
Symbol
SAV TR FT SAv IR
input variable JR X Y R |— output variable
mode of operation BO |M QF| BOl|- no available memory
Brief description A REAL type quantity is saved in the NOV-RAM of a technology module.
Mode of operation The function block is a read/write memory for a REAL value. It is only
active, if a 0 at output QF indicates that the memory space in the
NOVRAM is available. The function block operating mode is selected at
input M:
Write operating
e The quantity to be saved is entered at input X. It is transferred to
mode (M = 1) oer R
output Y.
e Further, input quantity X is entered in the NOV-RAM of the module. In
this case, a value, already contained in the NOV-RAM is overwritten.
Read operating e The last input quantity, saved in the write operating mode, is output
mode (M = 0) at Y.
e The NOV-RAM is deleted from the operating system each time the
configured software changes (even when the system is configured for
the first time), i.e. Zeros are written into it. If the NOV-RAM is then
read, without having previously written a value into the NOV RAM,
then the initialization value of the NOV RAM (zero) is output at Y.
INIT Operating In the INIT operating mode of the function block, memory is made
mode available to accept a REAL value. Output QF is set to 1 if this is not (no
longer) possible. The function block is then inactive in the RUN operating
mode.
I/O
Input quantity (default: 0.0)
MM | Operating mode (default: 0)
Output quantity (default: 0.0)
Gr No free memory (default: 0)
Function Blocks - FM 458-1 DP 3-1
Edition 03.2003
Logic blocks
Configuringdata Computation time [us] FM 458-1 DP 0,6
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
3-2 Function Blocks - FM 458-1 DP
Edition 03.2003
Logic blocks
3.2 PAS7 Initiate process interrupt at the S7-CPU
Symbol
Supplementary interrupt info
Reset error
Trigger mode
Initiate interrupt
Brief description
Mode of operation
NOTE
I/O
Configuringdata
— error output
This function block, which initiates a process interrupt to the SIMATIC
S7-CPU, can only run with an FM 458-1 DP application module.
The function block initiates a process interrupt at the associated S7 CPU.
The IFO double word is transferred to the S7-CPU as supplementary
interrupt information.
A process interrupt is only acknowledged after the process interrupt
OBs (organization block) has been executed on the S7-CPU.
The block does not wait for the acknowledgment. The OB is
parameterized in the HWConfig for the associated S7-CPU.
The process interrupt is only initiated, if the S7-CPU is not processing a
process interrupt from the FM 458-1 DP application module.
Output QF has the value 1, if a new process interrupt is initiated,
although the last process interrupt was still not acknowledged or the
block was not configured on FM 458-1 DP.
Output QF has the value 0, if the acknowledgment from the S7-CPU has
been received, or if input RES has the value 1.
The interrupt is initiated as a function of the input TMB:
e for TMB = 0, if a signal changes from 0 to 1 at input I, or.
e for TMB = 1, if any signal transition occurs at input I.
i Supplementary interrupt information (default: 0)
Res freser o
1 [rite aninterupt loew
lar femora feat
Computation time [us] | FM 458-1 DP 3,3
Can be configured in Interrupt tasks
Cyclic tasks
Function Blocks - FM 458-1 DP 3-3
Edition 03.2003
4 Service-/diagnostic blocks
4.1 FMLED Control FM 458-1 DP diagnostics LED
Symbol
LED (user error
LED (online monitoring
LED (communications error
LED (sampling time overflow
Brief description
Mode of operation
— error output
The function block, which controls the FM 458-1 DP diagnostic LEDs,
can only run with an FM 458-1 DP application module.
The LEDs of the FM 458-1 DP application module can be controlled
using this block.
The LED display is canceled for a value of 0 at the appropriate input; for
a value of 1, it is set and for a value of -1, its status is retained,
unchanged. The value of -1 is required, as this block has been configured
a multiple number of times.
Output QF has the value 1, if the inputs have invalid values, or if the
block is not configured on the FM 458-1 DP application module.
vo AW
far T
Configuringdata FM 458-1DP 1,0
Cyclic tasks
Initialization mode
Ee
Function Blocks - FM 458-1 DP 4-1
Edition 03.2003
5 SIMOLINK drive coupling
5.1 (OSL SIMOLINK central block
Symbol
Hardware address SLB I |- Error status of the block
Operating mode I | No. of nodes
Node address DI |- No. of cycles
Send power DI |- No. of overruns
Filling-up the telegram gaps DI |- No. of timeouts
Use PCI Copy DI |- No. of CRC errors
Max. blocksize DI |- No. of the defective module
Enable the drive interface DI |-- No. of waiting cycles
Brief description
Mode of operation
DI |- No. of CO1 overruns
BO |-- Group error bit
The @SL central block allows the initialization and monitoring of
communications with an SLB module.
An SLB module is a system hardware component, which can be an ITSL-
, an EXM 448-1 module or an optional SLB (SIMOLINK Board) of the
ITSL module.
The @SL central block may only be configured in a cyclic task and once
per SIMOLINK ring.
The following parameters must be set for an SLB module:
Function Blocks - FM 458-1 DP
Edition 12.2004
Hardware address SLB (TAD)
Operating mode (MOD)
Node address (ASL), only relevant when operating mode 0 is selected
Send power (POW) for the SLB module
The @SL central block executes the following steps while the system
is being initialized:
Checks the validity of the value ranges at the input connections
Checks whether additional @SL central blocks have been
configured at the same hardware address (input TAD)
Initializes the SLB module corresponding to the data at the
initialization connections
SIMOLINK drive coupling
— Sends an initialization sequence (SIMOLINK) and monitors the
starting sequence
2. The @SL central block executes, in the standard mode ("RUN“
operating status) of the system, the following operating steps:
— Monitors communications of the SIMOLINK drive interface
— Outputs fault messages when communication faults occur at the
outputs
— Outputs information about the drive coupling
— New values for the node address (ASL) and send power (POW)
are only transferred after the SIMOLINK drive coupling restarts.
Operating mode An SLB module can be initialized and can operate in 6 different operating
modes.
When configuring, the different time characteristics of the SIMOLINK
blocks for the selected operating modes at input MOD.
Slave mode
The SLB module operates as slave. The SIMOLINK blocks in the CFC chart must be configured
in an interrupt task Ix (x=1 . . . 8).
Timing: an interrupt is initiated each time a SYNC telegram is received, and therefore starts
execution of interrupt task Ix. The received values are read and the values to be sent are written
into the write buffer of the SLB module.
SYNC telegram SYNC telegram SYNC telegram
SIMOLINK cycle SIMOLINK cycle
Processing time of the Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks SIMOLINK blocks
Interrupt task Ix
Asynchronous mode
The SLB module operates as master. The SIMOLINK blocks in the CFC chart must be
configured in a cyclic task Tx (x=1... 5).
Timing: The blocks are executed each time cyclic task Tx starts. The SIMOLINK telegrams are
sent after the last SIMOLINK block has been calculated.
SIMOLINK cycle SIMOLINK cycle
Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks
Cyclic task Tx
Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
Timer mode
The SLB module operates as master. The SIMOLINK blocks in the CFC chart must be
configured in an interrupt task Ix (x=1 . . . 8).
Timing: A timer of the ITSL/EXM 448-1 module initiates, corresponding to the equivalent
sampling time, an interrupt, and therefore execution of interrupt task Ix. The SIMOLINK
telegrams are sent after the last SIMOLINK block has been calculated.
Timer interrupt Timer interrupt
Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks
Interrupt task Ix
Automatic mode
The SLB module operates as master. The SIMOLINK blocks in the CFC chart must be
configured in an interrupt task Ix (x=1.. . 8).
Timing: Each SYNC telegram which is received, initiates an interrupt, and therefore execution of
the interrupt task Ix. The SIMOLINK bus cycle is automatically re-initiated each time a SYNC
telegram is received. SIMOLINK telegrams are sent and received in parallel with the signal
processing (internal calculations).
SYNC telegram SYNC telegram
ý
Processing time of the Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks SIMOLINK blocks
Interrupt task
External mode
The SLB module operates as master. The SIMOLINK blocks in the CFC chart must be
configured in an interrupt task Ix (x=1.. . 8).
Timing: The bask clock cycle TO from the system initiates that telegrams are sent, and therefore
the start of the SIMOLINK cycle. A subsequently received SYNC telegram initiates an interrupt
and therefore execution of interrupt task Ix. The signal processing (internal calculations) are
realized after the SIMOLINK telegram has been sent and received.
TO interrupt SYNC telegram TO interrupt SYNC telegram
Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks
Interrupt task Ix
Basic clock cycle TO
External cyclic mode
The SLB module operates as master. The SIMOLINK blocks in the CFC chart must be
configured in a cyclic task T1=T0.
Timing: The basic clock cycle TO initiates that telegrams are sent (starts the SIMOLINK cycle)
and the SIMOLINK blocks are processed in T1=T0. The signals are processed (internal
calculation) at the same time as sending and receiving SIMOLINK telegrams.
TO interrupt TO interrupt TO interrupt
7
Processing time of the Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks SIMOLINK blocks
Cyclic task T1 = TO
Function Blocks - FM 458-1 DP 5-3
Edition 12.2004
SIMOLINK drive coupling
Cyclic-automatic-mode 10
The cyclic-automatic-mode 10 offers the advantage to place the function block configuration in
cyklic tasks, in opposed to mode 3.
SYNC Telegram SYNC Telegram
SIMOLINK cycle SIMOLINK cycle SIMOLINK cycle
Processing time of the Processing time of the Processing time of the
SIMOLINK blocks SIMOLINK blocks SIMOLINK blocks
cyclic Task Tx
NOTE It is necessary to set interrupt task sources for operating modes
0, 2, 3, 4 and 10, in order to initiate the configured interrupt tasks.
The settings must be made in the HWConfig in the properties
window under the "Interrupt tasks" tab. They are dependent on
the configured hardware components.
interrupt task
settings
Interrupt source to be set for the interrupt task Ix of the SIMOLINK blocks, if:
Operating first SLB module at | first SLB module at second SLB second SLB
mode slot 1 slot 2 module at slot 1 module at slot 2
| o | LE bus interrupt 1 LE bus interrupt 3 LE bus interrupt 2 | LE bus interrupt 4
LE bus interrupt 5 LE bus interrupt 6 LE bus interrupt 7 | LE bus interrupt 8
LE bus interrupt 1 LE bus interrupt 3 LE bus interrupt 2 | LE bus interrupt 4
4 LE bus interrupt 1 LE bus interrupt 3 LE bus interrupt 2 | LE bus interrupt 4
NOTE The first SLB module can be an EXM 448-1- or an ITSL module
without optional SLB. The settings for the second SLB module
are only relevant for an ITSL module with optional SLB.
5-4 Function Blocks - FM 458-1 DP
Edition 12.2004
1/0
SIMOLINK drive coupling
Hardware address SLB (name of the SLB module), which can be
configured in HWConfig.
Operating mode (default: 0)
Sets the required operating mode
(initialization connection)
)
Node address (default: 0
Address of the slave (1 . . . 200) in the SIMOLINK ring (this is only
relevant, if operating mode 0 was selected at MOD)
(initialization connection)
Send power (default: 3)
Send power of the SLB module (if a lower send power is used, the
aging processing of the fiber-optic cables is slowed down and errors in
the medium can be more easily identified at start-up). Value range: 1. .
. 3 (small, medium large);
(initialization connection)
Filling-up the telegram gaps (default: 0)
For FIL=1, if there is a gap between two bus cycles, then this is
filled-up with NOP telegrams.
Note: if the sampling time TO is synchronized, then filling-up only
operates correctly if the equivalent sampling time is precisely set to
the value of the cycle time that is used for synchronization.
(initialization connection)
Use PCI Copy (default: 0)
1 = Data with PCI Copy read
0 = Data normal read
max. blocksize (default: 15)
Max. blocksize for a PCI Copy block
Bus enable (default: 1)
Start/stop of the SLB module for telegram data transfer
EN=0 no telegrams are sent
telegrams are sent corresponding to the selected operating
Error status of the block (default: 0)
YF=0 No error, YF > 0 refer to coded error output
Number of nodes (default: 0)
Number of nodes in the SIMOLINK ring
(including SL master)
Number of cycles (default: 0)
Number of SIMOLINK cycles which have been executed or the number
of SIMOLINK telegrams
Number of overruns (default: 0)
The number of statuses, where the configured function blocks have not
be able to provide the data or retrieve the data up to the start of the
next SIMOLINK cycle. The data remains consistent, even for errors
such as these and the SIMOLINK cycle is started with old data.
In order to resolve this problem, the interrupt tasks, in which the
SIMOLINK blocks were configured, must be relieved.
No. of timeouts on the SIMOLINK ring (default: 0)
A timeout means that a telegram has failed (not been received).
Number of CRC errors in the SIMOLINK ring (default: 0)
A node sends a telegram with a CRC error.
Function Blocks - FM 458-1 DP 5-5
Edition 12.2004
SIMOLINK drive coupling
Me | Number of the defective module and/or node that detected the fault in | (default: 0)
the line.
No. of waiting cycles (default: 0)
The number of the processor cycles specifies while the values by PCI
Copy are being waited for.
No. of CO1 Overruns (default: 0)
Group error bit (default: 0)
QF=0 No error, QF=1 for error (if YF+0)
5-6 Function Blocks - FM 458-1 DP
Edition 12.2004
coded error output
SIMOLINK drive coupling
Error statuses which occur for the appropriate block are output in a
coded form at outputs YF of the SIMOLINK blocks. Only the last error
event is displayed.
Value
19
20
21
22
23
30
31
32
33
Function Blocks - FM 458-1 DP
Edition 12.2004
Significance
TAD input is incorrectly connected
SLB module not inserted or hardware defective
SLB module is already being used by another central block @SL
Memory problem
Central block @SL not configured
No SIMOLINK block available
Memory register was not set-up
Software does not support the hardware combination
Block must be configured in an interrupt task
Block must be configured in a cyclic task
Block must be configured in a cyclic task with TX=TO
Equivalent sampling time must be equal to TO
Interrupt source for the alarm task is incorrect
Blocks must be configured in the same sampling time
Operating mode is (still) not supported
Node address at input ASL is too high
No send- and receive blocks available
Note: However, if send and receive blocks are configured, then the
fault messages at these blocks should be carefully observed!
Maximum number of SIMOLINK telegrams (max. 1021 net
telegrams) exceeded — increase SIMOLINK cycle time or configure
fewer SIMOLINK blocks
Slave address too high
Channel number too high
Slave attempts to write to the incorrect address
Cross-data transfer is only possible in one direction per slave
(sending or receiving)
Physical data transfer along the SIMOLINK ring is faulted
— increase the send power at one of the partial segments, or the
fiber-optic cable medium or connector is defective
CRC error (check sum error)
Timeout error in the SIMOLINK ring
Only for MOD=0: signaled SIMOLINK cycle time (in the special
telegram from the SL master) does not correspond to the configured
equivalent sampling time
5-7
SIMOLINK drive coupling
Configuringdata Computation time [us] FM 458-1 DP 69,3
Can be configured in Cyclic task
Executed in Initialization mode
Normal mode
5-8 Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
5.2 SLAV, SLAVE R SIMOLINK receive block for one actual
value
Symbol
— Actual value from slave 0
— Actual value from slave 1
— Actual value from slave 2
— Actual value from slave 3
— Actual value from slave 4
— Actual value from slave 5
— Actual value from slave 6
— Actual value from slave 7
I |- Sequence number
I |-- Block error status
BO |-- Group error bit
Hardware address SLB
Address of the first slave
Number of slaves
Channel number for the actual value
Enable cross-data transfer
Brief description A max. of 8 actual values can be transferred from max. 8 slaves using
the SLAV receive block. Each slave can only receive one actual value,
and for all of the slaves, only the same channel number is addressed.
The SLAVE and SLAVE_R function blocks are functionally identical. The
only difference is the data type of the actual value connections YAO to
YAT:
SLAVE: DINT
SLAVE R: REAL
Mode of operation 1. The SLAV function block executes the following steps while the
system is being initialized
— Checks the task assignment,
— Initializes the task list of the SLB module corresponding to the data
configured at the inputs
2. In the normal system mode ("RUN* operating status), the SLAV
function block executes the following steps:
— Checks that the inputs are within the permissible value range
— Reads-out the actual values to be received from the receive buffer
of the SLB module#
Function Blocks - FM 458-1 DP 5-9
Edition 12.2004
SIMOLINK drive coupling
SLB hardware address (name of the SLB module), which can be
configured in HWConfig
Address of the first slave from which the actual value YAO should (default: 1)
be received, value range 1. . . 200
(initialization connection)
)
No. of slaves, from which actual values are to be received, (default: 1
value range 1...8
(initialization connection)
I/O
NSL
CSV Channel number on which the actual value is received, (default: 0)
value range 0...7
(initialization connection)
Qv Enable cross-data transfer (default: 0)
This is used, if data is to be sent to a slave in the same cycle which
is physically located in front in the SIMOLINK ring (e.g. from slave 4
to slave 1).
YAO to Actual value YA from slaves 1 to 8 (default: 0)
YA7 A maximum of 8 actual values can be received.
Sequence number (default: 0)
Number of the block in the SIMOLINK block sequence
The value supplies info as to whether the block was correctly
initialized.
Error status of the block (default: 0)
no error, YF > 0 refer to coded error output @SL
Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YFz0)
Configuringdata Computation time [us] FM 458-1 DP 34,7
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
5-10 Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
5.3 SLD SIMOLINK delta evaluation
Symbol
— Delta time
— Delta time, max.
— Delta time, min.
I|- Sequence number
I |- Block error status
BO |— Group error bit
Hardware address SLB
Brief description A sampling time failure can be detected using function block SLD. The
counter status is interrogated at each SYNC interrupt (this is generated at
the end of every telegram cycle). The block can calculate and output the
difference to the old (previous) value.
Mode of operation The blocks reads the interrogated value of the counter and generates the
difference to the value which was saved in the old (previous) cycle. This
value is output at DT.
The minimum and maximum values of DT are kept for monitoring
purposes.
SLB hardware address (name of the SLB module), which can be
configured in HWConfig
Delta time (default: 0)
Difference to the last SIMOLINK cycle duration
Delta time, max. (default: 0)
Maximum value of DT
Delta time, min. (default: 0)
Minimum value of DT
Sequence number (default: 0)
Number of the block in the SIMOLINK block sequence
This value provides information as to whether the block was correctly
initialized.
YF Error status of the block (default: 0)
YF=0 no error, YF > 0 refer to coded error output @SL
Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YFz=0)
Configuringdata Computation time [us] FM 458-1 DP 19,8
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Function Blocks - FM 458-1 DP 5-11
Edition 12.2004
SIMOLINK drive coupling
5.4 SLDIS SIMOLINK dispatcher
Symbol
Hardware address SLB — Sequence number
Number of slaves — Block error status
Number of channels — Group error bit
Enable cross-data transfer
Brief description A dispatcher mode is prepared in-line with the SIMOLINK specifications
(as for MASTERDRIVES drive converters) using the SLDIS function
block.
Mode of operation The block registers the telegrams for all NSL slaves and all NCN
channels.
I/O
TAD Hardware address SLB (name of the SLB module), which can be
configured in HWConfig
NSL Number of all of the slaves in the SIMOLINK ring (default: 1)
(initialization connection)
NCN Number of all of the channels (default: 1)
(initialization connection)
Enable cross-data transfer (default: 0)
This is used, if data are to be sent to a slave in the same cycle, which
is located physically in front in the SIMOLINK ring (e.g. from slave 4
to slave 1).
Sequence number (default: 0)
Number of the block in the SIMOLINK block sequence
This value provides information as to whether the block was correctly
initialized.
Error status of the block (default: 0)
no error, YF > 0 refer to coded error output @SL
Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YFz0)
Configuringdata Computation time [us] FM 458-1 DP 14,7
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
5-12 Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
5.5 SLSV, SLSV R SIMOLINK send block for one setpoint
Symbol
Hardware addresse SLB
Address of the first slave
Number of slaves
Channel number for the setpoint
Setpoint at slave 0
Setpoint at slave 1
Setpoint at slave 2
Setpoint at slave 3
Setpoint at slave 4
Setpoint at slave 5
Setpoint at slave 6
Setpoint at slave 7
— Sequence numbedr
— Block error status
— Group error bit
Brief description A maximum of 8 setpoints can be transferred to a maximum of 8 slaves
using the SLSV send block. Only one setpoint can be sent to each slave,
and for all of the slaves, only the same channel number can be
addressed.
The SLSV and SLSV_R function blocks are functionally identical. The
only difference is the data type of the setpoint connections XSO to XS7:
SLSV: DINT
SLSV_R: REAL
Mode of operation 1. The SLSV send block executes the following steps while the system is
being initialized:
— Checks the task assignment
— Initializes the task-list of the SLB module corresponding to the data
configured at the inputs
2. In the normal system mode ("RUN" mode), the SLSV send block
executes the following:
— Calculates the setpoints
— Checks that the inputs are within the permissible value ranges
Enters the setpoints to be sent into the write buffer of the SLB
module
Function Blocks - FM 458-1 DP 5-13
Edition 12.2004
SIMOLINK drive coupling
I/O
Hardware address SLB (name of the SLB module), which can be
configured in HWConfig
Address of the first slave to which setpoint XSO should be sent, (default: 1)
value range 1... 200
(initialization connection)
)
Number of slaves to which the setpoint should be sent, (default: 1
value range 1... 8
(initialization connection)
Number of the channel on which the setpoint is sent, (default: 0)
value range 0... 7
(initialization connection)
Setpoint XS for slaves 1 to 8, (default: 0)
A maximum of 8 setpoints can be sent.
Sequence number (default: 0)
Number of the blocks in the SIMOLINK block sequence
This value provides information as to whether the block was correctly
initialized.
Error status of the block (default: 0)
YF=0 no error, YF > refer to coded error output @SL
Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YFz0)
Configuringdata Computation time [us] FM 458-1 DP 34,7
5-14
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
5.6 SLSV2, SLSV2R SIMOLINK send block for 2 setpoints
Symbol
Hardware addresse SLB
Address of the first slave
No. of slaves
Axix cycle length
Channel number for setpoint 2
Channel number for the setpoint
Common setpoint of the main angle
Setpoint offset for slave 0
Setpoint offset for slave 1
Setpoint offset for slave 2
Setpoint offset for slave 3
Setpoint offset for slave 4
Setpoint offset for slave 5
Setpoint offset for slave 6
Setpoint offset for slave 7
— Sequence number
— Block group error status
— Group error bit
Brief description 2 setpoints can be sent to each slave using the SLSV2 send block. In this
case, the block can handle a maximum of 8 slaves. The first setpoint is
transferred to all of the 8 slaves.
This functionality can be used to implement a virtual shaft, especially if
the time and the position/angular setpoint must be transferred to the
slaves.
The SLSV2 and SLSV2R function blocks are functionally identical. The
only difference is the data type of the setpoint connections XO0 to XO7:
SLSV2: DINT
SLSV2R: REAL
Mode of operation 1. The SLSV2 send block executes the following steps while the system
is being initialized:
— Checks the task assignment
— Initializes the task list of the SLB module corresponding to the data
configured at the inputs
2. In the normal system mode ("RUN" mode), the SLSV2 send block
executes the following steps:
— Calculates the setpoints
— Checks that the inputs are within the permissible value ranges
— Enters the setpoints to be sent into the write buffer of the SLB
module
Function Blocks - FM 458-1 DP 5-15
Edition 12.2004
SIMOLINK drive coupling
I/O
Hardware address SLB (name of the SLB module), which can be
configured in HWConfig
Address of the first slave to which setpoint XOO should be set, value | (default: 1)
range 1... 200
(initialization connection)
)
Number of slaves to which the setpoint should be sent, value range (default: 1
1...8
(initialization connection)
Axis cycle length (default: 0)
Upper integrator limit value
Channel number for setpoint 2, value range 0...7 (default: 0)
(initialization connection)
Number of the channel on which the setpoint is sent, (default: 0)
Value range 0...7
(initialization connection)
Common setpoint XS of the main angle/position for all NSL slaves (default: 0)
Setpoint offset XO for slaves 1 to 8, (default: 0)
A maximum of 8 setpoint offsets can be sent.
Sequence number (default: 0)
Number of the block in the SIMOLINK block sequence
This value provides information as to whether the block was correctly
initialized.
Error status of the block (default: 0)
YF=0 no error, YF > 0 refer to coded error output @SL
Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YF #0)
Configuringdata Computation time [us] FM 458-1 DP 39,6
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
5-16 Function Blocks - FM 458-1 DP
Edition 12.2004
SIMOLINK drive coupling
5.7 SLSVAV SIMOLINK send and receive block for one slave
Symbol
Hardware addresse SLB
addresse of the slave
Number of send channels
Number of receive channels
setpoint at channel 0
setpoint at channel 1
setpoint at channel 2
setpoint at channel 3
setpoint at channel 4
setpoint at channel 5
setpoint at channel 6
setpoint at channel 7
Brief description
Mode of operation
SLSVAV
Actual value from slave 0
Actual value from slave 1
Actual value from slave 2
Actual value from slave 3
Actual value from slave 4
Actual value from slave 5
Actual value from slave 6
Actual value from slave 7
Sequence number
Block error status
Group error bit
A maximum of
e 8 setpoints and
e 8 actual values
can be transfered to and from one slave. The number of addressed
channels for the setpoints and the actual values is configured at the
inputs.
1.
Function Blocks - FM 458-1 DP
Edition 12.2004
The SLSVAV send and receive block executes the following steps
while the system is being initialized:
e Checks the task assignment
e Initializes the task-list of the SLB module corresponding to the
data configured at the inputs
In the normal system mode ("RUN" mode), the SLSVAV send and
receive block executes the following:
e Checks that the inputs are within the permissible value range
e Enters the setpoints to be sent into the write buffer of the SLB
module
e Reads-out the actual values to be received from the receive
buffer of the SLB module
5-17
SIMOLINK drive coupling
I/O
TAD Hardware address SLB (name of the SLB module), which can be
configured in HWConfig
ASL Address of the slave for dataexchange, (default: 1)
value range 1... 200
(initialization connection)
NSV Number of channels for the setpoint to be sent, (default: 0)
value range 0... 8
(initialization connection)
NAV Number of channels for the actual values to be received, (default: 0)
value range 0... 8
(initialization connection)
XS0 Setpoint XS for channel 0 to 7, (default: 0)
to A maximum of 8 setpoints can be sent.
XS7
YSO Actual values YS from channel 0 to 7, (default: 0)
to A maximum of 8 actual values can be received.
YS7
SEQ Sequence number (default: 0)
Number of the blocks in the SIMOLINK block sequence
This value provides information as to whether the block was
correctly initialized.
YF Error status of the block (default: 0)
YF=0 = noerror, YF > 0
QF Group error bit (default: 0)
QF=0 no error, QF=1 for error (if YFz0)
Configuringdata Computation time [us] FM458 / PM6 34,7
Can be inserted online no
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Special features -
5-18 Function Blocks - FM 458-1 DP
Edition 12.2004
6 Closed-loop control blocks
6.1.1 INT M Modulo integrator for axis cycle correct integration
Symbol
Modulo value
Input
Numerator, ratio
Denominator, ratio
Setting value
Reset
Set
Hold
— Output
— Positive oberflow
— Negative overflow
— Block error status
Brief description the virtual master block INT_M is used to generate position reference
values in angular synchronism.
Mode of operation The block sums the input values X, weighted with ratio NM and DN.
If the sum of the modulo value MOD exceeds or falls below 0, the modulo
value is subtracted or added, and an overflow bit QP or QN is set for the
duration of the sampling time.
Modulo value, value range 1... 230 (default: 0)
Input quantity of the integrator (default: 0)
e.g. velocity (ramp-function generator output)
Numerator value for the ratio (gearbox factor) (default: 1)
NM * X may not exceed 231,
value range: — 230 to + 230
Denominator value for the ratio (gearbox factor), (default: 1)
value range: — 229 to + 230 Gull
Setting value (default: 0)
Is the value which is set to the output Y with S=1.
Reset (default: 0)
(default: 0)
Bit to set the output value Y to the setting value SV
S=1 > Y=SV (initial offset)
(default: 0)
Holds the instantaneous value at output Y
H=1 > Y=Yold
Function Blocks - FM 458-1 DP 6-1
Edition 12.2003
Closed-loop control blocks
Y Output quantity of the integrator (default: 0)
R=S=H=0 > Y=Yold+X+NM/DN
Positive overflow (default: 0)
QP=1 3 Y + X > MOD (Y=Y-MOD)
Negative overflow (default: 0)
QN=1 > Y+X < 0 (Y=Y+MOD)
Error status of the block (default: 0)
YF=0 no error, YF > 0 coded error output
Coded error output The error status is output in a coded form at output YF of the modulo
integrator INT M. The last error event is always displayed.
MOD > 230 or<1
Soa aa Āā Io
e Division overtow negative — |
Configuringdata Computation time [us] FM 458-1 DP 19,8
Can be configured in Interrupt tasks
Cyclic tasks
Executed in Initialization mode
Normal mode
Special features
6-2 Function Blocks - FM 458-1 DP
Edition 12.2003
Index
@CPB F bus, central coupling block retar n a E E AEA 2-15
@CSL2F PROFIBUS FMS coupling central block...........rrrrrnnnnnnvrnnnnnnvrnnnnnrnvrnnnersrrnnnersrrrnnerrrrnnnen 2-1
@CSL2L PROFIBUS FDL central block- ire aa a a ara a eaa tae aaae a e a eaaa adia aeit 2-1
@CSPRO Central block, PROFIBUS DP coupling.....-++mrrrrrnnrrnnrrnrrnrrrrrnnrnnrrrrrnnnnnnrnrerrrrnnrnnnnnn 2-1, 2-2
@FMPAR Parameter processing on FM458 modules.......rrrrrrrarvvvrnnnvvvvrnnnnvonnrrnnrrnnrrnnrennrrenrennnnn 2-29
@SLSIMOLINK central block. aa aiaa reran daa ak eee 5-1
B
BRCV Block-oriented data reception via an S7 coupling.....-.-.rnrrrrrnrnnnrrnnn nr nr rnnrnrrrrnrnrnnnrnrennnnn 2-20
C
CBCONF COMBOARD configuration ......rwrsrrrnnannvvrnnnnavvrnnnnnvnrrnnnnrrnrnnnrennrneerennrnesrsnnnrnessennrressennnne 2-32
CBRFAW Receiving warnings from a COMBOARD ......rannnnnnnnnnnnnnnnrennrnrnnrennrnnerrrrnnrrrrnnrenrrrrrnnnnnn 2-36
D
DPDIAG Diagnostics overview, PROFIBUS DP ..............:ccccccceeececeeneeceeeeeeeeeeteceaeaeeeeeeesessnnisaeeeeeees 2-3
DPEVT Alarm information, PROFIBUS DP.......rrrarannrnrnnnrrnnnnnnarernrrnnransnersvnrvnrrnnsnnrenernernnsnnrenernesennn 2-9
DPPEVT Process alarm information, PROFIBUS DP Symbol .......0.........:cc:ccecceceeeeeeeeteeteeeeeeeeees 2-12
DPSLDG Slave diagnostics, PROFIBUS DP ..............ecccccccccceceeeeeeeeeeceeeeeeeeecceeaeceeeeeeesecssenieaeeeeeess 2-6
F
FMLED Control FM 458 diagnostics LED ...0............ccecececeeceeeeeeeeeeeeeaeceeeeeeeeseecaaeaeeeeeeesesensieaeeeeeees 4-1
|
INT M Modulo integrator for axis cycle-correct integration .........arsrrraronnrrnnnnonnrrnnnonnrrnnrrnnrrnnrnennnnn 6-1
P
PAS7 Initiate process interrupt at the S7-CPU ............eccccecccceceeeeeceenne cee ceeeeeseseceaeaeeeeeeeseteenaeeaeeeeees 3-3
PNAME Parameter names on the T400............:::ccccceeeeeeeeeeeceeceeeeeeeeecencaeceeeeeeeseccueaeeeeeeeseeeensnaeees 2-38
PSTAT Change enable for parameters ...........ccccceeeceeeeeneeeeeeneeeeeeeeaeeeeeeaaeeeseeaeeeeeeaeeeseeneeeeeenas 2-40
S
S7RD, S7RD B, S7RD |, S7RD_D Read from the peripheral area of the S7-CPU .................. 2-25
S7RD P Reading data from a SIMATIC-CPU (P Bus) ......ornnrvrnronnrrvnrennrrvnnrennrrnnrrnnrrenrrnnrrensrnnnnne 2-16
S7STAT S7 CPU operating state.........rrrmnnrnnrrrnrrnnnr vennen nrrvnrennrrrnrennrrenrrnnrrrenrennrrenernnrresrennnreseennnnne 2-23
S7WR, S7WR B, S7WR |, S7WR D Write into the peripheral area of the S7-CPU................. 2-27
S7WR P Sending data to a SIMATIC-CPU (P Bus).........rnnnnrrnonnnornvonrrnrrnrennnrnnrrrrnnnnrnnnrenrrrrrnnnnnn 2-18
SAV- TR Save FB for NOVGRAM thee nen acetates ita nb anal 3-1
Function Blocks - FM 458-1 DP |-1
Edition 12.2004
Index
SBM Rotary encoder block. .unisrnmdasrkimmstørkrkide ikek i nheeventeadedel e i bd dd år bt 1-2
SLAV, SLAVE R SIMOLINK receive block for one actual value ...............ccccccccceeeceeeeeeeseeeeeeeeeeenes 5-9
SLD SIMOLINK delta evaluation ...........»rrrrrrrrrnrannrorovvrrrrrnnnnnrsvernrrannnnrsrernrrrnranesanssnevnrransnsnssesnesenne 5-11
SEDIS SIMOEINK dispatther:raauuannagunutdrsnn eee lee ie ela ries neta hadde 5-12
SLSV, SLSV R SIMOLINK send block for one Setpoint ...............ccceccceeeeeceeceeeeeeeeeeeeeeeeeeeeeeeeeeees 5-13
SLSV2, SLSV2R SIMOLINK send block for 2 setpoints ................ccccccceseseeeeeeeeeeeeeeeeeeeseneeeeesenees 5-15
SLSVAV SIMOLINK send and receive block for one SIAVE.............cccccceseseeeeeeeeeeeeaeeeeeeeeeeeeanenenes 5-17
|-2 Function Blocks - FM 458-1 DP
Edition 12.2004