Manual VIPA System 300S SPEED7 Contents Contents About this manual ..................1 Safety information ..................2 Chapter 1 Basics ................1-1 Safety Information for Users..............1-2 Operating structure of a CPU ............... 1-3 CPU 314-2AG13 .................. 1-6 Chapter 2 Assembly and installation guidelines......2-1 Installation dimensions .................
Page 4
TIA Portal - Hardware configuration - I/O modules ....... 8-5 TIA Portal - Hardware configuration - Ethernet PG/OP channel ... 8-6 TIA Portal - Setting VIPA specific CPU parameters......8-9 TIA Portal - Include VIPA library............8-12 TIA Portal - Project transfer..............8-13...
Deployment CPU 314-2AG13 This chapter describes the deployment of a CPU 314-2AG13 with SPEED7 technology in the System 300S. The description refers directly to the CPU and to the deployment in connection with peripheral modules, mounted on a profile rail together with the CPU at the standard bus.
Page 6
Chapter 8: Configuration with TIA Portal In this chapter the project engineering of the VIPA CPU in the Siemens TIA Portal is shown. The chapter only describes the basic usage of the Siemens TIA Portal together with a VIPA CPU.
Page 7
Manual VIPA System 300S SPEED7 About this manual This manual describes the System 300S SPEED7 CPU 314-2AG13 from Objective and VIPA. It contains a description of the construction, project implementation contents and usage. This manual is part of the documentation package with order number...
Safety information Safety information The SPEED7 CPU is constructed and produced for: Applications conforming with • all VIPA System 300S components specifications • communication and process control • general control and automation applications • industrial applications • operation within the environmental conditions specified in the technical data •...
Chapter 1 Basics This Basics contain hints for the usage and information about the project Overview engineering of a SPEED7 system from VIPA. General information about the System 300S like dimensions and environment conditions will also be found. Content Topic Page Chapter 1 Basics ................
Manual VIPA System 300S SPEED7 Chapter 1 Basics Safety Information for Users VIPA modules make use of highly integrated components in MOS- Handling of Technology. These components are extremely sensitive to over-voltages electrostatic that can occur during electrostatic discharges. sensitive modules The following symbol is attached to modules that can be destroyed by electrostatic discharges.
Manual VIPA System 300S SPEED7 Chapter 1 Basics Operating structure of a CPU The CPU contains a standard processor with internal program memory. In General combination with the integrated SPEED7 technology the unit provides a powerful solution for process automation applications within the System 300S family.
Page 12
Manual VIPA System 300S SPEED7 Chapter 1 Basics The program that is present in every CPU is divided as follows: Applications • System routine • User application The system routine organizes all those functions and procedures of the System routine CPU that are not related to a specific control application.
Page 13
Manual VIPA System 300S SPEED7 Chapter 1 Basics The bit memory is an area of memory that is accessible by means of Bit Memory certain operations. Bit memory is intended to store frequently used working data. You may access the following types of data: •...
Due to the SPEED7 chipset the CPU behaves like a CPU 318. Here the instruction set of the S7-400 from Siemens is used. Modules and CPUs of the System 300S from VIPA and Siemens may be used at the bus as a mixed configuration.
Page 15
Manual VIPA System 300S SPEED7 Chapter 1 Basics The CPU has an integrated memory. Information about the capacity Memory (min. capacity ... max capacity) of the memory may be found at the front of management the CPU. The memory is divided into the following 3 parts: •...
Page 16
Manual VIPA System 300S SPEED7 Chapter 1 Basics HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Chapter 2 Assembly and installation guidelines In this chapter you will find every information, required for the installation Overview and the cabling of a process control with the components of a CPU 314- 2AG13 in the System 300S.
Measures in mm 32.5 57.2 For the communication between the modules the System 300S uses a Bus connector backplane bus connector. Backplane bus connectors are included in the delivering of the peripheral modules and are clipped at the module from the backside before installing it to the profile rail.
Page 20
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Assembly possibilities horizontal assembly vertical assembly Please regard the allowed environment temperatures: • horizontal assembly: from 0 to 60°C SLOT2 SLOT1 DCDC • vertical assembly: from 0 to 40°C •...
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Cabling Danger! • The power supplies must be released before installation and repair tasks, i.e. before handling with the power supply or with the cabling you must disconnect current/voltage (pull plug, at fixed connection switch off the concerning fuse)! •...
The installation guidelines contain information about the interference free General deployment of System 300S systems. There is the description of the ways, interference may occur in your control, how you can make sure the electromagnetic digestibility (EMC), and how you manage the isolation.
Page 23
- Please take care for the targeted employment of the grounding actions. The grounding of the PLC is a protection and functionality activity. - Connect installation parts and cabinets with the System 300S in star topology with the isolation/protected earth conductor system. So you avoid ground loops.
Page 24
• Lay the isolation on an isolation rail directly after the entry of the cable in the cabinet. Lead the isolation further on to the System 300S module and don't lay it on there again!
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Chapter 3 Hardware description Here the hardware components of the CPU 314-2AG13 are described. Overview The technical data are at the end of the chapter. Content Topic Page Chapter 3 Hardware description ............. 3-1 Properties.....................
• 8192 flag byte CPU 314SB STOP MRES VIPA 314-2AG13 Ordering data Type Order number Description 314SB/DPM VIPA 314-2AG13 MPI interface, card slot, real time clock, Ethernet interface for PG/OP, PROFIBUS DP master HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Structure CPU 314SB/DPM 314-2AG13 LEDs of the integrated CPU314 SB PROFIBUS DP master Storage media slot (lockable) LEDs of the CPU part Operating mode switch CPU The following components are under the front flap...
Page 28
Modbus-Master (ASCII, RTU) . The activation of the PtP functionality happens by embedding the SPEEDBUS.GSD from VIPA in the hardware catalog. After the installation the CPU may be configured in a PROFIBUS master system and here the interface may be switched to PtP communication.
Page 29
The MCC can additionally be used as an external storage medium. Both VIPA storage media are pre-formatted with the PC format FAT16 and can be accessed via a card reader. An access to the storage media always happens after an overall reset and PowerON.
Page 30
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description A rechargeable battery is installed on every CPU 31xS to safeguard the Battery backup for contents of the RAM when power is removed. This battery is also used to clock and RAM buffer the internal clock.
Page 31
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description The CPU has got LEDs on its front side. In the following the usage and the LEDs according colors of the LEDs is described. As soon as the CPU is supplied with 5V, the green PW-LED (Power) is on.
Page 32
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Dependent on the mode of operation the LEDs show information about the LEDs state of operation of the PROFIBUS part according to the following pattern: PROFIBUS/PtP interface X3 Master operation Meaning...
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Technical Data Order number 314-2AG13 Type CPU 314SB/DPM SPEED-Bus Technical data power supply Power supply (rated value) DC 24 V Power supply (permitted range) DC 20.4...28.8 V Reverse polarity protection Current consumption (no-load operation)
Page 34
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Order number 314-2AG13 Time Real-time clock buffered Clock buffered period (min.) Accuracy (max. deviation per day) 10 s Number of operating hours counter Clock synchronization Synchronization via MPI Master/Slave Synchronization via Ethernet (NTP)
Page 35
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Order number 314-2AG13 DP slave Point-to-point interface Functionality MPI Number of connections, max. PG/OP channel Routing Global data communication S7 basic communication S7 communication S7 communication as server S7 communication as client Transmission speed, min.
Page 36
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Order number 314-2AG13 Connector Sub-D, 9-pin, female Transmission speed, min. 150 bit/s Transmission speed, max. 115.5 kbit/s Cable length, max. 500 m Point-to-point protocol ASCII protocol STX/ETX protocol 3964(R) protocol RK512 protocol...
This chapter describes the deployment of a CPU 314-2AG13 with SPEED7 Overview technology in the System 300S. The description refers directly to the CPU and to the deployment in connection with peripheral modules, mounted on a profile rail together with the CPU at the standard bus.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Assembly Note! Information about assembly and cabling may be found at chapter "Assembly and installation guidelines". Start-up behavior After the power supply has been switched on, the CPU changes to the Turn on power operating mode the operating mode lever shows.
IM 361 from Siemens at slot 3. Considering the max total current with the CPU 314-2AG13 from VIPA up to 32 modules may be arranged in a row. Here the installation of the line connections IM 360/361 from Siemens is not required.
Page 40
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 If you do not like to use a hardware configuration, an automatic addressing Automatic comes into force. addressing At the automatic address allocation DIOs occupy depending on the slot location always 4byte and AIOs, FMs, CPs always 16byte at the bus.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Hardware configuration - CPU The hardware configuration of the VIPA CPU takes place at the Siemens Requirements hardware configurator. The hardware configurator is a part of the Siemens SIMATIC Manager. It serves the project engineering.
IM 361 from Siemens at slot 3. Considering the max total current with the VIPA SPEED7 CPUs up to 32 modules may be arranged in a row. Here the installation of the line connections IM 360/361 from Siemens is not required.
For online access to the CPU via Ethernet PG/OP channel valid IP address parameters have to be assigned to this by means of the Siemens SIMATIC manager. This is called "initialization". • Install your System 300S with your CPU. Assembly and commissioning •...
Page 44
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Assign IP address You get valid IP address parameters from your system administrator. The parameters assignment of the IP address data happens online in the Siemens SIMATIC manager starting with version V 5.3 & SP3 with the following proceeding: •...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Setting standard CPU parameters Since the CPU from VIPA is to be configured as Siemens CPU 317-2 (CPU Parameterization 317-2AJ10 V2.6) in the Siemens hardware configurator, the standard via Siemens parameters of the VIPA CPU may be set with "Object properties"...
Page 46
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Startup Startup when If the checkbox for "Startup when expected/actual configuration differ" is expected/actual deselected and at least one module is not located at its configured slot or if configuration differs another type of module is inserted there instead, then the CPU does not switch to RUN mode and remains in STOP mode.
Page 47
The VIPA CPU is preset such that OB 85 is not called if an I/O access error occurs and no entry is made in the diagnostic buffer either.
Page 48
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Time-of-day interrupts Priority Here the priorities may be specified according to which the time-of-day interrupt is processed. With priority "0" the corresponding OB is deactivated. Active Activate the check box of the time-of-day interrupt OBs if these are to be automatically started on complete restart.
Page 49
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Diagnostics/Clock Report cause of Activate this parameter, if the CPU should report the cause of STOP to PG STOP respectively OP on transition to STOP. Number of Here the number of diagnostics are displayed, which may be stored in the messages in the diagnostics buffer (circular buffer).
Page 50
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 The properties dialog of the PROFIBUS part is opened via a double click to Parameter for DP the sub module DP. General Short description Here the short description "DP" for PROFIBUS DP is specified.
Page 51
At Name "MPI/DP" for the MPI interface is shown. If you change the name, the new name appears in the Siemens SIMATIC manager. Type Please regard only the type "MPI" is supported by the VIPA CPU. Interface Here the MPI address is shown.
VIPA_System_300S SPEEDBUS.GSD. The SPEED7 CPUs and modules of the System 300S from VIPA may now be found in the hardware catalog at PROFIBUS-DP / Additional field devices / I/O / VIPA_SPEEDBUS. 4-16 HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Page 53
PROFIBUS DP / Additional field devices / I/O / VIPA / VIPA_SPEEDBUS. • For the slave system set the PROFIBUS address 100. • Configure at slot 0 the VIPA CPU 314-2AG13 of the hardware catalog from VIPA_SPEEDbus. always as last module •...
Page 54
Due to the asynchronism of CPU and DP master the whole system gets relatively high response times. The synchronization behavior between every VIPA PROFIBUS DP master and the CPU may be configured by means of a hardware configuration as shown above.
Page 55
VIPA PROFIBUS DP master system. SyncIn Here the CPU cycle depends on the VIPA DP master with the longest cycle time. If the CPU gets into RUN it is synchronized with each PROFIBUS DP master.
Page 56
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 By presetting the PROFIBUS bus parameters within the hardware Token Watch configuration a token time for the PROFIBUS results. The token time defines the duration until the token reaches the DP master again.
PROFIBUS net. This means the same rules are valid and you use the same components for the build-up. The single participants are connected with each other via bus interface plugs and PROFIBUS cables. Per default the MPI net runs with 187.5kbaud. VIPA CPUs are delivered with MPI address 2. MPI programming The MPI programming cables are available at VIPA in different variants.
Page 58
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 • Connect your PC to the MPI jack of your CPU via a MPI programming Approach transfer via MPI interface cable. • Load your project in the SIMATIC Manager from Siemens.
Page 59
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 For transfer via Ethernet the CPU has the following interface: Transfer via • X4: Ethernet PG/OP channel Ethernet So that you may access the Ethernet PG/OP channel you have to assign IP Initialization address parameters by means of the "initialization"(see "hardware...
Page 60
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 The MMC (Memory Card) serves as external transfer and storage medium. Transfer via There may be stored several projects and sub-directories on a MMC storage module. Please regard that your current project is stored in the root directory and has one of the following file names: •...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Access to the internal Web page The Ethernet PG/OP channel provides a web page that you may access via Access to the an Internet browser by its IP address. The web page contains information web page about firmware versions, current cycle times etc.
Page 62
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 ... continue Standard Bus Modules at the standard bus Information for the support BaudRate Read Mode1, BaudRate Write Mode1 IM interface if exists Line 1: ModuleType 94F9:IM36x Rack no. / Slot no.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Operating modes The CPU can be in one of 4 operating modes: Overview • Operating mode STOP • Operating mode START-UP • Operating mode RUN • Operating mode HOLD Certain conditions in the operating modes START-UP and RUN require a specific reaction from the system program.
Page 64
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 The CPU offers up to 3 breakpoints to be defined for program diagnosis. Operating mode Setting and deletion of breakpoints happens in your programming HOLD environment. As soon as a breakpoint is reached, you may process your program step by step.
Page 65
(parameterizable min. 1ms) that security stop res. execute a RESET at the CPU in case of an error and set it into a defined STOP state. The VIPA CPUs are developed function secure and have the following system properties: Event concerns Effect RUN →...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Overall reset During the overall reset the entire user memory (RAM) is erased. Data Overview located in the memory card is not affected. You have 2 options to initiate an overall reset: •...
Page 67
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 If there is a project S7PROG.WLD on the MMC, the CPU attempts to Automatic reload reload this project from MMC → the MCC LED is on. When the reload has been completed the LED expires. The operating mode of the CPU will be STOP or RUN, depending on the position of the function selector.
CPU, for example if the voltage supply is interrupted during transfer or if the firmware file is defective. In this case, please call the VIPA-Hotline! Please regard that the version of the update firmware has to be different from the existing firmware otherwise no update is executed.
Page 69
MMC • Click on Service > Download > Firmware. • Navigate via System 300S > CPU to your CPU and download the zip file to your PC. • Extract the zip file and copy the extracted pkg files to your Attention! With a firmware update an overall reset is automatically executed.
Page 70
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 1. Switch the operating mode switch of your CPU in position STOP. Transfer firmware Turn off the voltage supply. Plug the MMC with the firmware files from MMC into into the CPU. Please take care of the correct plug-in direction of the MMC.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Factory reset With the following proceeding the internal RAM of the CPU is completely Proceeding deleted and the CPU is reset to delivery state. Please note that here also the IP address of the Ethernet PG/OP channel is set to 0.0.0.0 and the MPI...
Overview As external storage medium for applications and firmware you may use a multimedia card (MMC) or a VIPA MCC memory extension card. The MCC can additionally be used as an external storage medium. It has the PC compatible FAT16 file format.
There is the possibility to extend the work memory of the CPU. Overview For this, a MCC memory extension card is available from VIPA. The MCC is a specially prepared MMC (Multimedia Card). By plugging the MCC into the MCC slot and then an overall reset the according memory expansion is released.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Extended know-how protection Besides the "standard" Know-how protection the SPEED7-CPUs from VIPA Overview provide an "extended" know-how protection that serves a secure block protection for accesses of 3. persons. Standard protection The standard protection from Siemens transfers also protected blocks to the PG but their content is not displayed.
Page 75
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Transfer the file protect.wld to a MMC storage module, plug the MMC into Transfer the CPU and execute an overall reset with the following approach: protect.wld to CPU with overall reset 3 Sec.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 MMC-Cmd - Auto commands A command file at a MMC is automatically executed under the following Overview conditions: • CPU is in STOP and MMC is stuck • After each PowerON...
Page 77
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 The structure of a command file is shown in the following. The Examples corresponding diagnostics entry is put in parenthesizes. Example 1 Marks the start of the command sequence (0xE801) CMD_START Execute an overall reset and load "proj.wld"...
You may read the diagnostic buffer of the CPU via the Siemens SIMATIC Entries in the Manager. Besides of the standard entries in the diagnostic buffer, the VIPA diagnostic buffer CPUs support some additional specific entries in form of event-IDs.
Page 79
Zinfo2: Slot 0xE004 Multiple parameterization of a I/O address Zinfo1: I/O address Zinfo2: Slot 0xE005 Internal error - Please contact the VIPA-Hotline! 0xE006 Internal error - Please contact the VIPA-Hotline! 0xE007 Configured in-/output bytes do not fit into I/O area 0xE008...
Page 80
0xE8FF MMC-Cmd: Error: Error while reading CMD file (MMC error) 0xE901 Check sum error 0xEA00 Internal error - Please contact the VIPA-Hotline! 0xEA01 Internal error - Please contact the VIPA-Hotline! 0xEA02 SBUS: Internal error (internal plugged sub module not recognized)
Page 81
SBUS: Multiple parameterization of a I/O address (Diagnostic address) Zinfo1: I/O address Zinfo2: Slot Zinfo3: Data width 0xEA15 Internal error - Please contact the VIPA-Hotline! 0xEA18 SBUS: Error at mapping of the master I/O devices Zinfo2: Master slot 0xEA19 Internal error - Please contact the VIPA-Hotline!
Page 82
Pk : CPU or PROFINET-IO-Controller Zinfo1: Service ID, with which the error arose Zinfo2: Command, with which the error arose 0xEA66 Internal error - Please contact the VIPA-Hotline! 0xEA67 Error - PROFINET-IO-Controller - reading record set Pk: Error type 0: DATA_RECORD_ERROR_LOCAL...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 Using test functions for control and monitoring of variables For troubleshooting purposes and to display the status of certain variables Overview you can access certain test functions via the menu item Debug of the Siemens SIMATIC Manager.
Page 84
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 314-2AG13 PLC > This test function returns the condition of a selected operand (inputs, outputs, flags, data word, counters or timers) at the end of program- Monitor/Modify execution. Variables This information is obtained from the process image of the selected operands.
Page 85
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Chapter 5 Deployment PtP communication Content of this chapter is the deployment of the RS485 interface for serial Overview PtP communication. Here you’ll find every information about the protocols, the activation and project engineering of the interface, which are necessary for the serial communication using the RS485 interface.
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Fast introduction Via a hardware configuration you may de-activate the PROFIBUS part General integrated to the SPEED7 CPU and thus release the RS485 interface for PtP (point-to-point) communication. The RS485 interface supports in PtP operation the serial process connection to different source res.
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Principle of the data transfer The data transfer is handled during runtime by using SFCs. The principle of Overview data transfer is the same for all protocols and is shortly illustrated in the following.
VIPA_System_300S SPEEDBUS.GSD. The SPEED7 CPUs and modules of the System 300S from VIPA may now be found in the hardware catalog at PROFIBUS-DP / Additional field devices / I/O / VIPA_SPEEDBUS. HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
PROFIBUS DP / Additional field devices / I/O / VIPA / VIPA_SPEEDBUS. • For the slave system set the PROFIBUS address 100. • Configure at slot 0 the VIPA CPU 314-2AG13 of the hardware catalog from VIPA_SPEEDbus. always as last module •...
Page 90
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication • Logical states represented by voltage differences between the two cores Properties RS485 of a twisted pair cable • Serial bus connection in two-wire technology using half duplex mode • Data communications up to a max. distance of 500m •...
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Parameterization The parameterization happens during runtime deploying the SFC 216 SFC 216 (SER_CFG). You have to store the parameters for STX/ETX, 3964R, USS (SER_CFG) and Modbus in a DB. Name...
Page 92
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication At ASCII protocol, this parameter is ignored. Parameter (as DB) At STX/ETX, 3964R, USS and Modbus you fix here a DB that contains the communication parameters and has the following structure for the...
Page 93
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication The parity is -depending on the value- even or odd. For parity control, the Parity information bits are extended with the parity bit that amends via its value ("0" or "1") the value of all bits to a defined status. If no parity is set, the parity bit is set to "1", but not evaluated.
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Communication The communication happens via the send and receive blocks SFC 217 Overview (SER_SND) and SFC 218 (SER_RCV). The SFCs are included in the consignment of the CPU. This block sends data via the serial interface.
Page 95
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Return values of the block: RetVal SFC 217 (Error message SER_SND) Error code Description 0000h Send data - ready 1000h Nothing sent (data length 0) 20xxh Protocol executed error free with xx bit pattern for...
Page 96
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication ... Continue RetVal SFC 217 Error code Description SER_SND 2000h Send ready without error 8080h Receive buffer overflow (no space for receipt) 8090h Acknowledgement delay time exceeded 80F0h Wrong checksum in respond...
Page 97
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication The following text shortly illustrates the structure of programming a send Principles of command for the different protocols. programming 3964R USS / Modbus SFC 217 SFC 217 SER_SND SER_SND Busy ?
Page 98
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication This block receives data via the serial interface. SFC 218 Using the SFC 218 SER_RCV after SER_SND with the protocols USS and (SER_RCV) Modbus the acknowledgement telegram can be read.
Page 99
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Return values of the block: RetVal SFC 218 (Error message SER_RCV) Error code Description 0000h no error 1000h Receive buffer too small (data loss) 8x24h Error at SFC-Parameter x, with x: 1: Error at "DataPtr"...
The communication procedure has to be controlled by the concerning user application. An according Receive_ASCII FB may be found within the VIPA library in the service area of www.vipa.com. STX/ETX is a simple protocol with start and end ID, where STX stands for STX/ETX Start of Text and ETX for End of Text.
Page 101
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication The 3964R procedure controls the data transfer of a point-to-point link 3964R between the CPU and a communication partner. The procedure adds control characters to the message data during data transfer. These control characters may be used by the communication partner to verify the complete and error free receipt.
Page 102
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication The USS protocol (Universelle serielle Schnittstelle = universal serial interface) is a serial transfer protocol defined by Siemens for the drive and system components. This allows to build-up a serial bus connection between a superordinated master and several slave systems.
Page 103
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication The Modbus protocol is a communication protocol that fixes a hierarchic Modbus structure with one master and several slaves. Physically, Modbus works with a serial half-duplex connection. There are no bus conflicts occurring, because the master can only communicate with one slave at a time.
0x and 1x gives you access to digital Bit areas and 3x and 4x to analog word areas. For the CPs from VIPA is not differentiating digital and analog data, the following assignment is valid: Bit area for master output data...
Page 105
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication With the following Modbus function codes a Modbus master can access a Overview Modbus slave: With the following Modbus function codes a Modbus master can access a Modbus slave. The description always takes place from the...
Page 106
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Code 01h: Read n Bits of master output area 0x Read n Bits 01h, 02h Code 02h: Read n Bits of master input area 1x Command telegram Slave address Function code...
Page 107
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Code 06h: Write 1 Word to master output area 4x Write 1 Word Command telegram Slave address Function Address Value Check sum code word word CRC/LRC 1Byte 1Byte 1Word 1Word...
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Modbus - Example communication The example establishes a communication between a master and a slave Overview via Modbus. The following combination options are shown: Modbus master (M) Modbus slave (S)
Page 109
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication Master Slave CPU 31xS CPU 21xSER-1 Master Slave code/data SER_SND SER_RCV SER_RCV RetVal RetVal code SER_SND SER_SND SER_RCV data RetVal OB100: Start Start SFC 216 SFC 216 SER_CFG SER_CFG (DB: Timeout)
Page 110
Manual VIPA System 300S SPEED7 Chapter 5 Deployment PtP communication 5-26 HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Content of this chapter is the deployment of the CPU 314-2AG13 with Overview PROFIBUS. After a short overview the project engineering and parameteri- zation of a CPU 314-2AG13 with integrated PROFIBUS-Part from VIPA is shown. Further you get information about usage as DP master and DP slave of the PROFIBUS part.
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Overview PROFIBUS is an international standard applicable to an open and serial PROFIBUS DP field bus for building, manufacturing and process automation that can be used to create a low (sensor-/actuator level) or medium (process level) performance network of programmable logic controllers.
Information about transferring a project may be found at chapter "Deployment CPU ..." at "Project transfer". Note To be compatible to the Siemens SIMATIC manager, the CPU 314-2AG13 from VIPA is to be configured as CPU 317-2 (317-2AJ10-0AB00 V2.6) The integrated PROFIBUS DP master (X3) is to be configured and connected via the sub module X2 (DP).
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Hardware configuration - CPU The hardware configuration of the VIPA CPU takes place at the Siemens Requirements hardware configurator. The hardware configurator is a part of the Siemens SIMATIC Manager. It serves the project engineering.
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Deployment as PROFIBUS DP master • The hardware configuration described before was established. Precondition • Open the properties dialog of the DP interface of the CPU by means of Proceeding a double-click at DP.
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Deployment as PROFIBUS DP slave In the following the deployment of the PROFIBUS section as "intelligent" Fast introduction DP slave on master system is described, which exclusively may be configured in the Siemens SIMATIC manager.
Page 117
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication • Insert another station and configure a CPU. Project engineering of the • Designate the station as "...DP master". master section • Add your modules according to the real hardware assembly.
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication PROFIBUS installation guidelines • A PROFIBUS DP network may only be built up in linear structure. PROFIBUS in general • PROFIBUS DP consists of minimum one segment with at least one master and one slave.
Page 119
In PROFIBUS all participants are wired parallel. For that purpose, the bus bus connector cable must be feed-through. Via the order number VIPA 972-0DP10 you may order the bus connector "EasyConn". This is a bus connector with switchable terminating resistor and integrated bus diagnostic.
Page 120
A (EN50170). Starting with release 5 you also can use highly flexible bus cable: Lapp Kabel order no.: 2170222, 2170822, 2170322. With the order no. 905-6AA00 VIPA offers the "EasyStrip" de-isolating tool that makes the connection of the EasyConn much easier.
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Commissioning and Start-up behavior In delivery the CPU is overall reset. The PROFIBUS part is deactivated and Start-up on its LEDs are off after Power ON. delivery The DP master can be served with bus parameters by means of a Online with bus hardware configuration.
Page 122
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Dependent on the mode of operation the LEDs show information about the LEDs state of operation of the PROFIBUS part according to the following pattern: PROFIBUS/PtP interface X3 Master operation...
Page 123
In this chapter the programming and simulation software WinPLC7 from Overview ® VIPA is presented. WinPLC7 is suited for every with Siemens STEP programmable PLC. Besides the system presentation and installation here the basics for using the software is explained with a sample project.
You may receive a demo version from VIPA. Without any activation with Source the demo version the CPUs 11x of the System 100V from VIPA may be configured. To configure the SPEED7 CPUs a license for the "profi" version is necessary.
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 Installation The project engineering of a SPEED7 CPU from VIPA with WinPLC7 is Preconditions only possible using an activated "Profi" version of WinPLC7. The installation and the registration of WinPLC7 has the following...
"VIPA SPEED7" and click to [Create]. A new station is created. • Save the empty station. • By double click or drag&drop the according VIPA CPU in the hardware catalog at CPU SPEED7 the CPU is inserted to your configuration.
Page 127
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 • Open the CPU-Properties, by double clicking to the CPU at slot 2 in the Online access via Ethernet PG/OP hardware configurator. channel • Click to the button [Ethernet CP-Properties (PG/OP-channel)]. The Properties CP343 is opened.
Page 128
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 The PLC programming happens by WinPLC7. Close the hardware Programming of configurator and return to your project in WinPLC7. the FC 1 The PLC program is to be created in the FC 1.
Page 129
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 Enter the program As requested in the job definition, the corresponding output is activated depending on the comparison of value1 and value2. For each comparison operation a separate network is to be created.
Page 130
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 The allocation to the corresponding output, here Q 124.0, takes place with the following proceeding: • Click to the output at the right side of the operator. • Open in the catalog the category "Bit logic" and select the function "--[=]".
Page 131
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 After you have programmed the still missing networks, the FC 1 has the following structure: HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Page 132
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 The FC 1 is to be called from the cycle OB 1. Creating the block • Go to OB 1, which was automatically created with starting the project. OB 1 • Go to "Project content" or to "Solution" and open the OB 1 by a double click.
Page 133
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 Visualization via A further component of the simulator is the PLC mask. Here a CPU is PLC mask graphically displayed, which may be expanded by digital and analog peripheral modules. As soon as the CPU of the simulator is switched to RUN state, inputs may be activated by mouse and outputs may be displayed.
Page 134
Manual VIPA System 300S SPEED7 Chapter 7 WinPLC7 7-12 HB140E - CPU - RE_314-2AG13 - Rev. 12/47...
Page 135
Chapter 8 Configuration with TIA Portal Chapter 8 Configuration with TIA Portal In this chapter the project engineering of the VIPA CPU in the Siemens TIA Overview Portal is shown. The chapter only describes the basic usage of the Siemens TIA Portal together with a VIPA CPU .
TIA Portal - Work environment TIA is the abbreviation for Totally integrated Automation from Siemens. General Here your VIPA PLCs may be configured and linked. For diagnostics online tools are available. Note! Information about the Siemens TIA Portal may be found in the online help respectively in the according online documentation.
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal Basically, the TIA Portal has the following 2 views. With the button on the Work environment left below you can switch between these views: of the TIA Portal The Portal view provides a "task oriented" view of the tools for processing Portal view your project.
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal TIA Portal - Hardware configuration - CPU To be compatible with the Siemens TIA Portal the VIPA CPU is to be General configured as CPU 317-2DP (6ES7 317-2AJ10-0AB0 V2.6) from Siemens.
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal TIA Portal - Hardware configuration - I/O modules After the hardware configuration of the CPU place the System 300 Hardware modules at the bus in the plugged sequence. For this drag&drop the...
For online access to the CPU via Ethernet PG/OP channel valid IP address parameters have to be assigned to this for example by means of the Siemens TIA Portal. This is called "initialization". • Install your System 300S with your CPU. Assembly and commissioning •...
Page 141
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal Assign IP address You get valid IP address parameters from your system administrator. The parameters assignment of the IP address data happens online in the Siemens TIA Portal with the following proceeding: •...
Page 142
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal • Start the Siemens TIA Portal. Take IP address parameters in • Configure in the Device configuration the according Siemens CPU. project • Configure the system 300 modules. • For the Ethernet PG/OP channel you have to configure a Siemens CP 343-1 (6GK7 343-1EX11 0XE0) always as last module after the really plugged modules.
The hardware catalog is refreshed and the Siemens TIA Portal is finished. After restarting the Siemens TIA Portal all the SPEED7 CPUs and modules of the System 300S from VIPA can now be found in the hardware catalog Other field devices > PROFIBUS DP > I/O > VIPA GmbH >...
Page 144
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal The embedding of the CPU 314-2AG13 happens by means of a virtual Proceeding PROFIBUS master system with the following approach: • Start the Siemens TIA Portal. • Configure in the Device configuration the according Siemens CPU.
Page 145
• Connect Binden Sie das Slave-System "VIPA_SPEEDbus" an. Nach der Installation der SPEEDBUS.GSD finden Sie dieses im Hardware- Katalog unter Other field devices > PROFIBUS DP > E/A > VIPA GmbH > VIPA_SPEEDbus. • For the slave system set the PROFIBUS address 100.
"service" area with Downloads > VIPA LIB. The library is available as packed zip-file Fx000020_V..If you want to use VIPA specific blocks, you have to import the library into your project. Execute the following steps: •...
Overview • Transfer via MPI/PROFIBUS • Transfer via Ethernet • Transfer via MMC Currently the VIPA programming cables for transfer via MPI respectively Transfer via PROFIBUS are not supported. This is only possible with the programming MPI/PROFIBUS cable from Siemens.
Page 148
Manual VIPA System 300S SPEED7 Chapter 8 Configuration with TIA Portal The MMC (Memory Card) serves as external transfer and storage medium. Transfer via There may be stored several projects and sub-directories on a MMC storage module. Please regard that your current project is stored in the root directory and has one of the following file names: •...
Need help?
Do you have a question about the System 300S and is the answer not in the manual?
Questions and answers