Applications & Tools: Example Blocks For Wincc and Step 7
Applications & Tools: Example Blocks For Wincc and Step 7
We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (wesentliche Vertragspflichten). However, claims arising from a breach of a condition which goes to the root of the contract shall be limited to the foreseeable damage which is intrinsic to the contract, unless caused by intent or gross negligence or based on mandatory liability for injury of life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. It is not permissible to transfer or copy these application examples or excerpts of them without having prior authorization from Siemens Industry Sector in writing. For questions about this document please use the following e-mail address: online-support.automation@siemens.com
Preface
Preface
The example blocks for STEP 7 and WinCC enable the user to utilize various automation functions or to use these blocks as templates for the configuration of individual blocks.
Configuration of the application This application includes: an example project that demonstrates the use of STEP 7 blocks and faceplates and the individual configuration examples of the blocks for usage in your own projects.
BST_LAG BST_SPLITR
FB656 FB657
Industry Automation and Drives Technologies Service & Support Portal This article is taken from the Service Portal of Siemens AG, Industry Automation and Drives Technologies. The following link takes you directly to the download page of this document. http://support.automation.siemens.com/WW/view/en/31624179
Table of Contents
Table of Contents
Application Description............................................................................................... 6 1 2 2.1 2.2 3 3.1 3.1.1 3.1.2 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.2.10 3.2.11 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 4 4.1 4.2 Task...................................................................................................... 6 Structure of the Automation Solution ................................................... 7 Overview .............................................................................................. 7 Required components .......................................................................... 8 Function Mechanisms and Project Description .................................... 9 Alarms and messages.......................................................................... 9 Block for S7-300 CPUs ........................................................................ 9 Block for S7-400 CPUs ...................................................................... 10 Control and status signals .................................................................. 12 Processing of switching commands in the control system................. 12 Transmission of switching commands to MICROMASTER 4 ............ 13 Analysis of process states and their output in the WinCC process display ................................................................................................ 14 Manual/automatic mode ..................................................................... 15 Local/remote switchover..................................................................... 17 Setpoint specification ......................................................................... 19 Specification of rotational direction .................................................... 20 Start/stop motor.................................................................................. 22 Simulation On/Off ............................................................................... 23 Interlock.............................................................................................. 25 External error...................................................................................... 26 Block icon and faceplate .................................................................... 27 Block icon ........................................................................................... 28 Status displays ................................................................................... 28 Faceplate Standard view................................................................. 29 Faceplate Alarms and messages view............................................ 30 Faceplate Trend view ...................................................................... 31 Faceplate DPV1 values.................................................................... 32 Faceplate Service view ................................................................... 33 Installation and Startup....................................................................... 34 Configuring the STEP 7 block ............................................................ 34 Configuration of the WinCC faceplate................................................ 37
Appendix..................................................................................................................... 44 5 5.1 5.2 6 7 Block Connectors ............................................................................... 44 Input parameters ................................................................................ 44 Output parameters ............................................................................. 45 Bibliography........................................................................................ 47 History ................................................................................................ 48
1 Task
Start / Stop Switchover of rotational direction Setpoint specification Manual/automatic mode Local/remote mode Simulation Stop Left-hand rotation Right-hand rotation Illegal Overload
ATTENTION
Before using the block in your own projects, check the proper functioning of the block and adjust it to your individual requirements where necessary. The block described in this application is just intended as a template for creating your own blocks.
2
2.1
Table 2-1
2.2
Hardware
Required components
Table 2-2 Component Development system 1 Qty Note PC for the configuration of the control functions and of WinCC. The usual hardware requirements for STEP 7 and WinCC apply. This block has been developed specifically for use of the MICROMASTER 4 frequency converter with the Profibus option module. In the Appendix you will find hyperlinks for further information on MICROMASTER 440. This technology block is available in 2 variants. The block for the S7-400 CPU uses a chronological message procedure (ALARM_8P). The block for the S7-300 CPU uses a bit message procedure. As an alternative, you can also simulate system control with PLCSIM.
Software
Table 2-3 Component STEP 7 V5.4 SP3 Professional Note S7-PLCSIM and S7-SCL are included in the scope of delivery. S7-PLCSIM can be used for simulation. S7-SCL is used for the creation of control blocks. CFC is used for the easy interconnection of blocks. Additionally, CFC offers the transfer of texts (process tag comment, units of notation, interlock information, ) to WinCC. [Optional]
3
3.1
3.1.1
Figure 3-1
The status signals are interlinked with the corresponding signals of the message tag in the S7 program.
Figure 3-2
3.1.2
This block calls the block ALARM_8P (SFB 35) to create messages requiring acknowledgement. To do so, the signal inputs of the ALARM_8P block are linked to different status signals in the S7 program.
Figure 3-4
10
Block NOTIFY_8P for messages not requiring acknowledgement This block calls the block NOTIFY_8P (SFB 31) to create messages that do not require acknowledgement. To do so, the signal inputs of the NOTIFY_8P block are linked to different status signals in the S7 program.
Figure 3-5
11
3.2
3.2.1
Figure 3-6
12
3.2.2
13
3.2.3
Analysis of process states and their output in the WinCC process display
The technology block of this application uses the output QdwState (DWORD) to show the different states in the WinCC process display.
Figure 3-10
14
3.2.4
Manual/automatic mode
For manual/automatic switchover, the following signals are used.
Figure 3-12
LIOP_SEL If the LIOP_SEL input is set, the mode is determined via the control input L_AUT. If the LIOP_SEL input is not set, the mode is determined by the operator (OP_dwCmd [Bit 16 and 17]). L_AUT The L_AUT input is only active if the LIOP_SEL input is set. LIOP_SEL = 1 LIOP_SEL = 1 AND AND L_AUT = 0 L_AUT = 1 Manual Automatic
15
OP_dwCmd The operator commands of the control word OP_dwCmd are active only if the LIOP_SEL input is not set. LIOP_SEL = 0 AND OP_dwCmd [Bit 16] = 1 Manual LIOP_SEL = 0 AND OP_dwCmd [Bit 17] = 1 Automatic
QMAN_AUT The operating mode is indicated at the QMAN_AUT block output. QMAN_AUT = 0 QMAN_AUT = 1 Manual Automatic
QdwState The current mode is transferred to WinCC in the status word QdwState [Bit 9]. QdwState [Bit 16] = 0 QdwState [Bit 16] = 1 Manual Automatic
Auto_ON, Auto_REV, SP_Auto and SP_Man If the automatic mode is selected, the inputs Auto_ON, Auto_REV and SP_Auto are active. If the manual mode is selected, the operation via WinCC is enabled and the SP_Man input is active.
16
3.2.5
Local/remote switchover
In Local mode, the control commands of the user are enabled directly at the device. In Remote mode, the control commands of an automatic function (e.g. control, step sequence ...) or the control commands of the WinCC-Runtime operation are active.
Figure 3-13
LIOP_SEL If the LIOP_SEL input is set, the mode is determined via the control input L_REMOTE. If the LIOP_SEL input is not set, the mode is determined by the operator (OP_dwCmd [Bit 18 and 19]). L_REMOTE The L_REMOTE input is only active if the LIOP_SEL input is set. LIOP_SEL = 1 LIOP_SEL = 1 AND AND REMOTE_L = 0 REMOTE_L = 1 Local Remote
OP_dwCmd (s7_m_c = true) The operator commands in control word OP_dwCmd become effective only, if input LIOP_SEL is not enabled. LIOP_SEL = 0 LIOP_SEL = 0 AND AND OP_dwCmd [Bit 18] = 1 OP_dwCmd [Bit 19] = 1 Local Remote
dwInp The dwInp input is used to evaluate the status word of MICROMASTER and set the QREMOTE output accordingly. dwInp [Bit 9] = 0 dwInp [Bit 9] = 1 Local Fern
17
QREMOTE The operating mode is indicated at the QREMOTE block output. QREMOTE = 0 QREMOTE = 1 Local Remote
QdwState The status word for WinCC indicates with bit 7 the switching command and with bit 17 the MICROMASTER status for remote operation. QdwState [Bit 7] = 0 QdwState [Bit 7] = 1 QdwState [Bit 17] = 0 QdwState [Bit 17] = 1 Command for local operation Command for remote operation Local Remote
18
3.2.6
Setpoint specification
Setpoints can be linked to the inputs SP_Auto and SP_Man. If no peripheral devices are connected, the block can be used in simulation mode. For this purpose, the SP_Sim input is activated.
Figure 3-14
SP_Auto The SP_Auto input is used to set the setpoint in the peripheral format. (16#0000 to 16#4000) SP_Man The SP_Man input is used to set the setpoint in the floating point format. (0.0% to 100.0%) SP_Sim The SP_Sim input is used to set the setpoint in the simulation mode.
Depending on the current manual, automatic or simulation mode, one of the inputs SP_Auto, SP_Man or SP_Sim is active. QSIM = 0 AND QMAN_AUT = 0 QSIM = 0 UND QMAN_AUT = 1 QSIM = 1 Input SP_Man is active Input SP_Auto is active Input SP_Sim is active
19
3.2.7
LIOP_SEL If the LIOP_SEL input is set, the rotational direction is determined via the control input L_REVERSE. If the LIOP_SEL input is not set, the mode is determined by the operator (OP_dwCmd [Bit 2 and 3]). L_REVERSE The L_REVERSE input is only active if the LIOP_SEL input is set. LIOP_SEL = 1 AND L_REVERSE = 0 Right for pos. setpoint LIOP_SEL = 1 AND L_REVERSE = 1 Left for pos. setpoint
20
OP_dwCmd The operator commands of the control word OP_dwCmd are active only if the LIOP_SEL input is not set. LIOP_SEL = 0 AND OP_dwCmd [Bit 2] = 1 Right for pos. setpoint LIOP_SEL = 0 AND OP_dwCmd [Bit 3] = 1 Left for pos. setpoint
Auto_REV In automatic mode, the rotational direction is controlled via the Auto_REV input. QMAN_OUT= 1 AND Auto_REV = 0 Right for pos. setpoint QMAN_OUT= 1 AND Auto_REV = 1 Left for pos. setpoint
dwInp The dwInp input is used to evaluate the status word of MICROMASTER and set the QDIRECTION output accordingly. For this, the status signal of MICROMASTER is negated in case of a positive setpoint. dwInp [Bit 14] = 0 dwInp [Bit 14] = 1 Rotational direction left Rotational direction right
QDIRECTION The current rotational direction is indicated at the QDIRECTION block output. QDIRECTION = 0 QDIRECTION = 1 Rotational direction left Rotational direction right
QdwState The status word for WinCC indicates with bit 4 the switching command and with bit 2 the MICROMASTER status for the inversion of the rotational direction. QdwState [Bit 6] = 0 QdwState [Bit 6] = 1 QdwState [Bit 2] = 0 QdwState [Bit 2] = 1 Command for right Command for left Status rotational direction left Status rotational direction right
Note: At the WinCC faceplate, the specification of a negative setpoint is not allowed. Here, the change of rotational direction is performed by means of the reverse switch.
21
3.2.8
Start/stop motor
Switchover is influenced by other functions, such as manual / automatic switchover, local / remote switchover and simulation.
Figure 3-16
LIOP_SEL If the LIOP_SEL input is set, the motor is started via the control input L_ON. If the LIOP_SEL input is not set, the motor is started (OP_dwCmd [Bit 1]) and stopped (OP_dwCmd [Bit 0]) by the operator or is controlled via the Auto_ON input in automatic mode. L_ON LIOP_SEL = 1 LIOP_SEL = 1 AND AND L_ON = 0 L_ON = 1 Stop Start
22
OP_dwCmd Bits 0 and 1 in the control word OP_dwCmd are used for WinCC Runtime operation. LIOP_SEL = 0 LIOP_SEL = 0 AND AND OP_dwCmd [Bit 0] = 1 OP_dwCmd [Bit 1] = 1 Stop Start
Auto_ON The AUTO_ON input serves for automatic control of the block. The input can be linked to other blocks. Current setpoint and actual value At the following outputs, the current setpoint is indicated: - QSPCapacity Setpoint in percent - QSPFrequency Setpoint for converter frequency - QSPSpeed Setpoint for motor speed At the following outputs, the current actual value is indicated - QFreqPeri Actual value in peripheral format - QrCapacity Actual value in percent - QrCuFrequency Actual value for converter frequency - QrCuSpeed Actual value for motor speed
The requirement for correct display of motor speed and converter frequency is a successful readout of parameters P0310 and P0311 from MICROMASTER 4 via DPV1 diagnosis.
3.2.9
Simulation On/Off
The frequency converter can be simulated by means of the Simulation ON mode. This is an important function, e. g. to test automatic functions already during the configuration phase when a connection to the process is not yet available. Without the simulation of feedback signals, many automatic functions (e. g. sequential steps) could not be executed successfully, since feedback signals are often required for switching conditions in step sequences or to trigger an error. The dwInp input and the QdwCmd output are not evaluated in this mode.
23
Figure 3-17
LIOP_SEL If the LIOP_SEL input is set, the simulation is switched on/off via the control input L_SIM. If the LIOP_SEL input is not set, the simulation is switched on/off by the operator (OP_dwCmd [Bit 20 and 21]). L_SIM LIOP_SEL = 1 LIOP_SEL = 1 AND AND L_SIM = 0 L_SIM = 1 Simulation OFF Simulation ON
SIM_nomFreq At the SIM_nomFreq input, the simulated nominal frequency can be parameterized. It is used for the calculation of the simulated value of the output.
SIM_nomSpeed At the SIM_nomSpeed input, the simulated nominal speed can be parameterized. It is used for the calculation of the simulated value of the output.
24
OP_dwCmd The operator commands of the control word OP_dwCmd are active only if the LIOP_SEL input is not set. LIOP_SEL = 0 AND OP_dwCmd [Bit 20] = 1 Simulation ON LIOP_SEL = 0 AND OP_dwCmd [Bit 21] = 1 Simulation OFF
QSIM The Simulation mode is indicated at the QSIM block output. QSIM = 0 QSIM = 1 Simulation OFF Simulation ON
QdwState The current Simulation mode is indicated in the status word by means of bit 10. QdwState [Bit 18] = 0 QdwState [Bit 18] = 1 Simulation OFF Simulation ON
3.2.10
Interlock
Blocks that influence the plant process as actuators (e.g. valves, pumps, controllers etc.) usually have signals for the interlock function (INTERLOCK). If the interlock condition of a block is active, the specific function of the block (e.g. open valve, switch on motor etc.) cannot be implemented. If the specific function of the block is already active (e.g. valve open, motor on etc.) when the interlock condition applies, the respective function of the block is deactivated (e.g. valve closed, motor switched off). This function is used to avoid critical plant conditions.
Figure 3-18
The LOCK signal transfers the OFF2 command to MICROMASTER (OFF2 impulse lock, drive coasts down). If the lock is no longer pending, the drive cannot be switched on until a stop signal is active. LOCK The input signal LOCK contains the interlock condition. If the interlock
25
condition is active, the specific block function cannot be performed. LOCK = 0 LOCK = 1 Interlock not pending Interlock pending
QLOCK The interlock is displayed at the QLOCK output. QLOCK = 0 QLOCK = 1 Interlock not pending Interlock pending
QdwState The pending lock is transferred to WinCC with [bit 26] of the status word. QdwState [Bit 26] = 0 QdwState [Bit 26] = 1 No error pending Error pending
3.2.11
External error
Figure 3-19
The error signal sends the OFF3 command to MICROMASTER (OFF3 fast stop, stop with shortest deceleration time). If the error is no longer pending, the drive cannot be switched on until a stop signal is active. ERR_EXTERN The input signal LOCK includes the interlock condition. If the interlock condition is active, the specific block function cannot be performed. ERR_EXTERN = 0 ERR_EXTERN = 1 No error pending Error pending
QERR An interlock is indicated at output QERR. QERR = 0 QERR = 1 No error pending Error pending
QdwState The error is transferred to WinCC with bit 15 of the status word. QdwState [Bit 24] = 0 QdwState [Bit 24] = 1 No error pending Error pending
26
3.3
Displayed operating states: Status stop/run Setpoint / actual value Setpoint inversion (rotational direction) Local / remote mode Manual / automatic mode Simulation mode Current speed and converter frequency Converter status Displayed error messages: External error Interlock
27
Operation: Start / stop Setpoint specification (in %) Setpoint inversion Resetting errors Local / remote switchover Manual / automatic switchover Simulation On/Off Further information: DPV1 data on MICROMASTER Trend view of setpoint and actual value (in %) Alarms and messages of the block
3.3.1
Block icon
For each of the individual operating modes Stop/Run/Illegal, a picture has been created. The operating mode is transferred to WinCC via the QdwState tag [bit 03]. The representation of the block icon is defined in the WinCC picture file BST_MM4_ICON_Define.pdl.
3~
Stop Left-hand rotation started Right-hand rotation started Locked Illegal status
M 3~ M 3~
3~ 3~
3.3.2
Status displays
For the various characteristics (states) of a block, there are separate status displays configured. Display local / remote operation L Operating mode local R Operating mode remote Display manual / automatic operation H Operating mode manual A Operating mode automatic Display simulation on / off S Simulation on Display failure / warning F General failure W General warning
28
For the configuration of the status displays of the block icon, the picture BST_MM4_ICON_Define.pdl has been created in the Graphics Designer. In this picture, all states of the status displays of a block type are represented (configured). In addition to this, the names of the picture files and the status values are specified.
3.3.3
It provides the following functions: Display of MICROMASTER 4 status information Switchover between Local (operation at the device) and Remote (operation at the visualization system) Manual / automatic switchover Setpoint specification, setpoint inversion Start / stop drive Resetting of error states
29
3.3.4
Click the following button to open the alarms and messages view:
In this view you can perform the following actions: Display of block-related alarms and messages. Acknowledgement of alarms.
30
3.3.5
The curves show the specified setpoint and actual value in percent.
31
3.3.6
You can display the DPV1 data via the following button:
The data is read out asynchronously from MICROMASTER 4 by means of the standard blocks SFB52 (RDREC) and SFB53 (WRREC). This is only an extract from all possible information. The data made available by MICROMASTER 440 is specified in the system manual. http://support.automation.siemens.com/WW/view/en/23708204
32
3.3.7
The service view provides the following functions: Switch between simulation / process operation.
33
Requirements: STEP 7 project has been created The hardware has been configured, compiled and loaded MICROMASTER is parameterized with standard telegram 1 in accordance with the system manual.
4.1
Table 4-1 Step 1. Insert blocks Open the delivered BST_LIBRARY library with the SIMATIC Manager. Copy the FB 681 block and the SCL source BST_MM4_xxx into the respective directory of the S7 program or the project library. The block uses several standard blocks which also need to be added to the project. Open the Standard Library and insert the following blocks in your S7 program: System Function Blocks > Blocks > SFC6 (RD_SINFO) System Function Blocks > Blocks > SFB52 (RDREC) System Function Blocks > Blocks > SFB53 (WRREC) Only S7-400: System Function Blocks > Blocks > SFB31 (Notify_8P) System Function Blocks > Blocks > SFB35 (Alarm_8P) 2. Create CFC chart Add the block to a new or to a previous CFC chart. Link the process output word of the MICROMASTER to the dwInp block input. Link the process input word of the MICROMASTER to the QdwCmd block output. Description
34
Description
For the DPV1 data to be read out correctly, you have to parameterize the diagnosis address at the DPV1_ID input of the block. Parameterization and readout can be performed in the properties of the DP slave.
Please note that the value has to be entered for the block in a hexadecimal format. The value 16380 corresponds to 3FFC Hex.
35
Step 4.
Description Configure messages (only with S7-400) Enter the following messages in the message configuration dialog box Object properties > tab: General > Special properties: Messages): Message ID Alarm 8P SIG1 SIG2 SIG3 SIG4 SIG5 SIG7 OFF2 active OFF3 active Motor overload Converter overload INTERLOCK ERROR EXTERNAL ERROR GENERAL ERROR STOP RUN LEFT RIGHT Interlock Remote Automatic Simulation PLC Process Control Message Failure PLC Process Control Message Failure PLC Process Control Message Failure PLC Process Control Message Failure PLC Process Control Message Error PLC Process Control Message Error PLC Process Control Message Error Status Message PLC Status Message PLC Status Message PLC Status Message PLC Status Message PLC Status Message PLC Status Message PLC Status Message PLC Message text Message class
SIG8 Notify 8P SIG1 SIG2 SIG3 SIG4 SIG5 SIG6 SIG7 SIG8
Notes: The texts under Message texts are transferred by default to WinCC into user text block 3. Leave position 1 under More>> empty for message texts. The process tag for user text block 1 will then be transferred automatically. This is important for the further processing of alarm messages in WinCC. The following document describes how to use several message texts in the STEP 7-integrated project:
http://support.automation.siemens.com/WW/view/en/30550240
5. The block for the 300-type CPU uses a bit message procedure. The messages are configured in the WinCC Alarm Logging Editor.
Compile and load program Compile the program and load it into the control system.
6.
36
4.2
The previously copied scripts are now available for your project. 4. Create a start-up screen Create an empty WinCC picture, name it Start.pdl and define this picture as start-up screen. Open start.pdl in the Graphics Designer.
37
5.
Insert objects Insert an object of type Smart-objects> Faceplate Instance in the start picture. Select file BST_MM4_ICON.FPT. Insert an object of type picture window in the start picture.
6.
Configure the properties of the faceplate instance object Define the following parameters in the Properties dialog box of the faceplate instance object: Others > Scaling mode = 1:1 Define the following tag assignments in the Properties dialog box of the faceplate instance object: User-defined2 > QdwState = 1) <tag prefix > QdwState User-defined2 > QrCapacity = <tag prefix> QrCapacity 1) Configure the following direct connection for mouse click: Source: Constant = 1 Target: Object in picture = Picture window1 > Display
1)
The tag prefix consists of program name, CFC chart and block name, followed by a dot.
38
7.
Configure the properties of the picture window object Define the following parameters in the Properties dialog box of the picture window object: Others > Picture name = BST_MM4_MAIN.pdl Others > Tag prefix = <tag prefix> 2) Others > Display = No Others > Moveable = Yes Others > Frame = Yes Others > Adjust window = Yes
2)
Same tag prefix as in step 5. This prefix will also be entered via script in the MsgFilterSQL property of the Alarm Control when the message window is called. This ensures that only messages of the relevant block will be displayed.
8.
Create a user text block For the output of messages you have configured for the block it is necessary to create a user text block and to define the relevant message class with the corresponding message type in WinCC. Open the Alarm Logging Editor and add User text block no. 3. Define a reasonable name.
Note: If you create your project with the OS project editor, this step is dropped, since this editor automatically creates the text blocks, message classes and message types.
39
9.
Create message classes and define message types Configure the following message classes and message types: Message class 4 with message type 55 (corresponds to STEP 7 message class: PLC process control message failure). Message class 4 with message type 56 (corresponds to STEP 7 message class: Process control message error). Message class 16 with message type 253 (corresponds to STEP 7 message class: PLC status message without acknowledgement).
Assign reasonable names for all message classes and types. For message class 4 you activate the selection box Acknowledgement coming in the Acknowledgement tab Notes: The following document provides an overview of the WinCC message classes and the corresponding STEP 7 message classes:
http://support.automation.siemens.com/WW/view/en/31622971
The following document describes how to use several message texts in the STEP 7-integrated project:
http://support.automation.siemens.com/WW/view/en/30550240
40
10.
Configure messages (bit message procedure 300 CPU only) Create the following messages using the Alarm Logging Editor. Select the message class and type you have created in step 8: Message 1: Class: Type: Message tag: Message bit: Message text: Event: Message 2: Class: Type: Message tag: Message bit: Message text: Event: Message 3: Class: Type: Message tag: Message bit: Message text: Event: Message 4: Class: Type: Message tag: Message bit: Message text: Event: Message 5: Class: Type: Message tag: Message bit: Message text: Event: Message 6: Class: Type: Message tag: Message bit: Message text:
PLC Process Control Message (class: 4) PLC Failure (type: 55) <tag prefix>QwAlarm 0 <tag prefix> OFF 2
PLC Process Control Message (class: 4) PLC Failure (type: 55) <tag prefix>QwAlarm 1 <tag prefix> OFF 3
PLC Process Control Message (class: 4) PLC Failure (type: 55) <tag prefix>QwAlarm 2 <tag prefix> Motor overload
PLC Process Control Message (class: 4) PLC Failure (type: 55) <tag prefix>QwAlarm 3 <tag prefix> Converter overload
PLC Process Control Message (class: 4) PLC Error (type: 56) <tag prefix>QwAlarm 4 <tag prefix> Interlock Error PLC Process Control Message (class: 4) PLC Error (type: 56) <tag prefix>QwAlarm 4 <tag prefix>
41
Event:
External Error
Message 7: Class: Type: Message tag: Message bit: Message text: Event: Message 8: Class: Type: Message tag: Message bit: Message text: Event: Message 9: Class: Type: Message tag: Message bit: Message text: Event: Message 10: Class: Type: Message tag: Message bit: Message text: Event: Message 11: Class: Type: Message tag: Message bit: Message text: Event: Message 12: Class: Type: Message tag: Message bit: Message text: Event: Message 13:
PLC Process Control Message (Class 4) PLC Error (type 56) <tag prefix>QwAlarm 7 <tag prefix> General Error
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 8 <tag prefix> STOP
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 9 <tag prefix> START
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 10 <tag prefix> LEFT
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 11 <tag prefix> RIGHT
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 13 <tag prefix> Interlock
42
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 13 <tag prefix> Remote
Message 14: Class: Type: Message tag: Message bit: Message text: Event: Message 15: Class: Type: Message tag: Message bit: Message text: Event:
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 14 <tag prefix> Automatic
PLC Status Message (class 16) Status PLC (type 253) <tag prefix>QwAlarm 15 <tag prefix> Simulation
43
5 Block Connectors
Appendix 5
5.1
Block Connectors
Input parameters
Table 5-1 Parameter dwInp LOCK ERR_EXTERN LIOP_SEL L_AUT L_REMOTE L_SIM L_RESET L_ON L_REVERSE L_ENABLE L_RFG_EN L_RFG_FREE L_SP_EN L_SP_VALID OFF2 OFF3 Auto_ON Auto_REV SP_Auto SP_Man SP_Sim SIM_nomFreq SIM_nomSpeed SAMPLE_T DPV1_ID DPV1_READ OP_dwCmd Data type DWORD BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL WORD REAL REAL REAL REAL REAL WORD BOOL DWORD Default setting 16#0 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE 16#0 0.0 0.0 0.0 0.0 0.0 16#0 FALSE 16#0 Description Status word MICROMASTER 4 Interlock External error Interconnection active 0 = Manual 1 = Automatic 0= Local 1 = Remote 0 = Process 1 = Simulation 1 = Reset error 0 = OFF 1 = ON (MM4 Cmd-Bit [0]) 1 = Setpoint inversion (MM4 Cmd-Bit [11]) 1 = Enable operation (MM4 Cmd Bit [3]) 1 = Operating condition (MM4 Cmd Bit [4]) 1 = HLG enable (MM4 Cmd Bit [5]) 1 = Setpoint enable (MM4 Cmd Bit [6]) 1 = Setpoint valid (MM4 Cmd-Bit [10]) 0 = OFF2 (pulse inhibit) (MM4 Cmd-Bit [1]) 0 = OFF3 (fast stop) (MM4 Cmd-Bit [2]) 1 = ON 1 = Change rotation direction Setpoint specification I/O Setpoint specification, manual Setpoint specification, simulation Rated motor frequency (simulation) Rated motor speed (simulation) Sampling time DP slave, diagnosis address Acyclic data request Command word WinCC
44
5 Block Connectors
5.2
Output parameters
Table 5-2 Parameter QdwState QdwCmd QFreqPeri QSPCapacity QrCapacity QSPFrequ QrCuFreq QSPSpeed QrCuSpeed QPOWER_ON QREADY_RUN Data type DWORD DWORD WORD REAL REAL REAL REAL REAL REAL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL Default setting 16#0 16#0 16#0 0.0 0.0 0.0 0.0 0.0 0.0 FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE Description Status tag WinCC Command word MM4 Actual value, I/O Setpoint in percent Actual value in percent Setpoint, frequency Actual value, frequency Setpoint, rotation speed Actual value, rotation speed 1=Stop (ready to run) (MM4 State Bit[0]) 1=Ready to run (MM4 State Bit[1]) 1=Run (operation enabled) (MM4 State Bit[2]) 1=Fault (MM4 State Bit[3]) 0=OFF2 Command active (MM4 State Bit[4]) 0=OFF3 Command active (MM4 State Bit[5]) 1=Activation block (MM4 State Bit[6]) 1=Warning active (MM4 State Bit[7]) 1=No setpoint/actual deviation (MM4 State Bit[8]) 1=Rated frequency reached (MM4 State Bit[10]) 0=Motor power limit reached (MM4 State Bit[11]) 0=Motor holding brake (MM4 State Bit[12]) 0=Motor overload (MM4 State Bit[13]) 0=anticlockwise 1=clockwise rotation (MM4 State Bit[14]) 0=Converter overload (MM4 State Bit[15]) 0=Manual 1=Automatic 1=Control requested (MM4 State Bit[9]) 0=Process 1=Simulation 1=Interlock active
QOP_ENABLE QFAULT QNOFF2 QNOFF3 QSLOCK QWARN QSPREACH QFRREACH QNMOTWARN QNBRAKE QNMOTOV QDIRECTION QNCONOV QMAN_AUT QREMOTE QSIM QLOCK
45
5 Block Connectors
Description 1=General error active 1=External error active Read or write error (SFB52 or SFB53)
46
6 Bibliography
6
Table 5-1
Bibliography
This list is by no means complete and only reflects a selection of suitable literature.
Subject Title
\1\ \2\
Reference to this entry Industry Automation and Drive Technologies Service & Support Reference to documentation on frequency converter MICROMASTER 440
http://support.automation.siemens.com/WW/view/en/31624179 http://support.automation.siemens.com
\3\
http://support.automation.siemens.com/WW/view/en/24291961
Parameter list:
http://support.automation.siemens.com/WW/view/en/23708204
Profibus option module:
http://support.automation.siemens.com/WW/view/en/6586565
\3\ Reference to this entry How are message classes used if WinCC is integrated in the STEP 7 project?
http://support.automation.siemens.com/WW/view/en/31622971
Copyright Siemens AG 2009 All rights reserved 31624179_BST_MM4_e.doc
\4\
How are message texts used if WinCC is integrated in the STEP 7 project?
http://support.automation.siemens.com/WW/view/en/30550240
47
7 History
History
Table 7-1 History Version V1.0 V2.0 Date 27.04.2009 04.09.2009 First issue Reworking the block and adaptation of documentation Modifications
48