Content of this chapter is the deployment of the CPU 315-4PN12 with PROFIBUS. After a short overview the project engineering and parame- terization of a CPU 315-4PN12 with integrated PROFIBUS part from VIPA is shown. Further you get information about usage as DP master and DP slave of the PROFIBUS part.
Page 6
Manual VIPA System 300S SPEED7 About this manual Chapter 8: Deployment Ethernet Communication - PROFINET Here the deployment of the PROFINET IO controller with PROFIBUS is described. Please regard the chapter "Fast introduction" where you will find every information compressed required for the project engineering of the PROFINET IO controller for PROFINET.
Page 7
Manual VIPA System 300S SPEED7 About this manual This manual describes the System 300S SPEED7 CPU 315-4PN12 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 These 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...
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: •...
Siemens SIMATIC Manager. 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. The user application is stored in the battery buffered RAM or on an additionally pluggable MMC storage module.
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_315-4PN12 - Rev. 12/05...
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 the System 300S with a CPU 315-4PN12.
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Assembly standard bus The single modules are directly installed on a profile rail and connected via General the backplane bus connector. Before installing the modules you have to clip the backplane bus connector to the module from the backside.
Page 20
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Assembly possibilities horizontal assembly vertical Please regard the allowed environment temperatures: assembly • horizontal assembly: from 0 to 60°C • vertical assembly: from 0 to 40°C SLOT2 SLOT1 DCDC •...
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)! •...
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Installation guidelines 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
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines In the most times it is enough to take care of some elementary rules to Basic rules for guarantee the EMC. Please regard the following basic rules when installing your PLC.
Page 24
Manual VIPA System 300S SPEED7 Chapter 2 Assembly and installation guidelines Electrical, magnetically and electromagnetic interference fields are Isolation of weakened by means of an isolation, one talks of absorption. conductors Via the isolation rail, that is connected conductive with the rack, interference currents are shunt via cable isolation to the ground.
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Chapter 3 Hardware description Here the hardware components of the CPU 315-4PN12 are described. Overview The technical data are at the end of the chapter. Content Topic Page Chapter 3 Hardware description............3-1 Properties.....................
STOP MRES VIPA 315-4PN12 DC 24V Ordering data Type Order number Description 315SN/PN VIPA 315-4PN12 MPI interface, card slot, real time clock, Ethernet interface for PG/OP, PROFIBUS DP master, PROFINET IO controller HB140E - CPU - RE_315-4PN12 - Rev. 12/05...
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Structure CPU 315SN/PN 315-4PN12 LEDs of the integrated PN-C PB-M PROFIBUS DP master CPU 315PN Storage media slot STOP LEDs of the CPU part LEDs of the FRCE PROFINET IO controllers...
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 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 PWR-LED is on.
Page 31
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...
Page 32
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description LEDs PROFINET IO controller X8 Meaning yellow - Bus error, no connection to subnet/switch ● - wrong transfer speed - full-duplex transfer is not activated - Failure of a connected IO device ☼...
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Technical Data Order number 315-4PN12 Type CPU 315SN/PN 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 315-4PN12 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 315-4PN12 Point-to-point interface Functionality PROFIBUS master number of connections, max. PG/OP channel Routing S7 basic communication S7 communication S7 communication as server S7 communication as client Equidistance support Isochronous mode...
Page 36
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Order number 315-4PN12 RS485 interface 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...
Page 37
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description Additional data Order number 315-4PN12 Ethernet communication S7 connections USEND, URCV, BSEND, BRCV, GET, PUT, Connection setup passive and active TCP connections FETCH PASSIV, WRITE PASSIV, Connection setup passive via handling blocks...
Page 38
Manual VIPA System 300S SPEED7 Chapter 3 Hardware description 3-14 HB140E - CPU - RE_315-4PN12 - Rev. 12/05...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 315-4PN12 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 42
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 315-4PN12 Hardware configuration - CPU The hardware configuration of the VIPA CPU 315-4PN12 takes place at the Requirements Siemens 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.
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 Hardware configuration - Ethernet PG/OP channel The CPU 315-4PN12 has an integrated Ethernet PG/OP channel. This Overview channel allows you to program and remote control your CPU. The PG/OP channel also gives you access to the internal web page that contains information about firmware version, connected I/O devices, current cycle times etc.
Page 46
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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: •...
Parameterization 315-2EH13-0AB0 V2.6) in the Siemens hardware configurator, the via Siemens standard parameters of the VIPA CPU may be set with "Object properties" CPU 315-2EH13 of the CPU 315-2PN/DP during hardware configuration. Via a double-click on the CPU 315-2PN/DP the parameter window of the CPU may be accessed.
Page 48
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 49
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 50
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 51
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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).
• Token Watch • Number remanence flag, timer, counter • Priority OB 28, OB 29 Since the VIPA specific CPU parameters may be set, the installation of the Requirements SPEEDBUS.GSD from VIPA in the hardware catalog is necessary. The CPU may be configured in a PROFIBUS master system and the appropriate parameters may be set after installation.
Page 53
/ I/O / VIPA / VIPA_SPEEDBUS. Modules at the bus • For the slave system set the PROFIBUS address 100. 343-1EX11 • Configure at slot 0 the VIPA CPU 315-4PN12 of the hardware catalog from VIPA_SPEEDbus. Ethernet-PG/OP 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 315-4PN12 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.
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. The MPI programming cables are available at VIPA in different variants.
Page 58
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 • 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 315-4PN12 For transfer via Ethernet the CPU has the following 2 interfaces: Transfer via • X5: Ethernet PG/OP channel Ethernet • X8: PROFINET IO controller 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 315-4PN12 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 315-4PN12 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 315-4PN12 ... continue Additional CPU components: Slot 201 (DP master): Slot 201 Name, firmware version, package VIPA 342-1DA70 V3.3.0 Px000062.pkg, Information for support SUPPORTDATA : PRODUCT V3300, BB000218 V5280, AB000068 V4160, ModuleType CB2C0010...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 315-4PN12 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 315-4PN12 Overall reset During the overall reset the entire user memory (RAM) is erased. Data Overview located in the memory card is not affected. If you have assigned IP address data to your PROFINET IO controller, these remain until there is a new PowerON.
Page 67
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 The CPU has an integrated website that monitors information about Display the firmware version of the SPEED7 components. The Ethernet PG/OP Firmware version of the SPEED7 system channel provides the access to this web site.
Page 70
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 315-4PN12 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 315-4PN12 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 315-4PN12 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...
Manual VIPA System 300S SPEED7 Chapter 4 Deployment CPU 315-4PN12 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 315-4PN12 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 315-4PN12 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 315-4PN12 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.
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.
RS485 X3 of the Properties. For this a hardware configuration of the CPU is required, which is described below. Since the VIPA specific CPU parameters may be set, the installation of the Requirements SPEEDBUS.GSD from VIPA in the hardware catalog is necessary.
Page 89
/ I/O / VIPA / VIPA_SPEEDBUS. Modules at the bus • For the slave system set the PROFIBUS address 100. 343-1EX11 • Configure at slot 0 the VIPA CPU 315-4PN12 of the Ethernet-PG/OP 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.de. 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
Chapter 5 Deployment PtP communication Manual VIPA System 300S SPEED7 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_315-4PN12 - Rev. 12/05...
Content of this chapter is the deployment of the CPU 315-4PN12 with Overview PROFIBUS. After a short overview the project engineering and parameteri- zation of a CPU 315-4PN12 with integrated PROFIBUS part from VIPA is shown. Further you get information about the 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 315-4PN12 from VIPA is to be configured as CPU 315-2PN/DP (6ES7 315-2EH13-0AB0 V2.6) The integrated PROFIBUS DP master (X3) is to be configured and connected via the sub module X1 (MPI/DP).
Manual VIPA System 300S SPEED7 Chapter 6 Deployment PROFIBUS communication Hardware configuration - CPU The hardware configuration of the VIPA CPU 315-4PN12 takes place at the Requirements Siemens 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 MPI/DP interface of the CPU by means Proceeding of a double-click at MPI/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...
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Chapter 7 Deployment Ethernet com. - productive In this chapter the deployment of the PROFINET IO controller as Ethernet Overview CP for productive connections is described. Please regard the chapter "Fast introduction" where you will find every information compressed required for the project engineering of the PROFINET IO controller as Ethernet CP.
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Basics - Industrial Ethernet in automation The flow of information in a company presents a vast spectrum of Overview requirements that must be met by the communication systems. Depending...
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Basics - ISO/OSI reference model The ISO/OSI reference model is based on a proposal that was developed Overview by the International Standards Organization (ISO). This represents the first step towards an international standard for the different protocols.
Page 126
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Bit communication layer (physical layer) Layers Layer 1 The bit communication layer (physical layer) is concerned with the transfer of data bits via the communication channel. This layer is therefore...
Page 127
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Session layer Layers Layer 5 continued... The session layer is also called the communication control layer. It relieves the communication between service deliverer and the requestor by establishing and holding the connection if the transport system has a short time fail out.
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Basics - Terms A network res. LAN (Local Area Network) provides a link between different Network (LAN) stations that enables them to communicate with each other. Network stations consist of PCs, IPCs, TCP/IP adapters, etc.
• The acknowledgement of the data transfer is established from the partner station at level 7 of the ISO/OSI reference model. • At the PLC side FB/SFB VIPA handling blocks are necessary for data transfer for the Siemens S7 connections.
Page 130
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive In the open communication the communication takes place via the user Open program by means of handling blocks. These blocks are part of the communication Siemens SIMATIC Manager. You will find these in the "Standard Library" at "Communication Blocks".
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Basics - IP address and subnet PROFINET exclusively supports IPv4. At IPv4 the IP address is a 32Bit IP address address that must be unique within the network and consists of 4 numbers structure that are separated by a dot.
Page 132
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive For IPv4 addresses there are five address formats (class A to class E) that Address classes are all of a length of 4byte = 32bit. Class A 0 Network-ID...
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 315-4PN12 from VIPA is to be configured as CPU 315-2PN/DP (6ES7 315-2EH13-0AB0 V2.6) The integrated PROFIBUS DP master (X3) is to be configured and connected via the sub module X1 (MPI/DP).
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Commissioning and Initialization • Install your System 300S with your CPU. Assembly and commissioning • Wire the system by connecting cables for voltage supply and signals • Connect your PROFINET IO controller with Ethernet.
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Hardware configuration - CPU The hardware configuration of the VIPA CPU 315-4PN12 takes place at the Requirements Siemens hardware configurator. The hardware configurator is a part of the Siemens SIMATIC Manager. It serves the project engineering.
"In unknown project" or via deputy objects like "Other stations" or Siemens "SIMATIC S5 Station". The communication is controlled by the user program with VIPA handling blocks. To use this blocks, configured communication connections are always necessary in the active station.
Page 137
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Note! Every station outside of the recent project must be configured as replacement objects like e.g. Siemens "SIMATIC S5" or "other station" or with the object "In unknown project".
Page 138
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive You receive the following graphical display for every PLC station and their PLC stations component. By selecting the single components, the context menu offers you several functions: Station...
Page 139
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive For the project engineering of connections, open the connection list by Projecting selecting the according CPU. Choose Insert new connection in the context connections menu: Station 1 CPU3...
Page 140
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Choose the connection partner and the type of connection and confirm with Open the [OK]. properties dialog If activated, a properties dialog for the according connection opens as link to your PLC user program.
Page 141
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive For data transfer with Siemens S7 connections the FB/SFB VIPA handling Siemens S7 blocks are necessary; the deployment is described in the manual connection "Operation list" of your CPU.
Page 142
• Siemens S7-300 communication functions By integration of the function blocks FB 8 ... FB 15 from VIPA you may access the Siemens S7-300 communication functions. • Siemens S7-400 communication functions For the Siemens S7-400 communication functions the SFB 8 ... SFB 15 are to be used, which were integrated to the operating system of the CPU.
Page 143
The following function blocks may be used for Siemens S7 commu- Function blocks nications. More about the usage of the handling blocks may be found in the manual Operation list HB00_OPL_SP7 in chapter "VIPA specific blocks". FB/SFB Label Description FB/SFB 8...
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Configure Open Communication Connection-oriented protocols establish a (logical) connection to the Connection- communication partner before data transmission is started. And if oriented necessary they terminate the connection after the data transfer was protocols finished.
Page 145
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive There is thus no establishment and termination of a connection with a Connection-less remote partner. Connection-less protocols transmit data with protocol acknowledge and with no reliable guaranteed delivery to the remote partner.
Page 146
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive Those in the following listed UTDs and FBs serve for "open communication" Handling blocks with other Ethernet capable communication partners via your user program. These blocks are part of the Siemens SIMATIC Manager. You will find these in the "Standard Library"...
Set the receive res. send buffer defined via the TCP? ANY pointer to the required size. The VIPA PROFINET IO controller supports the Siemens NCM diagnostic Siemens NCM tool. The NCM diagnostic tool is part of the Siemens SIMATIC manager.
Page 148
Node addr.: Enter the IP address of the CP Rack/slot: For the VIPA PROFINET IO controller please enter 0 for module rack and 125 as slot. Set your PG/PC interface to "TCP/IP -> Network card ..". Via [OK] you start the online diagnostic.
Page 149
Manual VIPA System 300S SPEED7 Chapter 7 Deployment Ethernet com. - productive The PROFINET IO controller has a diagnostic buffer. This has the Read diagnostic architecture of a ring memory and may store up to 100 diagnostic buffer messages. The NCM diagnostic allows you to monitor and evaluate the diagnostic messages via the diagnostic object Diagnostic buffer.
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Chapter 8 Deployment Ethernet com. - PROFINET Here the deployment of the PROFINET IO controller with PROFIBUS is Overview described. Please regard the chapter "Fast introduction" where you will find every information compressed required for the project engineering of the PROFINET IO controller for PROFINET.
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Basics PROFINET PROFINET is an open Industrial Ethernet Standard from PROFIBUS & General PROFINET International (PI) for automation. PROFINET is standardized in the IEC 61158. PROFINET uses TCP/IP and IT standards and supplements the PROFIBUS technology for applications, where fast data communication with industrial IT functions is demanded.
Page 153
The IO device is a distributed I/O field device, which is connected to PROFINET. The IO device is equal to the slave of PROFIBUS. From VIPA there is a GSDML files for your IO device available. This file may either be found on the supplied storage media or at the download area of www.vipa.de.
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET PROFINET installation guidelines The topic of data security and access protection have become increasingly Generals to important in the industrial environment. The increased networking of entire data security...
Page 155
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Topology Linear With the linear structure all the communication devices are connected via a linear bus topology. Here the linear bus topology is realized with switches that are already integrated into the PROFINET device.
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Basics - IP address and subnet PROFINET exclusively supports IPv4. At IPv4 the IP address is a 32Bit IP address address that must be unique within the network and consists of 4 numbers structure that are separated by a dot.
Page 157
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET For IPv4 addresses there are five address formats (class A to class E) that Address classes are all of a length of 4byte = 32bit. Class A 0 Network-ID...
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 315-4PN12 from VIPA is to be configured as CPU 315-2PN/DP (6ES7 315-2EH13-0AB0 V2.6) The integrated PROFIBUS DP master (X3) is to be configured and connected via the sub module X1 (MPI/DP).
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Commissioning and Initialization • Install your System 300S with your CPU. Assembly and commissioning • Wire the system by connecting cables for voltage supply and signals • Connect your PROFINET IO controller with Ethernet.
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Hardware configuration - CPU The hardware configuration of the VIPA CPU 315-4PN12 takes place at the Requirements Siemens hardware configurator. The hardware configurator is a part of the Siemens SIMATIC Manager. It serves the project engineering.
In the following these parameters are described. PN-IO General Short description Designation of the IO controller. The IO controller from VIPA always has the short description "PN-IO". Device name The device name on the Ethernet subnet must be unique. For an integrated Profinet interface the device name is derived from the short description.
Page 162
OB 82 at an error event of the PROFINET interface. An entry to the diagnostics buffer is always done. The other parameters in this tab are not relevant for the use of the VIPA PROFINET CPU. This tab shows the synchronization properties of the IO controller. Here...
Install catalog. GSDML For the deployment of the PROFINET IO devices from VIPA you have to include the modules into the hardware catalog by means of the GSDML file from VIPA. After the installation of the GSDML file the PROFINET IO devices from VIPA may be found in the hardware catalog at PROFINET IO >...
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET Commissioning and Start-up behavior In delivery the CPU is overall reset. The PROFINET part is deactivated and Start-up on its LEDs are off after PowerON. delivery For the communication between IO controller and IO device the ways for Online with bus the communication are to be defined before.
Page 165
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET After PowerON respectively a receipt of a new hardware configuration the CPU state configuration data are automatically transferred to the IO controller. influences the IO process data Dependent on the CPU state the following behavior is shown by the IO controller: •...
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET PROFINET Diagnostics There are the following possibilities to get diagnostics information about Overview your system: • Diagnostics with the configuration and engineering tool • Diagnostics during run-time in the user program (OB 1, SFB 52) •...
Page 167
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET With the SFB 52 RDREC (read record) the diagnostics data may be Diagnostics accessed by the user program e.g. from the OB 1. during run-time in The SFB 52 works asynchronous, this means the operation is extended the user program over several SFB calls.
Page 168
Manual VIPA System 300S SPEED7 Chapter 8 Deployment Ethernet com. - PROFINET If an error occurs the faulty system reports a diagnostics message to the Diagnostics CPU. This indicates that the CPU calls the corresponding diagnostics OB. via OB start...
Need help?
Do you have a question about the SPEED7-SPU 315-4PN12 and is the answer not in the manual?
Questions and answers