Table of Contents

Advertisement

VIPA SPEED7
OPL_SP7 | Operation list | Manual
HB00 | OPL_SP7 | Operation list | en | 18-30
SPEED7 Operation list
www.vipa.com/en/service-support/manuals

Advertisement

Table of Contents
loading

Summary of Contents for YASKAWA VIPA SPEED7

  • Page 1 VIPA SPEED7 OPL_SP7 | Operation list | Manual HB00 | OPL_SP7 | Operation list | en | 18-30 SPEED7 Operation list www.vipa.com/en/service-support/manuals...
  • Page 2 VIPA GmbH Ohmstr. 4 91074 Herzogenaurach Telephone: +49 9132 744-0 Fax: +49 9132 744-1864 Email: info@vipa.de Internet: www.vipa.com SP7_000_OPL-SP7,8,EN - © 2018...
  • Page 3: Table Of Contents

    VIPA SPEED7 Table of contents Table of contents General........................13 1.1 Copyright © VIPA GmbH ................13 1.2 About this manual................... 14 Important notes....................15 2.1 General......................15 2.2 Internally used blocks..................15 2.3 No optimized block access................16 2.4 Declaration types.................... 16 IL operations......................
  • Page 4: Access Control

    VIPA SPEED7 Table of contents 6.5.1 OB 20, OB 21 - DEL_INTx - Time-delay Interrupt........77 6.6 Time of day Interrupts..................78 6.6.1 OB 10, OB 11 - TOD_INTx - Time-of-day Interrupt........78 6.7 Cyclic Interrupts....................80 6.7.1 OB 28, 29, 32, 33, 34, 35 - CYC_INTx - Cyclic Interrupt......80 6.8 Hardware Interrupts..................
  • Page 5 VIPA SPEED7 Table of contents 8.2.6 FB/SFB 8 - FB 55 - Overview..............153 8.2.7 FB/SFB 8 - USEND - Uncoordinated data transmission......154 8.2.8 FB/SFB 9 - URCV - Uncoordinated data reception........155 8.2.9 FB/SFB 12 - BSEND - Sending data in blocks.......... 158 8.2.10 FB/SFB 13 - BRCV - Receiving data in blocks........
  • Page 6 13.3.1 Overview....................405 13.3.2 Set the parameters on the drive.............. 405 13.3.3 Wiring...................... 406 13.3.4 Usage in VIPA SPEED7 Studio............... 408 13.3.5 Usage in Siemens SIMATIC Manager............. 412 13.3.6 Usage in Siemens TIA Portal..............417 13.3.7 Drive specific block.................. 423 13.4 Usage inverter drive via PWM..............
  • Page 7: Errorid

    13.6.1 Overview....................511 13.6.2 Set the parameters on the inverter drive..........512 13.6.3 Wiring...................... 513 13.6.4 Usage in VIPA SPEED7 Studio............... 514 13.6.5 Usage in Siemens SIMATIC Manager............. 527 13.6.6 Drive specific blocks................541 13.7 Blocks for axis control................. 542 13.7.1 Overview....................
  • Page 8 VIPA SPEED7 Table of contents 14.1.25 SFC 34 - QRY_DINT - Query time-delay interrupt........ 675 14.1.26 SFC 36 - MSK_FLT - Mask synchronous errors........676 14.1.27 SFC 37 - DMSK_FLT - Unmask synchronous errors......677 14.1.28 SFC 38 - READ_ERR - Read error register.......... 678 14.1.29 SFC 39 - DIS_IRT - Disabling interrupts..........
  • Page 9 VIPA SPEED7 Table of contents 14.2.12 SFB 32 - DRUM - Realize a step-by-step switch........748 14.2.13 SFB 33 - ALARM - Messages with acknowledgement display....752 14.2.14 SFB 34 - ALARM_8 - Messages without associated values (8x)..754 14.2.15 SFB 35 - ALARM_8P - Messages with associated values (8x)..... 756 14.2.16 SFB 36 - NOTIFY - Messages without acknowledgement display..
  • Page 10 VIPA SPEED7 Table of contents 15.2.22 FC 21 - LEN - Length of a STRING variable......... 813 15.2.23 FC 22 - LIMIT..................813 15.2.24 FC 23 - LT_DT - Compare DT for smaller than........813 15.2.25 FC 24 - LT_STRNG - Compare STRING for smaller......814 15.2.26 FC 25 - MAX - Select maximum............
  • Page 11 VIPA SPEED7 Table of contents 15.6.1 UDT 60 - WS_RULES - Rule DB............. 878 15.6.2 FC 61 - BT_LT - Convert base timer to local time........879 15.6.3 FC 62 - LT_BT - Convert local time to base time........880 15.6.4 FC 63 - S_LTINT - Set time interrupt in local time........
  • Page 12 VIPA SPEED7 Table of contents 17.8 Status of all LEDs - SSL-ID: xy19h............. 944 17.9 Identification of the component - SSL-ID: xy1Ch........949 17.10 Interrupt status - SSL-ID: xy22h............... 952 17.11 Communication status data - SSL-ID: xy32h..........957 17.12 Ethernet details of the module - SSL-ID xy37h........963 17.13 TCON Connection - SSL-ID: xy3Ah............
  • Page 13: General

    VIPA SPEED7 General Copyright © VIPA GmbH General 1.1 Copyright © VIPA GmbH All Rights Reserved This document contains proprietary information of VIPA and is not to be disclosed or used except in accordance with applicable agreements. This material is protected by the copyright laws. It may not be reproduced, distributed, or...
  • Page 14: About This Manual

    VIPA SPEED7 General About this manual Information product sup- Contact your local VIPA Customer Service Organization representative if you wish to port report errors or questions regarding the contents of this document. If you are unable to locate a customer service centre, contact VIPA as follows: VIPA GmbH, Ohmstraße 4, 91074 Herzogenaurach, Germany...
  • Page 15: Important Notes

    VIPA SPEED7 Important notes Internally used blocks Important notes 2.1 General In the following, you will find important notes, which must always be observed when using the blocks. 2.2 Internally used blocks CAUTION! The following blocks are used internally and must not be overwritten! The direct call of an internal block leads to errors in the corresponding instance DB! Please always use the corresponding function for the call.
  • Page 16: No Optimized Block Access

    VIPA SPEED7 Important notes Declaration types 2.3 No optimized block access Please note that the blocks do not support optimized block access for use in S7-1500 CPUs from Siemens! When using instance and data blocks, the optimized block access must be deactivated! Set block access Open in the Siemens TIA Portal Project navigation the ‘Program blocks’...
  • Page 17: Il Operations

    VIPA SPEED7 IL operations Overview IL operations 3.1 Overview The following canter lists the available commands of the SPEED7 CPUs from VIPA. The instruction list intends to give you an overview over the commands and their syntax. The commands are sorted by topics in alphabetical order. For the parameters are integrated in the instruction list, there is no extra parameter list.
  • Page 18: Block Instructions

    VIPA SPEED7 IL operations Overview Instruction Description Page Ä 53 >=R Comparison instructions Ä 53 >D Comparison instructions >I Comparison instructions Ä 53 Ä 53 >R Comparison instructions Ä 55 Combination instructions (Bit) Ä 55 Combination instructions (Bit) Math instructions Ä...
  • Page 19 VIPA SPEED7 IL operations Overview Instruction Description Page Ä 37 Edge-triggered instructions Ä 37 Edge-triggered instructions Counter instructions Ä 65 Timer instructions Ä 64 Ä 47 Transfer instructions Ä 51 INVD Data type conversion instructions INVI Data type conversion instructions Ä...
  • Page 20 VIPA SPEED7 IL operations Overview Instruction Description Page Ä 35 Block instructions Ä 43 Setting/resetting bit addresses Combination instructions (Bit) Ä 55 Ä 55 Combination instructions (Bit) Ä 63 Combination instructions (Word) Ä 55 Combination instructions (Bit) Combination instructions (Bit) Ä...
  • Page 21: Abbreviations

    VIPA SPEED7 IL operations Abbreviations Instruction Description Page Ä 47 Transfer instructions Ä 47 Transfer instructions Math instructions Ä 30 Ä 47 Transfer instructions Ä 47 TAR1 Transfer instructions Ä 47 TAR2 Transfer instructions TRUNC Data type conversion instructions Ä 51 Ä...
  • Page 22 VIPA SPEED7 IL operations Abbreviations Abbreviation Description IEC date constant Data block Data byte in the data block Data double word in the data block Data word in the data block Data bit in the data block Instance data block...
  • Page 23 VIPA SPEED7 IL operations Abbreviations Abbreviation Description Pointer constant P#x.y (pointer) Bit memory bit Bit memory byte Bit memory double word Bit memory word Binary constant Organization block Stored overflow Overflow Hexadecimal constant Pointer constant Process image of the outputs...
  • Page 24: Comparison Of Syntax Languages

    VIPA SPEED7 IL operations Comparison of syntax languages 3.3 Comparison of syntax languages Comparison In the following overview, the German and international syntax languages of STL are compared. Area German International Input Output Counter Periphery input byte Periphery input word...
  • Page 25: Differences Between Speed7 And 300V Programming

    Status register In opposite to the Siemens S7-300, the VIPA SPEED7-CPUs and Siemens S7-400 (CPU 318) use the status register bits OR, STA, /FC. If your user application is based upon the circumstance that the mentioned bits in the status register are always zero (like Siemens S7-300), the program is not executable at VIPA SPEED7-CPUs and Siemens S7-400 (CPU 318).
  • Page 26 A M3.0 A M3.1 →JO01: A Q2.2 // after the jump... // Siemens S7-300 further combines // This command is used by VIPA SPEED7, // Siemens S7-400 and CPU 318 as first request Example B: A I0.0 A M1.1 = M2.0 // RLO =1 command end A Q3.3 // first request...
  • Page 27: Bit

    VIPA SPEED7 IL operations Registers Example: ..A I5.4 L MW20 S T30 // Siemens S7-300 only proofs if timer // is actively executed // SPEED7, Siemens S7-400 and CPU 318 // always proof (also when no condition is present) ..
  • Page 28: Addressing Examples

    VIPA SPEED7 IL operations Addressing examples Assignment Description First check bit Result of (previous) logic instruction Status Stored overflow Overflow Condition code Condition code Binary result 9 ... 15 not used 3.6 Addressing examples Addressing example Description Immediate addressing L +27 Load 16bit integer constant "27"...
  • Page 29 VIPA SPEED7 IL operations Addressing examples Addressing example Description CU C [LW 10] Start counter; counter no. is in local data word Memory-indirect, area-internal addressing A I [LD 12]e.g.: LP#22.2 T LD 12 A I AND instruction; input address is in local data...
  • Page 30: Math Instructions

    VIPA SPEED7 IL operations Math instructions Example for pointer calcu- Example when sum of bit addresses ≤ 7: lation LAR1 P#8.2 U E [AR1,P#10.2] Result:The input 18.4 is addressed (by adding the byte and bit addresses) Example when sum of bit addresses > 7: L MD 0 at will calculated pointer, e.g.
  • Page 31 VIPA SPEED7 IL operations Math instructions Fixed-point arithmetic Math instructions of two 32bit numbers. (32bit) The result is in ACCU1. Com- Operand Parameter Function Length mand in words Add up two integers (32bit) (ACCU1)=(ACCU2)+(ACCU1) Subtract two integers (32bit) (ACCU1)=(ACCU2)-(ACCU1) Multiply two integers (32bit)
  • Page 32 VIPA SPEED7 IL operations Math instructions Floating-point arithmetic The result of the math instructions is in ACCU1. The execution time of the instruction (32bit) depends on the value to calculate. Com- Operand Parameter Function Length mand in words Add up two real numbers (32bit)
  • Page 33 VIPA SPEED7 IL operations Math instructions Logarithmic function The result of the logarithm function is in ACCU1. (32bit) The instructions may be interrupted by alarms. Com- Operand Parameter Function Length mand in words Calculate the natural logarithm of a real number in...
  • Page 34 VIPA SPEED7 IL operations Math instructions Addition of constants Addition of integer constants to ACCU1. The condition code bits are not affected. Com- Operand Parameter Function Length mand in words Add an 8bit integer constant Add a 16bit integer constant...
  • Page 35: Block Instructions

    VIPA SPEED7 IL operations Block instructions 3.8 Block instructions Block call instructions Com- Operand Parameter Function Length mand in words CALL FB p 0 ... 8191 Unconditional call of a FB, DB r 0 ... 8191 with parameter transfer CALL SFB p 0 ...
  • Page 36: Program Display And Null Operation Instructions

    VIPA SPEED7 IL operations Program display and Null operation instructions Block end instructions Com- Operand Parameter Function Length mand in words End block End block unconditionally End block if RLO="1" Status word for: BE, BEU Instruction depends on Instruction influences...
  • Page 37: Edge-Triggered Instructions

    VIPA SPEED7 IL operations Edge-triggered instructions 3.10 Edge-triggered instructions Edge-triggered instruc- Detection of an edge change. The current signal state of the RLO is compared with the tions signal state of the instruction or edge bit memory. FP detects a change in the RLO from "0" to "1"...
  • Page 38: Load Instructions

    VIPA SPEED7 IL operations Load instructions 3.11 Load instructions Load instructions Loading address identifiers into ACCU1. The contents of ACCU1 and ACCU2 are saved first. The status word is not affected. Com- Operand Parameter Function Length in mand words Load ...
  • Page 39 VIPA SPEED7 IL operations Load instructions Com- Operand Parameter Function Length in mand words MD a 0.0 ... 8188 bit memory double word LD a parameterizable local data double word DBD a 0.0 ... 65532 data double word DID a 0.0 ...
  • Page 40 VIPA SPEED7 IL operations Load instructions Load instructions for timer Load a time or counter value in ACCU1, before the recent content of ACCU1 is saved in and counter ACCU2. The status word is not affected. Com- Operand Parameter Function...
  • Page 41: Shift Instructions

    VIPA SPEED7 IL operations Shift instructions 3.12 Shift instructions Shift instructions Shifting the contents of ACCU1 and ACCU1-L to the left or right by the specified number of places. If no address identifier is specified, shift the number of places into ACCU2-LL.
  • Page 42 VIPA SPEED7 IL operations Shift instructions Rotation instructions Rotate the contents of ACCU1 to the left or right by the specified number of places. If no address identifier is specified, rotate the number of places into ACCU2-LL. Com- Operand Parameter...
  • Page 43: Setting/Resetting Bit Addresses

    VIPA SPEED7 IL operations Setting/resetting bit addresses 3.13 Setting/resetting bit addresses Setting/resetting bit Assign the value "1" or "0" or the RLO to the addressed instructions. addresses Com- Operand Parameter Function Length mand in words Set ... I/Q a.b 0.0 ... 2047.7 input/output to "1"...
  • Page 44: Jump Instructions

    VIPA SPEED7 IL operations Jump instructions Status word for: S, R, = Instruction depends on ü Instruction influences ü Instructions directly The following instructions have a directly effect on the RLO. affecting the RLO Com- Operand Parameter Function Length mand in words Set RLO to "0"...
  • Page 45 VIPA SPEED7 IL operations Jump instructions Jump, depending on conditions. 8-bit operands have a jump width of (-128...+127) 16-bit operands of (-32768...-129) or (+128...+32767) Com- Operand Parameter Function Length mand in words LABEL Jump unconditionally LABEL Jump if RLO="1" LABEL Jump if RLO="0"...
  • Page 46 VIPA SPEED7 IL operations Jump instructions Status word for: JC, JCN Instruction depends on ü Instruction influences Status word for: JCB, JNB Instruction depends on ü Instruction influences ü Status word for: JBI, JNBI Instruction depends on ü Instruction influences...
  • Page 47: Transfer Instructions

    VIPA SPEED7 IL operations Transfer instructions 3.15 Transfer instructions Transfer instructions Transfer the contents of ACCU1 into the addressed operand. The status word is not affected. Com- Operand Parameter Function Length mand in words Transfer the contents of ACCU1-LL to ...
  • Page 48 VIPA SPEED7 IL operations Transfer instructions Com- Operand Parameter Function Length mand in words 0.0 ... 2044 input double word 0.0 ... 2044 output double word 0.0 ... 8188 periphery output double word 0.0 ... 8188 bit memory double word...
  • Page 49 VIPA SPEED7 IL operations Transfer instructions Load and transfer instruc- Load a double word from a memory area or a register into AR1 or AR2. tions for address register The status word is not affected. Com- Operand Parameter Function Length...
  • Page 50 VIPA SPEED7 IL operations Transfer instructions Load and transfer instruc- tions for the status word Com- Operand Parameter Function Length mand in words Load status word in ACCU1 Transfer ACCU1 (bits 0 ... 8) into status word Status word for: L STW Instruction depends on ü...
  • Page 51: Data Type Conversion Instructions

    VIPA SPEED7 IL operations Data type conversion instructions ACCU transfer instruc- The status word is not affected. tions, increment, decre- ment Com- Operand Parameter Function Length mand in words Reverse the order of the bytes in ACCU1-L LL, LH becomes LH, LL...
  • Page 52 VIPA SPEED7 IL operations Data type conversion instructions Command Operand Parameter Function Length in words Convert contents of ACCU1 from integer (16bit) to BCD 0 ... +/-999 (Int. To BCD) Convert contents of ACCU1 from integer (32bit) to BCD 0 ... +/-9 999 999 (Doubleint. To BCD)
  • Page 53: Comparison Instructions

    VIPA SPEED7 IL operations Comparison instructions 3.17 Comparison instructions Comparison instructions Comparing the integer (16bit) in ACCU1-L and ACCU2-L. with integer (16bit) RLO=1, if condition is satisfied. Com- Operand Parameter Function Length in mand words ACCU2-L = ACCU1-L <>I ACCU2-L different to ACCU1-L <I...
  • Page 54 VIPA SPEED7 IL operations Comparison instructions Comparison instructions Comparing the 32bit real numbers in ACCU1 and ACCU2. with 32bit real number RLO=1, is condition is satisfied. The execution time of the instruction depends on the value to be compared. Com-...
  • Page 55: Combination Instructions (Bit)

    VIPA SPEED7 IL operations Combination instructions (Bit) 3.18 Combination instructions (Bit) Combination instructions Examining the signal state of the addressed instruction and gating the result with the RLO with bit operands according to the appropriate logic function. Com- Operand Parameter...
  • Page 56 VIPA SPEED7 IL operations Combination instructions (Bit) Com- Operand Parameter Function Length mand in words L a.b parameterizable Local data bit DBX a.b 0.0 ... 65535.7 Data bit DIX a.b 0.0 ... 65535.7 Instance data bit c [AR1,m] register-indirect, area-internal (AR1)
  • Page 57 VIPA SPEED7 IL operations Combination instructions (Bit) Com- Operand Parameter Function Length mand in words EXCLUSIVE-OR operation at signal state "1" I/Q a.b 0.0 ... 2047.7 Input/output M a.b 0.0 ... 8191.7 Bit memory L a.b parameterizable Local data bit DBX a.b...
  • Page 58 VIPA SPEED7 IL operations Combination instructions (Bit) Combination instructions Saving the bits BR, RLO, OR and a function ID (A, AN, ...) at the nesting stack. with parenthetical expres- For each block 7 nesting levels are possible. sions Com- Operand...
  • Page 59 VIPA SPEED7 IL operations Combination instructions (Bit) Combination instructions Examining the signal state of the addressed timer/counter an gating the result with the with timer and counters RLO according to the appropriate logic function. Com- Operand Parameter Function Length mand...
  • Page 60 VIPA SPEED7 IL operations Combination instructions (Bit) Com- Operand Parameter Function Length mand in words EXCLUSIVE-OR operation at signal state 0 ... 511 Timer 0 ... 511 Counter Timer para. Timer addressed via parameters Counter para. Counter addressed via parameters EXCLUSIVE-OR operation at signal state 0 ...
  • Page 61 VIPA SPEED7 IL operations Combination instructions (Bit) Combination instructions Examining the specified conditions for their signal status, and gating the result with the RLO according to the appropriate function. Com- Operand Parameter Function Length mand in words AND, OR, EXCLUSIVE OR operation at signal state "1"...
  • Page 62 VIPA SPEED7 IL operations Combination instructions (Bit) Com- Operand Parameter Function Length mand in words AND NOT/OR NOT/EXCLUSIVE OR NOT Operation at signal state "0" Result = 0 (CC1=0) and (CC0=0) >0 Result > 0 (CC1=1) and (CC0=0) <0 Result < 0 (CC1=0) and (CC0=1) <>0...
  • Page 63: Combination Instructions (Word)

    VIPA SPEED7 IL operations Combination instructions (Word) 3.19 Combination instructions (Word) Combination instructions Gating the contents of ACCU1 and/or ACCU1- L with a word or double word according to with the contents of the appropriate function. ACCU1 The word or double word is either a constant in the instruction or in ACCU2. The result is in ACCU1 and/or ACCU1-L.
  • Page 64: Timer Instructions

    VIPA SPEED7 IL operations Timer instructions 3.20 Timer instructions Starting or resetting a timer (addressed directly or via parameters). The time value must be in ACCU1-L. Com- Operand Parameter Function Length mand in words 0 ... 511 Start time as pulse on edge change from "0" to "1"...
  • Page 65: Counter Instructions

    VIPA SPEED7 IL operations Counter instructions 3.21 Counter instructions The counter value is in ACCU1-L res. in the address transferred as parameter. Com- Operand Parameter Function Length mand in words 0 ... 511 Presetting of counter on edge change from "0" to "1"...
  • Page 66: Block Parameters

    VIPA SPEED7 Block parameters General and Specific Error Information RET_VAL Block parameters 4.1 HW identifier - HW_ID HW identifier The parameter HW_ID to preset the HW identifier is only available in S7-1500 CPUs from Siemens. When configuring a hardware component, a hardware identifier is automatically assigned as HW identifier for each object of the hardware configuration.
  • Page 67 VIPA SPEED7 Block parameters General and Specific Error Information RET_VAL RET_VAL (Return value) The table below shows the structure of a system function error code: Description 7 ... 0 Event number or error class and single error 14 ... 8 Bit 14 ...
  • Page 68 VIPA SPEED7 Block parameters General and Specific Error Information RET_VAL Error code Description 8x7Fh Internal Error. This error code indicates an internal error at parameter x. This error did not result from the actions if the user and he/she can therefore not resolve the error.
  • Page 69: Include Vipa Library

    VIPA SPEED7 Include VIPA library Integration into Siemens SIMATIC Manager Include VIPA library Libraries The VIPA specific blocks can be found as library ‘...LIB’ for download in the service area of www.vipa.com at ‘Downloads’ . The libraries are packed ZIP files. As soon as you want to use VIPA specific blocks you have to import them into your project.
  • Page 70: Integration Into Siemens Tia Portal

    VIPA SPEED7 Include VIPA library Integration into Siemens TIA Portal 5.2 Integration into Siemens TIA Portal Overview The integration into the Siemens TIA Portal requires the following steps: Load ZIP file Unzip the Zip file Open library and transfer blocks into the project Load ZIP file Navigate on the web page to the ZIP file, that matches your version of the program.
  • Page 71: Organization Blocks

    VIPA SPEED7 Organization Blocks Main > OB1 - Main - Program Cycle Organization Blocks 6.1 Overview OBs (Organization blocks) are the interface between the operating system of the CPU and the user program. For the main program OB 1 is used. There are reserved numbers corresponding to the call event of the other OBs.
  • Page 72: Startup

    VIPA SPEED7 Organization Blocks Startup > OB 100, OB 102 - Complete/Cold Restart - Startup Variable Type Description OB1_EV_CLASS BYTE Event class and identifiers: 11h: OB 1 active OB1_SCAN_1 BYTE 01h: completion of a restart 03h: completion of the main cycle...
  • Page 73 VIPA SPEED7 Organization Blocks Startup > OB 100, OB 102 - Complete/Cold Restart - Startup Variable Type Description OB10x_EV_CLASS BYTE Event class and identifiers: 13h: active OB10x_STRTUP BYTE Startup request 81h: Manual restart request 82h: Automatic restart request 85h: Request for manual cold restart...
  • Page 74: 6.4 Communication Interrupts

    VIPA SPEED7 Organization Blocks Communication Interrupts > OB 55 - DP: Status Alarm - Status Interrupt Bit no. Explanation Possible Description values (binary) 0001 Automatic startup illegal, parameter modifications, etc. necessary 0111 Automatic startup permitted 11...8 Permissibility of 0000 Manual startup illegal, memory request requested...
  • Page 75: Ob 56 - Dp: Update Alarm - Update Interrupt

    VIPA SPEED7 Organization Blocks Communication Interrupts > OB 56 - DP: Update Alarm - Update Interrupt Variable Data type Description OB55_PRIORITY BYTE Configured priority class: Default value: 2 OB55_OB_NUMBR BYTE OB number (55) OB55_RESERVED_1 BYTE reserved OB55_IO_FLAG BYTE Input module: 54h...
  • Page 76: Ob 57 - Dp: Manufacture Alarm - Manufacturer Specific Interrupt

    VIPA SPEED7 Organization Blocks Communication Interrupts > OB 57 - DP: Manufacture Alarm - Manufacturer Specific Interrupt Variable Data type Description OB56_PRIORITY BYTE Configured priority class: Default value: 2 OB56_OB_NUMBR BYTE OB number (56) OB56_RESERVED_1 BYTE reserved OB56_IO_FLAG BYTE Input module: 54h...
  • Page 77: Time Delay Interrupts

    VIPA SPEED7 Organization Blocks Time delay Interrupts > OB 20, OB 21 - DEL_INTx - Time-delay Interrupt Local data The following table describes the start information of the OB 57 with default names of the variables and its data types:...
  • Page 78: Time Of Day Interrupts

    VIPA SPEED7 Organization Blocks Time of day Interrupts > OB 10, OB 11 - TOD_INTx - Time-of-day Interrupt Behavior on error If a time-delay interrupt OB is called but was not programmed, the operating system calls OB 85. If OB 85 was not programmed, the CPU goes to STOP.
  • Page 79 VIPA SPEED7 Organization Blocks Time of day Interrupts > OB 10, OB 11 - TOD_INTx - Time-of-day Interrupt For monthly execution of a time-of-day interrupt OBs, only the day 1, 2, ... 28 can be used as a starting date.
  • Page 80: Cyclic Interrupts

    VIPA SPEED7 Organization Blocks Cyclic Interrupts > OB 28, 29, 32, 33, 34, 35 - CYC_INTx - Cyclic Interrupt Variable Type Description OB10_EV_CLASS BYTE Event class and identifiers: 11h: interrupt is active OB10_STRT_INFO BYTE 11h: Start request for OB 10...
  • Page 81 VIPA SPEED7 Organization Blocks Cyclic Interrupts > OB 28, 29, 32, 33, 34, 35 - CYC_INTx - Cyclic Interrupt Activation A cyclic interrupt is activated by programming the corresponding OB within the CPU. The cyclic interrupt can be delayed and enabled with the system functions SFC 41 DIS_AIRT and SFC 42 EN_AIRT.
  • Page 82: Hardware Interrupts

    VIPA SPEED7 Organization Blocks Hardware Interrupts > OB 40, OB 41 - HW_INTx - Hardware Interrupt Variable Type Description OB35_OB_NUMBR BYTE OB number (28, 29, 32 ... 35) OB35_RESERVED_1 BYTE reserved OB35_RESERVED_2 BYTE reserved OB35_PHASE_OFFSET WORD Phase offset in ms...
  • Page 83 VIPA SPEED7 Organization Blocks Hardware Interrupts > OB 40, OB 41 - HW_INTx - Hardware Interrupt Function After a hardware interrupt has been triggered by the module, the operating system identi- fies the slot and the corresponding hardware interrupt OB. If this OB has a higher priority than the currently active priority class, it will be started.
  • Page 84: Asynchronous Error Interrupts

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 80 - CYCL_FLT - Time Error Local data The following table describes the start information of the OB 40 and OB 41 with default names of the variables and its data types:...
  • Page 85: Date_And_Time

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 80 - CYCL_FLT - Time Error Local data The following table describes the start information of the OB 80 with default names of the variables and its data types: Variable Type...
  • Page 86: Ob 81 - Ps_Flt - Power Supply Error

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 81 - PS_FLT - Power Supply Error Error code Variable Description OB80_OB_PRIORITY Priority class of the OB causing the error OB80_OB_NUM Number of the OB causing the error 05h and 06h...
  • Page 87: Ob 82 - I/O_Flt1 - Diagnostic Interrupt

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 82 - I/O_FLT1 - Diagnostic Interrupt Variable Data type Description OB81_EV_CLASS BYTE Event class and identifiers: 39h: incoming event OB81_FLT_ID BYTE Error code: 22h: Back-up voltage missing OB81_PRIORITY BYTE Priority class:...
  • Page 88 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 82 - I/O_FLT1 - Diagnostic Interrupt Configurable Diagnostics With programmable diagnostic events a message only occurs if you have enabled diag- nostic by parameter assignment. Non-programmable diagnostic events are always reported, regardless of whether or not diagnostic has been enabled.
  • Page 89: Ob 83 - I/O_Flt2 - Insert / Remove Module

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 83 - I/O_FLT2 - Insert / Remove Module Variable Data type Description OB82_MDL_TYPE BYTE Bit 3 ... 0: Module class Bit 4: Channel information available Bit 5: User information available Bit 6: Diagnostic interrupt from substitute...
  • Page 90 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 83 - I/O_FLT2 - Insert / Remove Module existence of modules is only monitored at intervals of one second, an access error may be detected first if the module is accessed directly or when the process image is updated.
  • Page 91 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 83 - I/O_FLT2 - Insert / Remove Module Variable Data type Description OB83_MDL_ADDR WORD Central or distributed PROFIBUS DP: – Logical base address of the module affected. If it is a mixed module, it is the smallest log- ical address used in the module.
  • Page 92: Ob 85 - Obnl_Flt - Priority Class Error

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 85 - OBNL_FLT - Priority Class Error OB83_EV_CLASS OB83_FLT_ID Description PROFINET IO module removed PROFINET IO submodule removed PROFINET IO submodule inserted and matches configured submodule PROFINET IO submodule inserted, but does not match configured sub-...
  • Page 93 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 85 - OBNL_FLT - Priority Class Error Local data The following table describes the start information of the OB 85 with default names of the variables and its data types: Variable...
  • Page 94 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 85 - OBNL_FLT - Priority Class Error OB85_EV_CLASS OB85_FLT_ID Variable Description A1h, A2h As a result of your configuration your program or the operating system creates a start event for an OB that is not loaded on the CPU.
  • Page 95 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 85 - OBNL_FLT - Priority Class Error OB85_EV_CLASS OB85_FLT_ID Variable Description B1h, B2h OB85_Z1 Reserved for internal use by the CPU: logical base address of the module If OB85_RESERVED_2 has the value 76h...
  • Page 96: Ob 86 - Rack_Flt - Slave Failure / Restart

    VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 86 - RACK_FLT - Slave Failure / Restart 6.9.6 OB 86 - RACK_FLT - Slave Failure / Restart Description The operating system of the CPU calls OB 86 whenever the failure of a slave is detected (both when entering and outgoing event).
  • Page 97 VIPA SPEED7 Organization Blocks Asynchronous error Interrupts > OB 86 - RACK_FLT - Slave Failure / Restart Variable Type OB86_RESERVED_2 BYTE OB86_MDL_ADDR WORD OB86_Z23 DWORD OB86_DATE_TIME DATE_AND_TIME The following table shows the event started OB 86: EV_CLASS FLT_ID Variable Bit ...
  • Page 98: Synchronous Interrupts

    VIPA SPEED7 Organization Blocks Synchronous Interrupts > OB 121 - PROG_ERR - Programming Error 6.10 Synchronous Interrupts 6.10.1 OB 121 - PROG_ERR - Programming Error Description The operating system of the CPU calls OB 121 whenever an event occurs that is caused by an error related to the processing of the program.
  • Page 99 VIPA SPEED7 Organization Blocks Synchronous Interrupts > OB 121 - PROG_ERR - Programming Error Error code Variable Description BCD conversion error OB121_FLT_REG: ID for the register concerned (0000h: accumulator 1) OB121_RESERVED_1 Area length error when reading Area length error when writing Read access to a byte, word or double word with a pointer whose bit address is not 0.
  • Page 100: Ob 122 - Mod_Err - Periphery Access Error

    VIPA SPEED7 Organization Blocks Synchronous Interrupts > OB 122 - MOD_ERR - Periphery access Error Error code Variable Description FB number error in FB call Access to a DB that has not been loaded; the DB number is in the permitted range Access to an FC that has not been loaded;...
  • Page 101 VIPA SPEED7 Organization Blocks Synchronous Interrupts > OB 122 - MOD_ERR - Periphery access Error Variable Type Description OB122_MEM_AREA BYTE Memory area and access type: Bit 3 ... 0: memory area 0: I/O area; 1: Process image of the inputs 2: Process image of the outputs Bit 7 ...
  • Page 102: Building Control

    VIPA SPEED7 Building Control Overview > Call example - multi instances DB Building Control Block library "Building The block library can be found for download in the ‘Service/Support’ area of Control" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Building Control - SW90ES0MA’...
  • Page 103: Room

    VIPA SPEED7 Building Control Room > FB 45 - LAMP - Controlling lamp / socket Network 1 CALL #Ceiling lamp :=M20.0 :=20.1 ONOFF :=20.2 Duration :=T#5M Output :=M20.3 PulseOn PulseOff := Network 2 CALL #Blind :=M30.0 Down :=M30.1 CentralUp CentralDown...
  • Page 104: Fb 46 - Blind - Controlling Blind

    VIPA SPEED7 Building Control Room > FB 46 - BLIND - Controlling blind Parameter Declaration Data type Description Duration INPUT TIME Time for the duration the Output is deactivated respectively PulseOff is activated. With 0ms the automatic switch off is deactivated.
  • Page 105 VIPA SPEED7 Building Control Room > FB 46 - BLIND - Controlling blind Parameters Parameter Declaration Data type Description INPUT BOOL With an edge change 0-1 the output BlindUp is activated. Depending on the input signal the blend drives to the upper limit position or is shortly moved.
  • Page 106: Fb 47 - Dstrike - Electric Door Opener

    VIPA SPEED7 Building Control Room > FB 47 - DSTRIKE - Electric door opener 7.2.3 FB 47 - DSTRIKE - Electric door opener Description With this block an electric door opener can be controlled, if its not locked with DoorI- sLocked.
  • Page 107: Access Control

    VIPA SPEED7 Building Control Access Control > FB 48 - ACONTROL - Access control 7.3 Access Control 7.3.1 FB 48 - ACONTROL - Access control Description With this block a access control can be implemented. After getting a code from an external keypad, panel or RFID reader, the code is compared with a list.
  • Page 108: Udt 3 - Aclrec - Data Structure For Fb 48

    VIPA SPEED7 Building Control Access Control > UDT 3 - ACLREC - Data structure for FB 48 Parameter Declaration Data type Description Ä Chap. 7.3.3 ACLBlock INPUT BLOCK Data block with the access codes. ‘UDT 4 - ACL - Data structure for FB 48’ page 109...
  • Page 109: Udt 4 - Acl - Data Structure For Fb 48

    VIPA SPEED7 Building Control Access Control > FB 49 - KEYPAD - Keyboard Address Name Type Start value Comment STRUCT +19.0 SignalOutput1 BOOL FALSE Byte 19: Signal type FALSE: Pulse, TRUE: static 1, deactivation with additional code +19.1 SignalOutput2 BOOL FALSE +19.2...
  • Page 110 VIPA SPEED7 Building Control Access Control > FB 49 - KEYPAD - Keyboard Via EnterCode you can specify a key code to output the keyboard buffer at Output for one cycle. During this time the output Valid is enabled. Via edge change 0-1 of Clear the keyboard buffer cleared.
  • Page 111: Fb 50 - Keypad2 - Keyboard

    VIPA SPEED7 Building Control Access Control > FB 50 - KEYPAD2 - Keyboard Parameter Declaration Data type Description Column3 INPUT BOOL Column 3 of the keyboard matrix. Default: FALSE ClearCode INPUT BYTE The value at which the keyboard buffer is to be cleared.
  • Page 112 VIPA SPEED7 Building Control Access Control > FB 50 - KEYPAD2 - Keyboard Via EnterCode you can specify a key code to output the keyboard buffer at Output for one cycle. During this time the output Valid is enabled. Via edge change 0-1 of Clear the keyboard buffer cleared.
  • Page 113 VIPA SPEED7 Building Control Access Control > FB 50 - KEYPAD2 - Keyboard Parameter Declaration Data type Description Clear INPUT BOOL Edge change 0-1 clears the keyboard buffer. Default: FALSE TimeAutoClear INPUT TIME Duration within a further key must be pressed. Oth- erwise the keyboard buffer is cleared.
  • Page 114: Network Communication

    VIPA SPEED7 Network Communication Open Communication > Connection-less protocols Network Communication Block library "Network The block library can be found for download in the ‘Service/Support’ area of Communication" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Network Communication - SW90FS0MA’...
  • Page 115: Fb 63 - Tsend - Sending Data - Tcp Native And Iso On Tcp

    VIPA SPEED7 Network Communication Open Communication > FB 63 - TSEND - Sending data - TCP native and ISO on TCP In this case, when calling the sending block you have to specify the address parame- ters of the receiver (IP address and port number). During data transmission, informa- tion on the length and the end of the message is also transmitted.
  • Page 116 VIPA SPEED7 Network Communication Open Communication > FB 63 - TSEND - Sending data - TCP native and ISO on TCP Parameters Parameter Declaration Data type Memory area Description INPUT BOOL I, Q, M, D, L Control parameter REQ, initiates terminating the connection specified by the ID.
  • Page 117 VIPA SPEED7 Network Communication Open Communication > FB 63 - TSEND - Sending data - TCP native and ISO on TCP Status information ERROR STATUS Description 0000h Send job completed without error. 7000h First call with REQ = 0, sending not initiated.
  • Page 118: Fb 64 - Trcv - Receiving Data - Tcp Native And Iso On Tcp

    VIPA SPEED7 Network Communication Open Communication > FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP 8.1.4 FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP Description FB 64 TRCV receives data over an existing communication connection. The are two var- iants available for receiving and processing the data: Variant 1: Received data block is processed immediately.
  • Page 119 VIPA SPEED7 Network Communication Open Communication > FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP Function FB 64 TRCV is an asynchronously functioning FB, which means that its processing extends over several FB calls. To start receiving data, call FB 64 with REQ = 1.
  • Page 120 VIPA SPEED7 Network Communication Open Communication > FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP Parameter Declaration Data type Memory area Description OUTPUT BOOL I, Q, M, D, L NDR status parameter: NDR = 0: Job not yet started or still running.
  • Page 121 VIPA SPEED7 Network Communication Open Communication > FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP ERROR STATUS Description 80A1h Communications error: FB 65 TCON was not yet called for the specified ID The specified connection is currently being terminated. Receiving over this connec- tion is not possible.
  • Page 122: Fb 65 - Tcon - Establishing A Connection

    VIPA SPEED7 Network Communication Open Communication > FB 65 - TCON - Establishing a connection 8.1.5 FB 65 - TCON - Establishing a connection Use with TCP native and Both communications partners call FB 65 TCON to establish the communications connec- ISO on TCP tion.
  • Page 123 VIPA SPEED7 Network Communication Open Communication > FB 65 - TCON - Establishing a connection Parameter Declaration Data type Memory area Description ERROR OUTPUT BOOL I, Q, M, D, L ERROR status parameter: ERROR = 1: Error occurred during processing.
  • Page 124: Udt 65 - Tcon_Par Data Structure For Fb 65

    VIPA SPEED7 Network Communication Open Communication > UDT 65 - TCON_PAR Data structure for FB 65 ERROR STATUS Description 80B7h Error in one of the following parameters of UDT 65: block_length local_tsap_id_len rem_subnet_id_len rem_staddr_len rem_tsap_id_len next_staddr_len 80B8h Parameters id in the local connection description (UDT 65) and parameter ID are dif- ferent.
  • Page 125 VIPA SPEED7 Network Communication Open Communication > UDT 65 - TCON_PAR Data structure for FB 65 Byte Parameter Data type Start value Description active_est BOOL FALSE ID for the way the connection is established: TCP, TCP, IoT: FALSE: passive establishment...
  • Page 126 VIPA SPEED7 Network Communication Open Communication > UDT 65 - TCON_PAR Data structure for FB 65 Byte Parameter Data type Start value Description rem_tsap_id_len BYTE Length of parameter rem_tsap_id used; possible values: Active side: 2 (The port must be specified.)
  • Page 127 VIPA SPEED7 Network Communication Open Communication > UDT 65 - TCON_PAR Data structure for FB 65 Byte Parameter Data type Start value Description 34 ... 39 rem_staddr ARRAY 00h ... IP address for the remote connection transmission [1..6] of point: e.g. 192.168.002.003: With connection_type...
  • Page 128 VIPA SPEED7 Network Communication Open Communication > UDT 65 - TCON_PAR Data structure for FB 65 Byte Parameter Data type Start value Description 62 ... 63 spare WORD 0000h irrelevant *) The partner IP address is specified by calling the TUSEND/TURECV parameter via the ADDR parameter.
  • Page 129: Fb 66 - Tdiscon - Terminating A Connection

    VIPA SPEED7 Network Communication Open Communication > FB 66 - TDISCON - Terminating a connection Byte Parameter Data type Start value Description 12 ... 27 local_tsap_id ARRAY 00h ... Remote port number [1..16] of (possible values: 2000 ... 5000), BYTE...
  • Page 130 VIPA SPEED7 Network Communication Open Communication > FB 66 - TDISCON - Terminating a connection BUSY DONE ERROR Description FALSE FALSE TRUE The job was ended with an error. The cause of the error can be found in the STATUS parameter.
  • Page 131: Fb 67 - Tusend - Sending Data - Udp

    VIPA SPEED7 Network Communication Open Communication > FB 67 - TUSEND - Sending data - UDP 8.1.8 FB 67 - TUSEND - Sending data - UDP Description FB 67 TUSEND sends data via UDP to the remote partner specified by the parameter ADDR.
  • Page 132 VIPA SPEED7 Network Communication Open Communication > FB 67 - TUSEND - Sending data - UDP Parameter Declaration Data type Memory area Description INPUT I, Q, M, D, L Number of bytes to be sent with the job: Range of values: 1 ... 1460...
  • Page 133: Fb 68 - Turcv - Receiving Data - Udp

    VIPA SPEED7 Network Communication Open Communication > FB 68 - TURCV - Receiving data - UDP ERROR STATUS Description 80A1h Communications error: FB 65 TCON was not yet called for the specified ID The specified connection between the user program and the communication level of the operating system is currently being terminated.
  • Page 134 VIPA SPEED7 Network Communication Open Communication > FB 68 - TURCV - Receiving data - UDP BUSY ERROR Description FALSE FALSE TRUE The job was ended with an error. The cause of the error can be found in the STATUS parameter.
  • Page 135 VIPA SPEED7 Network Communication Open Communication > FB 68 - TURCV - Receiving data - UDP Parameter Declaration Data type Memory area Description DATA IN_OUT I, Q, M, D Receiver area, contains address and length The address refers to: The process image input table...
  • Page 136: Udt 66 - Taddr_Par Data Structure

    VIPA SPEED7 Network Communication Open Communication > UDT 66 - TADDR_PAR Data structure ERROR STATUS Description 8922h DATA parameter: Target area invalid: area does not exist in DB. 8924h DATA parameter: Range error in ANY pointer 8932h DATA parameter: DB number too large.
  • Page 137: Ethernet Communication

    VIPA SPEED7 Network Communication Ethernet Communication > Communication - FC 5...6 for CP 343 8.2 Ethernet Communication 8.2.1 Communication - FC 5...6 for CP 343 The two blocks are used to process connection requests on the PLC side of an Ethernet CP 343.
  • Page 138 VIPA SPEED7 Network Communication Ethernet Communication > Communication - FC 5...6 for CP 343 The FC blocks with concerning communication connection are grouped by color. Here you may also see that your user application may consist of any number of blocks. This allows you to send or receive data (with AG_SEND res.
  • Page 139 VIPA SPEED7 Network Communication Ethernet Communication > FC 5 - AG_SEND - Send to CP 343 8.2.2 FC 5 - AG_SEND - Send to CP 343 By means of AG_SEND the data to send are transferred from the CPU to an Ethernet CP.
  • Page 140 VIPA SPEED7 Network Communication Ethernet Communication > FC 5 - AG_SEND - Send to CP 343 DONE ERROR STATUS Description (SEND) (RECV) 8184h System error occurred 8184h System error occurred (source data area failure). 8185h Parameter LEN exceeds source area SEND.
  • Page 141 VIPA SPEED7 Network Communication Ethernet Communication > FC 5 - AG_SEND - Send to CP 343 DONE ERROR STATUS Description (SEND) (RECV) 8091h Module start address not within double word grid. 8092h ANY reference contains type setting unequal BYTE. 80A0h Negative acknowledgement at reading from module.
  • Page 142: Fc 6 - Ag_Recv - Receive From Cp 343

    VIPA SPEED7 Network Communication Ethernet Communication > FC 6 - AG_RECV - Receive from CP 343 8.2.3 FC 6 - AG_RECV - Receive from CP 343 With the 1. call of AG_RECV a receive buffer for the communication between CPU and an Ethernet CP 343 is established.
  • Page 143 VIPA SPEED7 Network Communication Ethernet Communication > FC 6 - AG_RECV - Receive from CP 343 DONE ERROR STATUS Description (SEND) (RECV) 8184h System error occurred 8184h System error occurred (source data area failure). 8185h Parameter LEN exceeds source area SEND.
  • Page 144: Fc 10 - Ag_Cntrl - Control Cp 343

    VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 DONE ERROR STATUS Description (SEND) (RECV) 8091h Module start address not within double word grid. 8092h ANY reference contains type setting unequal BYTE. 80A0h Negative acknowledgement at reading from module.
  • Page 145 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 1) Parameter transfer DONE, ERROR, STATUS and RESULT1/2 Parameters Parameter Declaration Data type Description INPUT BOOL Job triggered by edge change 0-1 of the memory bit ACT...
  • Page 146 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 Parameter Declaration Data type Description STATUS OUTPUT WORD Status code RESULT1 OUTPUT DWORD Job result 1 under command RESULT2 OUTPUT DWORD Job result 2 under command Possible values: 0, 1 The FC is to be called with edge change 0-1 of ACT.
  • Page 147 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 DONE ERROR STATUS Description 0000h Job executed without error 0000h No job executing 8181h Job active, the block call is to be repeated with the same parameters until DONE or ERROR is returned.
  • Page 148 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 CMD 1 CN_STATUS - connection status This command returns the status of the connection selected with the ID of the CP addressed by LADDR. If bit 15 (reset ID) is set, this is automatically reset (this action cor- responds to the CMD 5 - CN_CLEAR_RESET).
  • Page 149 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 RESULT Hex value/range Description 0000 x000h Bit 15 ... 12: General CP information (excluded: 0011 , 1011 Bit 13, 12: Connection status (only available for SEND/RECV connections based on the ISO/RFC/TCP protocols;...
  • Page 150 VIPA SPEED7 Network Communication Ethernet Communication > FC 10 - AG_CNTRL - Control CP 343 RESULT Hex value/range Description RESULT 1 xxxx xxxxh 32 Bit: Connection 1 ... 32 0: Connection terminated / not configured 1: Connection established RESULT 2 xxxx xxxxh 32 Bit: Connection 33 ...
  • Page 151: Fc 62 - C_Cntr - Querying The Connection Status

    VIPA SPEED7 Network Communication Ethernet Communication > FC 62 - C_CNTR - Querying the Connection Status Possibly in the stack stored data are lost without any instructions. After that no further connection is automatically established. The connection may again be established by the control job CN_STARTCON.
  • Page 152 VIPA SPEED7 Network Communication Ethernet Communication > FC 62 - C_CNTR - Querying the Connection Status Parameter Declaration Data Type Memory Description Area STATUS OUTPUT WORD I, Q, M, D, L ERROR = 0 and STATUS have the values: –...
  • Page 153: Fb/Sfb 8 - Fb 55 - Overview

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 8 - FB 55 - Overview 8.2.6 FB/SFB 8 - FB 55 - Overview With the Siemens S7 connection large data sets may be transferred between via Ethernet connected PLC systems based on Siemens STEP7 ®...
  • Page 154: Fb/Sfb 8 - Usend - Uncoordinated Data Transmission

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 8 - USEND - Uncoordinated data transmission 8.2.7 FB/SFB 8 - USEND - Uncoordinated data transmission Description FB/SFB 8 USEND may be used to transmit data to a remote partner FB/SFB of the type URCV (FB/SFB 9).
  • Page 155: Fb/Sfb 9 - Urcv - Uncoordinated Data Reception

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 9 - URCV - Uncoordinated data reception You must, however, make sure that the areas defined by the parameters SD_1/SD_1...SD_4 and RD_1/RD_1...RD_4 (at the corresponding partner FB/SFB URCV) agree in Number, Length and Data type.
  • Page 156 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 9 - URCV - Uncoordinated data reception Depending upon communication function the following behavior is present: Siemens S7-300 Communication (FB 9) – The parameters R_ID, ID and RD_1 are applied with every positive edge on EN_R.
  • Page 157 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 9 - URCV - Uncoordinated data reception ERROR STATUS Description (decimal) Communication failures, e.g. Connection parameters not loaded (local or remote) Connection interrupted (e.g. cable, CPU turned off, CP in STOP) Error in receive buffer pointer RD_i with respect to the length or the data type.
  • Page 158: Fb/Sfb 12 - Bsend - Sending Data In Blocks

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 12 - BSEND - Sending data in blocks 8.2.9 FB/SFB 12 - BSEND - Sending data in blocks Description FB/SFB 12 BSEND sends data to a remote partner FB/SFB of the type BRCV (FB/SFB 13).
  • Page 159 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 12 - BSEND - Sending data in blocks Parameter Declaration Data type Memory block Description INPUT WORD I, Q, M, D, A reference for the connection. constant Format W#16#xxxx R_ID INPUT DWORD I, Q, M, D, L, Address parameter R_ID.
  • Page 160 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 12 - BSEND - Sending data in blocks ERROR STATUS (dec- Description imal) Reset request was executed. The status of the partner FB/SFB is DISABLED (EN_R has a value of 0) The status of the partner FB/SFB is not correct (the receive block has not been called after the most recent data transfer).
  • Page 161: Fb/Sfb 13 - Brcv - Receiving Data In Blocks

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 13 - BRCV - Receiving data in blocks 8.2.10 FB/SFB 13 - BRCV - Receiving data in blocks Description The FB/SFB 13 BRCV can receive data from a remote partner FB/SFB of the type BSEND (FB/SFB 12).
  • Page 162 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 13 - BRCV - Receiving data in blocks Function The FB/SFB 13 is ready for reception when control input EN_R is set to 1. Parameter RD_1 specifies the start address of the receive data buffer. An acknowledgment is returned to the partner FB/SFB after reception of each data segment and parameter LEN of the FB/SFB 13 is updated accordingly.
  • Page 163: Fb/Sfb 14 - Get - Remote Cpu Read

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 14 - GET - Remote CPU read Receiving Data S7-400 If a receiving CPU with a BRCV block ready to accept data (that is, a call with EN_R = 1 has already been made) goes into STOP mode before the corresponding send...
  • Page 164 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 14 - GET - Remote CPU read Parameter Declaration Data type Memory block Description STATUS OUTPUT WORD I, Q, M, D, L Status parameter STATUS, returns detailed infor- mation about the type of error.
  • Page 165: Fb/Sfb 15 - Put - Remote Cpu Write

    VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 15 - PUT - Remote CPU write ERROR STATUS Description (decimal) The call to the FB/SFB contains an instance DB that does not belong to the FB/SFB 14 contains a global DB instead of an instance DB...
  • Page 166 VIPA SPEED7 Network Communication Ethernet Communication > FB/SFB 15 - PUT - Remote CPU write Parameter Declaration Data type Memory block Description ERROR OUTPUT BOOL I, Q, M, D, L Status parameter ERROR: ERROR = 0 + STATUS = 0000h –...
  • Page 167: Fb 55 - Ip_Conf - Progr. Communication Connections

    VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections ERROR STATUS Description (decimal) Error in transmission range pointers SD_i with respect to the length or the data type Partner CPU access error Access to local application memory not possible (e.g.
  • Page 168 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections CAUTION! As soon as the user program transfers the connection data via FB 55 IP_CONF, the CPU switches the CP briefly to STOP. The CP accepts the system data (including IP address) and the new connection data and pro- cesses it during startup (RUN).
  • Page 169 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Parameter Declaration Data type Memory block Description STATUS OUTPUT WORD I, Q, M, D Status code EXT_STATUS OUTPUT WORD I, Q, M, D If an error occurs during the execution of a job, the parameter indicates, which parameter was detected as the cause of the error in the configuration DB.
  • Page 170 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections ERROR STATUS Description 8B07h Parameter error, the length of the parameter field is invalid. 8B08h Parameter error, the ID of the subfield is invalid. 8B09h System error, the connection does not exist.
  • Page 171 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Structure The CONF_DB can start at any point within a data block as specified by an offset range. The connections and specific system data are described by an identically structured parameter field.
  • Page 172 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length Description Special features (byte) SUB_CLIENT_ID Length optional Client-ID + 4 MAC-ADR 4 + 6 MAC address local optional node Parameter fields for Con-...
  • Page 173 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length (byte) Description Special features SUB_CON_ESTABL 4 + 1 Type of connection establishment. mandatory With this option, you specify whether the connection is established by this station.
  • Page 174 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length Description Special fea- (byte) tures SUB_ADDR_IN_DATA_ 4 + 1 Select free UDP connection. optional BLOCK The remote node is entered in the job header of the job buffer by the user program when it calls AG_SEND.
  • Page 175 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length (byte) Description Special features SUB_CON_ESTABL 4 + 1 Type of connection establishment mandatory With this option, you specify whether the connection is established by this station.
  • Page 176 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length Description Special features (byte) SUB_CON_ESTABL 4 + 1 Type of connection establishment mandatory With this option, you specify whether the connection is established by this station.
  • Page 177 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length (byte) Description Special features SUB_CON_ESTABL 4 + 1 Type of connection establishment. With mandatory this option, you specify whether the con- nection is established by this station.
  • Page 178 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Properties - Siemens S7- Connection Siemens NetPro FB55 - IP_CONFIG IP respectively MAC address remote SUB_IP_V4.rem_IP.IP_0...IP_3 resp. station SUB_MAC.rem_MAC.MAC_0...MAC5 Local ID Connection ID Address details...
  • Page 179 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Subfield Parameter Type Length (byte) Description Special features VIPA_IPK_CYCLE 4 + 4 IPK cycle time for con- VIPA specific optional nection ID Example DB Address...
  • Page 180 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Address Name Type Initial value Actual Comment 52.0 Con_TCP_ID1.remport.SUB_REM_PORT WORD W#16#A W#16#A 54.0 Con_TCP_ID1.remport.SUB_REM_PORT_LEN WORD W#16#6 W#16#6 56.0 Con_TCP_ID1.remport.REM_PORT WORD W#16#0 W#16#3E9 58.0 Con_TCP_ID1.con_est.SUB_CON_ESTABL WORD...
  • Page 181 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Address Name Type Initial value Actual Comment 116.0 S7_Verb.Verb_Parameter.LocalResource 118.0 S7_Verb.Verb_Parameter.LocalRack 120.0 S7_Verb.Verb_Parameter.LocalsSlot 122.0 S7_Verb.Verb_Parameter.RemoteResource 124.0 S7_Verb.Verb_Parameter.RemoteRack 126.0 S7_Verb.Verb_Parameter.RemoteSlot 128.0 S7_Verb.ipl.SUB_IP_V4 WORD W#16#1 W#16#1 130.0 S7_Verb.ipl.
  • Page 182 VIPA SPEED7 Network Communication Ethernet Communication > FB 55 - IP_CONF - Progr. Communication Connections Address Name Type Initial value Actual Comment 172.0 S7_Verb.name_verb.CONNECT_NAME[16] CHAR 173.0 S7_Verb.name_verb.CONNECT_NAME[17] CHAR 174.0 S7_Verb.name_verb.CONNECT_NAME[18] CHAR 175.0 S7_Verb.name_verb.CONNECT_NAME[19] CHAR 176.0 S7_Verb.name_verb.CONNECT_NAME[20] CHAR 177.0 S7_Verb.name_verb.CONNECT_NAME[21] CHAR 178.0...
  • Page 183: Modbus Communication

    VIPA SPEED7 Modbus Communication TCP > FB 70 - TCP_MB_CLIENT - Modbus/TCP client Modbus Communication Block library "Modbus The block library can be found for download in the ‘Service/Support’ area of Communication" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Modbus Communication - SW90AS0MA’...
  • Page 184 VIPA SPEED7 Modbus Communication TCP > FB 70 - TCP_MB_CLIENT - Modbus/TCP client The following must be observed: The call parameters must be specified with the block call. Besides the call parameters all parameters are located in the instance DB.
  • Page 185 VIPA SPEED7 Modbus Communication TCP > FB 70 - TCP_MB_CLIENT - Modbus/TCP client STATUS DONE BUSY ERROR Description 818Dh Server returns wrong transaction ID. 8200h Another Modbus request is processed at the time via the port (PROTOCOL_TIMEOUT). 9.1.1.2 Example Task With Function code 03h, starting from address 2000, 100 register are to be read from a Modbus/TCP server and stored in flag area starting from MB200.
  • Page 186: Fb 71 - Tcp_Mb_Server - Modbus/Tcp Server

    VIPA SPEED7 Modbus Communication TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server Set M101.0 in the CPU to TRUE. ð The Modbus request is sent and it is waited for a response. If M101.0 is automatically reset, the job was finished without errors and the read data are stored in the CPU starting from bit memory byte 200.
  • Page 187 VIPA SPEED7 Modbus Communication TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server Name Declara- Type Description tion FC1_ADDR_OUTPUT_END STAT WORD Modbus Function code 01h end register for Qx.y Default: 19999 FC1_ADDR_MEMORY_START STAT WORD Modbus Function code 01h start register for M0.0...
  • Page 188 VIPA SPEED7 Modbus Communication TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server Name Declara- Type Description tion FC15_ADDR_MEMORY_START STAT WORD Modbus Function code 0Fh start register for Q0.0 Default: 20000 FC15_ADDR_MEMORY_END STAT WORD Modbus Function code 0Fh end register for Qx.y...
  • Page 189 VIPA SPEED7 Modbus Communication TCP > FB 71 - TCP_MB_SERVER - Modbus/TCP server 9.1.2.2 Example Task The CPU provides 100 byte data in the flag area starting from MB200 for a Modbus client via the Modbus register 0...49. Data can be read from the Modbus client via Function code 03h and written with Function code 06h, 10h.
  • Page 190: Fb 72 - Rtu_Mb_Master - Modbus Rtu Master

    Description BOOL Start job with edge 0-1. HARDWARE BYTE 1 = System SLIO CP 040 / 2 = VIPA SPEED7 CPU LADDR Logical address of the System SLIO CP 040 (parameter is ignored with the VIPA SPEED7 CPU). MB_UNIT_ID BYTE Modbus: Device identification = Address of the slave (0 ...
  • Page 191 VIPA SPEED7 Modbus Communication RTU > FB 72 - RTU_MB_MASTER - Modbus RTU master The following must be observed: The call parameters must be specified with the block call. Besides the call parameters all parameters are located in the instance DB.
  • Page 192 VIPA SPEED7 Modbus Communication RTU > FB 72 - RTU_MB_MASTER - Modbus RTU master 9.2.1.2 Example Task With Function code 03h, starting from address 2000, 100 register are to be read from a Modbus RTU slave with address 99 and stored in flag area starting from MB200. Errors are to be stored.
  • Page 193: Fb 73 - Rtu_Mb_Slave - Modbus Rtu Slave

    1 = System SLIO CP 040 / 2 = VIPA SPEED7 CPU LADDR Logical address of the System SLIO CP 040 (param- eter is ignored with the VIPA SPEED7 CPU). MB_UNIT_ID BYTE Modbus: Device identification = own address (1 ...
  • Page 194 VIPA SPEED7 Modbus Communication RTU > FB 73 - RTU_MB_SLAVE - Modbus RTU slave Name Declara- Type Description tion EXCEPTION_COUNT STAT WORD Counter for each negatively acknowledged Modbus request. SUCCESS_COUNT STAT WORD Counter for each positively acknowledged Modbus request. BAD_CRC_COUNT...
  • Page 195 VIPA SPEED7 Modbus Communication RTU > FB 73 - RTU_MB_SLAVE - Modbus RTU slave Name Declara- Type Description tion FC15_ADDR_OUTPUT_START STAT WORD Modbus Function code 0Fh start register for Q0.0 Default: 0 FC15_ADDR_OUTPUT_END STAT WORD Modbus Function code 0Fh end register for Qx.y...
  • Page 196 VIPA SPEED7 Modbus Communication RTU > FB 73 - RTU_MB_SLAVE - Modbus RTU slave STATUS ERROR Description 8201h HARDWARE not valid. 8202h MB_UNIT_ID not valid. 8203 h *) Error free Modbus job with Function code 05h, 06h, 0Fh or 10h returns NDR=1 and DR=0.
  • Page 197: Fkt Codes

    VIPA SPEED7 Modbus Communication FKT Codes OB1 - Description Calling the handling block of the Modbus/TCP server with the correct parameters. If the interface was correctly initialized in the OB100, the slave can be used and MW102 returns 7006h. The Modbus start register in the process image, which can be reached by Function code 05h, may be changed in the example by the parameter FC5_ADDR_OUTPUT_START (word 58 in the instance data block).
  • Page 198 VIPA SPEED7 Modbus Communication FKT Codes 0x - Bit area for master output Access via function code 01h, 05h, 0Fh 1x - Bit area for master input Access via function code 02h 3x - Word area for master input Access via function code 04h...
  • Page 199 VIPA SPEED7 Modbus Communication FKT Codes ® Error & error number Coupler answer: Function code OR 80h ® OK Function code If the slave announces an error, the function code is sent back with a "OR" and 80h. Without an error, the function code is sent back.
  • Page 200 VIPA SPEED7 Modbus Communication FKT Codes Write 1 bit 05h Code 05h: Write 1 bit to master output area 0x. A status change is via "Status bit" with following values: "Status bit" = 0000h ® Bit = 0 "Status bit" = FF00h ® Bit = 1...
  • Page 201 VIPA SPEED7 Modbus Communication FKT Codes Write n bits 0Fh Code 0Fh: Write n bits to master output area 0x. Please regard that the number of bits are additionally to be set in byte. Command telegram Modbus/TCP-Header Slave Function Address1...
  • Page 202 VIPA SPEED7 Modbus Communication FKT Codes Respond telegram Modbus/TCP-Header Slave address Function code Address word AND Mask OR Mask 6byte 1byte 1byte 1word 1word 1word HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 203: Serial Communication

    VIPA SPEED7 Serial Communication Serial communication > SFC 207 - SER_CTRL - Modem functionality PtP Serial Communication Block library "Serial Com- The block library can be found for download in the ‘Service/Support’ area of munication" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Serial Communication - SW90GS0MA’...
  • Page 204: Fc/Sfc 216 - Ser_Cfg - Parametrization Ptp

    VIPA SPEED7 Serial Communication Serial communication > FC/SFC 216 - SER_CFG - Parametrization PtP READ You get the current status by READ. The current status changed since the last access is returned by READDELTA. The bytes have the following structure: Bit No.
  • Page 205 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 216 - SER_CFG - Parametrization PtP Parameters Parameter Declaration Data type Description PROTOCOL BYTE 1=ASCII, 2=STX/ETX, 3=3964R PARAMETER Pointer to protocol-parameters BAUDRATE BYTE Number of baudrate CHARLEN BYTE 0=5bit, 1=6bit, 2=7bit, 3=8bit...
  • Page 206 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 216 - SER_CFG - Parametrization PtP DBB3: ETX2 BYTE (2. End-ID in hexadecimal) DBW4: TIMEOUT WORD (max. delay time between 2 telegrams) < 20, otherwise the sign The start res. end sign should always be a value...
  • Page 207 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 216 - SER_CFG - Parametrization PtP 1: 1bit 2: 1.5bit* 3: 2bit *) Only permitted when CHARLEN = 0 (5bit) FLOWCONTROL The parameter FLOWCONTROL is ignored. When sending RTS=1, when receiving RTS=0.
  • Page 208: Fc/Sfc 217 - Ser_Snd - Send To Ptp

    VIPA SPEED7 Serial Communication Serial communication > FC/SFC 217 - SER_SND - Send to PtP 10.1.3 FC/SFC 217 - SER_SND - Send to PtP Description Please note that this block can only be used in CPUs from VIPA or in S7-300 CPUs from Siemens! This block sends data via the serial interface.
  • Page 209 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 217 - SER_SND - Send to PtP Error code Description 8x24h Error in FC/SFC parameter x, where x: 1: Error in DATAPTR 2: Error in DATALEN 8122h Error in parameter DATAPTR (e.g. DB too short)
  • Page 210 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 217 - SER_SND - Send to PtP Error code Description 80FEh Wrong start sign in respond 80FFh Wrong slave address in respond 9000h Buffer overflow (no data send) 9001h Data too long (>1024byte) 9002h Data too short (<2byte)
  • Page 211 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 217 - SER_SND - Send to PtP Principles of programming The following text shortly illustrates the structure of programming a send command for the different protocols. 3964R HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 212 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 217 - SER_SND - Send to PtP USS / Modbus ASCII / STX/ETX HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 213: Fc/Sfc 218 - Ser_Rcv - Receive From Ptp

    VIPA SPEED7 Serial Communication Serial communication > FC/SFC 218 - SER_RCV - Receive from PtP 10.1.4 FC/SFC 218 - SER_RCV - Receive from PtP Description Please note that this block can only be used in CPUs from VIPA or in S7-300 CPUs from Siemens! This block receives data via the serial interface.
  • Page 214 VIPA SPEED7 Serial Communication Serial communication > FC/SFC 218 - SER_RCV - Receive from PtP STX/ETX Error Description overflow The received telegram exceeds the size of the receive buffer. char A sign outside the range 20h ... 7Fh has been received.
  • Page 215: Fb 1 - Receive_Ascii - Receiving With Defined Length From Ptp

    VIPA SPEED7 Serial Communication Serial communication > FB 1 - RECEIVE_ASCII - Receiving with defined length from PtP Principles of programming The following picture shows the basic structure for programming a receive command. This structure can be used for all protocols.
  • Page 216: Fb 7 - P_Rcv_Rk - Receive From Cp 341

    VIPA SPEED7 Serial Communication Serial communication > FB 7 - P_RCV_RK - Receive from CP 341 EMPF_PUFFER Specify here an area of type pointer, in which the received data are to be copied. Specify type, start and length. Example: Data are to be stored in DB5 starting from 0.0 with length 124byte –...
  • Page 217 VIPA SPEED7 Serial Communication Serial communication > FB 8 - P_SND_RK - Send to CP 341 Parameter Declaration Data type Description LEN* BOOL Length of the received telegram in byte 1 ≤ LEN ≤ 1024 STATUS* WORD Specification of the error on ERROR = 1 *) Parameter is available until the next call of the FB.
  • Page 218 VIPA SPEED7 Serial Communication Serial communication > FB 8 - P_SND_RK - Send to CP 341 The FB 8 - P_SND_RK transfers a data block of a DB to the CP, specified by the parame- ters DB_NO, DBB_NO and LEN. For data transfer the FB is to be called either cyclically or statically by a timer-driven program.
  • Page 219: Cp040

    VIPA SPEED7 Serial Communication CP040 > Overview Error indication The DONE output shows ”request completed without errors”. If there was an ERROR, the corresponding event number is displayed in the STATUS. If no error occurs the value of STATUS is "0".
  • Page 220: Fb 60 - Send - Send To System Slio Cp 040

    VIPA SPEED7 Serial Communication CP040 > FB 60 - SEND - Send to System SLIO CP 040 FIFO Ring buffer max. 250 telegrams 1024byte CONTROL Software handshake via CONTROL block For recognizing a signal change a minimum pulse time is necessary. The decisive factors are CPU cycle time, the refresh time on the CP and the response time of the communication partner.
  • Page 221 VIPA SPEED7 Serial Communication CP040 > FB 60 - SEND - Send to System SLIO CP 040 Name Declaration Type Description CONTROL IN_OUT BYTE Divided byte with RECEIVE handling block: SEND (bit 0 … 3), RECEIVE (bit 4 … 7).
  • Page 222 VIPA SPEED7 Serial Communication CP040 > FB 60 - SEND - Send to System SLIO CP 040 IO_SIZE Size I/O area: Enter the size of the I/O area. Depending on the host system the CP occupies for input and output the following bytes in the I/O areas: –...
  • Page 223: Fb 61 - Receive - Receive From System Slio Cp 040

    VIPA SPEED7 Serial Communication CP040 > FB 61 - RECEIVE - Receive from System SLIO CP 040 Error indication The DONE output shows "order ready without error". If there was an ERROR, the cor- responding event number is displayed in the STATUS. If no error occurs the value of STATUS is "0".
  • Page 224 VIPA SPEED7 Serial Communication CP040 > FB 61 - RECEIVE - Receive from System SLIO CP 040 Synchronous reset: For the initialization RECEIVE is once to be called in the start-up OB with every parameter and set R. At any time a current order may be cancelled and the FB may be set to initial state with signal state "1"...
  • Page 225: Fb 65 - Cp040_Com - Communication Slio Cp 040

    VIPA SPEED7 Serial Communication CP040 > FB 65 - CP040_COM - Communication SLIO CP 040 STATUS If there is no error, STATUS = 0000h or 8181h. With an error here the corresponding error code may be found. As long as ERROR is set, the value of STATUS is available. The fol-...
  • Page 226 VIPA SPEED7 Serial Communication CP040 > FB 65 - CP040_COM - Communication SLIO CP 040 Name Declaration Type Description RESET BOOL Release synchronous reset. ADDR_OUT Logical output base address of the CP from the Hardware configura- tion. ADDR_IN Logical input base address of the CP from the Hardware configura- tion.
  • Page 227 VIPA SPEED7 Serial Communication CP040 > FB 65 - CP040_COM - Communication SLIO CP 040 Name Declaration Type Description LEN_SEND Length of telegram in byte, to be sent. 1 ≤ LEN_SEND ≤ 1024 DB_NO_RECV Number of DB containing data to receive.
  • Page 228 VIPA SPEED7 Serial Communication CP040 > FB 65 - CP040_COM - Communication SLIO CP 040 ADDR_OUT Peripheral output address: This parameter is only available in CPUs from VIPA or S7-300 CPUs from Siemens. With ADDR_OUT the output address of the corresponding CP may be determined.
  • Page 229 VIPA SPEED7 Serial Communication CP040 > FB 65 - CP040_COM - Communication SLIO CP 040 STATUS_SEND If there is no error, STATUS_SEND = 0000h or 8181h. With an error here the corre- sponding error code may be found. As long as ERROR_SEND is set, the value of STATUS_SEND is available.
  • Page 230: Cp240

    VIPA SPEED7 Serial Communication CP240 > FC 0 - SEND_ASCII_STX_3964 - Send to CP 240 STATUS Description 080Ch Wrong character received (Character frame or parity error) 8090h HW_ID is unknown. 80A0h When accessing the periphery, an access error was detected.
  • Page 231 VIPA SPEED7 Serial Communication CP240 > FC 0 - SEND_ASCII_STX_3964 - Send to CP 240 Name Declaration Type Description PAFE OUT / BYTE PAFE (0 = OK) IN_OUT Parametrization error code of Type BYTE as OUT parameter, used in CPUs from VIPA or S7-300 CPUs from Siemens.
  • Page 232: Fc 1 - Receive_Ascii_Stx_3964 - Receive From Cp 240

    VIPA SPEED7 Serial Communication CP240 > FC 1 - RECEIVE_ASCII_STX_3964 - Receive from CP 240 10.3.2 FC 1 - RECEIVE_ASCII_STX_3964 - Receive from CP 240 Description This FC serves the data reception of the CP 240. Here you set the reception range via the identifiers _DB and ABD.
  • Page 233: Fc 8 - Steuerbit - Modem Functionality Cp 240

    VIPA SPEED7 Serial Communication CP240 > FC 8 - STEUERBIT - Modem functionality CP 240 Word variable that contains the number of the data word from where on the received characters are stored. Word variable that contains the amount of received bytes.
  • Page 234: Fc 9 - Synchron_Reset - Synchronization Cpu And Cp 240

    VIPA SPEED7 Serial Communication CP240 > FC 9 - SYNCHRON_RESET - Synchronization CPU and CP 240 Name Declaration Type Comment DELTA_STATUS OUT / BYTE DELTA_STATUS IN_OUT Status flags of change between 2 accesses of Type BYTE as OUT parameter, used in CPUs from VIPA or in S7-300 CPUs from Siemens.
  • Page 235 VIPA SPEED7 Serial Communication CP240 > FC 9 - SYNCHRON_RESET - Synchronization CPU and CP 240 A communication with SEND and RECEIVE blocks is only possible when the parameter ANL of the SYNCHRON block has been set in the start-up OB before.
  • Page 236: Fc 11 - Ascii_Fragment - Receive Fragmented From Cp 240

    VIPA SPEED7 Serial Communication CP240 > FC 11 - ASCII_FRAGMENT - Receive fragmented from CP 240 10.3.5 FC 11 - ASCII_FRAGMENT - Receive fragmented from CP 240 Description Please note that this block can only be used in CPUs from VIPA or in S7-300 CPUs from Siemens! This FC serves the fragmented ASCII data reception.
  • Page 237 VIPA SPEED7 Serial Communication CP240 > FC 11 - ASCII_FRAGMENT - Receive fragmented from CP 240 PAFE At proper function, all bits of this bit memory byte are "0". At errors an error code is entered. The error setting is self-acknowledging, i.e. after elimination of the error cause, the byte is set back to "0"...
  • Page 238: Ethercat Communication

    VIPA SPEED7 EtherCAT Communication SDO Communication > FB 52 - SDO_READ - Read access to Object Dictionary Area EtherCAT Communication Block library "EtherCAT The block library can be found for download in the ‘Service/Support’ area of Communication" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library EtherCAT Communication - SW90HS0MA’...
  • Page 239 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 52 - SDO_READ - Read access to Object Dictionary Area Please note that the data transferred to RECORD are not in a temporary area. Special features at With the activation of the parameter COMPL_ACCESS the following is to be considered:...
  • Page 240 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 52 - SDO_READ - Read access to Object Dictionary Area ERROR_ID On a RETVAL more information can be found in the ERROR_ID if available. Otherwise ERROR_ID is 0. Internal error Description 0x00000000...
  • Page 241 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 52 - SDO_READ - Read access to Object Dictionary Area CoE Error codes Description CoE slave abort code 0x9811004A SDO: Object does not exist in the object dictionary 0x06020000 0x9811004B SDO: Object cannot be mapped to the PDO...
  • Page 242: Fb 53 - Sdo_Write - Write Access To Object Dictionary Area

    VIPA SPEED7 EtherCAT Communication SDO Communication > FB 53 - SDO_WRITE - Write access to Object Dictionary Area 11.1.2 FB 53 - SDO_WRITE - Write access to Object Dictionary Area Description With this block, you will have write access to the object directory of the EtherCAT slave stations and EtherCAT master.
  • Page 243 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 53 - SDO_WRITE - Write access to Object Dictionary Area RETVAL (return value) In addition to the module specific error codes, which are listed here, also the general error codes for FC/SFC as return value are possible.
  • Page 244 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 53 - SDO_WRITE - Write access to Object Dictionary Area Internal error Description 0x98110007 Not ready 0x98110008 Busy 0x9811000A No Memory left 0x9811000B Invalid Parameter 0x9811000C Not Found 0x9811000E Invalid state 0x98110010...
  • Page 245 VIPA SPEED7 EtherCAT Communication SDO Communication > FB 53 - SDO_WRITE - Write access to Object Dictionary Area CoE Error codes Description CoE slave abort code 0x98110052 SDO: Data type does not match, length of service parameter too low 0x06070013...
  • Page 246: Device Specific

    VIPA SPEED7 Device Specific Frequency Measurement > FC 300 - FM_SET_CONTROL - Control frequency measurement consistent Device Specific Block library "Device Spe- The block library can be found for download in the ‘Service/Support’ area of cific" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Device Specific - SW90LS0MA’...
  • Page 247 VIPA SPEED7 Device Specific Frequency Measurement > FC 300 - FM_SET_CONTROL - Control frequency measurement consistent Parameter Declaration Data type Memory block Description PRESET_CH1 INPUT DINT I, Q, M, D, L Channel 1: Measurement period DONE OUTPUT BOOL I, Q, M, D, L...
  • Page 248: Fc 301 - Fm_Get_Period - Calculate Period Duration Consistent

    VIPA SPEED7 Device Specific Frequency Measurement > FC 301 - FM_GET_PERIOD - Calculate period duration consistent Code Description 0x80D4 Channel 0: Input value measurement period > 8 388 607µs 0x80D5 Channel 1: Input value measurement period > 8 388 607µs...
  • Page 249 VIPA SPEED7 Device Specific Frequency Measurement > FC 301 - FM_GET_PERIOD - Calculate period duration consistent Parameters Parameter Declaration Data type Memory block Description LADDR_IN / INPUT WORD / I, Q, M, D, L LADDR_OUT – Logical base input address of the...
  • Page 250 VIPA SPEED7 Device Specific Frequency Measurement > FC 301 - FM_GET_PERIOD - Calculate period duration consistent ERROR (Return value) The following codes can be returned: Code Description 0x0000 No error 0x80D0 Channel 0 not in status active 0x80D1 Channel 1 not in status active 0x80DC Channel 0: Measured time value <...
  • Page 251: Fc 302 - Fm_Get_Frequency - Calculate Frequency Consistent

    VIPA SPEED7 Device Specific Frequency Measurement > FC 302 - FM_GET_FREQUENCY - Calculate frequency consistent Code Description 0x85xy System error on the bus coupler 0x8xyy General error information Ä Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 66 12.1.4...
  • Page 252 VIPA SPEED7 Device Specific Frequency Measurement > FC 302 - FM_GET_FREQUENCY - Calculate frequency consistent FREQUENCY_CHx Currently determined frequency of the corresponding channel in mHz. ERROR (Return value) The following codes can be returned: Code Description 0x0000 No error 0x80D0...
  • Page 253: Fc 303 - Fm_Get_Speed - Calculate Rotational Speed Consistent

    VIPA SPEED7 Device Specific Frequency Measurement > FC 303 - FM_GET_SPEED - Calculate rotational speed consistent Code Description 0x80C1 The data from the previous write request on the module are not pro- cessed by the module, yet. 0x80C2 System error on the bus coupler...
  • Page 254 VIPA SPEED7 Device Specific Frequency Measurement > FC 303 - FM_GET_SPEED - Calculate rotational speed consistent LADDR_IN Peripheral address: This parameter is available in CPUs from VIPA or in S7-300 CPUs from Siemens. Configured base address of the input area of the System SLIO frequency measure- ment module, which is to be read from.
  • Page 255 VIPA SPEED7 Device Specific Frequency Measurement > FC 303 - FM_GET_SPEED - Calculate rotational speed consistent ERROR (Return value) The following codes can be returned: Code Description 0x0000 No error 0x80D0 Channel 0 not in status active 0x80D1 Channel 1 not in status active...
  • Page 256: Fc 310 ... 313 - Frequency Measurement Slio

    VIPA SPEED7 Device Specific Frequency Measurement > FC 310 - FM_CONTROL - Control frequency measurement Code Description 0x80B2 System error on the bus coupler 0x80B3 System error on the bus coupler 0x80C1 The data from the previous write request on the module are not pro- cessed by the module, yet.
  • Page 257 VIPA SPEED7 Device Specific Frequency Measurement > FC 310 - FM_CONTROL - Control frequency measurement Parameter Declaration Data type Memory block Description PRESET_CH1 INPUT DINT I, Q, M, D, L Channel 1: Measurement period DONE OUTPUT BOOL I, Q, M, D, L...
  • Page 258: Fc 311 - Fm_Calc_Period - Calculate Period Duration

    VIPA SPEED7 Device Specific Frequency Measurement > FC 311 - FM_CALC_PERIOD - Calculate period duration FM_CONTROL_CHx This parameter contains CONTROL, which is generated by ENABLE_FM. The content for channel 0 respectively channel 1 is to be consistent connected with address +8 respec- tively +10 of the output area of the frequency measurement module, via the according bus system.
  • Page 259 VIPA SPEED7 Device Specific Frequency Measurement > FC 311 - FM_CALC_PERIOD - Calculate period duration Parameter Declaration Data type Memory block Description FM_STATUS_CH1 INPUT WORD I, Q, M, D, L Actual value of frequency meas- urement module input address: DONE...
  • Page 260: Fc 312 - Fm_Calc_Frequency - Calculate Frequency

    VIPA SPEED7 Device Specific Frequency Measurement > FC 312 - FM_CALC_FREQUENCY - Calculate frequency ERROR (Return value) The following codes can be returned: Code Description 0x0000 No error 0x80D0 Channel 0 not in status active 0x80D1 Channel 1 not in status active 0x80DC Channel 0: Measured time value <...
  • Page 261 VIPA SPEED7 Device Specific Frequency Measurement > FC 312 - FM_CALC_FREQUENCY - Calculate frequency Parameter Declaration Data type Memory block Description FM_STATUS_CH0 INPUT WORD I, Q, M, D, L Actual value of frequency meas- urement module input address: FM_STATUS_CH1 INPUT...
  • Page 262: Fc 313 - Fm_Calc_Speed - Calculate Rotational Speed

    VIPA SPEED7 Device Specific Frequency Measurement > FC 313 - FM_CALC_SPEED - Calculate rotational speed Code Description 0x80DB Channel 1: Measured time value = 0 0x80DC Channel 0: Measured time value < 0 0x80DD Channel 1: Measured time value < 0 0x80DE Channel 0: Measured time value >...
  • Page 263 VIPA SPEED7 Device Specific Frequency Measurement > FC 313 - FM_CALC_SPEED - Calculate rotational speed Parameter Declaration Data type Memory block Description RESOLUTION_CH0 INPUT DINT I, Q, M, D, L Channel 0: Resolution of the sensor RESOLUTION_CH1 INPUT DINT I, Q, M, D, L...
  • Page 264: Energy Measurement

    VIPA SPEED7 Device Specific Energy Measurement > Overview ERROR (Return value) The following codes can be returned: Code Description 0x0000 No error 0x80D0 Channel 0 not in status active 0x80D1 Channel 1 not in status active 0x80D6 Channel 0: Input value RESOLUTION_CH0 = 0...
  • Page 265: Ds-Id

    VIPA SPEED7 Device Specific Energy Measurement > Overview DS-ID As soon as the module is supplied by the DC 24V power section supply, the measure- ment is started and the counting of the energy counters is continued with the retentive stored counter values.
  • Page 266 VIPA SPEED7 Device Specific Energy Measurement > Overview 12.2.1.2 Functionality Overview The energy measuring module is used to measure the energy of a 3-phase connec- tion. In addition to voltage, current and phase, the module determines many other measurands. Limit values can be parametrized for some measurands. When exceeding or falling below corresponding interrupt status bits are set.
  • Page 267: Fb 325 - Em_Com_R1 - Communication With 031-1Paxx

    VIPA SPEED7 Device Specific Energy Measurement > FB 325 - EM_COM_R1 - Communication with 031-1PAxx Group IDs of the measurands Group IDs of the measurands Group IDs of the measurands 1, 2, 3 16, 17, 18 31, 32, 33 4, 5, 6...
  • Page 268: Udt 325 - Em_Data_R1 - Data Structure For Fb 325

    VIPA SPEED7 Device Specific Energy Measurement > UDT 325 - EM_DATA_R1 - Data structure for FB 325 Parameter Parameter Declaration Data type Description MODE INPUT BYTE 0x01 = Data exchange via process data Currently only the MODE = 0x01 is supported...
  • Page 269 VIPA SPEED7 Device Specific Energy Measurement > UDT 325 - EM_DATA_R1 - Data structure for FB 325 UDT - Header Declaration Data type Description Status_Global OUTPUT BYTE Block status 0x00: Not processed 0x01: In process (BUSY) 0x02: Ready without error (DONE)
  • Page 270 VIPA SPEED7 Device Specific Energy Measurement > UDT 325 - EM_DATA_R1 - Data structure for FB 325 UDT - Header Declaration Data type Description ProtocollMajor OUTPUT Byte Protocol version: Major ProtocollMinor OUTPUT Byte Protocol version: Minor ProtocollRevsion OUTPUT Byte Protocol version: Revision...
  • Page 271: Motion Modules

    VIPA SPEED7 Device Specific Motion Modules > Overview 12.2.3.2 Error messages ERROR ID Description 0x0000 no error 0x8060 Error: A more recent protocol version is required 0x8070 Error: Parameter MODE 0x8073 Error: Parameter CHANNEL_IN does not match MODE 0x8074 Error: Parameter CHANNEL_OUT does not match MODE 0x8080 Error: ‘Set Frame’...
  • Page 272 VIPA SPEED7 Device Specific Motion Modules > Overview Index - Subindex The System SLIO motion module provides its data, such as "Profiling target position" via an object dictionary. In this object dictionary the objects are organized and addressable a unique number consisting of Index and Subindex. The number is specified as follows:...
  • Page 273: Fb 320 - Acyc_Rw - Acyclic Access To The System Slio Motion Module

    VIPA SPEED7 Device Specific Motion Modules > FB 320 - ACYC_RW - Acyclic access to the System SLIO motion module Interconnecting the FBs During the configuration, make sure that the parameters CHANNEL_IN and CHANNEL_OUT of the FBs are correctly interconnected.
  • Page 274 VIPA SPEED7 Device Specific Motion Modules > FB 320 - ACYC_RW - Acyclic access to the System SLIO motion module Parameter Declaration Data type Description COMMAND BYTE 0x11 = Reading a data object (max. 4byte) 0x21 = Writing a data object (max. 4byte)
  • Page 275 VIPA SPEED7 Device Specific Motion Modules > FB 320 - ACYC_RW - Acyclic access to the System SLIO motion module Input parameter – The input parameters are taken with edge 0-1 at REQUEST. To change parame- ters, you have to trigger the job again.
  • Page 276: Fb 321 - Acyc_Ds - Acyclic Parametrization System Slio Motion Module

    VIPA SPEED7 Device Specific Motion Modules > FB 321 - ACYC_DS - Acyclic parametrization System SLIO motion module Program structure If no job is active, all output parameters must be set to 0. With an edge 0-1 at REQUEST, with the following approach a job is activated: Check if a job is already active, if necessary terminate job and output error.
  • Page 277 VIPA SPEED7 Device Specific Motion Modules > FB 321 - ACYC_DS - Acyclic parametrization System SLIO motion module Parameter Declaration Data type Description CHANNEL_IN Pointer to the beginning of the acyclic channel in the input area of the motion module.
  • Page 278 VIPA SPEED7 Device Specific Motion Modules > FB 321 - ACYC_DS - Acyclic parametrization System SLIO motion module Error handling – The block has error outputs to show errors during job processing. ERROR indi- cates the error, ERROR_ID shows an additional error number and DATASET_INDEX informs at which object the error occurred.
  • Page 279: Udt 321 - Acyc_Object-Data - Data Structure For Fb 321

    VIPA SPEED7 Device Specific Motion Modules > UDT 321 - ACYC_OBJECT-DATA - Data structure for FB 321 ERROR_ID Description 0x8071 Faulty parameter OBJECT_DATA 0x8075 Invalid command (edge 0-1 at REQUEST during job is executed) 0x8078 Faulty parameter GROUP 0x8079 READ_BACK detects an error (written and read value unequal)
  • Page 280: Ram To Wld - "Wld

    VIPA SPEED7 Device Specific RAM to WLD - "WLD" > FB 241 - RAM_to_autoload.wld - RAM to autoload.wld Addr. Name Type Start value Current value Comment Object(1).Index WORD Object(1).Subindex BYTE Object(1).Write_Length BYTE Object(1).Data_Write DWORD 12.0 Object(1).Data_Read DWORD 16.0 Object(1).State BYTE 18.0...
  • Page 281: Onboard I/O System 100V

    VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 223 - PWM - Pulse duration modulation Please note that this block is not part of the library for the Siemens TIA Portal. Parameters Parameter Declaration Data type Memory area...
  • Page 282 VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 223 - PWM - Pulse duration modulation You define a time base, a period, the pulse duty ratio and min. pulse length. The CPU determines a pulse series with an according pulse/break relation and issues this via the according output channel.
  • Page 283: Sfc 224 - Hsc - High-Speed-Counter

    VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 224 - HSC - High-speed-Counter DUTY This parameter shows the pulse duty ratio per mille. Here you define the relationship between pulse length and pulse break, concerned on one period.
  • Page 284 VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 224 - HSC - High-speed-Counter Parameter Declaration Type Description PRESETVALUE DINT Preset value LIMIT DINT Limit for counting RET_VAL WORD Return value (0 = OK) SETCOUNTER IN_OUT BOOL Load preset value CHANNEL Type the input channel that you want to activate as counter.
  • Page 285: Sfc 225 - Hf_Pwm - Hf Pulse Duration Modulation

    VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 225 - HF_PWM - HF pulse duration modulation 12.5.3 SFC 225 - HF_PWM - HF pulse duration modulation Description This block serves the parameterization of the pulse duration modulation for the last two output channels.
  • Page 286 VIPA SPEED7 Device Specific Onboard I/O System 100V > SFC 225 - HF_PWM - HF pulse duration modulation CHANNEL Define the output channel that you want to address. – Value range: 0 ... 1 ENABLE Via this parameter you may activate the PWM function (true) res. deactivate it (false).
  • Page 287: Motion Control - Simple Motion Control Library

    Here various drives and bus systems are sup- ported. The PLCopen blocks enable you to implement simple drive tasks in your control system. This system offers the following features: Can be used in VIPA SPEED7 Studio and Siemens SIMATIC Manager Implementation of simple drive functions –...
  • Page 288: Usage Sigma-5/7 Ethercat

    Set the parameters on the drive The setting of the parameters happens by means of the software tool Sigma Win+. Hardware configuration in VIPA SPEED7 Studio or Siemens SIMATIC Manager Configuring a CPU with EtherCAT master functionality. Configuration of a Sigma-5 EtherCAT drive.
  • Page 289 (2703h:01) Acceleration User Unit (Numerator) PnB0C (2703h:02) Acceleration User Unit (Denominator) 13.2.1.3 Usage in VIPA SPEED7 Studio 13.2.1.3.1 Hardware configuration Add CPU in the project Please use for configuration the SPEED7 Studio V1.6.1 and up. Start the SPEED7 Studio. Create a new project at the start page with ‘New project’ .
  • Page 290 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Activate motion control If the EtherCAT master functionality is not yet activated on your CPU, the activation takes functions place as follows: Click at the CPU in the ‘Device configuration’ and select ‘Context menu è...
  • Page 291 ESI file must be installed. Usually, the SPEED7 Studio is delivered with current ESI files and you can skip this part. If your ESI file is not up-to date, you will find the latest ESI file for the Sigma-5 EtherCAT drive under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’.
  • Page 292 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select your Sigma-5 drive: SGDV-xxxxE5... SGDV-xxxxE1... Confirm with [OK]. If your drive does not exist, you must install the corresponding ESI file as described above.
  • Page 293 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Configure Sigma-5 drive Click here at ‘EC-Mastersystem’ and select ‘Context menu è Bus system properties (expert)’. You can only edit PDOs in ‘Expert mode’ ! Otherwise, the buttons are hidden.
  • Page 294 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT By selecting the appropriate mapping, you can edit the PDOs with [Edit]. Select the mapping ‘1st Transmit PDO mapping’ and click at [Edit]. Please note that some PDOs can not be edited because of the default settings.
  • Page 295 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 296 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the mapping ‘2nd Transmit PDO mapping’ and click at [Edit]. Perform the following settings: Inputs: 2nd Transmit PDO 0x1A01 General – Name: 2nd Transmit PDO mapping –...
  • Page 297 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the mapping ‘1st Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 1st Receive PDO 0x1600 General – Name: 1st Receive PDO mapping –...
  • Page 298 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT In PDO assignment, activate the PDOs 1 and 2 for the inputs and outputs. All sub- sequent PDOs must remain de-activated. If this is not possible, please check the respective PDO parameter ‘Exclude’...
  • Page 299 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT 13.2.1.3.2 User program Program structure A data block (axis DB) for configuration and status data must be created for each axis of a drive. The data block consists of the following data structures: –...
  • Page 300 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Programming Copy blocks into project Click in the Project tree within the CPU at ‘PLC program’ , ‘Program blocks’ at ‘Add New block’ .
  • Page 301 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT In "Axis01", create the variable "Config" of type UDT 870. These are specific axis configuration data. In "Axis01", create the variable "Axis" of type UDT 860. During operation, all operating data of the axis are stored here.
  • Page 302 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 303 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT FB 870 - VMC_KernelSigma5_EC with instance DB FB 871 - VMC_InitSigma5_EC with instance DB UDT 860 - MC_Axis_REF UDT 870 - VMC_ConfigSigma5EC_REF Sequence of operations Select ‘Project è...
  • Page 304 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Installing the IO device The installation of the PROFINET IO device ‘VIPA SLIO CPU’ happens in the hardware ‘VIPA SLIO System’ catalog with the following approach: Go to the service area of www.vipa.com.
  • Page 305 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT 13.2.1.4.2 Hardware configuration Configuring the CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 306 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA SLIO System’ and connect the IO device ‘015-CFFNR00 CPU’...
  • Page 307 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Click at the inserted IO device ‘EtherCAT Network’ and define the areas for in and output by drag and dropping the according ‘Out’ or ‘In’ area to a slot.
  • Page 308 For the Sigma-5 EtherCAT drive to be configured in the SPEED7 EtherCAT Man- ager, the corresponding ESI file must be installed. The ESI file for the Sigma-5 EtherCAT drive can be found under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’. Download the according ESI file for your drive. Unzip this if necessary.
  • Page 309 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT In the EtherCAT Manager, click on your CPU and open via ‘Context menu è Append Slave’ the dialog box for adding an EtherCAT slave.
  • Page 310 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT By selecting the appropriate PDO mapping, you can edit the PDOs with [Edit]. Select the mapping ‘1st Transmit PDO mapping’ and click at [Edit].
  • Page 311 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 312 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the mapping ‘2nd Transmit PDO mapping’ and click at [Edit]. Perform the following settings: Inputs: 2nd Transmit PDO 0x1A01 General – Name: 2nd Transmit PDO mapping –...
  • Page 313 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the mapping ‘1st Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 1st Receive PDO 0x1600 General – Name: 1st Receive PDO mapping –...
  • Page 314 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the mapping ‘2nd Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 2nd Receive PDO 0x1601 General – Name: 2nd Receive PDO mapping –...
  • Page 315 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Select the ‘Process image’ tab via the arrow key in the ‘Device editor’ and note for the parameter of the block FB 871 - VMC_InitSigma5_EC the following PDO.
  • Page 316 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT FB 870 - VMC_KernelSigma5_EC – The Kernel block communicates with the drive via the appropriate bus system, processes the user requests and returns status messages.
  • Page 317 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Create axis DB In your project, click at ‘Blocks’ and choose ‘Context menu è Insert new object è Data block’. Specify the following parameters: Name and type –...
  • Page 318 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT OB 1 Configuration of the axis Open OB 1 and program the following FB calls with associated DBs: FB 871 - VMC_InitSigma5_EC, DB 871 Ä...
  • Page 319 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 320 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT FB 870 - VMC_KernelSigma5_EC with instance DB FB 871 - VMC_InitSigma5_EC with instance DB UDT 860 - MC_Axis_REF UDT 870 - VMC_ConfigSigma5EC_REF Sequence of operations Choose the Siemens SIMATIC Manager and transfer your project into the CPU.
  • Page 321 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Close the SPEED7 EtherCAT Manager and the hardware configurator. Copy the station ‘Source’ with Ctrl + C and paste it as ‘Target’ into your project with Ctrl + V.
  • Page 322 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT 13.2.1.5 Drive specific blocks The PLCopen blocks for axis control can be found here: Ä Chap. 13.7 ‘Blocks for axis control’ page 542 13.2.1.5.1...
  • Page 323 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-5 EtherCAT Parameter Declaration Data type Description InputsStartAddressPDO INPUT Start address of the input PDOs OutputsStartAddressPDO INPUT Start address of the output PDOs EncoderType INPUT Encoder type...
  • Page 324: Usage Sigma-7S Ethercat

    Set the parameters on the drive The setting of the parameters happens by means of the software tool Sigma Win+. Hardware configuration in VIPA SPEED7 Studio or Siemens SIMATIC Manager Configuring a CPU with EtherCAT master functionality. Configuration of a Sigma-7S EtherCAT drive.
  • Page 325 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT 13.2.2.2 Set the parameters on the drive Parameter digits CAUTION! Before the commissioning, you have to adapt your drive to your applica- tion with the Sigma Win+ software tool! More may be found in the manual of your drive.
  • Page 326 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT 13.2.2.3 Usage in VIPA SPEED7 Studio 13.2.2.3.1 Hardware configuration Add CPU in the project Please use for configuration the SPEED7 Studio V1.6.1 and up.
  • Page 327 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Activate motion control If the EtherCAT master functionality is not yet activated on your CPU, the activation takes functions place as follows: Click at the CPU in the ‘Device configuration’ and select ‘Context menu è...
  • Page 328 ESI file must be installed. Usually, the SPEED7 Studio is delivered with current ESI files and you can skip this part. If your ESI file is not up-to date, you will find the latest ESI file for the Sigma-7 EtherCAT drive under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’.
  • Page 329 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select your Sigma-7 drive: SGD7S-xxxAA0... SGD7S-xxxDA0... SGD7S-xxxxA0... Confirm with [OK]. If your drive does not exist, you must install the corresponding ESI file as described above.
  • Page 330 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Configure Sigma-7S single axis drive Click here at ‘EC-Mastersystem’ and select ‘Context menu è Bus system properties (expert)’. You can only edit PDOs in ‘Expert mode’ ! Otherwise, the buttons are hidden.
  • Page 331 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT By selecting the appropriate mapping, you can edit the PDOs with [Edit]. Select the mapping ‘1st Transmit PDO mapping’ and click at [Edit]. Please note that some PDOs can not be edited because of the default settings.
  • Page 332 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 333 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘2nd Transmit PDO mapping’ and click at [Edit]. Perform the following settings: Inputs: 2nd Transmit PDO 0x1A01 General – Name: 2nd Transmit PDO mapping –...
  • Page 334 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘1st Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 1st Receive PDO 0x1600 General – Name: 1st Receive PDO mapping –...
  • Page 335 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘2nd Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 2nd Receive PDO 0x1601 General – Name: 2nd Receive PDO mapping –...
  • Page 336 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the ‘Process image’ tab via the arrow key in the ‘Device editor’ and note for the parameter of the block FB 873 - VMC_InitSigma7S_EC the following PDO.
  • Page 337 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT A data block (axis DB) for configuration and status data must be created for each axis of a drive. The data block consists of the following data structures: –...
  • Page 338 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT In the ‘Catalog’ , open the ‘Simple Motion Control’ library at ‘Blocks’ and drag and drop the following blocks into ‘Program blocks’ of the Project tree: Sigma-7 EtherCAT: –...
  • Page 339 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT OB 1 Configuration of the axis Open OB 1 and program the following FB calls with associated DBs: FB 873 - VMC_InitSigma7S_EC, DB 873 Ä...
  • Page 340 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 341 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT FB 872 - VMC_KernelSigma7_EC with instance DB FB 873 - VMC_InitSigma7S_EC with instance DB UDT 860 - MC_Axis_REF UDT 872 - VMC_ConfigSigma7EC_REF Sequence of operations Select ‘Project è...
  • Page 342 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Installing the IO device The installation of the PROFINET IO device ‘VIPA SLIO CPU’ happens in the hardware ‘VIPA SLIO System’ catalog with the following approach: Go to the service area of www.vipa.com.
  • Page 343 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT 13.2.2.4.2 Hardware configuration Configuring the CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 344 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA SLIO System’ and connect the IO device ‘015-CFFNR00 CPU’...
  • Page 345 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Click at the inserted IO device ‘EtherCAT Network’ and define the areas for in and output by drag and dropping the according ‘Out’ or ‘In’ area to a slot.
  • Page 346 For the Sigma-7S EtherCAT drive to be configured in the SPEED7 EtherCAT Man- ager, the corresponding ESI file must be installed. The ESI file for the Sigma-7S EtherCAT drive can be found under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’. Download the according ESI file for your drive. Unzip this if necessary.
  • Page 347 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT In the EtherCAT Manager, click on your CPU and open via ‘Context menu è Append Slave’ the dialog box for adding an EtherCAT slave.
  • Page 348 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT By selecting the appropriate PDO mapping, you can edit the PDOs with [Edit]. Select the mapping ‘1st Transmit PDO mapping’ and click at [Edit].
  • Page 349 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 350 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘2nd Transmit PDO mapping’ and click at [Edit]. Perform the following settings: Inputs: 2nd Transmit PDO 0x1A01 General – Name: 2nd Transmit PDO mapping –...
  • Page 351 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘1st Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 1st Receive PDO 0x1600 General – Name: 1st Receive PDO mapping –...
  • Page 352 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the mapping ‘2nd Receive PDO mapping’ and click at [Edit]. Perform the fol- lowing settings: Outputs: 2nd Receive PDO 0x1601 General – Name: 2nd Receive PDO mapping –...
  • Page 353 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Select the ‘Process image’ tab via the arrow key in the ‘Device editor’ and note for the parameter of the block FB 873 - VMC_InitSigma7S_EC the following PDO.
  • Page 354 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT A data block (axis DB) for configuration and status data must be created for each axis of a drive. The data block consists of the following data structures: –...
  • Page 355 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Create interrupt OBs In your project, click at ‘Blocks’ and choose ‘Context menu è Insert new object è Organization block’. ð The dialog ‘Properties Organization block’ opens.
  • Page 356 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT OB 1 Configuration of the axis Open OB 1 and program the following FB calls with associated DBs: FB 873 - VMC_InitSigma7S_EC, DB 873 Ä...
  • Page 357 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 358 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT FB 872 - VMC_KernelSigma7_EC with instance DB FB 873 - VMC_InitSigma7S_EC with instance DB UDT 860 - MC_Axis_REF UDT 872 - VMC_ConfigSigma7EC_REF Sequence of operations Choose the Siemens SIMATIC Manager and transfer your project into the CPU.
  • Page 359 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Close the SPEED7 EtherCAT Manager and the hardware configurator. Copy the station ‘Source’ with Ctrl + C and paste it as ‘Target’ into your project with Ctrl + V.
  • Page 360 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT 13.2.2.5 Drive specific blocks The PLCopen blocks for axis control can be found here: Ä Chap. 13.7 ‘Blocks for axis control’ page 542 13.2.2.5.1...
  • Page 361 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7S EtherCAT Parameter Declaration Data type Description InputsStartAddressPDO INPUT Start address of the input PDOs OutputsStartAddressPDO INPUT Start address of the output PDOs EncoderType INPUT Encoder type...
  • Page 362: Usage Sigma-7W Ethercat

    Set the parameters on the drive The setting of the parameters happens by means of the software tool Sigma Win+. Hardware configuration in VIPA SPEED7 Studio or Siemens SIMATIC Manager Configuring a CPU with EtherCAT master functionality Configuration of the Sigma-7W EtherCAT double axes.
  • Page 363 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT 13.2.3.2 Set the parameters on the drive Parameter digits CAUTION! Before the commissioning, you have to adapt your drive to your applica- tion with the Sigma Win+ software tool! More may be found in the manual of your drive.
  • Page 364 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT 13.2.3.3 Usage in VIPA SPEED7 Studio 13.2.3.3.1 Hardware configuration Add CPU in the project Please use for configuration the SPEED7 Studio V1.6.1 and up.
  • Page 365 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Activate motion control If the EtherCAT master functionality is not yet activated on your CPU, the activation takes functions place as follows: Click at the CPU in the ‘Device configuration’ and select ‘Context menu è...
  • Page 366 ESI file must be installed. Usually, the SPEED7 Studio is delivered with current ESI files and you can skip this part. If your ESI file is not up-to date, you will find the latest ESI file for the Sigma-7 EtherCAT drive under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’.
  • Page 367 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Select your Sigma-7W double-axis drive: SGD7W-xxxxA0 ... Confirm your input with [OK]. If your drive does not exist, you must install the corre- sponding ESI file as described above.
  • Page 368 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Configure Sigma-7W double-axis drive Click here at ‘EC-Mastersystem’ and select ‘Context menu è Bus system properties (expert)’. You can only edit PDOs in ‘Expert mode’ ! Otherwise, the buttons are hidden.
  • Page 369 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT By selecting the appropriate mapping, you can edit the PDOs with [Edit]. Select the mapping ‘Module 1 (SGD7). 1st Transmit PDO mapping’ and click at [Edit].
  • Page 370 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 371 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Perform the following settings for the Transmit PDOs: Inputs: 1st Transmit PDO Module 1 (SGD7). 1st Transmit PDO mapping Module 2 (SGD7). 1st Transmit PDO mapping Name: Module 1 (SGD7).
  • Page 372 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Perform the following settings for the Receive PDOs: Outputs: 1st Receive PDO Module 1 (SGD7). 1st Receive PDO Module 2 (SGD7). 1st Receive PDO Name: Module 1 (SGD7).
  • Page 373 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT For ‘Module 1’ and ‘Module 2’ in PDO assignment, activate the PDOs 1 and 2 for the inputs and outputs. All subsequent PDOs must remain de-activated. If this is not possible, please check the respective PDO parameter ‘Exclude’...
  • Page 374 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Click on ‘EC-Mastersystem’ in the SPEED7 EtherCAT Manager and select the ‘Master’ tab in the ‘Device editor’ . ð Set a cycle time of at least 4ms for Sigma-7W (400V) drives.
  • Page 375 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT A data block (axis DB) for configuration and status data must be created for each axis of a drive. The data block consists of the following data structures: –...
  • Page 376 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT In the ‘Catalog’ , open the ‘Simple Motion Control’ library at ‘Blocks’ and drag and drop the following blocks into ‘Program blocks’ of the Project tree: Sigma-7 EtherCAT: –...
  • Page 377 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT In "Axis02", create the variable "Config" of type UDT 872. These are specific axis configuration data. In "Axis02", create the variable "Axis" of type UDT 860. During operation, all operating data of the axis are stored here.
  • Page 378 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT OB 1 Configuration of the Open OB 1 and program the following FB calls with associated DBs: double-axis FB 874 - VMC_InitSigma7W_EC, DB 874 Ä...
  • Page 379 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT ErrorID :="InitS7WEC1_ErrorID" M1_Config :="Axis01".Config M1_Axis :="Axis01".Axis M2_Config :="Axis02".Config M2_Axis :="Axis02".Axis Connecting the kernel for The Kernel processes the user commands and passes them appropriately processed on the respective axis to the drive via the respective bus system.
  • Page 380 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 381 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT FB 860 - VMC_AxisControl with instance DB FB 872 - VMC_KernelSigma7_EC with instance DB FB 874 - VMC_InitSigma7W_EC with instance DB UDT 860 - MC_Axis_REF...
  • Page 382 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Installing the IO device The installation of the PROFINET IO device ‘VIPA SLIO CPU’ happens in the hardware ‘VIPA SLIO System’ catalog with the following approach: Go to the service area of www.vipa.com.
  • Page 383 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT 13.2.3.4.2 Hardware configuration Configuring the CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 384 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA SLIO System’ and connect the IO device ‘015-CFFNR00 CPU’...
  • Page 385 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Click at the inserted IO device ‘EtherCAT Network’ and define the areas for in and output by drag and dropping the according ‘Out’ or ‘In’ area to a slot.
  • Page 386 For the Sigma-7W EtherCAT drive to be configured in the SPEED7 EtherCAT Man- ager, the corresponding ESI file must be installed. The ESI file for the Sigma-7W EtherCAT double-axis drive can be found under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’. Download the according ESI file for your drive. Unzip this if necessary.
  • Page 387 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT In the EtherCAT Manager, click on your CPU and open via ‘Context menu è Append Slave’ the dialog box for adding an EtherCAT slave.
  • Page 388 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT By selecting the appropriate mapping, you can edit the PDOs with [Edit]. Select the mapping ‘Module 1 (SGD7). 1st Transmit PDO mapping’ and click at [Edit].
  • Page 389 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT The following functions are available for editing the ‘Entries’ : – Here you can create a new entry in a dialog by selecting the corre- sponding entry from the ‘CoE object dictionary’...
  • Page 390 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Perform the following settings for the Transmit PDOs: Inputs: 1st Transmit PDO Module 1 (SGD7). 1st Transmit PDO mapping Module 2 (SGD7). 1st Transmit PDO mapping Name: Module 1 (SGD7).
  • Page 391 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Perform the following settings for the Receive PDOs: Outputs: 1st Receive PDO Module 1 (SGD7). 1st Receive PDO Module 2 (SGD7). 1st Receive PDO Name: Module 1 (SGD7).
  • Page 392 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT For ‘Module 1’ and ‘Module 2’ in PDO assignment, activate the PDOs 1 and 2 for the inputs and outputs. All subsequent PDOs must remain de-activated. If this is not possible, please check the respective PDO parameter ‘Exclude’...
  • Page 393 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Click on your CPU in the SPEED7 EtherCAT Manager and select the ‘Master’ tab in the ‘Device editor’ . ð Set a cycle time of at least 4ms for Sigma-7W (400V) drives.
  • Page 394 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT A data block (axis DB) for configuration and status data must be created for each axis of a drive. The data block consists of the following data structures: –...
  • Page 395 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Create interrupt OBs In your project, click at ‘Blocks’ and choose ‘Context menu è Insert new object è Organization block’. ð The dialog ‘Properties Organization block’ opens.
  • Page 396 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT OB 1 Configuration of the Open OB 1 and program the following FB calls with associated DBs: double-axis FB 874 - VMC_InitSigma7W_EC, DB 874 Ä...
  • Page 397 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT ErrorID :="InitS7WEC1_ErrorID" M1_Config :="Axis01".Config M1_Axis :="Axis01".Axis M2_Config :="Axis02".Config M2_Axis :="Axis02".Axis Connecting the kernel for The Kernel processes the user commands and passes them appropriately processed on the respective axis to the drive via the respective bus system.
  • Page 398 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages. The inputs and outputs can be individually connected.
  • Page 399 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT FB 860 - VMC_AxisControl with instance DB FB 872 - VMC_KernelSigma7_EC with instance DB FB 874 - VMC_InitSigma7W_EC with instance DB UDT 860 - MC_Axis_REF...
  • Page 400 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT 13.2.3.4.4 Copy project Proceeding In the example, the station ‘Source’ is copied and saved as ‘Target ’ . Open the hardware configuration of the ‘Source’ CPU and start the SPEED7 EtherCAT Manager.
  • Page 401 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT 13.2.3.5 Drive specific blocks The PLCopen blocks for axis control can be found here: Ä Chap. 13.7 ‘Blocks for axis control’ page 542 13.2.3.5.1...
  • Page 402 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Parameter Declaration Data type Description M2_Axis IN_OUT MC_AXIS_REF Data structure for transferring axis-dependent information to the AxisKernel and PLCopen blocks for axis 2. Enable...
  • Page 403 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Parameter Declaration Data type Description M1_EnableMaxPosition INPUT BOOL Monitoring maximum position of axis 1 TRUE: Activates the monitoring of the maximum posi- tion. M1_EnableMinPosition...
  • Page 404 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 EtherCAT > Usage Sigma-7W EtherCAT Parameter Declaration Data type Description M2_MinPosition INPUT REAL Minimum position for monitoring the software limits of axis 2 [u]. M2_EnableMaxPosition INPUT BOOL Monitoring maximum position of axis 2 TRUE: Activates the monitoring of the maximum posi- tion.
  • Page 405: Usage Sigma-5/7 Pulse Train

    Setting parameters on the drive The setting of the parameters happens by means of the software tool Sigma Win+. Hardware configuration in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal. Configuring the CPU. Programming in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal.
  • Page 406: Wiring

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Wiring Servopack Address:digit Name Value Parameter Pn50A (250Ah:02) /P-CON Signal Mapping 8: Sets signal off Pn50A (250Ah:03) P-OT Signal Mapping 8: Forward run allowed Pn50B (250Bh:00)
  • Page 407 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Wiring Func- Type Description tion green DO 0.7 Digital output DO 7 DO 0.6 Digital output DO 6 DO 0.2 Digital output DO 2 DO 0.1 Pulse Train Channel 1 DO 0.0...
  • Page 408: Usage In Vipa Speed7 Studio

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in VIPA SPEED7 Studio 13.3.4 Usage in VIPA SPEED7 Studio 13.3.4.1 Hardware configuration Add CPU in the project Please use the SPEED7 Studio V1.7 and up for the configuration.
  • Page 409 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 410 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in VIPA SPEED7 Studio The operating parameters required for Pulse Train are internally adapted to the cor- responding values. Leave all values unchanged. Close the dialog with [OK].
  • Page 411 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in VIPA SPEED7 Studio OB 1 Configuration of the axis If you are using a channel other than channel 0, you must adapt it in the hardware config- uration and in your user program.
  • Page 412: Usage In Siemens Simatic Manager

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens SIMATIC Manager Sequence of operations Select ‘Project è Compile all’ and transfer the project into your CPU. You can find more information on the transfer of your project in the online help of the SPEED7 Studio.
  • Page 413 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens SIMATIC Manager 13.3.5.2 Hardware configuration Add CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 414 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA ...’ and connect e.g. for the System MICRO the IO device ‘M13-CCF0000’...
  • Page 415 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens SIMATIC Manager Leave all values unchanged. Close the dialog with [OK]. Select ‘Station è Save and compile’. Close the hardware configurator. 13.3.5.3 User program Include library Go to the service area of www.vipa.com.
  • Page 416 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens SIMATIC Manager Assign the following parameters for the sample project. In particular, consider the two conversion factors FactorPosition and FactorVelocity: ð CALL "VMC_AxisControl_PT" , "DI_AxisControl_PT"...
  • Page 417: Usage In Siemens Tia Portal

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal Controlling the drive via There is the possibility to control your drive via an HMI. For this purpose, a predefined symbol library is available for Movicon to access the VMC_AxisControl_PT function Ä...
  • Page 418 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal Select the following CPU in the input dialog: SIMATIC S7-300 > CPU 314C-2 PN/DP (314-6EH04-0AB0 V3.3) ð The CPU is inserted with a profile rail.
  • Page 419 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal Select in the Network view the IO device ‘VIPA MICRO PLC’ and switch to the Device overview. ð In the Device overview of the PROFINET IO device ‘VIPA MICRO PLC’ the CPU is already placed at slot 0.
  • Page 420 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal MPI/DP interface 2 X1 MPI/DP interface PROFINET inter- 2 X2 PROFINET interface face CP 343-1 CP 343-1 Switch I/O periphery to...
  • Page 421 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal Copy blocks into project Copy the following block from the library into the "Program blocks" of the Project tree of your project.
  • Page 422 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Usage in Siemens TIA Portal Assign the following parameters for the sample project. In particular, consider the two conversion factors FactorPosition and FactorVelocity: ð CALL "VMC_AxisControl_PT" , "DI_AxisControl_PT"...
  • Page 423: Drive Specific Block

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block You now have the possibility to control your drive via its parameters and to check its status. Ä Chap. 13.3.7.1 ‘FB 875 - VMC_AxisControl_PT - Axis control via Pulse Train’...
  • Page 424 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block Parameter Declaration Data type Description MvVelocityExe- INPUT BOOL Start moving the axis cute – Edge 0-1: The axis is accelerated / decelerated to the speed specified.
  • Page 425 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block Parameter Declaration Data type Description AxisEnabled OUTPUT BOOL Status axis – TRUE: Axis is switched on and accepts motion commands. – FALSE: Axis is not switched on and does not accepts motion commands.
  • Page 426 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block 13.3.7.1.2 Conversion factors FactorPosition The calculation of FactorPosition is only valid if servo parameter Refer- ence Pulse Multiplier (Pn218) = 1. FactorPosition - Factor for converting the position of user units into drive units (incre- ments) and back.
  • Page 427 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block Example maximum distance MaxPos - Maximum distance in revolutions Resolution - Number of increments per user unit Resolution = 2 = 1048576 Numerator - Numerator: Electronic Gear Ratio (Pn20E) of the servo parameter...
  • Page 428 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block Example User unit for velocity = revolution/min FactorVelocity - Factor for converting of user units into drive units (increments) and back. Time - Time for 1 revolution in μs Time = 1min = 60·10...
  • Page 429 VIPA SPEED7 Motion control - Simple Motion Control Library Usage Sigma-5/7 Pulse Train > Drive specific block Minimum velocity for revolutions/min MinVel - Minimum velocity in revolutions/min FactorVelocity - Factor for converting of user units into drive units (increments) and back.
  • Page 430: Usage Inverter Drive Via Pwm

    Setting parameters on the inverter drive The setting of the parameters happens by means of the software tool Drive Wizard+. Hardware configuration in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal. Configuring the CPU. Programming in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal.
  • Page 431 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Set the parameters on the inverter drive Parameters that differ from the standard Setting for Simple Motion Control Library H1-02 Terminal S2 function selection 0041: Reverse Run Command...
  • Page 432: Wiring

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Wiring 13.4.3 Wiring 13.4.3.1 Connecting the V1000 inputs Sample application The following figure shows an example application for connecting the inputs of a V1000 inverter drive via PWM to a System MICRO CPU M13C. In this example the PWM channel 0 (X2 - pin 8) is connected.
  • Page 433: Usage In Vipa Speed7 Studio

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in VIPA SPEED7 Studio 13.4.3.2 Connecting the V1000 outputs Sample application The following figure shows an example application for connecting the outputs of a V1000 inverter drive to a System MICRO CPU M13C.
  • Page 434 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in VIPA SPEED7 Studio If you are using a channel other than channel 0, you must adapt it in the hardware config- uration and in your user program.
  • Page 435 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 436 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in VIPA SPEED7 Studio The operating parameters required for PWM are internally adapted to the corre- sponding values. Leave all values unchanged. Close the dialog with [OK].
  • Page 437 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in VIPA SPEED7 Studio OB 1 Configuration of the axis If you are using a channel other than channel 0, you must adapt it in the hardware config- uration and in your user program.
  • Page 438: Usage In Siemens Simatic Manager

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens SIMATIC Manager Sequence of operations Select ‘Project è Compile all’ and transfer the project into your CPU. You can find more information on the transfer of your project in the online help of the SPEED7 Studio.
  • Page 439 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens SIMATIC Manager 13.4.5.2 Hardware configuration Add CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 440 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA ...’ and connect e.g. for the System MICRO the IO device ‘M13-CCF0000’...
  • Page 441 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens SIMATIC Manager Leave all values unchanged. Close the dialog with [OK]. Select ‘Station è Save and compile’. Close the hardware configurator. 13.4.5.3...
  • Page 442 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens SIMATIC Manager Assign the following parameters for the sample project: ð CALL "VMC_AxisControlV1000PWM" , "VMC_AxisCtrlV1000PWM_885" I_ChannelNumberPWM :="Ax1_I_ChannelNumberPWM" I_MA_Alarm :="Ax1_MA_Alarm" I_P1_Ready :="I_P1_Ready" MaxVelocityDrive :=1.000000e+002...
  • Page 443: Usage In Siemens Tia Portal

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal 13.4.6 Usage in Siemens TIA Portal 13.4.6.1 Precondition Overview Please use the Siemens TIA Portal V 14 and up for the configuration.
  • Page 444 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal Select the following CPU in the input dialog: SIMATIC S7-300 > CPU 314C-2 PN/DP (314-6EH04-0AB0 V3.3) ð The CPU is inserted with a profile rail.
  • Page 445 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal Select in the Network view the IO device ‘VIPA MICRO PLC’ and switch to the Device overview. ð In the Device overview of the PROFINET IO device ‘VIPA MICRO PLC’ the CPU is already placed at slot 0.
  • Page 446 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal MPI/DP interface 2 X1 MPI/DP interface PROFINET inter- 2 X2 PROFINET interface face CP 343-1 CP 343-1 Switch I/O periphery to For parametrization of the input/output periphery and the technological functions the cor- responding sub modules of the Siemens CPU 314C-2 PN/DP (314-6EH04-0AB0 V3.3) is...
  • Page 447 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal Copy blocks into project Copy the following block from the library into the "Program blocks" of the Project tree of your project.
  • Page 448 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Usage in Siemens TIA Portal Assign the following parameters for the sample project: ð CALL "VMC_AxisControlV1000PWM" , "VMC_AxisCtrlV1000PWM_885" I_ChannelNumberPWM :="Ax1_I_ChannelNumberPWM" I_MA_Alarm :="Ax1_MA_Alarm" I_P1_Ready :="I_P1_Ready" MaxVelocityDrive :=1.000000e+002...
  • Page 449: Drive Specific Block

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Drive specific block 13.4.7 Drive specific block 13.4.7.1 FB 885 - VMC_AxisControlV1000_PWM - Axis control over PWM 13.4.7.1.1 Description With the FB VMC_AxisControlV1000_PWM you can control an inverter drive, which is connected via PWM and check its status.
  • Page 450 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Drive specific block Parameter Declaration Data type Description I_S2_Rever- OUTPUT BOOL Digital output for controlling the inverter drive signal S2 seRun – TRUE: Enables the inverter drive in negative direction.
  • Page 451 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via PWM > Drive specific block Parameter Declaration Data type Description CmdError OUTPUT BOOL Status Error – TRUE: An error has occurred. The axis is disabled Additional error information can be found in the parameter CmdEr- rorID.
  • Page 452: Usage Inverter Drive Via Modbus Rtu

    Set the parameters on the inverter drive The setting of the parameters happens by means of the software tool Drive Wizard+. Hardware configuration in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal. Configuring the CPU. Programming in the VIPA SPEED7 Studio, Siemens SIMATIC Manager or Siemens TIA Portal.
  • Page 453 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Set the parameters on the inverter drive Designation Range of Setting for Simple Motion Control Library values H5-04 Stop method after communication error 0, 1, 2, 3...
  • Page 454: Wiring

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Wiring 13.5.3 Wiring RS485 cabling The following figure shows the connection of V1000 inverter drives via RS485. Here the individual inverter drives are connected via PROFIBUS cables and connected to the CPU via a PROFIBUS connector to the PtP interface (Point-to-Point).
  • Page 455 MPI functionality. You can activate the PtP functionality via the hard- ware configuration. Ä Chap. 13.5.4 ‘Usage in VIPA SPEED7 Studio’ page 457 Ä Chap. 13.5.5 ‘Usage in Siemens SIMATIC Manager’ page 471 Ä...
  • Page 456 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Wiring Connection of the YASKAWA inverter drives Connection continuous Connection termination J1000 V1000 A1000 GA700 More can be found in the according manual. HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 457: Usage In Vipa Speed7 Studio

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4 Usage in VIPA SPEED7 Studio 13.5.4.1 Hardware configuration 13.5.4.1.1 Hardware configuration System MICRO Add CPU in the project Please use the SPEED7 Studio V1.7.1 and up for the configuration.
  • Page 458 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 459 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.1.2 Hardware configuration System SLIO CPU 013C Add CPU in the project Please use the SPEED7 Studio V1.7.1 and up for the configuration.
  • Page 460 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 461 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.1.3 Hardware configuration System SLIO CPU 014 ... 017 Add CPU in the project Please use the SPEED7 Studio V1.7.1 and up for the configuration.
  • Page 462 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 463 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio With the exception of blocks DB 99 and FB 877, you must create the blocks listed below for each connected inverter drive: FB 881 - VMC_InitV1000_RTU Ä...
  • Page 464 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.2.2 Copy blocks into project Click at ‘Project tree è ...CPU... è PLC program è Program blocks’. In the ‘Catalog’ at ‘Blocks è Simple Motion Control’ open the collection ‘V1000 Modbus RTU’...
  • Page 465 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Enter OB 100 and confirm with [OK]. ð OB 100 is created and opened. Add a Call FB876, DB876 to the OB 100.
  • Page 466 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.2.5 Create data block for all Modbus slaves For the communication data of the inverter drives, which are serially connected via Modbus RTU, a common data block is to be created.
  • Page 467 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Hardware := "A1_InitHardware" // Specification of the hardware, used IN: BYTE // 1: System SLIO CP040, 2: SPEED7 CPU Laddr := "A1_InitLaddr"...
  • Page 468 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.2.8 OB 1 - Create instance axis control V1000 With the FB 882 - VMC_AxisControlV1000_RTU you can control an inverter drive, which is serially connected via Modbus RTU and check its status.
  • Page 469 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio 13.5.4.2.9 OB 1 - Create instance read parameter With the FB 879 - VMC_ReadParameter_RTU you have read access to the parameters of an inverter drive, which is serially connected via Modbus RTU.
  • Page 470 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in VIPA SPEED7 Studio Confirm the query of the instance data block with [OK]. Specify the following parameters: Ä Chap. 13.5.7.9 ‘FB 880 - VMC_WriteParameter_RTU - Modbus RTU write parameters’ page 507...
  • Page 471: Usage In Siemens Simatic Manager

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Before you can control an inverter drive, it must be initialized with FB 881 - VMC_InitV1000_RTU. Ä Chap. 13.5.7.10 ‘FB 881 - VMC_InitV1000_RTU - Modbus RTU initialization’...
  • Page 472 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Navigate to your working directory and install the according GSDML file. ð After the installation the according PROFINET IO device can be found at ‘PROFINET IO è...
  • Page 473 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA ...’ and connect e.g. for the System MICRO the IO device ‘M13-CCF0000’...
  • Page 474 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager 13.5.5.2.2 Hardware configuration System SLIO CPU 013C Add CPU in the project To be compatible with the Siemens SIMATIC Manager the following steps should be exe- cuted: Start the Siemens hardware configurator with a new project.
  • Page 475 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA ...’ and connect the IO device ‘013- CCF0R00’...
  • Page 476 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Configuration of Ethernet Place for the Ethernet PG/OP channel at slot 4 the Siemens CP 343-1 (SIMATIC PG/OP channel 300 \ CP 300 \ Industrial Ethernet \CP 343-1 \ 6GK7 343-1EX30 0XE0 V3.0).
  • Page 477 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA ...’ and connect the IO device, which cor- responds to your CPU, to your PROFINET system.
  • Page 478 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager OB 1 With the exception of blocks DB 99 and FB 877, you must create the blocks listed below for each connected inverter drive: Ä...
  • Page 479 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager 13.5.5.3.2 Copy blocks into project Include library Go to the service area of www.vipa.com. Download the Simple Motion Control library from the download area at ‘VIPA Lib’ .
  • Page 480 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager TimeOut := W#16#1FFF // Error wait time: 1FFFh (high selected) IN: WORD Valid := "ModbusConfigValid" // Configuration OUT BOOL Error := "ModbusConfigError"...
  • Page 481 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Open DB 99 "ComDataSlaves" by double-clicking. In "ComDataSlaves" create the following variable: ‘Slaves’ of Type UDT 877 - VMC_ComSlavesRTU_REF 13.5.5.3.6...
  • Page 482 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Busy := "A1_InitBusy" // Status job in progress OUT: BOOL Error := "A1_InitError" // Error feedback OUT: BOOL ErrorID := "A1_InitErrorID"...
  • Page 483 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager AxisReset := "A1_AxisReset" // Command: Reset error of the V1000. IN: BOOL StopExecute := "A1_StopExecute" // Command: Stop - Stop axis...
  • Page 484 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Specify the following parameters: Name and type – The DB no. as ‘Name’ can freely be chosen, such as DB 98. Enter DB 98.
  • Page 485 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens SIMATIC Manager Specify the following parameters: Ä Chap. 13.5.7.9 ‘FB 880 - VMC_WriteParameter_RTU - Modbus RTU write parameters’ page 507 Call FB880, DB880 Execute := "A1_WrParExecute"...
  • Page 486: Usage In Siemens Tia Portal

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Before you can control an inverter drive, it must be initialized with FB 881 - VMC_InitV1000_RTU. Ä Chap. 13.5.7.10 ‘FB 881 - VMC_InitV1000_RTU - Modbus RTU initialization’...
  • Page 487 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Navigate to your working directory and install the according GSDML file. ð After the installation the hardware catalog is refreshed and the Siemens TIA Portal is closed.
  • Page 488 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Count... Count Connection CPU as Switch in the Project area to ‘Network view’ . PROFINET IO device After installing the GSDML the IO device for the SLIO CPU may be found in the hardware catalog at Other field devices >...
  • Page 489 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Enable PtP functionality A hardware configuration to enable the PtP functionality is not necessary. Turn off the power supply.
  • Page 490 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal 13.5.6.2.2 Hardware configuration System SLIO CPU 013C Add CPU in the project To be compatible with the Siemens SIMATIC TIA Portal the following steps should be executed: Start the Siemens TIA Portal with a new project.
  • Page 491 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Select in the Network view the IO device ‘VIPA SLIO CPU’ and switch to the Device overview. ð In the Device overview of the PROFINET IO device ‘VIPA SLIO CPU’ the CPU is already placed at slot 0.
  • Page 492 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Ethernet PG/OP channel Device overview Module Slot Type PLC ... CPU 315-2 PN/DP MPI/DP interface 2 X1 MPI/DP interface...
  • Page 493 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Select the following CPU in the input dialog: SIMATIC S7-300 > CPU 315-2 PN/DP (315-2EH14-0AB0 V3.2) ð The CPU is inserted with a profile rail.
  • Page 494 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Select in the Network view the IO device ‘VIPA SLIO CPU’ and switch to the Device overview. ð In the Device overview of the PROFINET IO device ‘VIPA SLIO CPU’ the CPU is already placed at slot 0.
  • Page 495 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Device overview Module Slot Type PLC ... CPU 315-2 PN/DP MPI/DP interface 2 X1 MPI/DP interface PROFINET inter- 2 X2...
  • Page 496 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Ä 507 FB 880 - VMC_WriteParameter_RTU – With this FB you have read access to the parameters of an inverter drive, which is connected serially via Modbus RTU.
  • Page 497 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Copy blocks into project Copy all blocks from the library into the ‘Program blocks’ of the Project tree of your project.
  • Page 498 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal 13.5.6.3.4 Create data block for Modbus slave For each inverter drive, which is serially connected via Modbus RTU, a data block must be created.
  • Page 499 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal 13.5.6.3.7 OB 1 - Create instance of the V1000 initialization The FB 881 - VMC_InitV1000_RTU initializes the corresponding inverter drive with the user data.
  • Page 500 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal UserUnitsVelocity User unit for speeds: – 0: Hz Specified in hertz – 1: % Specified as a percentage of the maximum speed...
  • Page 501 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal AxisErrorID := "A1_AxisErrorID" // Status: Additional error information for AxisError OUT: WORD DriveError := "A1_DriveError" // Status: Error on the inverter drive...
  • Page 502 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal Quantity := "A1_RdParQuantity" // Number of registers to read IN: INT Done := "A1_RdParDone" // Status job finished IN: REAL Busy := "A1_RdParBusy"...
  • Page 503 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Usage in Siemens TIA Portal 13.5.6.3.11 Sequence of operations Safe and translate your project. Transfer your project to your CPU. ð You can take your application into operation now.
  • Page 504: Drive Specific Blocks

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks 13.5.7 Drive specific blocks 13.5.7.1 UDT 877 - VMC_ComSlavesRTU_REF - Modbus RTU data structure communication data all slaves This is a user-defined data structure for the communication data of the connected Modbus RTU slaves.
  • Page 505 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks Parameter Declaration Data type Description CharLen BYTE Number of data bits to which a character is mapped 0: 5bit 1: 6bit...
  • Page 506 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks Parameter Parameter Declaration Data type Description NumberOfSlaves IN Number of currently used Modbus slaves WaitCycles DINT Minimum number of cycles to wait between two requests from a slave.
  • Page 507 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks 13.5.7.9 FB 880 - VMC_WriteParameter_RTU - Modbus RTU write parameters Description With this block you can write parameters in the registers of the corresponding slave.
  • Page 508 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks Parameter Declaration Data type Description UserUnitsVelocity IN User unit for speeds 0: Hz – Specified in hertz 1: % – Specified as a percentage of the maximum speed –...
  • Page 509 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks 13.5.7.11 FB 882 - VMC_AxisControlV1000_RTU - Modbus RTU Axis control Description With the FB 882 VMC_AxisControlV1000_RTU you can control an inverter drive, which is serially connected via Modbus RTU and check its status.
  • Page 510 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via Modbus RTU > Drive specific blocks Parameter Declaration Data type Description AxisReady BOOL Status: Axis ready TRUE: The axis is ready to switch on. FALSE: The axis is not ready to switch on.
  • Page 511: Usage Inverter Drive Via Ethercat

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Overview Parameter Declaration Data type Description DirectionPositive BOOL Status: Direction of rotation positive TRUE: Current direction of rotation is positive FALSE: Current direction of rotation is not positive...
  • Page 512: Set The Parameters On The Inverter Drive

    Set the parameters on the inverter drive. The setting of the parameters happens by means of the software tool Drive Wizard+. Hardware configuration in the VIPA SPEED7 Studio or Siemens SIMATIC Manager. Configuring the CPU. Programming in the VIPA SPEED7 Studio or Siemens SIMATIC Manager.
  • Page 513: Wiring

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Wiring 13.6.3 Wiring (1) DC 24V for power section supply I/O area (max. 10A) (2) DC 24V for electronic power supply CPU and I/O area Proceeding Turn off power supply of the CPU and the inverter drive.
  • Page 514: Usage In Vipa Speed7 Studio

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio 13.6.4 Usage in VIPA SPEED7 Studio 13.6.4.1 Hardware configuration Add CPU in the project Please use the SPEED7 Studio V1.8 and up for the configuration.
  • Page 515 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Activate motion control functions Click at the CPU in the ‘Device configuration’ and select ‘Context menu è Components properties’. ð The properties dialog of the CPU is opened.
  • Page 516 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Configuration of Ethernet Click in the Project tree at ‘Devices and networking’ . PG/OP channel ð You will get a graphical object view of your CPU.
  • Page 517 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Select your inverter drive: CIMR-Vxxxx... CIPR-GA70xxxx... Confirm with [OK]. If your drive does not exist, you must install the corresponding ESI file as described above.
  • Page 518 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Configure inverter drive Click here at ‘EC-Mastersystem’ and select ‘Context menu è Bus system properties (expert)’. You can only edit PDOs in ‘Expert mode’ ! Otherwise, the buttons are hidden.
  • Page 519 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio By selecting the appropriate mapping, you can edit the PDOs with [Edit]. Select the mapping ‘Inputs’ and click at [Edit].
  • Page 520 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Edit – This allows you to edit the general data of an entry. Move Up/Down – This allows you to move the selected entry up or down in the list.
  • Page 521 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio In PDO assignment, activate each 1. PDOs "Inputs" and "Outputs". All subsequent PDOs must remain de-activated. If this is not possible, please check the respective PDO parameter ‘Exclude’...
  • Page 522 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio 13.6.4.2 User program 13.6.4.2.1 Program structure A data block (axis DB) for configuration and status data must be created for each axis of a drive.
  • Page 523 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio 13.6.4.2.2 Programming Copy blocks into project Click in the Project tree within the CPU at ‘PLC program’ , ‘Program blocks’ at ‘Add New block’...
  • Page 524 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio In "Axis01", create the variable "Config" of type UDT 886. These are specific axis configuration data. In "Axis01", create the variable "Axis" of type UDT 860. During operation, all operating data of the axis are stored here.
  • Page 525 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages.
  • Page 526 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in VIPA SPEED7 Studio OB 86 - Rack_FLT FB 860 - VMC_AxisControl with instance DB FB 886 - VMC_KernelInverter_EC with instance DB FB 887 - VMC_InitInverter_EC with instance DB...
  • Page 527: Usage In Siemens Simatic Manager

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager 13.6.5 Usage in Siemens SIMATIC Manager 13.6.5.1 Precondition Overview Please use for configuration the Siemens SIMATIC Manager V 5.5 SP2 and up.
  • Page 528 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager For installation start the file EtherCATManager_v..exe. Select the language for the installation. Accept the licensing agreement. Select the installation directory and start the installation.
  • Page 529 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager Navigate in the hardware catalog to the directory ‘PROFINET IO è Additional field devices è I/O è VIPA SLIO System’ and connect the IO device ‘015-CFFNR00 CPU’...
  • Page 530 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager Click at the inserted IO device ‘EtherCAT Network’ and define the areas for in and output by drag and dropping the according ‘Out’ or ‘In’ area to a slot.
  • Page 531 For the inverter drive to be configured in the SPEED7 EtherCAT Manager, the cor- responding ESI file must be installed. The ESI file for the inverter drive can be found under www.yaskawa.eu.com at ‘Service è Drives & Motion Software’. Download the according ESI file for your drive. Unzip this if necessary.
  • Page 532 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager In the EtherCAT Manager, click on your CPU and open via ‘Context menu è Append Slave’ the dialog box for adding an EtherCAT slave.
  • Page 533 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager By selecting the appropriate PDO mapping, you can edit the PDOs with [Edit]. Select the mapping ‘Inputs’ and click at [Edit].
  • Page 534 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager Edit – This allows you to edit the general data of an entry. Move Up/Down – This allows you to move the selected entry up or down in the list.
  • Page 535 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager In PDO assignment, activate each 1. PDOs "Inputs" and "Outputs". All subsequent PDOs must remain de-activated. If this is not possible, please check the respective PDO parameter ‘Exclude’...
  • Page 536 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager 13.6.5.3 User program 13.6.5.3.1 Program structure A data block (axis DB) for configuration and status data must be created for each axis of a drive.
  • Page 537 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager Specify a target directory in which the blocks are to be stored and start the unzip process with [OK]. Copy blocks into project Open the library after unzipping and drag and drop the following blocks into ‘Blocks’...
  • Page 538 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager OB 1 Configuration of the axis Open OB 1 and program the following FB calls with associated DBs: FB 887 - VMC_InitInverter_EC, DB 887 Ä...
  • Page 539 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager Connecting the block for For simplicity, the connection of the FB 860 - VMC_AxisControl is to be shown here. This motion sequences universal block supports simple motion commands and returns status messages.
  • Page 540 VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Usage in Siemens SIMATIC Manager FB 886 - VMC_KernelInverter_EC with instance DB FB 887 - VMC_InitInverter_EC with instance DB UDT 860 - MC_Axis_REF UDT 886 - VMC_ConfigInverterEC_REF Sequence of operations Choose the Siemens SIMATIC Manager and transfer your project into the CPU.
  • Page 541: Drive Specific Blocks

    VIPA SPEED7 Motion control - Simple Motion Control Library Usage inverter drive via EtherCAT > Drive specific blocks 13.6.6 Drive specific blocks Ä Chap. 13.7 The PLCopen blocks for axis control can be found here: ‘Blocks for axis control’ page 542 13.6.6.1...
  • Page 542: Blocks For Axis Control

    VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Overview Parameter Declaration Data type Description InputsStartAddressPDO INPUT Start address of the input PDOs OutputsStartAddressPDO INPUT Start address of the output PDOs MaxVelocityDrive INPUT REAL Maximum application speed [u].
  • Page 543 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Overview Complex motion tasks - PLCopen blocks Supported blocks Sigma-5/7 Inverter Page EtherCAT EtherCAT Ä 548 UDT 860 - MC_AXIS_REF - data structure for axis Ä 548 UDT 861 - MC_TRIGGER_REF - data structure Ä...
  • Page 544: Simple Motion Tasks

    VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Simple motion tasks 13.7.2 Simple motion tasks 13.7.2.1 UDT 860 - MC_AXIS_REF - Data structure axis data This is a user-defined data structure that contains status information of the axis.
  • Page 545 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Simple motion tasks Parameter Declaration Data type Description Velocity INPUT REAL Velocity setting (signed value) in [user units / s]. Acceleration INPUT REAL Acceleration in [user units / s...
  • Page 546 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Simple motion tasks Parameter Declaration Data type Description DriveErrorID OUTPUT WORD Error – TRUE: There is an error on the drive. Additional information can be found in the manufacturer's manual.
  • Page 547 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Simple motion tasks Parameter Declaration Data type Description CmdErrorID OUTPUT WORD Additional error information Ä Chap. 13.10 ‘ErrorID - Additional error information’ page 637 DirectionPositive OUTPUT...
  • Page 548: Complex Motion Tasks - Plcopen Blocks

    VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3 Complex motion tasks - PLCopen blocks 13.7.3.1 UDT 860 - MC_AXIS_REF - Data structure axis data This is a user-defined data structure that contains status information of the axis.
  • Page 549 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.3 FB 800 - MC_Power - enable/disable axis Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 550 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) The axis is enabled with Enable = TRUE. At the time (1) it is enabled. Then motion control jobs can be activated.
  • Page 551 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.4 FB 801 - MC_Home - home axis Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 552 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) The homing is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 553 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.5 FB 802 - MC_Stop - stop axis Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 554 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) Stopping of the axis is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 555 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.6 FB 803 - MC_Halt - holding axis Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 556 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) Breaking the axis is started with edge 0-1 at Execute and Busy becomes TRUE. The velocity of the axis is reduced to zero, regarding the parameter Deceleration.
  • Page 557 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.7 FB 804 - MC_MoveRelative - move axis relative Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 558 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Move axis relative The movement of the axis is started with an edge 0-1 at Execute. Busy is TRUE as soon as the movement of the axis is running.
  • Page 559 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.8 FB 805 - MC_MoveVelocity - drive axis with constant velocity Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 560 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Drive axis with set velocity The movement of the axis with set velocity is started with an edge 0-1 at Execute. Busy is TRUE and InVelocity FALSE as soon as the set velocity is not reached.
  • Page 561 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.9 FB 808 - MC_MoveAbsolute - move axis to absolute position Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 562 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks PLCopen-State Start of the job in the PLCopen-States Standstill, Discrete Motion and Continuous Motion possible. MC_MoveVelocity switches the axis to the PLCopen-State Discrete Motion.
  • Page 563 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.10 FB 811 - MC_Reset - reset axis Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 564 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reset of the axis is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 565 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.11 FB 812 - MC_ReadStatus - PLCopen status Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 566 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Determine the status of With Enable = TRUE the outputs represent the state of the axis according to the the axis PLCopen-State diagram.
  • Page 567 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.12 FB 813 - MC_ReadAxisError - read axis error Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 568 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the axis error is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 569 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.13 FB 814 - MC_ReadParameter - read axis parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 570 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 571 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.14 FB 815 - MC_WriteParameter - write axis parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 572 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 573 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.15 FB 816 - MC_ReadActualPosition - reading current axis position Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 574 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) Enable is set to TRUE. So Valid gets TRUE and output Position corre- sponds to the current axis position.
  • Page 575 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.16 FB 817 - MC_ReadActualVelocity - read axis velocity Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 576 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) Enable is set to TRUE. So Valid gets TRUE and output Velocity corre- sponds to the current axis velocity.
  • Page 577 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.17 FB 818 - MC_ReadAxisInfo - read additional axis information Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 578 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Determine the status of The additional information of the axis are shown at the outputs with Enable set to TRUE.
  • Page 579 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.18 FB 819 - MC_ReadMotionState - read status motion job Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 580 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Read status of the motion With Enable = TRUE the outputs represent the status of the motion job of the axis.
  • Page 581 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.19 FB 823 - MC_TouchProbe - record axis position Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 582 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks – An active job continues to run until this is completed, even when Exe- cute is set to FALSE. The detected axis position is the output at Ä...
  • Page 583 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.20 FB 824 - MC_AbortTrigger - abort recording axis position Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 584 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.21 FB 825 - MC_ReadBoolParameter - read axis boolean parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 585 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 586 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.22 FB 826 - MC_WriteBoolParameter - write axis boolean parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 587 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 588 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.23 FB 827 - VMC_ReadDWordParameter - read axis double word parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 589 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 590 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.24 FB 828 - VMC_WriteDWordParameter - write axis double word parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 591 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 592 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.25 FB 829 - VMC_ReadWordParameter - read axis word parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 593 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 594 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.26 FB 830 - VMC_WriteWordParameter - write axis word parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 595 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 596 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.27 FB 831 - VMC_ReadByteParameter - read axis byte parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 597 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 598 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.28 FB 832 - VMC_WriteByteParameter - write axis byte parameter data Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 599 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 600 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.29 FB 833 - VMC_ReadDriveParameter - read drive parameter Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 601 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the reading of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 602 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.30 FB 834 - VMC_WriteDriveParameter - write drive parameter Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 603 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Status diagram of the block parameters (1) At time (1) the writing of the parameter data is started with edge 0-1 at Execute and Busy becomes TRUE.
  • Page 604 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.31 FB 835 - VMC_HomeInit_LimitSwitch - Initialisation of homing on limit switch Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 605 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Initialisation homing on The values of the input parameters are accepted with an edge 0-1 at Execute and the limit switch initialisation of the homing method is started.
  • Page 606 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.32 FB 836 - VMC_HomeInit_HomeSwitch - Initialisation of homing on home switch Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 607 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Initialisation homing on The values of the input parameters are accepted with an edge 0-1 at Execute and the home switch initialisation of the homing method is started.
  • Page 608 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.33 FB 837 - VMC_HomeInit_ZeroPulse - Initialisation of homing on zero puls Beschreibung An overview of the drive systems, which can be controlled with this block Ä...
  • Page 609 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks Transfer of the drive parameters: "Homing Method" in dependence of input "Direction" See table below! "Homing Speed during search for switch" [Inc/s] "Homing Speed during search for zero"...
  • Page 610 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.34 FB 838 - VMC_HomeInit_SetPosition - Initialisation of homing mode set position Description An overview of the drive systems, which can be controlled with this block Ä...
  • Page 611 VIPA SPEED7 Motion control - Simple Motion Control Library Blocks for axis control > Complex motion tasks - PLCopen blocks 13.7.3.35 PLCopen parameter Name Data Comments type CommandedPosition REAL Commanded position Access on: #Axis.Status.Positioning.SetValues.CommandedPo sition SWLimitPos REAL Positive software limit switch position Access on: "Axis".AxisConfiguration.PositionLimits.MaxPos...
  • Page 612 This parameter is currently not supported MaxJerkAppl REAL Maximum allowed jerk of the axis in the application This parameter is currently not supported. 13.7.3.36 VIPA-specific parameter Positioning axis: Yaskawa Sigma-5 / Sigma-7 via EtherCAT Name Data type Index Subindex Access HomingDone...
  • Page 613: Controlling The Drive Via Hmi

    VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Overview Name Data type Index Subindex Access 1009 FollowingErrorWindow DWORD 0x6065 5, 6 1010 FollowingErrorTimeOut WORD 0x6066 3, 4 1011 PositionWindow DWORD 0x6067 5, 6...
  • Page 614: Create A New Project

    VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Create a new project VMC_AxisControl ... Trend – Template for controlling the FB 860 - VMC_AxisControl function block in the CPU, which additionally shows the graphic trend of the drive.
  • Page 615 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Create a new project Specify a project name at ‘Name’ . Specify at ‘Folder’ a storage area. Leave all settings disabled and click at [Next].
  • Page 616 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Create a new project Since the connection to the CPU is via TCP/IP, enable in the ‘List Available Comm.Drivers’ the driver ‘VIPA’ > ‘Ethernet S7 TCP’ and click at [Next].
  • Page 617 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Create a new project If alarms are to be generated, you can make the corresponding settings here. Oth- erwise, click at [Finish]. ð Your project is created with the settings you have made and the settings dialog for the ‘S7TCP’...
  • Page 618 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Create a new project Enter a station name at ‘Station Name’ . You have to use this name for the screen in the initialization dialog further below. Allowed characters: A-Z, a-z, 0-9 space and the separators "_"...
  • Page 619: Modify The Project In Movicon

    VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon 13.8.3 Modify the project in Movicon Configuring the screen Open via ‘Resources > SimpleMotion >Screens’ ‘Screen1’ . Navigate in ‘Browse Folders’ at ‘vipa simple motion control ...’ and drag & drop from the ‘Library view’...
  • Page 620 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Import voice table The templates refer to the displayed texts from a language table, which is to be imported from the working directory into your project.
  • Page 621 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Adjust the numeric input At the templates, you will find a ‘Numeric Touchpad’ in various resolutions. This is an field input field adapted to the VMC_AxisControl templates for different display resolutions.
  • Page 622 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Click at the screen ‘NumPad’ and adjust via ‘Context menu è Properties’ width and height such as ‘Width’ = 400 and ‘Height’ = 700. Confirm with your settings.
  • Page 623 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Select at ‘General > Advanced’ the numeric touch pad ‘NumPad’ . Confirm with your settings. For optical adjustment click at ‘Resourcen > SimpleMotion > Screens > NumPad >...
  • Page 624 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Adjust limit and default When a template is placed in a screen, the associated variables and structure definitions values are automatically created at ‘Resources > SimpleMotion > Real Time DB > Variables >...
  • Page 625 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Adjust technical units When a template is placed in a process picture, the associated variables are automati- cally generated with their technical units. These can be customized via the properties.
  • Page 626 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Manually add communica- Instead of using the wizard, you can also manually add the communication driver: tion driver Click at ‘Resources > SimpleMotion > Real Time DB’ at ‘Comm.Drivers’ and select ‘Context menu è...
  • Page 627 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon Since the connection to the CPU is via TCP/IP, enable in the ‘List available comm drivers’ the driver ‘VIPA’ > ‘Ethernet S7 TCP’ and click at [Next].
  • Page 628 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Modify the project in Movicon To add a new station, click [+ Add]. ð The dialog ‘Station Properties’ opens. Enter a station name at ‘Station Name’ . Allowed characters: A-Z, a-z, 0-9 space and the separators "_"...
  • Page 629: Commissioning

    VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Commissioning 13.8.4 Commissioning 13.8.4.1 Transfer project to target device You can transfer your project to your panel via Ethernet. The Movicon runtime version, which is pre-installed in your panel, will make your project executable.
  • Page 630 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Commissioning 13.8.4.2 Controlling the VMC_AxisControl via the panel 13.8.4.2.1 Commissioning It is assumed that you have set up your application and you can control your drive with the VMC_AxisControl function block.
  • Page 631 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Commissioning ‘Command’ ‘Status’ – Here you can see the current status of your driving command. ‘HMI Control’ – ‘Manual’ : When activated, the drive can be controlled via the panel.
  • Page 632 VIPA SPEED7 Motion control - Simple Motion Control Library Controlling the drive via HMI > Commissioning ‘Jog’ Via the corresponding input field or [+] and [-] you can specify ‘Velocity’ , ‘Acceleration’ and ‘Deceleration’ and execute the according drive command to posi- tive respectively negative direction via the direction buttons at ‘Execute’...
  • Page 633: States And Behavior Of The Outputs

    VIPA SPEED7 Motion control - Simple Motion Control Library States and behavior of the outputs > States 13.9 States and behavior of the outputs 13.9.1 States State diagram The state diagram shows all the states that an axis can assume. An axis is always in one of these states.
  • Page 634: Replacement Behavior Of Motion Jobs

    VIPA SPEED7 Motion control - Simple Motion Control Library States and behavior of the outputs > Replacement behavior of motion jobs Homing – The axis is currently homing: Ä Chap. 13.7.3.4 ‘FB 801 - MC_Home - home axis’ page 551 Ä...
  • Page 635 VIPA SPEED7 Motion control - Simple Motion Control Library States and behavior of the outputs > Replacement behavior of motion jobs (A) The axis is moved by the "MC_MoveRelative" job (A1) by the Distance 1000.0 (starting position is the position 0.0).
  • Page 636: Behavior Of The Inputs And Outputs

    VIPA SPEED7 Motion control - Simple Motion Control Library States and behavior of the outputs > Behavior of the inputs and outputs 13.9.3 Behavior of the inputs and outputs Exclusivity of the outputs The outputs Busy, Done, Error and CommandAborted exclude each other, so at a function block only one of these outputs can be TRUE at a time.
  • Page 637: Errorid - Additional Error Information

    VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information Behavior of the Done The Done output is set, when a command was successfully executed. output When operating with multiple function blocks at one axis and the current command is interrupted by another block, the Done output of the first block is not set.
  • Page 638 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x800B Invalid value at parameter MasterOffset. 0x800C Invalid value at parameter SlaveOffset. 0x800D Invalid value at parameter MasterScaling. 0x800E Invalid value at parameter SlaveScaling.
  • Page 639 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x802E Error command type. Read/write parameter 0x802F No system resources available. Read/write parameter 0x8030 Invalid value at parameter Hardware (1 = SLIO CP; 2 = VIPA CPU). Modbus; Init 0x8031 Invalid value at parameter UnitId.
  • Page 640 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x8105 Command is not supported by virtual axes. 0x8106 PLCopen-State is not defined. 0x8107 Command is not permitted if drive is deactivated. VMC_AxisControl_PT, Mod-...
  • Page 641 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x8331 MC_CamIn is not active. 0x8332 MC_GearIn is not active. 0x8340 Invalid value at TriggerInput.Probe. MC_TouchProbe and MC_Abort- Trigger 0x8341 Invalid value at TriggerInput.Source.
  • Page 642 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x8505 Wrong value in FactorPosition (>0.0). Init block 0x8506 Wrong value in FactorVelocity (>0.0). Init block 0x8507 Wrong value in FactorAcceleration (>0.0). Init block 0x8508 Wrong value in MaxVelocityApp (>0.0).
  • Page 643 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0x871C SDO error: The number and length of objects to be mapped exceeds the PDO length. 0x871D SDO error: General parameter incompatibility. 0x871E SDO error: General internal incompatibility in the device.
  • Page 644 VIPA SPEED7 Motion control - Simple Motion Control Library ErrorID - Additional error information ErrorID Description Remark 0xC000 Internal error: Status Init is undefined. Modbus; Init 0xC001 Internal error: Invalid value at parameter Cmd.ActiveType. Modbus V1000 0xC002 Internal Error: Invalid value at parameter Cmd.State.
  • Page 645: Integrated Standard

    VIPA SPEED7 Integrated Standard System Functions > SFC 1 - READ_CLK - Read system clock Integrated Standard 14.1 System Functions 14.1.1 SFC 0 - SET_CLK - Set system clock Description The SFC 0 SET_CLK (set system clock) sets the time of day and the date of the clock in the CPU.
  • Page 646: Sfc 2 ... 4 - Run-Time Meter

    VIPA SPEED7 Integrated Standard System Functions > SFC 2 - SET_RTM - Set run-time meter RET_VAL (Return value) SFC 1 does not return any specific error information. The current date and time are available at output CDT. 14.1.3 SFC 2 ... 4 - Run-time meter Description VIPA CPUs have 8 run-time meters.
  • Page 647: Sfc 3 - Ctrl_Rtm - Control Run-Time Meter

    VIPA SPEED7 Integrated Standard System Functions > SFC 4 - READ_RTM - Read run-time meter RET_VAL (Return value) Value Description 0000h no error 8080h Incorrect number for the run-time meter 8081h A negative value was supplied to parameter PV. 14.1.5...
  • Page 648: Sfc 5 - Gadr_Lgc - Logical Address Of A Channel

    VIPA SPEED7 Integrated Standard System Functions > SFC 5 - GADR_LGC - Logical address of a channel Parameters Parameter Declaration Data type Memory block Description INPUT BYTE I, Q, M, D, L, Input NR contains the number of the run-time meter that you wish to read.
  • Page 649 VIPA SPEED7 Integrated Standard System Functions > SFC 5 - GADR_LGC - Logical address of a channel Parameter Declaration Data type Memory block Description RET_VAL OUTPUT I, Q, M, D, L The return value contains an error code if an error is detected when the function is being processed.
  • Page 650: Sfc 6 - Rd_Sinfo - Read Start Information

    VIPA SPEED7 Integrated Standard System Functions > SFC 6 - RD_SINFO - Read start information LADDR Logical base address for the module 14.1.8 SFC 6 - RD_SINFO - Read start information Description The SFC 6 RD_SINFO (read start information) retrieves the start information of the last OB accessed and that has not yet been processed completely, as well as the last startup OB.
  • Page 651 VIPA SPEED7 Integrated Standard System Functions > SFC 6 - RD_SINFO - Read start information RET_VAL (Return value) The SFC 6 only returns general error information. No specific error information is avail- able. Example The OB that was called last and that has not yet been completely processed serves as OB 80;...
  • Page 652: Sfc 7 - Dp_Pral - Triggering A Hardware Interrupt On The Dp Master

    VIPA SPEED7 Integrated Standard System Functions > SFC 7 - DP_PRAL - Triggering a hardware interrupt on the DP master 14.1.9 SFC 7 - DP_PRAL - Triggering a hardware interrupt on the DP master Description With SFC 7 DP_PRAL you trigger a hardware interrupt on the DP master from the user program of an intelligent slave.
  • Page 653: Sfc 12 - D_Act_Dp - Dp-Activating And Deactivating Of Dp Slaves

    VIPA SPEED7 Integrated Standard System Functions > SFC 12 - D_ACT_DP - DP-Activating and Deactivating of DP slaves Parameter Declaration Data Type Memory Area Description AL_INFO INPUT DWORD I, Q, M, D, L, Interrupt ID constant This is transferred to the OB40 that will be started on the DP master (variable OB40_POINT_ADDR).
  • Page 654 VIPA SPEED7 Integrated Standard System Functions > SFC 12 - D_ACT_DP - DP-Activating and Deactivating of DP slaves Application If you configure DP slaves in a CPU, which are not actually present or not currently required, the CPU will nevertheless continue to access these DP slaves at regular inter- vals.
  • Page 655 VIPA SPEED7 Integrated Standard System Functions > SFC 12 - D_ACT_DP - DP-Activating and Deactivating of DP slaves Activating DP slaves When you reactivate a DP slave with the SFC 12 it is configured and assigned parame- ters by the designated DP master (as with the return of a failed station). This activation is completed when the slave is able to transfer user data.
  • Page 656 VIPA SPEED7 Integrated Standard System Functions > SFC 12 - D_ACT_DP - DP-Activating and Deactivating of DP slaves Parameter Declaration Data type Memory block Description RET_VAL OUTPUT I, Q, M, D, L If an error occurs while the function is processed, the return value contains an error code.
  • Page 657: Sfc 13 - Dpnrm_Dg - Read Diagnostic Data Of A Dp Slave

    VIPA SPEED7 Integrated Standard System Functions > SFC 13 - DPNRM_DG - Read diagnostic data of a DP slave Value Description F001h Not all slaves may be deactivated. At least 1 slave must remain activated. F002h Unknown slave address. 14.1.11...
  • Page 658 VIPA SPEED7 Integrated Standard System Functions > SFC 13 - DPNRM_DG - Read diagnostic data of a DP slave Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L, REQ = 1: read request constant...
  • Page 659: Sfc 14 - Dprd_Dat - Read Consistent Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 14 - DPRD_DAT - Read consistent data RET_VAL (Return value) The return value contains an error code if an error is detected when the function is being processed. If no error did occur, then RET_VAL contains the length of the data that was transferred.
  • Page 660: Sfc 15 - Dpwr_Dat - Write Consistent Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 15 - DPWR_DAT - Write consistent data value Description 0000h No error has occurred. 8090h You have not configured a module for the logical base address that you have specified, or you have ignored the restrictions that apply to the length of the consistent data.
  • Page 661: Sfc 17 - Alarm_Sq And Sfc 18 - Alarm_S

    VIPA SPEED7 Integrated Standard System Functions > SFC 17 - ALARM_SQ and SFC 18 - ALARM_S Parameter Declaration Data type Memory block Description LADDR INPUT WORD I, Q, M, D, L, Configured start address of the output buffer of the module to which the data must be written.
  • Page 662 VIPA SPEED7 Integrated Standard System Functions > SFC 17 - ALARM_SQ and SFC 18 - ALARM_S The SFC 17 and the SFC 18 should always be called from a FB after you have assigned the respective system attributes to this FB.
  • Page 663: Sfc 19 - Alarm_Sc - Acknowledgement State Last Alarm

    VIPA SPEED7 Integrated Standard System Functions > SFC 19 - ALARM_SC - Acknowledgement state last Alarm BOOL (bit field not permitted), BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TOD, TIME, S5TIME, DATE_AND_TIME RET_VAL (Return value) The return value contains an error code if an error is detected when the function is being processed.
  • Page 664: Sfc 20 - Blkmov - Block Move

    VIPA SPEED7 Integrated Standard System Functions > SFC 20 - BLKMOV - Block move Parameter Declaration Data type Memory block Description EV_ID INPUT DWORD I, Q, M, D, L, Message number for which you want to determine the status of the signal during the last SFC call or...
  • Page 665 VIPA SPEED7 Integrated Standard System Functions > SFC 20 - BLKMOV - Block move Interruptibility No limits apply to the nesting depth as long as the source field is not part of a data block that only exists in load memory. However, when interrupting an SFC 20 that copies blocks from a DB that is not relevant to the current process, then this SFC 20 cannot be nested any longer.
  • Page 666: Sfc 21 - Fill - Fill A Field

    VIPA SPEED7 Integrated Standard System Functions > SFC 21 - FILL - Fill a field 14.1.17 SFC 21 - FILL - Fill a field Description The SFC 21 FILL fills one block of memory (target field) with the contents of another block of memory (source field).
  • Page 667: Sfc 22 - Creat_Db - Create A Data Block

    VIPA SPEED7 Integrated Standard System Functions > SFC 22 - CREAT_DB - Create a data block Parameters Parameter Declaration Data type Memory block Description BVAL INPUT I, Q, M, D, L Contains the value or the description of the source field that should be copied into the target field.
  • Page 668 VIPA SPEED7 Integrated Standard System Functions > SFC 22 - CREAT_DB - Create a data block Parameters Parameter Declaration Data type Memory block Description LOW_LIMIT INPUT WORD I, Q, M, D, L, The lower limit is the lowest number in the range...
  • Page 669: Sfc 23 - Del_Db - Deleting A Data Block

    VIPA SPEED7 Integrated Standard System Functions > SFC 23 - DEL_DB - Deleting a data block 14.1.19 SFC 23 - DEL_DB - Deleting a data block Description The SFC 23 DEL_DB (delete data block) deletes a data block in application memory and if necessary from the load memory of the CPU.
  • Page 670: Sfc 24 - Test_Db - Test Data Block

    VIPA SPEED7 Integrated Standard System Functions > SFC 25 - COMPRESS - Compressing the User Memory 14.1.20 SFC 24 - TEST_DB - Test data block Description The SFC 24 TEST_DB (test data block) returns information about a data block that is located in the application memory of the CPU.
  • Page 671: Sfc 28 ... Sfc 31 - Time-Of-Day Interrupt

    VIPA SPEED7 Integrated Standard System Functions > SFC 28 ... SFC 31 - Time-of-day interrupt Parameters Parameter Declaration Data type Memory block Description RET_VAL OUTPUT I, Q, M, D, L Error information BUSY OUTPUT BOOL I, Q, M, D, L Indicates whether the compression function started by an SFC 25 call is still active.
  • Page 672 VIPA SPEED7 Integrated Standard System Functions > SFC 28 ... SFC 31 - Time-of-day interrupt Parameters Parameter Declaration Data type Memory block Description OB_NR INPUT I, Q, M, D, L, Number of the OB, that is started at a time SDT +...
  • Page 673 VIPA SPEED7 Integrated Standard System Functions > SFC 28 ... SFC 31 - Time-of-day interrupt RET_VAL (Return value) Value Description 0000h No error has occurred. 8090h OB_NR parameter error 80A0h No start date/time was defined for the respective time-of-day interrupt OB.
  • Page 674: Sfc 32 - Srt_Dint - Start Time-Delay Interrupt

    VIPA SPEED7 Integrated Standard System Functions > SFC 32 - SRT_DINT - Start time-delay interrupt RET_VAL (Return value) Value Description 0000h No error has occurred. 8090h OB_NR parameter error STATUS Value Description The operating system has enabled the time-of-day interrupt.
  • Page 675: Sfc 33 - Can_Dint - Cancel Time-Delay Interrupt

    VIPA SPEED7 Integrated Standard System Functions > SFC 34 - QRY_DINT - Query time-delay interrupt Accuracy The time from the call to the SFC 32 and the start of the time-delay interrupt OB may be less than the configured time by no more than one millisecond, provided that no interrupt events have occurred that delay the call.
  • Page 676: Sfc 36 - Msk_Flt - Mask Synchronous Errors

    VIPA SPEED7 Integrated Standard System Functions > SFC 36 - MSK_FLT - Mask synchronous errors Conditions The following conditions must be satisfied before a time-delay interrupt OB may be called: The time-delay interrupt OB must have been started (using the SFC 32).
  • Page 677: Sfc 37 - Dmsk_Flt - Unmask Synchronous Errors

    VIPA SPEED7 Integrated Standard System Functions > SFC 37 - DMSK_FLT - Unmask synchronous errors Parameters Parameter Declaration Data type Memory block Description PRGFLT_SET_MASK INPUT DWORD I, Q, M, D, L, Programming faults that must be masked out constant ACCFLT_SET_MASK...
  • Page 678: Sfc 38 - Read_Err - Read Error Register

    VIPA SPEED7 Integrated Standard System Functions > SFC 39 - DIS_IRT - Disabling interrupts RET_VAL (Return value) Value Description 0000h All the specified faults have been unmasked. 0001h One or more of the faults was not masked, however, the other faults will still be unmasked.
  • Page 679 VIPA SPEED7 Integrated Standard System Functions > SFC 39 - DIS_IRT - Disabling interrupts Whether the operating system writes interrupts and asynchronous errors to the diagnostic buffer when they occur depends on the input parameter setting you select for MODE.
  • Page 680: Sfc 40 - En_Irt - Enabling Interrupts

    VIPA SPEED7 Integrated Standard System Functions > SFC 40 - EN_IRT - Enabling interrupts RET_VAL (Return value) Value Description 0000h No error occurred. 8090h The input parameter OB_NR contains an illegal value. 8091h The input parameter MODE contains an illegal value.
  • Page 681: Sfc 41 - Dis_Airt - Delaying Interrupts

    VIPA SPEED7 Integrated Standard System Functions > SFC 42 - EN_AIRT - Enabling delayed interrupts RET_VAL (Return value) Value Description 0000h No error occurred. 8090h The input parameter OB_NR contains an illegal value. 8091h The input parameter MODE contains an illegal value.
  • Page 682: Sfc 43 - Re_Trigr - Retrigger The Watchdog

    VIPA SPEED7 Integrated Standard System Functions > SFC 46 - STP - STOP the CPU RET_VAL (Return value) When the SFC has been completed the return value RET_VAL indicates the number of disables, i.e. the number of calls to the SFC 41 (processing of all alarm interrupts is only enabled again when RET_VAL = 0).
  • Page 683: Sfc 47 - Wait - Delay The Application Program

    VIPA SPEED7 Integrated Standard System Functions > SFC 49 - LGC_GADR - Read the slot address Parameter and return The SFC 46 has neither parameters nor return values. values 14.1.36 SFC 47 - WAIT - Delay the application program Description The SFC 47 WAIT can be used to program time delays or wait times from 1 up to 32767µs in your application program.
  • Page 684: Sfc 50 - Rd_Lgadr - Read All Logical Addresses Of A Module

    VIPA SPEED7 Integrated Standard System Functions > SFC 50 - RD_LGADR - Read all logical addresses of a module Parameter Declaration Data type Memory block Description RACK OUTPUT WORD I, Q, M, D, L See AREA below SLOT OUTPUT WORD...
  • Page 685: Sfc 51 - Rdsysst - Read System Status List Ssl

    VIPA SPEED7 Integrated Standard System Functions > SFC 51 - RDSYSST - Read system status list SSL Parameters Parameter Declaration Data type Memory block Description IOID INPUT BYTE I, Q, M, D, L, Area identification: constant 54h = peripheral input (PI)
  • Page 686 VIPA SPEED7 Integrated Standard System Functions > SFC 51 - RDSYSST - Read system status list SSL Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L, REQ = 1: start processing constant SSL_ID INPUT...
  • Page 687: Sfc 52 - Wr_Usmsg - Write User Entry Into Diagnostic Buffer

    VIPA SPEED7 Integrated Standard System Functions > SFC 52 - WR_USMSG - Write user entry into diagnostic buffer Value Description 8087h Record set may not be read because the module does not exist or it does not return an acknowledge- ment.
  • Page 688 VIPA SPEED7 Integrated Standard System Functions > SFC 52 - WR_USMSG - Write user entry into diagnostic buffer The contents of an entry The structure of the entry in the diagnostic buffer is as follows: Byte Contents 1, 2 Event ID...
  • Page 689: Fc/Sfc 53 - Us_Tick - Time Measurement

    VIPA SPEED7 Integrated Standard System Functions > FC/SFC 53 - uS_Tick - Time measurement For events of the class A and B, yz refers to the message number that was predefined in hexadecimal representation when the messages were configured. INFO1 INFO1 contains information with a length of one word.
  • Page 690: Sfc 54 - Rd_Dparm - Read Predefined Parameter

    VIPA SPEED7 Integrated Standard System Functions > SFC 54 - RD_DPARM - Read predefined parameter Runtime in dependence of Status µs system time the operating mode Start-up Starts with 0 and is permanently updated is permanently updated STOP is stopped (time cannot be read)
  • Page 691 VIPA SPEED7 Integrated Standard System Functions > SFC 54 - RD_DPARM - Read predefined parameter Parameter Declaration Data type Memory block Description RET_VAL OUTPUT I, Q, M, D, L The return value contains an error code if an error is detected when the function is being pro- cessed.
  • Page 692: Sfc 55 - Wr_Parm - Write Dynamic Parameter

    VIPA SPEED7 Integrated Standard System Functions > SFC 55 - WR_PARM - Write dynamic parameter 14.1.43 SFC 55 - WR_PARM - Write dynamic parameter Description The SFC 55 WR_PARM (write parameter) transfers the record RECORD to the target module. Any parameters for this module that exist in the respective SDB will not be replaced by the parameters that are being transferred to the module.
  • Page 693 VIPA SPEED7 Integrated Standard System Functions > SFC 55 - WR_PARM - Write dynamic parameter Temporary error (error codes 80A2h ... 80A4h, 80Cxh): For this type of error it is possible that the error corrects itself without intervention. For this reason it is recommended that you re-issue the call to the SFC (once or more than once).
  • Page 694: Sfc 56 - Wr_Dparm - Write Default Parameter

    VIPA SPEED7 Integrated Standard System Functions > SFC 56 - WR_DPARM - Write default parameter Value Description 80D3h The SDB cannot be accessed since it does not exist. 80D4h Bad SDB structure: the SDB internal pointer points to an element outside of the SDB.
  • Page 695 VIPA SPEED7 Integrated Standard System Functions > SFC 56 - WR_DPARM - Write default parameter Temporary error (error codes 80A2h ... 80A4h, 80Cxh): For this type of error it is possible that the error corrects itself without intervention. For this reason it is recommended that you re-issue the call to the SFC (once or more than once).
  • Page 696: Sfc 57 - Parm_Mod - Parameterize Module

    VIPA SPEED7 Integrated Standard System Functions > SFC 57 - PARM_MOD - Parameterize module Value Description 80D3h The SDB cannot be accessed since it does not exist. 80D4h Bad SDB structure: the SDB internal pointer points to an element outside of the SDB.
  • Page 697 VIPA SPEED7 Integrated Standard System Functions > SFC 57 - PARM_MOD - Parameterize module RET_VAL (Return value) Two distinct cases exist for RET_VAL = 8xxxh: Temporary error (error codes 80A2h ... 80A4h, 80Cxh): For this type of error it is possible that the error corrects itself without intervention. For this reason it is recommended that you re-issue the call to the SFC (once or more than once).
  • Page 698: Sfc 58 - Wr_Rec - Write Record

    VIPA SPEED7 Integrated Standard System Functions > SFC 58 - WR_REC - Write record Value Description 80D3h The SDB cannot be accessed since it does not exist. 80D4h Bad SDB structure: the SDB internal pointer points to an element outside of the SDB.
  • Page 699 VIPA SPEED7 Integrated Standard System Functions > SFC 58 - WR_REC - Write record RET_VAL (Return value) Two distinct cases exist for RET_VAL = 8xxxh: Temporary error (error codes 80A2h ... 80A4h, 80Cxh): For this type of error it is possible that the error corrects itself without intervention. For this reason it is recommended that you re-issue the call to the SFC (once or more than once).
  • Page 700: Sfc 59 - Rd_Rec - Read Record

    VIPA SPEED7 Integrated Standard System Functions > SFC 59 - RD_REC - Read record Value Description 80C5h Decentralized periphery not available. 80C6h The transfer of records was aborted due to a priority class abort. A general error 8544h only indicates that access to at least one byte of I/O memory containing the record was disabled.
  • Page 701 VIPA SPEED7 Integrated Standard System Functions > SFC 59 - RD_REC - Read record Parameter Declaration Data type Memory block Description BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: the write operation has not been completed. RECORD...
  • Page 702: Sfc 64 - Time_Tck - Read System Time Tick

    VIPA SPEED7 Integrated Standard System Functions > SFC 64 - TIME_TCK - Read system time tick Value Description 80A0h Negative acknowledgment when reading from the module (module was removed during the transfer or module failed). 80A2h DP protocol fault in layer 2, possible hardware-/ interface fault in the DP slave.
  • Page 703: Sfc 65 - X_Send - Send Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 65 - X_SEND - Send data Parameters Parameter Declaration Data type Memory block Description RET_VAL OUTPUT TIME I, Q, M, D, L Parameter RET_VAL contains the system time that was retrieved, range from 0 ... 2 -1ms.
  • Page 704 VIPA SPEED7 Integrated Standard System Functions > SFC 65 - X_SEND - Send data the sending CPU issues multiple calls to SFC 65 with different REQ_ID parameters and the data is transferred to a single communication partner. more than one sending CPU are transferring data to a communication partner by means of the SFC 65.
  • Page 705: Sfc 66 - X_Rcv - Receive Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 66 - X_RCV - Receive data Value Description 80B4h ANY-pointer data type error, or ARRAY of the specified data type is not permitted. 80B5h Processing rejected because of an illegal operating mode.
  • Page 706 VIPA SPEED7 Integrated Standard System Functions > SFC 66 - X_RCV - Receive data Parameter Declaration Data type Memory block Description OUTPUT BOOL I, Q, M, D, L Status parameter "new data arrived". NDA = 0: The queue does not contain a data block.
  • Page 707 VIPA SPEED7 Integrated Standard System Functions > SFC 66 - X_RCV - Receive data Data consistency You must make sure that the receive buffer is not read before the operation has been completed since you could otherwise be reading could cause inconsistent data.
  • Page 708: Sfc 67 - X_Get - Read Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 67 - X_GET - Read data Value Description 8090h The specified target address of the communication partners is not valid, e.g. bad IOID bad base address exists bad MPI-address (> 126) 8092h Error in SD or RD, e.g.:...
  • Page 709 VIPA SPEED7 Integrated Standard System Functions > SFC 67 - X_GET - Read data Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L, Control parameter "request to activate", used to initiate the operation. constant...
  • Page 710 VIPA SPEED7 Integrated Standard System Functions > SFC 67 - X_GET - Read data Operating mode transition A transition to operating mode STOP of the CPU of the communication partner does not of the communication affect the data transfer, since it is also possible to read data in operating mode STOP.
  • Page 711: Sfc 68 - X_Put - Write Data

    VIPA SPEED7 Integrated Standard System Functions > SFC 68 - X_PUT - Write data Value Description 80B4h The communication partner does not support the data type specified in VAR_ADDR. 80B6h The received acknowledgment contains an unknown error code. 80BAh The answer of the communication partner does not fit into the communication telegram.
  • Page 712 VIPA SPEED7 Integrated Standard System Functions > SFC 68 - X_PUT - Write data Parameter Declaration Data type Memory block Description INPUT I, Q, M, D Reference to the buffer in the local CPU that con- tains the send data.
  • Page 713 VIPA SPEED7 Integrated Standard System Functions > SFC 68 - X_PUT - Write data Specific error information: Value Description 0000h Processing completed without errors. 7000h Call issued with REQ = 0 (call without processing), BUSY is set to 0, no data transfer is active.
  • Page 714: Sfc 69 - X_Abort - Disconnect

    VIPA SPEED7 Integrated Standard System Functions > SFC 69 - X_ABORT - Disconnect Value Description 80C2h Temporary lack of resources for the communication partner, e.g.: The communication partner is currently processing the maximum number of operations. The required resources (memory, etc.) are already occupied.
  • Page 715 VIPA SPEED7 Integrated Standard System Functions > SFC 69 - X_ABORT - Disconnect RET_VAL (Return value) The "real error information" that is contained in the table "specific error information" and others may be classified as follows: Value Description 809xh Error on the CPU where the SFC is being executed...
  • Page 716: Sfc 70 - Geo_Log - Determining The Start Address Of A Module

    VIPA SPEED7 Integrated Standard System Functions > SFC 70 - GEO_LOG - Determining the Start Address of a Module Value Description 80C2h Temporary lack of resources for the communication partner, e.g.: The communication partner is currently processing the maximum number of operations The required resources (memory, etc.) are already occupied.
  • Page 717: Sfc 71 - Log_Geo - Determining The Slot Belonging To A Logical Address

    VIPA SPEED7 Integrated Standard System Functions > SFC 71 - LOG_GEO - Determining the slot belonging to a logical address RET_VAL (Return value) Value Description 0000h The job was executed without errors. 8094h No subnet was configured with the specified SUBNETID.
  • Page 718 VIPA SPEED7 Integrated Standard System Functions > SFC 71 - LOG_GEO - Determining the slot belonging to a logical address Parameters Parameter Declaration Data Type Memory Area Description LADDR INPUT WORD I, Q, M, D, L, Any logical address of the module In...
  • Page 719 VIPA SPEED7 Integrated Standard System Functions > SFC 71 - LOG_GEO - Determining the slot belonging to a logical address AREA Output Parameter Value of AREA System Meaning of RACK, SLOT and SUBADDR S7-400 MASTER: 0 STATION: Rack no. SLOT: Slot no.
  • Page 720: Sfc 81 - Ublkmov - Copy Data Area Without Gaps

    VIPA SPEED7 Integrated Standard System Functions > SFC 81 - UBLKMOV - Copy data area without gaps RET_VAL (Return value) Value Description 0000h The job was executed without errors. 8090h Specified logical address invalid 8xyyh General error information Ä Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 66 14.1.56...
  • Page 721: Sfc 101 - Rtm - Handling Runtime Meters

    VIPA SPEED7 Integrated Standard System Functions > SFC 101 - RTM - Handling Runtime meters The source and target field must not overlap. If the specified target field is larger than the source field, only the amount of data located in the source field will be copied into the target field.
  • Page 722: Sfc 102 - Rd_Dpara - Reading Predefined Parameters

    VIPA SPEED7 Integrated Standard System Functions > SFC 102 - RD_DPARA - Reading Predefined Parameters Parameter Deklaration Datentyp Speicherber- Beschreibung eich RET_VAL OUTPUT I, Q, M, D, L The return value will contain an error code if an error occurs while the function is being pro- cessed.
  • Page 723: Sfc 105 - Read_Si - Reading Dynamic System Resources

    VIPA SPEED7 Integrated Standard System Functions > SFC 105 - READ_SI - Reading Dynamic System Resources Parameter Declaration Data type Memory block Description RECNUM INPUT BYTE I, Q, M, D, L, Record set number constant (permitted values: 0 ... 240).
  • Page 724 VIPA SPEED7 Integrated Standard System Functions > SFC 105 - READ_SI - Reading Dynamic System Resources MODE Which of the system resources occupied by SFC 107/SFC 108 are read? The system resource occupied by the call of SFC 107-/SFC 108 with...
  • Page 725 VIPA SPEED7 Integrated Standard System Functions > SFC 105 - READ_SI - Reading Dynamic System Resources Parameters Parameter Declaration Data type Memory Area Description MODE INPUT I, Q, M, D, L, Job identifier constant Permissible values: 1: Read all system resources...
  • Page 726: Sfc 106 - Del_Si - Reading Dynamic System Resources

    VIPA SPEED7 Integrated Standard System Functions > SFC 106 - DEL_SI - Reading Dynamic System Resources 14.1.60 SFC 106 - DEL_SI - Reading Dynamic System Resources Overview When messages are generated with SFCs 107 ALARM_DQ and 108 ALARM_D, the operating system occupies temporarily system memory space.
  • Page 727: Sfc 107 - Alarm_Dq And Sfc 108 - Alarm_D

    VIPA SPEED7 Integrated Standard System Functions > SFC 107 - ALARM_DQ and SFC 108 - ALARM_D RET_VAL (Return value) Error code Description 0000h No error occurred. 8081h (only with MODE = 2 or 3) You have assigned the value 0 to SI_ID.
  • Page 728 VIPA SPEED7 Integrated Standard System Functions > SFC 107 - ALARM_DQ and SFC 108 - ALARM_D Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L The message triggering signal INPUT WORD I, Q, M, D, L,...
  • Page 729: System Function Blocks

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 0 - CTU - Up-counter Error code Description 8089h You have assigned the value 0 to CMP_ID. 808Ah CMP_ID not fit to EV_ID 8xyyh General error information Ä Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 66 14.2...
  • Page 730: Sfb 1 - Ctd - Down-Counter

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 1 - CTD - Down-counter Status of the counter: Q is set to "1" if CV ≥ PV (current count ≥ preset value) else Q = "0" Current count: possible values: 0 ... 32767 14.2.2...
  • Page 731: Sfb 2 - Ctud - Up-Down Counter

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 2 - CTUD - Up-Down counter Status of the counter: "1", if CV £ 0 else Q = "0" Current count: possible values: -32 768 ... 32 767 14.2.3 SFB 2 - CTUD - Up-Down counter Description The SFB 2 can be used as an Up-Down counter.
  • Page 732 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 2 - CTUD - Up-Down counter Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L, Count up input constant INPUT BOOL I, Q, M, D, L,...
  • Page 733: Sfb 3 - Tp - Create Pulse

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 3 - TP - Create pulse QD is set to "1", if 0 ≥ CV (Current count smaller/= 0) else QU = "0" Current count possible values: -32 768 ... 32 767 14.2.4...
  • Page 734: Sfb 4 - Ton - Create Turn-On Delay

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 4 - TON - Create turn-on delay PT must be positive. The range of these values is determined by data type TIME. Output Q: Output Q remains active for the pulse duration PT, irrespective of the subsequent status...
  • Page 735: Sfb 5 - Tof - Create Turn-Off Delay

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 5 - TOF - Create turn-off delay Parameters Parameter Declaration Type Memory block Description INPUT BOOL I, Q, M, D, L, Start input constant INPUT TIME I, Q, M, D, L,...
  • Page 736 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 5 - TOF - Create turn-off delay Time diagram Parameters Parameter Declaration Data type Memory block Description INPUT BOOL I, Q, M, D, L, constant Start input INPUT TIME I, Q, M, D, L, constant...
  • Page 737: Fb/Sfb 12 - Bsend - Sending Data In Blocks

    VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 12 - BSEND - Sending data in blocks 14.2.7 FB/SFB 12 - BSEND - Sending data in blocks Description FB/SFB 12 BSEND sends data to a remote partner FB/SFB of the type BRCV (FB/SFB 13).
  • Page 738 VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 12 - BSEND - Sending data in blocks Parameter Declaration Data type Memory block Description INPUT WORD I, Q, M, D, A reference for the connection. constant Format W#16#xxxx R_ID INPUT...
  • Page 739 VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 12 - BSEND - Sending data in blocks ERROR STATUS (dec- Description imal) Reset request was executed. The status of the partner FB/SFB is DISABLED (EN_R has a value of 0) The status of the partner FB/SFB is not correct (the receive block has not been called after the most recent data transfer).
  • Page 740: Fb/Sfb 13 - Brcv - Receiving Data In Blocks

    VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 13 - BRCV - Receiving data in blocks 14.2.8 FB/SFB 13 - BRCV - Receiving data in blocks Description The FB/SFB 13 BRCV can receive data from a remote partner FB/SFB of the type BSEND (FB/SFB 12).
  • Page 741 VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 13 - BRCV - Receiving data in blocks Function The FB/SFB 13 is ready for reception when control input EN_R is set to 1. Parameter RD_1 specifies the start address of the receive data buffer. An acknowledgment is returned to the partner FB/SFB after reception of each data segment and parameter LEN of the FB/SFB 13 is updated accordingly.
  • Page 742: Fb/Sfb 14 - Get - Remote Cpu Read

    VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 14 - GET - Remote CPU read Receiving Data S7-400 If a receiving CPU with a BRCV block ready to accept data (that is, a call with EN_R = 1 has already been made) goes into STOP mode before the corresponding send...
  • Page 743 VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 14 - GET - Remote CPU read Parameter Declaration Data type Memory block Description STATUS OUTPUT WORD I, Q, M, D, L Status parameter STATUS, returns detailed infor- mation about the type of error.
  • Page 744: Fb/Sfb 15 - Put - Remote Cpu Write

    VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 15 - PUT - Remote CPU write ERROR STATUS Description (decimal) The call to the FB/SFB contains an instance DB that does not belong to the FB/SFB 14 contains a global DB instead of an instance DB...
  • Page 745 VIPA SPEED7 Integrated Standard System Function Blocks > FB/SFB 15 - PUT - Remote CPU write Parameter Declaration Data type Memory block Description ERROR OUTPUT BOOL I, Q, M, D, L Status parameter ERROR: ERROR = 0 + STATUS = 0000h –...
  • Page 746: Sfb 31 - Notify_8P - Messages Without Acknowledge Display (8X)

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 31 - NOTIFY_8P - Messages without acknowledge display (8x) ERROR STATUS Description (decimal) Error in transmission range pointers SD_i with respect to the length or the data type Partner CPU access error Access to local application memory not possible (e.g.
  • Page 747 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 31 - NOTIFY_8P - Messages without acknowledge display (8x) Parameter Declaration Data type Memory block Description SIG_i, INPUT BOOL I, Q, M, D, L i-th signal to be monitored INPUT WORD...
  • Page 748: Sfb 32 - Drum - Realize A Step-By-Step Switch

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch Error information ERROR / ERROR = TRUE indicates that an error has occurred during processing. For details refer STATUS to parameter STATUS. The following table contains all the error information specific to SFB 31 that can be output with the ERROR and STATUS parameters.
  • Page 749 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch If input RESET is set to "1" when the call is issued to SFB 32 then the cycle switch changes to the step that you have specified as a number at input DSP.
  • Page 750 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch Parameter Declaration Data type Memory block Description JOG_HIS BOOL I, Q, M, D, L, Not relevant to the user constant BOOL I, Q, M, D, L,...
  • Page 751 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 32 - DRUM - Realize a step-by-step switch OUTj, 0≤j≤15 Output bit No. j (identical with bit No. j of OUT_WORD) Status parameter specifying whether the processing time that you have defined for the last step has expired.
  • Page 752: Sfb 33 - Alarm - Messages With Acknowledgement Display

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 33 - ALARM - Messages with acknowledgement display Error information ERR_CODE When an error occurs the status of SFB 32 remains at the current value and output ERR_CODE contains one of the following error codes:...
  • Page 753 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 33 - ALARM - Messages with acknowledgement display Parameter Declaration Data type Memory block Description STATUS OUTPUT WORD I, Q, M, D, L STATUS parameter: Display of an error information ACK_DN...
  • Page 754: Sfb 34 - Alarm_8 - Messages Without Associated Values (8X)

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 34 - ALARM_8 - Messages without associated values (8x) Error information ERROR / ERROR = TRUE indicates that an error has occurred during processing. For details refer STATUS to parameter STATUS. The following table contains all the error information specific to SFB 33 that can be output with the ERROR and STATUS parameters.
  • Page 755 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 34 - ALARM_8 - Messages without associated values (8x) Parameter Declaration Data type Memory block Description EN_R INPUT BOOL I, Q, M, D, L Control parameter Constant SIG_i INPUT BOOL I, Q, M, D, L...
  • Page 756: Sfb 35 - Alarm_8P - Messages With Associated Values (8X)

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 35 - ALARM_8P - Messages with associated values (8x) Error information ERROR / ERROR = TRUE indicates that an error has occurred during processing. For details refer STATUS to parameter STATUS. The following table contains all the error information specific to SFB 34 that can be output with the ERROR and STATUS parameters.
  • Page 757 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 35 - ALARM_8P - Messages with associated values (8x) Parameter Declaration Data type Memory block Description EN_R INPUT BOOL I, Q, M, D, L Control parameter SIG_i, INPUT BOOL I, Q, M, D, L...
  • Page 758 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 35 - ALARM_8P - Messages with associated values (8x) SD_i i-th associated value It is valid 1 ≤ i ≤ maxNumber. The max. number of associated values may be found in the technical data of your CPU. Permitted are only data of the type BOOL, (not permitted: bit field), BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TOD, TIME, S5TIME, DATE_AND _TIME.
  • Page 759: Sfb 36 - Notify - Messages Without Acknowledgement Display

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 36 - NOTIFY - Messages without acknowledgement display 14.2.16 SFB 36 - NOTIFY - Messages without acknowledgement display Description Generating block-related messages without acknowledgement display. SFB 36 NOTIFY monitors a signal. It generates a message both on a rising edge (event entering state) and on a falling edge (event leaving state) with associated values.
  • Page 760: Sfb 47 - Count - Counter Controlling

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 47 - COUNT - Counter controlling SD_i i-th associated value It is valid 1 ≤ I ≤ maxNumber. The max. number of associated values may be found in the technical data of your CPU. Permitted are only data of the type BOOL, (not permitted: bit field), BYTE, CHAR, WORD, INT, DWORD, DINT, REAL, DATE, TOD, TIME, S5TIME, DATE_AND _TIME.
  • Page 761 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 47 - COUNT - Counter controlling Read the actual count and latch value Request to read/write internal counter registers Parameters Name Data type Address Default value Comment (Instance LADDR WORD 300h This parameter is not evaluated.
  • Page 762 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 47 - COUNT - Counter controlling Local data only in instance DB Name Data type Address Default value Comment (Instance RES00 BOOL 26.0 FALSE reserved RES01 BOOL 26.1 FALSE reserved RES02 BOOL 26.2...
  • Page 763 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 47 - COUNT - Counter controlling Proceeding The deployment of the request interface takes place at the following sequence: Edit the following input parameters: Name Data type Address (DB) Default Comment...
  • Page 764 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 47 - COUNT - Counter controlling A value to be read of a read job may be found in JOB_OVAL in the instance DB at address 28. Permitted value range for...
  • Page 765: Sfb 48 - Frequenc - Frequency Measurement

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 48 - FREQUENC - Frequency measurement Valid range Writing pulse duration* 0 ... 510ms *) Only even values allowed. Odd values are automatically rounded. Latch function As soon as during a count process an edge 0-1 is recognized at the "Latch" input of a counter, the recent counter value is stored in the according latch register.
  • Page 766 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 48 - FREQUENC - Frequency measurement Name Declaration Data type Address Default value Comment (Inst.-DB) JOB_ERR OUTPUT BOOL 22.1 FALSE Job error JOB_STAT OUTPUT WORD 24.0 Job error ID Local data only in instance DB...
  • Page 767: Sfb 49 - Pulse - Pulse Width Modulation

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Name Data type Address Default Comment (DB) JOB_DONE BOOL 22.0 TRUE New job can be started JOB_ERR BOOL 22.1 FALSE Job error JOB_STAT WORD 24.0...
  • Page 768 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Per channel you may call the SFB in each case with the same instance DB. Write accesses to outputs of the instance DB is not permissible.
  • Page 769 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation OUTP_VAL The ‘output format’ for PWM and pulse train can be set via the hardware configuration. Depending on the output format, there are the following range of values for the output value: Output in ‰...
  • Page 770 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation 8Ah: Read period duration of the 2. pulse train job 8Bh Read time base – 00h: 0.1ms – 01h: 1ms – 02h: 1µs: –...
  • Page 771 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Call the SFB 49: SW_EN = FALSE JOB_VAL = Enter a value for the on-delay here JOB_ID = 02h: Write on-delay for PWM output.
  • Page 772 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Controlling the pulse train The request interface is used according to the following sequence: output Call the SFB 49: SW_EN = FALSE JOB_VAL = Enter a value for the number of pulses here.
  • Page 773 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Call the SFB 49: SW_EN = TRUE (edge 0-1) JOB_REQ = TRUE (edge 0-1) OUTP_VAL: Enter the duty factor such as 50%. The 1. pulse train job is started and then if present the 2. pulse train job.
  • Page 774 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 49 - PULSE - Pulse width modulation Call the SFB 49: SW_EN = TRUE (edge 0-1) JOB_ID = 0Ch: Attach 2. pulse train job to the 1. pulse train job. JOB_REQ = TRUE (edge 0-1) OUTP_VAL: Enter the duty factor such as 50%.
  • Page 775: Sfb 52 - Rdrec - Reading Record Set

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 52 - RDREC - Reading record set 14.2.20 SFB 52 - RDREC - Reading record set The SFB 52 RDREC interface is identical to the FB RDREC defined in the standard "PROFIBUS Guideline PROFIBUS Communication and Proxy Function Blocks according to IEC 61131-3".
  • Page 776: Sfb 53 - Wrrec - Writing Record Set

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 53 - WRREC - Writing record set Ä Chap. 14.2.22 ‘SFB 54 - RALRM - Receiving an interrupt from a periphery module’ Error information page 777 14.2.21 SFB 53 - WRREC - Writing record set The SFB 53 WRREC interface is identical to the FB WRREC defined in the standard "PROFIBUS Guideline PROFIBUS Communication and...
  • Page 777: Sfb 54 - Ralrm - Receiving An Interrupt From A Periphery Module

    VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module Parameter Declaration Data type Memory block Description STATUS OUTPUT DWORD I, Q, M, D, L Call ID (bytes 2 and 3) or error code.
  • Page 778 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module Parameters Parameter Declaration Data type Memory block Description MODE INPUT I, Q, M, D, L, Operating mode constant F_ID INPUT...
  • Page 779 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module If you select a target area TINFO or AINFO that is too short the SFC 54 cannot enter the full information.
  • Page 780 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module TINFO TINFO PROFIBUS: Data structure of the target area (task information) Byte Data type Description 0 ... 19 Start information of the OB in which the SFC 54 was currently called Byte 0 ...
  • Page 781 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module TINFO PROFIBUS: Data structure of the target area (task information) Byte Data type Description Bit 0: EXT_DIAG_Bit of the diagnostic message frame, or 0 if this bit does not exist in the interrupt Bit 7 ...
  • Page 782 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module TINFO EtherCAT: Data structure of the target area (task information) Byte Declaration Data type Description 0 ... 19 OB Startinfo...
  • Page 783 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO AINFO PROFIBUS: Data structure of the target area (interrupt information) Byte Data type Description 0 ... 3 Header information...
  • Page 784 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO PROFINET IO: Data structure of the target area (interrupt information) Byte Declaration Data type Description 0 ... 1 Block type WORD Bit 0 ...
  • Page 785 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO PROFINET IO: Data structure of the target area (interrupt information) Byte Declaration Data type Description 6 ... 7 Interrupt type...
  • Page 786 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO PROFINET IO: Data structure of the target area (interrupt information) Byte Declaration Data type Description 20 ... 23 Submodule ID...
  • Page 787 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO EtherCAT: Data structure of the target area (interrupt information) Byte Declaration Data type Description 0, 1 Length WORD Length of the received interrupt information in byte: MIN: 0 MAX: 1535 (1.5kbyte)
  • Page 788 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module AINFO EtherCAT: Data structure of the target area (interrupt information) Byte Declaration Data type Description 10 ... n Data BYTE...
  • Page 789 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module 14.2.22.3 Cause of controller failure On a controller failure the alarm specifier provides information about the cause of the failure...
  • Page 790 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module DeviceId DeviceId[0] ... - EtherCAT address of the slave as defined in the configuration DeviceId[NrOfSlaves- - EtherCAT address of the slave as defined in the configuration...
  • Page 791 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module Error information The output parameter STATUS contains information. It is interpreted as ARRAY[1...4] OF BYTE the error information has the following structure:...
  • Page 792 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module STATUS[3] (Error ID) can have the following values: Error_Decode Error_Code_1 Explanation according to Description DP-V1 read error Negative acknowledgement while reading the module.
  • Page 793 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module STATUS[3] (Error ID) can have the following values: Error_Decode Error_Code_1 Explanation according to Description DP-V1 write constrain conflict The data of the previous write request to the module for the same record set have not yet been processed by the module.
  • Page 794 VIPA SPEED7 Integrated Standard System Function Blocks > SFB 54 - RALRM - Receiving an interrupt from a periphery module STATUS[3] (Error ID) can have the following values: Error_Decode Error_Code_1 Explanation according to Description DP-V1 DB/DI no. out of user range DB/DI no.
  • Page 795: Standard

    VIPA SPEED7 Standard Converting > FB 80 - LEAD_LAG - Lead/Lag Algorithm Standard Block library "Standard" The block library can be found for download in the ‘Service/Support’ area of www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Standard - SW90JS0MA’ .
  • Page 796: Fc 93 - Seg - Seven Segment Decoder

    VIPA SPEED7 Standard Converting > FC 93 - SEG - Seven Segment Decoder Parameter Declaration Data Type Memory Area Description PREV_IN Static REAL I, Q, M, D, L, P, con- Previous input stant PREV_OUT Static REAL I, Q, M, D, L, P, con-...
  • Page 797: Fc 94 - Ath - Ascii To Hex

    VIPA SPEED7 Standard Converting > FC 95 - HTA - Hex to ASCII Parameter Declaration Data Type Memory Area Description Input WORD I, M, D, P, Source data word in four hexadecimal digits or constant Output DWORD Q, M, D, L, P...
  • Page 798: Fc 96 - Enco - Encode Binary Position

    VIPA SPEED7 Standard Converting > FC 97 - DECO - Decode Binary Position Parameters Parameter Declaration Data Type Memory Area Description Input BOOL I, Q, M, D, L Enable input with signal state of 1 activates the box Output BOOL...
  • Page 799: Fc 98 - Bcdcpl - Tens Complement

    VIPA SPEED7 Standard Converting > FC 99 - BITSUM - Sum Number of Bits Parameters Parameter Declaration Data Type Memory Area Description Input BOOL I, Q, M, D, L Enable input with signal state of 1 activates the box Output...
  • Page 800: Fc 105 - Scale - Scaling Values

    VIPA SPEED7 Standard Converting > FC 105 - SCALE - Scaling Values Error Information This function does not detect any error conditions. 15.1.9 FC 105 - SCALE - Scaling Values Description The Scaling Values SCALE function takes an integer value IN and converts it to a real value in engineering units scaled between a low and a high limit LO_LIM and HI_LIM.
  • Page 801: Fc 106 - Unscale - Unscaling Values

    VIPA SPEED7 Standard Converting > FC 106 - UNSCALE - Unscaling Values Error information If the input integer value is greater than K2, the output OUT is clamped to HI_LIM, and an error is returned. If the input integer value is less than K1, the output OUT is clamped to LO_LIM, and an error is returned.
  • Page 802: Fc 108 - Rlg_Aa1 - Issue An Analog Value

    VIPA SPEED7 Standard Converting > FC 109 - RLG_AA2 - Write Analog Value 2 Error Information If the input real value is outside the LO_LIM and HI_LIM range the output OUT is clamped to the nearer of either the low limit or the high limit of the specified range for its type (BIPOLAR or UNIPOLAR), and an error is returned.
  • Page 803: Fc 110 - Per_Et1 - Read/Write Ext. Per. 1

    VIPA SPEED7 Standard Converting > FC 110 - PER_ET1 - Read/Write Ext. Per. 1 Parameter Data Type Memory Area Description KNKT WORD I, Q, M, L, D, constant Channel number KN Channel type KT REAL I, Q, M, L, D, constant...
  • Page 804: Fc 111 - Per_Et2 - Read/Write Ext. Per. 2

    VIPA SPEED7 Standard Converting > FC 111 - PER_ET2 - Read/Write Ext. Per. 2 IM3 area 0 to 255 P area 512 to 767 IM4 area 0 to 255 P area 768 to 1023 0 to 255 0 to 255...
  • Page 805: Date And Time As Complex Data Types

    VIPA SPEED7 Standard IEC > FC 2 - CONCAT - Concatenate two STRING variables 15.2 15.2.1 Date and time as complex data types Actual parameters for The DATE_AND_TIME data type is a complex data type like ARRAY, STRING, and DATE_AND_TIME STRUCT.
  • Page 806: Fc 3 - D_Tod_Dt - Combine Date And Time_Of_Day

    VIPA SPEED7 Standard IEC > FC 4 - DELETE - Delete in a STRING variable Parameter Parameter Declaration Data type Memory area Description IN1* INPUT STRING D, L Input variable in format STRING IN2* INPUT STRING D, L Input variable in format STRING...
  • Page 807: Fc 5 - Di_Strng - Convert Dint To String

    VIPA SPEED7 Standard IEC > FC 7 - DT_DAY - Extract day of the week from DT Parameter Declaration Data type Memory area Description RET_VAL* OUTPUT STRING D, L Result string *) You can assign only a symbolically defined variable for the parameter.
  • Page 808: Fc 8 - Dt_Tod - Extract Time_Of_Day From Dt

    VIPA SPEED7 Standard IEC > FC 10 - EQ_STRNG - Compare STRING for equal Parameter Declaration Data type Memory area Description INPUT DATE_AND_TIME D, L Input variable in format DT RET_VAL OUTPUT I, Q, M, D, L Return value in format INT *) You can assign only a symbolically defined variable for the parameter.
  • Page 809: Fc 11 - Find - Find In A String Variable

    VIPA SPEED7 Standard IEC > FC 13 - GE_STRNG - Compare STRING for greater than or equal Parameter Declaration Data type Memory area Description RET_VAL OUTPUT BOOL I, Q, M, D, L Comparison result *) You can assign only a symbolically defined variable for the parameter.
  • Page 810: Fc 14 - Gt_Dt - Compare Dt For Greater Than

    VIPA SPEED7 Standard IEC > FC 15 - GT_STRNG - Compare STRING for greater than Parameter Parameter Declaration Data type Memory area Description INPUT STRING D, L Input variable in format STRING INPUT STRING D, L Input variable in format STRING...
  • Page 811: Fc 16 - I_Strng - Convert Int To String

    VIPA SPEED7 Standard IEC > FC 18 - LE_DT - Compare DT for smaller than or equal 15.2.17 FC 16 - I_STRNG - Convert INT to STRING Description The function FC 16 converts a variable in DINT data format to a string. The string is shown preceded by a sign.
  • Page 812: Fc 19 - Le_Strng - Compare String For Smaller Then Or Equal

    VIPA SPEED7 Standard IEC > FC 20 - LEFT - Left part of a STRING variable Parameter Declaration Data type Memory area Description DT1* INPUT DATE_AND_TIME D, L Input variable in format TD DT2* INPUT DATE_AND_TIME D, L Input variable in format TD...
  • Page 813: Fc 21 - Len - Length Of A String Variable

    VIPA SPEED7 Standard IEC > FC 23 - LT_DT - Compare DT for smaller than 15.2.22 FC 21 - LEN - Length of a STRING variable Description A STRING variable contains two lengths: Maximum length – It is given in square brackets when the variables are being defined.
  • Page 814: Fc 24 - Lt_Strng - Compare String For Smaller

    VIPA SPEED7 Standard IEC > FC 25 - MAX - Select maximum Parameter Parameter Declaration Data type Memory area Description DT1* INPUT DATE_AND_TIME D, L Input variable in format TD DT2* INPUT DATE_AND_TIME D, L Input variable in format TD...
  • Page 815: Fc 26 - Mid - Middle Part Of A String Variable

    VIPA SPEED7 Standard IEC > FC 27 - MIN - Select minimum The admitted data types INT, DINT and REAL must be entered in the ANY pointer. Such parameters as "MD20" are also admitted, but you must define the corresponding data type of "MD20" in "Symbol".
  • Page 816: Fc 28 - Ne_Dt - Compare Dt For Unequal

    VIPA SPEED7 Standard IEC > FC 29 - NE_STRNG - Compare STRING for unequal Parameter Declaration Data type Memory area Description INPUT I, Q, M, D, L 1. Input value INPUT I, Q, M, D, L 2. Input value INPUT I, Q, M, D, L 3.
  • Page 817: Fc 30 - R_Strng - Convert Real To String

    VIPA SPEED7 Standard IEC > FC 31 - REPLACE - Replace in a STRING variable Parameter Parameter Declaration Data type Memory area Description INPUT STRING D, L Input variable in format STRING INPUT STRING D, L Input variable in format STRING...
  • Page 818: Fc 32 - Right - Right Part Of A String Variable

    VIPA SPEED7 Standard IEC > FC 33 - S5TI_TIM - Convert S5TIME to TIME Parameter Parameter Declaration Data type Memory area Description IN1* INPUT STRING D, L STRING variable to be inserted into IN2* INPUT STRING D, L STRING variable to be inserted...
  • Page 819: Fc 34 - Sb_Dt_Dt - Subtract Two Instants Of Time

    VIPA SPEED7 Standard IEC > FC 36 - SEL - Binary selection 15.2.35 FC 34 - SB_DT_DT - Subtract two instants of time Description The function FC 34 subtracts two instants of time DTx (date and time) and provides a duration (time) as the result.
  • Page 820: Fc 37 - Strng_Di - Convert String To Dint

    VIPA SPEED7 Standard IEC > FC 38 - STRNG_I - Convert STRING to INT Parameter Parameter Declaration Data type Memory area Description INPUT BOOL I, Q, M, D, L Selection switch Constant INPUT I, Q, M, D, L 1. Input value...
  • Page 821: Fc 39 - Strng_R - Convert String To Real

    VIPA SPEED7 Standard IO > FB 20 - GETIO - PROFIBUS/PROFINET read all Inputs 15.2.40 FC 39 - STRNG_R - Convert STRING to REAL Description The function FC 39 converts a string to a variable in REAL data format. The string must have the following format: ±v.nnnnnnnE±xx...
  • Page 822: Fb 21 - Setio - Profibus/Profinet Write All Outputs

    VIPA SPEED7 Standard IO > FB 22 - GETIO_PART - PROFIBUS/PROFINET read a part of the Inputs Parameter Declaration Data Type Memory Area Description INPUT DWORD I, Q, M, D, L Low word: logical address of the DP slave/PROFINET IO component...
  • Page 823 VIPA SPEED7 Standard IO > FB 22 - GETIO_PART - PROFIBUS/PROFINET read a part of the Inputs You must assign a process image partition for inputs to the OB in which FB 22 GETIO_PART is called. Furthermore, before calling FB 22 you must add the associated PROFIBUS DP slave or the associated PROFINET IO device to this process image partition for inputs.
  • Page 824: Fb 23 - Setio_Part - Profibus/Profinet Write A Part Of The Out Puts

    VIPA SPEED7 Standard IO > FB 23 - SETIO_PART - PROFIBUS/PROFINET write a part of the Outputs Parameter Declaration Data Type Memory Area Description ERROR OUTPUT BOOL I, Q, M, D, L Error display: ERROR = TRUE if an error occurs when calling SFC 81 UBLKMOV.
  • Page 825: S5 Converting

    VIPA SPEED7 Standard S5 Converting > FC 112 - Sine(x) - Sine Parameter Declaration Data Type Memory Area Description INPUT DWORD I, Q, M, D, L, Low word: logical address of the DP slave/PROFINET IO component constant (module or submodule)
  • Page 826: Fc 113 - Cosine(X) - Cosine

    VIPA SPEED7 Standard S5 Converting > FC 113 - Cosine(x) - Cosine Parameters Parameter Declaration Data Type Memory Area Description INPUT BOOL I, Q, M, D, L Enable – TRUE: activates the function – FALSE: deactivates the function OUTPUT BOOL...
  • Page 827: Fc 114 - Tangent(X) - Tangent

    VIPA SPEED7 Standard S5 Converting > FC 115 - Cotangent(x) - Cotangent This function is only used to convert the FB 102 of an existing S5 pro- gram to a function of an S7 program programmable controller. 15.4.3 FC 114 - Tangent(x) - Tangent Description The function FC 114 expects the input value in ACCU 1 as a floating point number.
  • Page 828: Fc 116 - Arc Sine(X) - Arcussine

    VIPA SPEED7 Standard S5 Converting > FC 116 - Arc Sine(x) - Arcussine The function also stores the result in ACCU 1 as a floating point number. The input value DWORD = DW#16#0000 0000 is treated the same way as the floating point value zero (REAL = +0.0000000e+00 in accordance with DWORD =...
  • Page 829: Fc 117 - Arc Cosine(X) - Arcuscosine

    VIPA SPEED7 Standard S5 Converting > FC 117 - Arc Cosine(x) - Arcuscosine Parameters Parameter Declaration Data Type Memory Area Description INPUT BOOL I, Q, M, D, L Enable – TRUE: activates the function – FALSE: deactivates the function OUTPUT...
  • Page 830: Fc 118 - Arc Tangent(X) - Arcustangent

    VIPA SPEED7 Standard S5 Converting > FC 119 - Arc Cotangent(x) - Arcuscotangent 15.4.7 FC 118 - Arc Tangent(x) - Arcustangent Description The function FC 118 expects the input value in ACCU 1 as a floating point number. The input value must be within the range between -1 (REAL = -0.1000000e+01) ...
  • Page 831: Fc 120 - Naperian Logarithm In(X) - Naperian Logarithm

    VIPA SPEED7 Standard S5 Converting > FC 120 - Naperian Logarithm In(x) - Naperian Logarithm Parameters Parameter Declaration Data Type Memory Area Description INPUT BOOL I, Q, M, D, L Enable – TRUE: activates the function – FALSE: deactivates the function...
  • Page 832: Fc 121 - Decimal Logarithm Ig(X) - Decimal Logarithm

    VIPA SPEED7 Standard S5 Converting > FC 122 - Gen. Logarithm to Base b - General Logarithm Iog (x) to base b 15.4.10 FC 121 - Decimal Logarithm Ig(x) - Decimal Logarithm Description The function FC 121 expects the input value in accumulator 1 as a bit floating point number.
  • Page 833 VIPA SPEED7 Standard S5 Converting > FC 123 - E to Power n - E high n Parameters Parameter Declaration Data Type Memory Area Description INPUT BOOL I, Q, M, D, L Enable – TRUE: activates the function – FALSE: deactivates the function...
  • Page 834: Fc 125 - Accu 2 To Power Accu 1 - Accu 2 High Accu 1

    VIPA SPEED7 Standard S5 Converting > FC 125 - ACCU 2 to Power ACCU 1 - ACCU 2 high ACCU 1 15.4.13 FC 124 - 10 to Power n - 10 high n Description The function FC 124 expects the input value in ACCU 1 as a floating point number.
  • Page 835: Pid Control

    VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Parameters Parameter Declaration Data Type Memory Area Description INPUT BOOL I, Q, M, D, L Enable – TRUE: activates the function – FALSE: deactivates the function OUTPUT...
  • Page 836 VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Parameter Declaration Data Type Description I_SEL INPUT BOOL INTEGRAL ACTION ON The PID actions can be activated or deactivated individually in the PID algorithm. The I action is on when the input I_SEL is set.
  • Page 837 VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Parameter Declaration Data Type Description GAIN INPUT REAL PROPORTIONAL GAIN The GAIN input specifies the controller gain. Default: 2.0 Range of Values: ³ CYCLE INPUT TIME RESET TIME The TI input determines the time response of the integrator.
  • Page 838 VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Parameter Declaration Data Type Description PV_OFF INPUT REAL PROCESS VARIABLE OFFSET The PV_OFF input is added to the process vari- able. The input is used to adapt the process vari- able range.
  • Page 839 VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Parameter Declaration Data Type Description LMN_P OUTPUT REAL PROPORTIONALITY COMPONENT The LMN_P output contains the proportional com- ponent of the manipulated variable. Default: 0.0 LMN_I OUTPUT REAL...
  • Page 840 VIPA SPEED7 Standard PID Control > FB 41 - CONT_C - Continuous control Error Signal The difference between the setpoint and process variable is the error signal. To suppress a small constant oscillation due to the manipulated variable quantization (for example in pulse duration modulation with PULSEGEN), a dead band is applied to the error signal (DEADBAND).
  • Page 841: Fb 42 - Cont_S - Step Control

    VIPA SPEED7 Standard PID Control > FB 42 - CONT_S - Step Control Block Diagram 15.5.2 FB 42 - CONT_S - Step Control Description FB42 CONT_S is used to control technical processes with digital manipulated value output signals for integrating actuators. During parameter assignment, you can activate or deactivate subfunctions of the PI step controller to adapt the controller to the process.
  • Page 842 VIPA SPEED7 Standard PID Control > FB 42 - CONT_S - Step Control Parameter Parameter Declaration Data Type Description COM_RST INPUT BOOL COMPLETE RESTART The block has a complete restart routine that is pro- cessed when the input COM_RST is set.
  • Page 843 VIPA SPEED7 Standard PID Control > FB 42 - CONT_S - Step Control Parameter Declaration Data Type Description PV_IN INPUT REAL PROCESS VARIABLE IN An initialization value can be set at the PV_IN input or an external process variable in floating point format can be connected.
  • Page 844 VIPA SPEED7 Standard PID Control > FB 42 - CONT_S - Step Control Parameter Declaration Data Type Description MTR_TM INPUT TIME MOTOR MANIPULATED VALUE The time required by the actuator to move from limit stop to limit stop is entered at the MTR_TM parameter.
  • Page 845 VIPA SPEED7 Standard PID Control > FB 42 - CONT_S - Step Control The PV_NORM function normalizes the Output of CRP_IN following formula: PV_FAC has a default of 1 and PV_OFF a default of 0. Error Signal The difference between the setpoint and process variable is the error signal. To suppress...
  • Page 846: Fb 43 - Pulsgen - Pulse Generation

    VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Block Diagram 15.5.3 FB 43 - PULSGEN - Pulse generation Description FB 43 PULSEGEN is used to structure a PID controller with pulse output for proportional actuators. Using FB43, PID two or three step controllers with pulse duration modulation can be configured.
  • Page 847 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Parameters Parameter Declaration Data Type Description INPUT REAL INPUT VARIABLE An analog manipulated value is connected to the input parameter INV. Default: 0.0 Range of Values: -100.0...100.0 (%)
  • Page 848 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Parameter Declaration Data Type Description POS_P_ON INPUT BOOL POSITIVE MODE ON In the manual mode with three-step control, the output signal QPOS_P can be set at the input parameter POS_P_ON.
  • Page 849 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Application The PULSEGEN function transforms the input variable INV ( = manipulated value of the PID controller) by modulating the pulse duration into a pulse train with a constant period, corresponding to the cycle time at which the input variable is updated and which must be assigned in PER_TM.
  • Page 850 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation The call frequency must be programmed by the user. Automatic Synchroniza- It is possible to synchronize the pulse output with the block that updates the input variable tion INV (for example CONT_C).
  • Page 851 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Mode Switch MAN_ON STEP3_ON ST2BI_ON Three-step control FALSE TRUE Two-step control with bipolar control range FALSE FALSE TRUE (-100 % to +100 %) Two-step control with monopolar control...
  • Page 852 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Three-Step Control Asym- Using the ratio factor RATIOFAC, the ratio of the duration of positive to negative pulses metrical can be changed. In a thermal process, for example, this would allow different system time constants for heating and cooling.
  • Page 853 VIPA SPEED7 Standard PID Control > FB 43 - PULSGEN - Pulse generation Ratio Factor > 1 The pulse duration at the positive pulse output calculated from the input variable mul- tiplied by the period time is reduced by the ratio factor.
  • Page 854: Fb 58 - Tcont_Cp - Continuous Temperature Control

    VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control POS_P_ON NEG_P_ON QPOS_P QNEG_P Three-step con- FALSE FALSE FALSE FALSE trol TRUE FALSE TRUE FALSE FALSE TRUE FALSE TRUE TRUE TRUE FALSE FALSE Two-step con- FALSE...
  • Page 855 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data Type Description INT_HNEG INPUT BOOL INTEGRAL ACTION HOLD IN NEGATIVE DIRECTION The output of the integral action can be blocked in a positive direction. To achieve this, the INT_HPOS input must be set to TRUE.
  • Page 856 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data Type Description QLMN_LLM OUTPUT BOOL LOW LIMIT OF MANIPULATED VALUE REACHED The value of the manipulated variable is always limited to an upper and lower limit. The QLMN_LLM output indicates when the lower limit is exceeded.
  • Page 857 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Internal Parameters Parameter Declaration Data type Description DEADB_W INPUT REAL DEAD BAND WIDTH The error passes through a dead band. The DEADB_W input decides the size of the dead band.
  • Page 858 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description PER_TM INPUT REAL PERIOD TIME [s] The pulse repetition period of the pulse duration modulation is entered at the PER_TM parameter.
  • Page 859 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description OUTPUT REAL ERROR SIGNAL The effective error is output at the ER output. Default: 0.0 Range of Values: Dependent on the sensors used...
  • Page 860 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description GAIN OUTPUT REAL PID PROPORTIONAL GAIN Default: 0.0 OUTPUT REAL PID RESET TIME [s Default: 0.0 s Range of Values: ³ 0.0 s...
  • Page 861 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description GAIN INPUT/ OUTPUT REAL PROPORTIONAL GAIN The GAIN input specifies the controller gain. The direction of control can be reversed by giving GAIN a negative sign.
  • Page 862 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description UNDO_PAR INPUT/ OUTPUT BOOL UNDO CHANGE OF CONTROLLER PARAMETERS Loads the controller parameters PFAC_SP, GAIN, TI, TD, D_F, CONZ_ON and CON_ZONE from the data structure PAR_SAVE (only in manual mode).
  • Page 863 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description TM_LAG_P OUTPUT REAL TIME LAG OF PTN MODEL [s] Time lag of PTN model (values only for N_PTN ³ Default: 0.0...
  • Page 864 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Parameter Declaration Data type Description FIL_CYC OUTPUT NO OF CYCLES FOR MEAN-VALUE FILTER The process variable is averaged over FIL_CYC cycles. When necessary, FIL_CYC is increased automatically from 1 to a maximum of 1024.
  • Page 865 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Process Value Format The CRP_IN function converts the peripheral value PV_PER to a floating-point format Conversion CRP_IN depending on the switch PER_MODE according to the following rules:...
  • Page 866 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Forming the Error The difference between the setpoint and process value is the error before the deadband. The setpoint and process value must exist in the same unit.
  • Page 867 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control PID Algorithm (GAIN, TI, The PID algorithm operates as a position algorithm. The proportional, integral (INT), TD, D_F) and derivative (DIF) actions are connected in parallel and can be activated or deacti- vated individually.
  • Page 868 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control If the manipulated variable is limited, the I-action is stopped. If the error moves the I- action back in the direction of the manipulated variable range, the I-action is enabled again.
  • Page 869 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control The changeover from controlled closed-loop to automatic closed-loop control takes into account a hysteresis of 20% of the control zone. Before activating the control zone manually, make sure that the control zone band is not too narrow.
  • Page 870 VIPA SPEED7 Standard PID Control > FB 58 - TCONT_CP - Continuous Temperature Control Changing the Manipulated If the range of the manipulated variable is reduced and the new unlimited value of the Variable Limits Online manipulated variable is outside the limits, the I-action and therefore the value of the manipulated variable shifts.
  • Page 871: Fb 59 - Tcont_S - Temperature Step Control

    VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control – The controller parameters are only written back to the controller with UNDO_PAR or LOAD_PID when the controller gain is not 0: For LOAD_PID, the parameters are only copied if the respective GAIN <>...
  • Page 872 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control Parameter Declaration Data type Description LMNR_HS INPUT BOOL HIGH LIMIT SIGNAL OF REPEATED MANIPULATED VALUE The signal "valve at upper limit stop" is connected to the LMNR_HS.
  • Page 873 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control Internal Parameters Parameter Declaration Data Type Description PV_FAC INPUT REAL PROCESS VARIABLE FACTOR The PV_FAC input is multiplied by the "process value". The input is used to adapt the process vari- able range.
  • Page 874 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control Parameter Declaration Data Type Description PULSE_TM INPUT REAL MINIMUM PULSE TIME A minimum pulse time can be set with the PULSE_TM parameter. Default: 0.1s Range of Values: ³ 0.0 s...
  • Page 875 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control Setpoint Branch The setpoint is entered at input SP_INT in floating-point format as a physical value or per- centage. The setpoint and process value used to form the error must have the same unit.
  • Page 876 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control This can be used for the following purposes: Process value correction with PV_FAC as the process value factor and PV_OFFS as the process value offset. Normalization of temperature to percentage You want to enter the setpoint as a percentage and must now convert the measured temperature value to a percentage.
  • Page 877 VIPA SPEED7 Standard PID Control > FB 59 - TCONT_S - Temperature Step Control PI Step Controller Algo- FB 59 TCONT_S works without a position feedback signal (see following block diagram). rithm The I-action of the PI algorithm and the assumed position feedback signal are calculated in an integrator (INT) and compared as a feedback value with the remaining P-action.
  • Page 878: Time Functions

    VIPA SPEED7 Standard Time Functions > UDT 60 - WS_RULES - Rule DB Block Diagram 15.6 Time Functions 15.6.1 UDT 60 - WS_RULES - Rule DB Description Your system must provide certain information in a DB that is evaluated by the various blocks.
  • Page 879: Fc 61 - Bt_Lt - Convert Base Timer To Local Time

    VIPA SPEED7 Standard Time Functions > FC 61 - BT_LT - Convert base timer to local time Rule for: standard -> daylight-saving time. Default: Last Sunday in March; 2:00 o'clock Name Type Start value Comment STRUCT W2S must be specified in STANDARD TIME!
  • Page 880: Fc 62 - Lt_Bt - Convert Local Time To Base Time

    VIPA SPEED7 Standard Time Functions > FC 62 - LT_BT - Convert local time to base time How It Works The base time entered at input BT is converted to the local time using the data stored in a DB and applied to output LT. The DB contains the number of 30-minute units by which the base time and local time differ and the difference between daylight-saving time and standard time also in units of 30 minutes.
  • Page 881: Fc 63 - S_Ltint - Set Time Interrupt In Local Time

    VIPA SPEED7 Standard Time Functions > FC 63 - S_LTINT - Set time interrupt in local time "Double Hour" During the switchover from daylight-saving to standard time the local time is put back one hour. This, however, means that one hour is run through twice. (For CE(S)T the designa- tors 2A and 2B apply).
  • Page 882 VIPA SPEED7 Standard Time Functions > FC 63 - S_LTINT - Set time interrupt in local time Parameter Declaration Data type Description WS_DAT INPUT DATE_AND_TIME Information on the time zone for standard/daylight saving switchover (see above) RET_VAL OUTPUT Error code...
  • Page 883: System Blocks

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 228 - RW_KACHEL - Page frame direct access System Blocks Block library "System The block library can be found for download in the ‘Service/Support’ area of Blocks" www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library System Blocks - SW90KS0MA’...
  • Page 884 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 228 - RW_KACHEL - Page frame direct access SIZE Size The size defines the width of the data area fixed via K_NR and OFFSET. You may choose between the values 1, 2 and 4byte.
  • Page 885: Sfc 230 ... 238 - Page Frame Communication

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Value Description defined page frame does not exist parameter SIZE ¹ 1, 2 or 4 at read access parameter SIZE ¹ 1, 2 or 4 at write access parameter R_W is ¹...
  • Page 886 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication ANZW Indicator word (double word) Address of the indicator double word in the user memory where the processing of the order specified under ANR is shown.
  • Page 887 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Value Block size Value Block size Default (64byte) 128byte 16byte 256byte 32byte 512byte 64byte 512byte Parameter type: Integer Convenient range: 0 ... 255 PAFE Error indication at parameterization defects This "BYTE"...
  • Page 888 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Direct parameterization of With IND = 0 you fix that the pointer QANF / ZANF shows directly to the source res. desti- source and destination nation data.
  • Page 889 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication QTYP/ZTYP IND = 1 IND = 2 Data word Defi- DW-No., where the stored data starts DW-No., where the stored data starts nition Valid range 0.0 ...
  • Page 890 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication 16.1.2.4 Indicator word ANZW Status and error reports Status and error reports are created by the handling blocks: by the indicator word ANZW (information at order commissioning).
  • Page 891 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication The following error messages may occur: 0 - no error If the bit "Order ready with error" is set, the CP had to reinitialize the connection, e.g.
  • Page 892 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication This is a normal system message. This order is a READ/WRITEPASSIV and can not be started from the AG. F - Order not foundThe called order is not parameterized on the CP. This error may occur when the SSNR/A-No.
  • Page 893 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Data management Byte 1, Here you may check if the data transfer is still running or if the data fetch res. transmis- Bit 4 ... Bit 7 sion is already finished.
  • Page 894 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Length word Byte 2 and In the length word the handling blocks (SEND, RECEIVE) store the already transferred Byte 3 data of the current order, i.e. the received data amount for receiving orders, the sent data amount for sending orders.
  • Page 895 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication Messages at RECEIVE State at H1 Prio 0/1 Prio 2 Prio 3/4 State at TCP/IP Prio 1 Prio 2 Prio 3 after reboot 0 A 0 A...
  • Page 896 VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 ... 238 - Page frame communication 16.1.2.5 Parameterization error PAFE The parameterization error byte PAFE is set (output or bit memory), when the block detects a "parameterization error", e.g. there is no interface or there is an invalid parame- terization of QANF / ZANF.
  • Page 897: Sfc 230 - Send - Send To Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 230 - SEND - Send to page frame 16.1.3 SFC 230 - SEND - Send to page frame Description The SEND block initializes a send order to a CP. Normally SEND is called in the cyclic part of the user application program.
  • Page 898: Sfc 231 - Receive - Receive From Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 231 - RECEIVE - Receive from page frame 16.1.4 SFC 231 - RECEIVE - Receive from page frame Description The RECEIVE block receives data from a CP. Normally the RECEIVE block is called in the cyclic part of the user application program.
  • Page 899: Sfc 232 - Fetch - Fetch From Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 232 - FETCH - Fetch from page frame 16.1.5 SFC 232 - FETCH - Fetch from page frame Description The FETCH block initializes a FETCH order in the partner station. The FETCH order defines data source and destination and the data source is transmitted to the partner sta- tion.
  • Page 900: Sfc 233 - Control - Control Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 233 - CONTROL - Control page frame 16.1.6 SFC 233 - CONTROL - Control page frame Description The purpose of the CONTROL block is the following: Update of the indicator word Query if a certain order of the CP is currently "active", e.g. request for a receipt tele-...
  • Page 901: Sfc 234 - Reset - Reset Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 234 - RESET - Reset page frame 16.1.7 SFC 234 - RESET - Reset page frame Description The RESET ALL function is called via the order number 0. This resets all orders of this logical interface, e.g.
  • Page 902: Sfc 235 - Synchron - Synchronization Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 235 - SYNCHRON - Synchronization page frame 16.1.8 SFC 235 - SYNCHRON - Synchronization page frame Description The SYNCHRON block initializes the synchronization between CPU and CP during the boot process. For this it has to be called from the starting OBs. Simultaneously the transi- tion area of the interface is deleted and predefined and the CP and the CPU agree about the block size.
  • Page 903: Sfc 236 - Send_All - Send All To Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 236 - SEND_ALL - Send all to page frame 16.1.9 SFC 236 - SEND_ALL - Send all to page frame Description Via the SEND_ALL block, the data is transmitted from the CPU to the CP by using the declared block size.
  • Page 904: Sfc 237 - Receive_All - Receive All From Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 237 - RECEIVE_ALL - Receive all from page frame 16.1.10 SFC 237 - RECEIVE_ALL - Receive all from page frame Description Via the RECEIVE_ALL block, the data received from the CP is transmitted from the CP to the CPU by using the declared block size.
  • Page 905: Sfc 238 - Ctrl1 - Control1 Page Frame

    VIPA SPEED7 System Blocks Fetch/Write Communication > SFC 238 - CTRL1 - Control1 page frame 16.1.11 SFC 238 - CTRL1 - Control1 page frame Description This block is identical to the CONTROL block SFC 233 except that the indicator word is of the type Pointer and that it additionally includes the parameter IND, reserved for further extensions.
  • Page 906: Mmc Functions Standard Cpus

    VIPA SPEED7 System Blocks MMC Functions standard CPUs > SFC 220 - MMC_CR_F - create or open MMC file 16.2 MMC Functions standard CPUs 16.2.1 SFC 220 ... 222 - MMC Access Overview By means of these blocks there is the possibility to integrate MMC access to your applica- tion program.
  • Page 907 VIPA SPEED7 System Blocks MMC Functions standard CPUs > SFC 220 - MMC_CR_F - create or open MMC file Since calling the SFC from the OB 1 can result in a cycle time-out, instead of this you should call the SFC from the OB 100.
  • Page 908: Sfc 221 - Mmc_Rd_F - Read From Mmc File

    VIPA SPEED7 System Blocks MMC Functions standard CPUs > SFC 221 - MMC_RD_F - read from MMC file Value Description A002h File name wrong (not 8.3 or empty) A003h File exists but FILESIZE too bigger than existing file. A004h File exists but is fragmented and cannot be opened.
  • Page 909: Sfc 222 - Mmc_Wr_F - Write To Mmc File

    VIPA SPEED7 System Blocks MMC Functions standard CPUs > SFC 222 - MMC_WR_F - write to MMC file Value Description 9002h File length exceeded 9003h Sector limit of 512 has been tried to overrun. Sector overrun reading is not possible.
  • Page 910: File Functions Speed7 Cpus

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 195 and FC/SFC 208...215 - Memory card access 16.3 File Functions SPEED7 CPUs 16.3.1 FC/SFC 195 and FC/SFC 208...215 - Memory card access Overview The FC/SFC 195 and FC/SFC 208 ... FC/SFC 215 allow you to include the memory card access into your user application.
  • Page 911: Fc/Sfc 195 - File_Att - Change File Attributes

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 195 - FILE_ATT - Change file attributes 16.3.2 FC/SFC 195 - FILE_ATT - Change file attributes Description In the root directory of the memory card the file attributes may be changed by FILE_ATT.
  • Page 912: Fc/Sfc 208 - File_Opn - Open File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 208 - FILE_OPN - Open file Code Description A004h File FILENAME is not found A005h FILENAME is a directory A006h File is just open A007h Memory card is write protected...
  • Page 913: Fc/Sfc 209 - File_Cre - Create File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 209 - FILE_CRE - Create file Code Description 8011h Error FILENAME (not conform with 8.3 or special character) 8100h The defined HANDLE is not valid 9001h HANDLE is assigned to another file...
  • Page 914: Fc/Sfc 210 - File_Clo - Close File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 210 - FILE_CLO - Close file Code Description 0000h 7000h REQ = 0, BUSY = 0 (nothing present) 7001h REQ = 1, 1. call 7002h Block is executed 8010h Parameter FILENAME is not present (e.g. DB not loaded) 8011h Error FILENAME (not conform with 8.3 or special character)
  • Page 915: Fc/Sfc 211 - File_Rd - Read File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 211 - FILE_RD - Read file RETVAL (Return value) Codes that are returned by RETVAL: Code Description 0000h 7000h REQ = 0, BUSY = 0 (nothing present) 7001h REQ = 1, 1. call...
  • Page 916: Fc/Sfc 212 - File_Wr - Write File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 212 - FILE_WR - Write file Code Description 0xxxh 0 = OK, 0xxx = Length of read data 7000h REQ = 0, BUSY = 0 (nothing present) 7001h REQ = 1, 1. call...
  • Page 917 VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 212 - FILE_WR - Write file Parameter Declaration Data type Description DATA Pointer to PLC memory and data length RETVAL WORD Return value BUSY BOOL Function is busy The parameter RETVAL returns the length of the written data. The block doesn't announce an error message that the MMC is full.
  • Page 918: Fc/Sfc 213 - File_Sek - Position Pointer

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 213 - FILE_SEK - Position pointer 16.3.8 FC/SFC 213 - FILE_SEK - Position pointer Description FILE_SEK allows you to detect res. alter the position of the write-/read flag of the according HANDLE.
  • Page 919: Fc/Sfc 214 - File_Ren - Rename File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 214 - FILE_REN - Rename file 16.3.9 FC/SFC 214 - FILE_REN - Rename file Description Using FILE_REN you may alter the file name defined in OLDNAME to the file name that you type in NEWNAME.
  • Page 920: Fc/Sfc 215 - File_Del - Delete File

    VIPA SPEED7 System Blocks File Functions SPEED7 CPUs > FC/SFC 215 - FILE_DEL - Delete file Code Description 8021h Error NEWNAME (not conform with 8.3 format or special character) A000h System internal error occurred A001h The defined MEDIA type is not valid...
  • Page 921: System Functions

    VIPA SPEED7 System Blocks System Functions > SFC 75 - SET_ADDR - Set PROFIBUS MAC address RETVAL (Return value) Codes that are returned by RETVAL: Code Description 0000h OK, file has been deleted 7000h REQ = 0, BUSY = 0 (nothing present) 7001h REQ = 1, 1.
  • Page 922: Fc/Sfc 193 - Ai_Oszi - Oscilloscope-/Fifo Function

    VIPA SPEED7 System Blocks System Functions > FC/SFC 193 - AI_OSZI - Oscilloscope-/FIFO function RET_VAL (return value) Value Description 0000h Job has been executed without error 7000h Function request with REQ = 0 (call without processing) BUSY is set to 0, no data transfer is active...
  • Page 923 VIPA SPEED7 System Blocks System Functions > FC/SFC 193 - AI_OSZI - Oscilloscope-/FIFO function Parameters Parameter Declaration Data type Function depending on MODE BOOL Execute function (start/read) LADR WORD Base address of the module MODE WORD Mode (start/read) CHANNEL BYTE...
  • Page 924 VIPA SPEED7 System Blocks System Functions > FC/SFC 193 - AI_OSZI - Oscilloscope-/FIFO function BUSY BUSY = 1 indicates that the function just processed. BUSY = 0 indicates that the function is finished. TIMESTAMP There is an internal clock with a resolution of 1µs running in every SPEED-Bus module.
  • Page 925 VIPA SPEED7 System Blocks System Functions > FC/SFC 193 - AI_OSZI - Oscilloscope-/FIFO function RETVAL Description depending on the BUSY-Bit BUSY Bit 7...4: 0000: Job finished without an error 0111: Job still running 1000: Job finished with error Job finished without an error...
  • Page 926: Fc/Sfc 194 - Dp_Exch - Data Exchange With Cp342S

    VIPA SPEED7 System Blocks System Functions > FC/SFC 194 - DP_EXCH - Data exchange with CP342S 16.4.3 FC/SFC 194 - DP_EXCH - Data exchange with CP342S Description With the FC/SFC 194 you can exchange data between your CPU and a PROFIBUS DP master, which is connected via SPEED-Bus.
  • Page 927: Fc/Sfc 219 - Can_Tlgr - Canopen Communication

    VIPA SPEED7 System Blocks System Functions > FC/SFC 219 - CAN_TLGR - CANopen communication RETVAL Description 8006h The DP master specified by LADR is not configured for access via handling block. Activate in the prop- erties of the DP master "IO-Mode HTB".
  • Page 928 VIPA SPEED7 System Blocks System Functions > FC/SFC 219 - CAN_TLGR - CANopen communication INDEX CANopen Index SUBINDEX CANopen sub index SLOT_MASTER System 200 CPU 21xCAN 1...32: System 200 IM 208CAN 101...115: System 300S 342-1CA70 CANOPENERROR When no error occurs, CANOPENERROR returns 0. In case of an error CANOPE-...
  • Page 929: Fc/Sfc 254 - Rw_Sbus - Ibs Communication

    VIPA SPEED7 System Blocks System Functions > FC/SFC 254 - RW_SBUS - IBS communication Code Description 0800 0021h Data cannot be transferred or stored to the application because of local control. 0800 0022h Data cannot be transferred or stored to the application because of the present device state.
  • Page 930 VIPA SPEED7 System Blocks System Functions > FC/SFC 254 - RW_SBUS - IBS communication Parameters Parameter Declaration Type Description READ/WRITE Byte 0 = Read, 1 = Write LADDR WORD Logical Address INTERBUS master IBS_ADDR WORD Address INTERBUS master DATAPOINTER Pointer to PLC data...
  • Page 931: System Function Blocks

    VIPA SPEED7 System Blocks System Function Blocks > SFB 7 - TIMEMESS - Time measurement 16.5 System Function Blocks 16.5.1 SFB 7 - TIMEMESS - Time measurement In opposite to the SFC 53, the SFB 7 returns the difference between two calls in µs. With RESET = 1 the current timer value is transferred to InstDB.
  • Page 932: Ssl System Status List

    VIPA SPEED7 SSL System status list Overview SSL SSL System status list 17.1 Overview SSL This chapter describes all the partial lists of the system status list, readable via SFC 51 RDSYSST or via Hardware configurator. SSL partial lists, which are only for internal usage, are not described here.The SSL (system status list) describes the current status...
  • Page 933: Overview - Ssl Partial Lists

    VIPA SPEED7 SSL System status list Overview - SSL partial lists 17.2 Overview - SSL partial lists SSL partial lists In the following all the possible SSL partial lists with additional SSL-ID are listed, which are supported by the SPEED7 system.
  • Page 934: Module Identification - Ssl-Id: Xy11H

    VIPA SPEED7 SSL System status list Module Identification - SSL-ID: xy11h 17.3 Module Identification - SSL-ID: xy11h Description With the SSL_ID xy11h you obtain the module identification data of your module. Header Content Value Description SSL_ID 0011h All identification record sets...
  • Page 935 VIPA SPEED7 SSL System status list Module Identification - SSL-ID: xy11h Content Value Description 6C06h* Identification of the basic hardware: CP at 8. SPEED-Bus slot (User slot = 108) 6C07h* Identification of the basic firmware: CP at 8. SPEED-Bus slot (User slot = 108) 6D01h* Identification of the module: CP at 9.
  • Page 936 VIPA SPEED7 SSL System status list Module Identification - SSL-ID: xy11h Record set SSL_ID: xy11h CPU is not configured as Siemens 318-2AJ00 INDEX Length Description offset 1word Number of a identification record set 20byte 0001h and 0006h: Order number (MlfB) of the module; string of 19 characters and one blank (20h) e.g.
  • Page 937: Cpu Characteristics - Ssl-Id: Xy12H

    VIPA SPEED7 SSL System status list CPU characteristics - SSL-ID: xy12h INDEX Length Description offset 1word reserved 1word xx01h and xx06h: Hardware release of the module xx07h: "V" and first digit of the version ID 1word xx01h and xx06h: reserved xx07h: remaining digits of the version ID 17.4...
  • Page 938 VIPA SPEED7 SSL System status list CPU characteristics - SSL-ID: xy12h Identifier Description 0101h 1ms resolution 0102h 10ms resolution 0103h no real time clock 0104h BCD time-of-day format 0105h all time-of-day functions (set time-of-day, set and read time-of-day, time-of-day synchronization: time-of-day slave...
  • Page 939: User Memory Areas - Ssl-Id: Xy13H

    VIPA SPEED7 SSL System status list User memory areas - SSL-ID: xy13h 17.5 User memory areas - SSL-ID: xy13h Description With the partial list with the SSL_ID xy13h you obtain information about the memory areas of the CPU. Header Content...
  • Page 940: System Areas - Ssl-Id: Xy14H

    VIPA SPEED7 SSL System status list System areas - SSL-ID: xy14h INDEX Length Description offset 2words Size of the RAM in byte 2words Size of the RAM being used 2words Largest free block in the RAM "0": no information available or cannot be determined.
  • Page 941 VIPA SPEED7 SSL System status list System areas - SSL-ID: xy14h Record set SSL_ID: xy14h INDEX Length Description offset 1word INDEX of the system area 0001h: PII (quantity in byte) 0002h: PIQ (quantity in byte) 0003h: Memory (number in bits) –...
  • Page 942: Block Types - Ssl-Id: Xy15H

    VIPA SPEED7 SSL System status list Block types - SSL-ID: xy15h 17.7 Block types - SSL-ID: xy15h Description You obtain the block types (OBs, DBs, SDBs, FCs and FBs) that exists on the CPU. Header Content Value Description SSL_ID 0015h...
  • Page 943 VIPA SPEED7 SSL System status list Block types - SSL-ID: xy15h Record set SSL_ID: 0815h INDEX Length Description offset 1word Block type number (VIPA specific) 8800h: VOB 8A00h: VDB 8B00h: VSDB 8C00h: VFC 8E00h: VFB 1word Maximum number of blocks of the type: at OBs: –...
  • Page 944: Status Of All Leds - Ssl-Id: Xy19H

    VIPA SPEED7 SSL System status list Status of all LEDs - SSL-ID: xy19h 17.8 Status of all LEDs - SSL-ID: xy19h Description You obtain information about the status of all LEDs from your CPU. Header Content Value Description SSL_ID 0019h...
  • Page 945 VIPA SPEED7 SSL System status list Status of all LEDs - SSL-ID: xy19h INDEX Length 0019h 0119h 0E19h Value Description LED offset 0015h MT LED SLIO CPU: CP: MT LED MICRO CPU: - 0025h MT2 LED 300S CPU: - SLIO CPU: PROFINET via Ethernet PG/OP channel:...
  • Page 946 VIPA SPEED7 SSL System status list Status of all LEDs - SSL-ID: xy19h INDEX Length 0019h 0119h 0E19h Value Description LED offset 2000h 300S CPU: DPM: RUN LED SLIO CPU: 0 (fix) MICRO CPU: - (VIPA specific) 2001h 300S CPU: PROFIBUS: ERR LED...
  • Page 947 VIPA SPEED7 SSL System status list Status of all LEDs - SSL-ID: xy19h INDEX Length 0019h 0119h 0E19h Value Description LED offset 6805h* STOP from CP on 4. SPEED-Bus slot (User slot = 104) 6901h* SF (Group error) from CP on 5. SPEED-Bus slot...
  • Page 948 VIPA SPEED7 SSL System status list Status of all LEDs - SSL-ID: xy19h INDEX Length 0019h 0119h 0E19h Value Description LED offset 6E05h* STOP from CP on 10. SPEED-Bus slot (User slot = 110) CE01h* SF (Group error) from CP to CPU...
  • Page 949: Identification Of The Component - Ssl-Id: Xy1Ch

    VIPA SPEED7 SSL System status list Identification of the component - SSL-ID: xy1Ch 17.9 Identification of the component - SSL-ID: xy1Ch Description If you read the partial list you can identify the CPU or the automation system. Header Content Value...
  • Page 950 VIPA SPEED7 SSL System status list Identification of the component - SSL-ID: xy1Ch SSL_ID: xy1Ch INDEX: 0002h INDEX Length Description offset 1word INDEX SSL_ID: 011C: Identifier of the component: 0002h 12words Name of the module (max. 24 characters)* 4words reserved *) If names and designations are shorter than the corresponding max.
  • Page 951 VIPA SPEED7 SSL System status list Identification of the component - SSL-ID: xy1Ch INDEX Length Description offset CID without CardType: – at MMC card: "MMC " + serial number – at SD card: "SD " + serial number (Product serial number from CID) –...
  • Page 952: Interrupt Status - Ssl-Id: Xy22H

    VIPA SPEED7 SSL System status list Interrupt status - SSL-ID: xy22h SSL_ID: xy1Ch INDEX: 00FFh INDEX Length Description offset Serial number of the memory card (only at SSL_ID x11Ch) 2words Manufacturer ID 2words Application ID 4words Product Name 2words Product Revision...
  • Page 953 VIPA SPEED7 SSL System status list Interrupt status - SSL-ID: xy22h Content Value Description 0037h OB 55 (Status Interrupt) 0038h OB 56 (Update Interrupt) 0039h OB 57 (Manufacturer Specific Interrupt) 003Dh OB 61 (Clock synchronous error) 0050h OB 80 (Asynchronous error)
  • Page 954 VIPA SPEED7 SSL System status list Interrupt status - SSL-ID: xy22h Record set SSL_ID: xy22h INDEX Length Description offset 10words Start info for the given OB, with following exceptions: OB 1 provides the current minimum (in bytes 8 and 9) and maximum cycle time (in bytes 10 and 11) (time base: ms, byte count begins at 0).
  • Page 955 VIPA SPEED7 SSL System status list Interrupt status - SSL-ID: xy22h INDEX Length Description offset 1word Reaction with not loaded/locked OB Bit 0: 1: Lock interrupt source Bit 1: 1: Generate interrupt event error Bit 2: 1: CPU goes into STOP mode Bit 3: 1: Interrupt only discarded Bit 15 ...
  • Page 956 VIPA SPEED7 SSL System status list Interrupt status - SSL-ID: xy22h Additional status information OB 61 INDEX Length Description offset 2 Bytes Processing identifiers Bit 0: Interrupt event is caused by parameters: – 0: enabled – 1: disabled Bit 1: Interrupt event as per SFC 39 DIS_IRT: –...
  • Page 957: Communication Status Data - Ssl-Id: Xy32H

    VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h 17.11 Communication status data - SSL-ID: xy32h Description If you read this partial list you obtain the status data of the CPU communication section. Header Content Value Description...
  • Page 958 VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h INDEX Length Description offset 1word Number of occupied other connections 1word Dialog mode switching (communication dialog) via Siemens SIMATIC Manager: 0000h: communication dialog – Siemens CPU 318 –...
  • Page 959 VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h INDEX Length Description offset 1word Position of the mode CRST/WRST: 0: undefined or can not be determined 1: CRST (Cold Restart) 2: WRST (Warm Restart) 1word reserved 1word...
  • Page 960 VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h INDEX Length Description offset 1word Run-time meter 0: time in hours 1word Run-time meter 1: time in hours 1word Run-time meter 2: time in hours 1word Run-time meter 3: time in hours...
  • Page 961 VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h Description Default value 4, 3 Time resolution 00: 0.001s 01: 0.01s 10: 0.1s 11: 1s Parameter is not used. Summer/winter time indicator The parameter indicates whether the local time calculated using the correction value is summer or winter time.
  • Page 962 VIPA SPEED7 SSL System status list Communication status data - SSL-ID: xy32h Record set SSL_ID: 0132h INDEX: 000Ah The partial list extract contains information about the status data of the K bus. INDEX Length Description offset 1word 000Ah: K bus status data...
  • Page 963: Ethernet Details Of The Module - Ssl-Id Xy37H

    VIPA SPEED7 SSL System status list Ethernet details of the module - SSL-ID xy37h 17.12 Ethernet details of the module - SSL-ID xy37h Description With this partial list you get information about the configuration of the TCP/IP stack, the vendor specified MAC address and the connection properties on layer 2 - security layer (data link layer) of the CP interface.
  • Page 964 VIPA SPEED7 SSL System status list Ethernet details of the module - SSL-ID xy37h Record set SSL_ID: xy37h INDEX Name Length Description offset logaddr 2byte Logical base address of the interface ip_addr 4byte IP address The IP address is stored in the following format (at the example a.b.c.d):...
  • Page 965 VIPA SPEED7 SSL System status list Ethernet details of the module - SSL-ID xy37h INDEX Name Length Description offset phys_mode1 1byte State of port 1: Bit 0: Duplex mode (only relevant if AUI-Mode = 0): – 1: phys. Layer works full duplex –...
  • Page 966: Tcon Connection - Ssl-Id: Xy3Ah

    VIPA SPEED7 SSL System status list TCON Connection - SSL-ID: xy3Ah 17.13 TCON Connection - SSL-ID: xy3Ah Description If you read this partial list, you obtain information of the TCON connection from qualified CPUs. The "Open Communication via Industrial Ethernet" in the Siemens SIMATIC Manager dialog is visible only when the SSL 003Ah and 0F3Ah exist and are available.
  • Page 967 VIPA SPEED7 SSL System status list TCON Connection - SSL-ID: xy3Ah INDEX Length Description offset 1byte rem_tsap_id_len 1byte next_staddr_len 16byte local_tsap_id (include TSAP or Port number) 6byte rem_subnet_id for routing 6byte rem_staddr (remote IP address) 16byte rem_tsap_id (include TSAP or Port number)
  • Page 968 VIPA SPEED7 SSL System status list TCON Connection - SSL-ID: xy3Ah INDEX Length Description offset 1word Error message of the last connection attempt: – 0000h: no error – 0001h: local network error – 0002h: participant not available – 0003h: local abort –...
  • Page 969: Webvisu Diagnostic Information - Ssl-Id: Xy3Eh

    VIPA SPEED7 SSL System status list WebVisu diagnostic information - SSL-ID: xy3Eh 17.14 WebVisu diagnostic information - SSL-ID: xy3Eh Description This partial list contains information about the diagnostic information of the WebVisu. Header Content Value Description SSL_ID 003Eh Record sets of all the WebVisu...
  • Page 970 VIPA SPEED7 SSL System status list WebVisu diagnostic information - SSL-ID: xy3Eh Status codes of the Status information WebVisu – Here you get information about the states of the WebVisu, which are not error or start-up obstacles and do not require any action.
  • Page 971 VIPA SPEED7 SSL System status list WebVisu diagnostic information - SSL-ID: xy3Eh Feature code Description 1: HTTP enabled 1: HTTPS enabled 1: Password protection activated 3 ... 31 reserved HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 972: Status Of The Leds - Ssl-Id: Xy74H

    VIPA SPEED7 SSL System status list Status of the LEDs - SSL-ID: xy74h 17.15 Status of the LEDs - SSL-ID: xy74h Description This partial list contains information about the LEDs of the CPU. Header Content Value Description SSL_ID 0074h State of all LEDs without VIPA specific...
  • Page 973 VIPA SPEED7 SSL System status list Status of the LEDs - SSL-ID: xy74h INDEX Length 0074h 0174h 0E74h Value Description LED offset 0013h BF3: BUSF3 (Bus error interface 3) 300S CPU: - SLIO CPU: PROFINET via Ethernet PG/OP channel: virtual BF LED...
  • Page 974 VIPA SPEED7 SSL System status list Status of the LEDs - SSL-ID: xy74h INDEX Length 0074h 0174h 0E74h Value Description LED offset 1003h MICRO: Status bar ( right green) (VIPA specific) 1004h MICRO: Status bar ( left red) (VIPA specific)
  • Page 975 VIPA SPEED7 SSL System status list Status of the LEDs - SSL-ID: xy74h INDEX Length 0074h 0174h 0E74h Value Description LED offset 6705h* STOP from CP on 3. SPEED-Bus slot (User slot = 103) 6801h* SF (Group error) from CP on 4. SPEED-Bus slot...
  • Page 976 VIPA SPEED7 SSL System status list Status of the LEDs - SSL-ID: xy74h INDEX Length 0074h 0174h 0E74h Value Description LED offset 6D05h* STOP from CP on 9. SPEED-Bus slot (User slot = 109) 6E01h* SF (Group error) from CP on 10. SPEED-Bus slot...
  • Page 977: Status Information Cpu - Ssl-Id: Xy91H

    VIPA SPEED7 SSL System status list Status information CPU - SSL-ID: xy91h 17.16 Status information CPU - SSL-ID: xy91h Description If you read the partial list, you obtain the status information of modules assigned to the CPU. In this manual are only the available partial lists for the EtherCAT-CPUs described.
  • Page 978 VIPA SPEED7 SSL System status list Status information CPU - SSL-ID: xy91h Additional Record sets In the case of SSL_ID 0091h and 0F91h two additional record sets are supplied per rack: A record for the power supply if it exists...
  • Page 979 VIPA SPEED7 SSL System status list Status information CPU - SSL-ID: xy91h INDEX Name Length Description offset ET area (PROFIBUS / PROFINET / EtherCAT-decentralized) P area Q area IM3 area IM4 area Consistent area (PROFIBUS slave) Bit 7 ... 15: reserved...
  • Page 980: Stations Status Information (Dpm) - Ssl-Id: Xy92H

    VIPA SPEED7 SSL System status list Stations status information (DPM) - SSL-ID: xy92h adr2 At a centralized respectively decentralized structure with PROFIBUS DP – Slot number and submodule slot number for a decentralized configuration with PROFINET-IO or EtherCAT – Slot number...
  • Page 981 VIPA SPEED7 SSL System status list Stations status information (DPM) - SSL-ID: xy92h INDEX Name Length Description Offset 0292h: Rack/station failure, deactivated or not configured Rack/station exists, is activated and has not failed 0692h: All modules of the expansion rack / of a station exist, are available with no problems and activated.
  • Page 982: Stations Status Information (Dpm, Profinet-Io, Ethercat) - Ssl-Id Xy94H

    VIPA SPEED7 SSL System status list Stations status information (DPM, PROFINET-IO, EtherCAT) - SSL-ID: xy94h 17.18 Stations status information (DPM, PROFINET-IO, EtherCAT) - SSL-ID: xy94h Description If you read this partial list, you obtain information about the expected and the current hardware configuration of centrally installed stations of a DP master system / PROFINET IO controller system or EtherCAT master system.
  • Page 983 VIPA SPEED7 SSL System status list Stations status information (DPM, PROFINET-IO, EtherCAT) - SSL-ID: xy94h Content Value Description LENTHDR 0102h One record set is 129words long (258bytes). N_DR xxxxh Number of record sets Record set SSL_ID: xy94h INDEX Content Length...
  • Page 984: Status Information Profinet/Ethercat/Pb Dp - Ssl-Id: Xy96H

    VIPA SPEED7 SSL System status list Status information PROFINET/EtherCAT/PB DP - SSL-ID: xy96h Local SLIO bus with EtherCAT CPU With an EtherCAT CPU, please note that addressing in the virtual PROFINET system requires no duplicate station addresses. Otherwise this results in a double assignment of the corresponding bit in the SSL_ID xy94h.
  • Page 985 VIPA SPEED7 SSL System status list Status information PROFINET/EtherCAT/PB DP - SSL-ID: xy96h INDEX Length Description offset 1word Not relevant 7words Set point type: With PROFINET-IO the structure of the set point type is hierarchical PROFINET-IO / EtherCAT-IO PROFIBUS DP 1.
  • Page 986: Diagnostic Buffer Of The Cpu/Cp - Ssl-Id: Xya0H

    VIPA SPEED7 SSL System status list Diagnostic buffer of the CPU/CP - SSL-ID: xyA0h INDEX Length Description offset 1word Area ID/module width Bit 0 ... 2: Module width Bit 3: reserved Bit 4 ... 6: Area ID – 0: Siemens S7-400 –...
  • Page 987 VIPA SPEED7 SSL System status list Diagnostic buffer of the CPU/CP - SSL-ID: xyA0h Record set SSL_ID: 00A0h and 01A0h INDEX Length Description offset 1word Event ID 1byte Depending on the diagnostic buffer entry 1byte Depending on the diagnostic buffer entry...
  • Page 988: Module Diagnostic Information - Ssl-Id: 00B1H

    VIPA SPEED7 SSL System status list Module diagnostic information - SSL-ID: 00B1h 17.21 Module diagnostic information - SSL-ID: 00B1h Description If you read this partial list, you obtain the first 4 diagnostic bytes of a module with diag- nostic capability.
  • Page 989 VIPA SPEED7 SSL System status list Module diagnostic information - SSL-ID: 00B1h INDEX Length Description offset 1byte Bit 0: User module incorrect / does not exist Bit 1: Communication fault Bit 2: Mode – 0: RUN – 1: STOP Bit 3: Watchdog responded...
  • Page 990: Module Diagnostic Information Via Physical Address - Ssl-Id: 00B2H

    VIPA SPEED7 SSL System status list Module diagnostic information via physical address - SSL-ID: 00B2h 17.22 Module diagnostic information via physical address - SSL-ID: 00B2h Description If you read this partial list, you obtain the diagnostic record set 1 of a module in a central rack (not for PROFIBUS DP or submodules).
  • Page 991: Module Diagnostic Information Via Logical Address - Ssl-Id: 00B3H

    VIPA SPEED7 SSL System status list Module diagnostic information via logical address - SSL-ID: 00B3h 17.23 Module diagnostic information via logical address - SSL-ID: 00B3h Description If you read this partial list, you obtain all the diagnostic data of a module. You can also obtain this information for PROFIBUS DP and submodules.
  • Page 992: Diagnostic Data Of A Dp Slave - Ssl-Id: 00B4H

    VIPA SPEED7 SSL System status list Diagnostic data of a DP slave - SSL-ID: 00B4h 17.24 Diagnostic data of a DP slave - SSL-ID: 00B4h Description If you read this partial list, you obtain the diagnostic data of a PROFIBUS DP slave. This diagnostic data is structured in compliance with EN 50 170 Volume 2, PROFIBUS.
  • Page 993: Information Ethercat Master/Slave - Ssl-Id: Xye0H

    VIPA SPEED7 SSL System status list Information EtherCAT master/slave - SSL-ID: xyE0h 17.25 Information EtherCAT master/slave - SSL-ID: xyE0h Description This SSL partial list is a VIPA specific SSL to request EtherCAT states of master/slave via logical and geographical addresses.
  • Page 994 VIPA SPEED7 SSL System status list Information EtherCAT master/slave - SSL-ID: xyE0h INDEX Länge Value Description offset NotProjected (für nicht projektierte EtherCAT Peripherie) HB00 | OPL_SP7 | Operation list | en | 18-30...
  • Page 995: Ethercat Bus System - Ssl-Id: Xye1H

    VIPA SPEED7 SSL System status list EtherCAT bus system - SSL-ID: xyE1h 17.26 EtherCAT bus system - SSL-ID: xyE1h Description This SSL partial list is a VIPA specific SSL to request information from the EtherCAT bus system. Header Content Value...
  • Page 996: Statistics Information To Obs - Ssl-Id: Xyfah

    VIPA SPEED7 SSL System status list Statistics information to OBs - SSL-ID: xyFAh 17.27 Statistics information to OBs - SSL-ID: xyFAh Description This partial list contains statistical information about the OBs (additionally OB 60 and OB 61). Header Content Value...
  • Page 997 VIPA SPEED7 SSL System status list Statistics information to OBs - SSL-ID: xyFAh Record set SSL-ID: 01FAh The data set includes the response time. This is the time between the request and the start of execution. This time also includes a process input image.
  • Page 998 VIPA SPEED7 SSL System status list Statistics information to OBs - SSL-ID: xyFAh Record set SSL-ID: 03FAh The data set contains the execution time of the OBs. This is the time between the start of the OBs until leaving the OB including all alarm interrupts and SFC operations. The time from a higher priority OB is executed by a synchronous or asynchronous error is counted with.
  • Page 999 VIPA SPEED7 SSL System status list Statistics information to OBs - SSL-ID: xyFAh µ s – The times must be specified in – The measurement of time starts with the first transition from Startup to RUN. Record set SSL-ID: 05FAh The data set contains the determined times for one execution cycle.
  • Page 1000: Vsc Features - Ssl-Id: Xyfch

    VIPA SPEED7 SSL System status list VSC features - SSL-ID: xyFCh 17.28 VSC features - SSL-ID: xyFCh Description Via this partial list you get the current status of the VSC features of the System SLIO CPU. There are features at the VIPA memory card to unlock e.g. additional memory or PROFIBUS functionality.

Table of Contents