VIPA 313-6CF03 Manual Download Page 148

Chapter 7   Deployment Profibus communication

 

Manual VIPA System 300S SPEED7 

7-8 

HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45 

The following picture illustrates the terminating resistors of the respective 
start and end station. 

 

RxD/TxD-P(B)

Shield

Master

Slave

3

8

3

8

P5V

P5V

M5V

M5V

330

330

330

330

220

220

3

8

RxD/TxD-N(A)

5

6

RxD/TxD-P(B)

RxD/TxD-N(A)

Slave

RxD/TxD-P(B)

RxD/TxD-N(A)

5

3

8

6

Shield

Shield

 

 

Note! 

The Profibus line has to be terminated with its ripple resistor. Please make 
sure to terminate the last participants on the bus at both end by activating 
the terminating resistor. 

 

In systems with more than two stations all partners are wired in parallel. 
For that purpose, the bus cable must be feed-through uninterrupted. 

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. 

 

C

A

B

90°

A

B

B

A

45°

 

 

 0° 

45° 

90° 

A 64 61 66 
B 34 53 40 
C 15.8 

15.8 

15.8 

 

    all in mm

 

Bus connection 

    

 

"EasyConn" Bus 
connector 

Summary of Contents for 313-6CF03

Page 1: ... No VIPA HB140E_CPU_SC Reference RE_313 6CF03 Rev 07 45 This manual is part of the documentation package with order number VIPA HB140E_CPU_SC and relevant for Product Order number as of state CPU HW CPU FW DPM FW CPU 313SC DPM VIPA 313 6CF03 01 V328 V312 ...

Page 2: ...Lerrzeichen ...

Page 3: ...ontents of this manual were verified with respect to the hard and software However we assume no responsibility for any discrepancies or errors The information in this manual is verified on a regular basis and any required corrections will be included in subsequent editions Suggestions for improvement are always welcome VIPA SPEED7 and System 300V are registered trademarks of VIPA Gesellschaft für ...

Page 4: ... describes the deployment of the CPU 313SC DPM with SPEED7 technology in the System 300 The description refers directly to the CPU and to the employment in connection with peripheral modules that are mounted on a profile rail together with the CPU at standard bus Chapter 5 Deployment I O periphery This chapter contains all information necessary for the deployment of the in output periphery of the ...

Page 5: ...ies 3 2 Structure 3 3 In Output range CPU 313SC DPM 3 7 Technical Data 3 9 Chapter 4 Deployment CPU 313SC DPM 4 1 Installation 4 2 Start up behavior 4 3 Addressing 4 4 Address assignment 4 6 Initialization Ethernet PG OP channel 4 7 Access to the internal web page 4 10 Project engineering as CPU 313C 2DP 4 11 CPU parameterization 4 14 Parameterization of the RS 485 interface X3 4 18 Parameterizati...

Page 6: ... Additional functions 5 24 Counter Diagnostic and interrupt 5 31 Chapter 6 Deployment PtP communication 6 1 Fast introduction 6 2 Protocols and procedures 6 3 Principals of the data transfer 6 7 Deployment RS485 interface 6 8 Parameterization 6 9 Communication 6 12 Chapter 7 Deployment Profibus communication 7 1 Overview 7 2 Project engineering CPU with integrated Profibus DP master 7 3 Deployment...

Page 7: ...uides are available in the manual an overall table of contents at the beginning of the manual an overview of the topics for every chapter an index at the end of the manual The manual is available in printed form on paper in electronic form as PDF file Adobe Acrobat Reader Important passages in the text are highlighted by following icons and headings Danger Immediate or likely danger Personal injur...

Page 8: ...onments EX zone The manual must be available to all personnel in the project design department installation department commissioning operation The following conditions must be met before using or commissioning the components described in this manual Modification to the process control system should only be carried out when the system has been disconnected from power Installation and modifications ...

Page 9: ...he project engineering of a System 300 with the CPU 313SC DPM from VIPA General information like dimensions and environment conditions will also be found Topic Page Chapter 1 Basics 1 1 Safety Information for Users 1 2 General description of the System 300 1 3 Operating structure of a CPU 1 4 CPU Applications 1 5 Operands of the CPU 1 5 CPU 313SC DPM 1 7 Overview Content ...

Page 10: ...ge components thereby causing the module to become inoperable or unusable Modules that have been damaged by electrostatic discharges can fail after a temperature change mechanical shock or changes in the electrical load Only the consequent implementation of protection devices and meticulous attention to the applicable rules and regulations for handling the respective equipment can prevent failures...

Page 11: ...xed System 300S The System 300S extends the central area with high speed CPUs that have the integrated SPEED7 chip Additionally some CPUs have got a parallel SPEED Bus that allows the modular connection of fast peripheral modules like IOs or bus master VIPA System 300 decentral Periphery Profibus for STEP 7 from Siemens PLC CPU CAN with SPEED7 for STEP 7 from Siemens PLC CPU with SPEED7 and SPEED ...

Page 12: ...er ending cycle Where a process requires control signals at constant intervals you can initiate certain operations based upon a timer e g not critical monitoring functions at one second intervals If a process signal requires a quick response you would allocate this signal to an alarm controlled procedure An alarm can activate a procedure in your program The above processes are handled by the CPU i...

Page 13: ...n The operating modules provide the interfaces to the system routines Operands of the CPU The following series of operands is available for programming the CPU Process image and periphery Bit memory Timers and counters Data blocks The user application can quickly access the process image of the inputs and outputs PAA PAE You may manipulate the following types of data individual Bits Bytes Words Do...

Page 14: ...a value between 10ms and 9990s As soon as the user application executes a start operation the value of this timer is decremented by the interval that you have specified until it reaches zero You may load counter cells with an initial value max 999 and increment or decrement these when required A data block contains constants or variables in the form of bytes words or double words You may always ac...

Page 15: ...s parameters by Assign Ethernet Address respectively by a minimum project the Ethernet PG OP channel may directly be addressed by means of the PLC functions to program and remote control the CPU A max of 2 PG OP connections is available You may also access the CPU with a visualization software via these connections The CPU has an integrated Profibus DP master Via the DP master with a data range of...

Page 16: ...atible to the programming language STEP 7 from Siemens and may be programmed via WinPLC7 from VIPA or via the Siemens SIMATIC Manager Here the instruction set of the S7 400 from Siemens is used Note Please do always use the CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 from Siemens of the hardware catalog to project a CPU 313SC DPM from VIPA For the project engineering a thorough knowledge of the Siemens ...

Page 17: ...uidelines In this chapter you will find all information required for the installation and the cabling of a process control with the components of the System 300 and the CPU313SC DPM Topic Page Chapter 2 Assembly and installation guidelines 2 1 Overview 2 2 Installation dimensions 2 3 Installation 2 4 Cabling 2 5 Installation Guidelines 2 8 Overview Content ...

Page 18: ...or is delivered together with the peripheral modules G 122 Order number A B C VIPA 390 1AB60 160mm 140mm 10mm VIPA 390 1AE80 482mm 466mm 8 3mm VIPA 390 1AF30 530mm 500mm 15mm VIPA 390 1AJ30 830mm 800mm 15mm VIPA 390 9BC00 2000mm Drillings only left 15mm Unit pack 10 pieces For the communication between the modules the System 300 uses a backplane bus connector Backplane bus connectors are included ...

Page 19: ...ssembly and installation guidelines HB140E CPU SC RE_313 6CF03 Rev 07 45 2 3 Installation dimensions 2tier width WxHxD in mm 80 x 125 x 120 65mm 40mm 122 mm 125 mm 125mm 120mm 175mm Dimensions Basic enclosure Dimensions Installation dimensions ...

Page 20: ...cable to the protected earth conductor has to be 10mm 2 Stick the power supply to the profile rail and pull it to the left side to the grounding bolt of the profile rail Fix the power supply by screwing Take a backplane bus connector and click it at the CPU from the backside like shown in the picture Stick the CPU to the profile rail right from the power supply and pull it to the power supply Clic...

Page 21: ...lug with CageClamp technology is deployed The connection clamp is realized as plug that may be clipped off carefully if it is still cabled Here wires with a cross section of 0 08mm 2 to 2 5mm2 may be connected You can use flexible wires without end case as well as stiff wires 1 2 3 1 Test point for 2mm test tip 2 Locking orange for screwdriver 3 Round opening for wires 1 2 3 The picture on the lef...

Page 22: ...n cabling position For this you plug the front connector on the module until it locks In this position the front connector juts out of the module and has no contact yet De isolate your wires If needed use core end cases Thread the included cable binder into the front connector If you want to lead out your cables from the bottom of the module start with the cabling from bottom to top res from top t...

Page 23: ...ush the release key at the front connector on the upper side of the module and at the same time push the front connector into the module until it locks Bolt the fixing screw of the front connector Now the front connector is electrically connected with your module Close the front flap Fill out the labeling strip to mark the single channels and push the strip into the front flap ...

Page 24: ...ed res without interferencing the environment All System 300 components are developed for the deployment in hard industrial environments and fulfill high demands on the EMC Nevertheless you should project an EMC planning before installing the components and take conceivable interference causes into account Electromagnetic interferences may interfere your control via different ways Fields I O signa...

Page 25: ...d isolated Analog lines must be laid isolated When transmitting signals with small amplitudes the one sided laying of the isolation may be favorable Lay the line isolation extensively on an isolation protected earth con ductor rail directly after the cabinet entry and fix the isolation with cable clamps Make sure that the isolation protected earth conductor rail is connected impedance low with the...

Page 26: ...ay the isolation one sided Then you only achieve the absorption of the lower frequencies A one sided isolation connection may be convenient if the conduction of a potential compensating line is not possible analog signals some mV res µA are transferred foil isolations static isolations are used With data lines always use metallic or metalized plugs for serial couplings Fix the isolation of the dat...

Page 27: ... 45 3 1 Chapter 3 Hardware description Here the hardware components of the CPU 313SC DPM are described The technical data are at the end of the chapter Topic Page Chapter 3 Hardware description 3 1 Properties 3 2 Structure 3 3 In Output range CPU 313SC DPM 3 7 Technical Data 3 9 Overview Content ...

Page 28: ...te and diagnosis Real time clock battery buffered Ethernet PG OP interface integrated MPI interface RS485 interface configurable for Profibus DP master or PtP Digital I Os DI 16xDC24V DO 16xDC24V 0 5A 3 counter 30kHz 512 timer 512 counter 8192 bit memory PWR RUN STOP SF FRCE MCC A S MCC RUN STOP MRES X1 X2 X3 X 2 3 4 CPU313SC DPM AI5x 0 1 2 3 4 5 6 7 2 VIPA 313 6CF03 64KByte 512KByte DI AO2x 12Bit...

Page 29: ...0 1L 2L 3L DI16x DC24V DO16x DC24V 0 5A DI DO RUN ERR DE IF 1 9 MPI interface The CPU has got one row of LEDs on the front side The following table shows you the usage of the LEDs and the according colors Label Color Meaning PWR green CPU part is provided with internal 5V RUN green CPU is in the operating mode RUN STOP yellow CPU is in the operating mode STOP SF red On at system errors hardware de...

Page 30: ...CPU Operating mode switch RUN STOP MRES With the operating mode switch you may switch the CPU between STOP and RUN The operating mode START UP is driven automatically from the CPU between STOP and RUN Placing the switch to MRES Memory Reset you request an overall reset with following load from MMC project or firmware update The RJ45 jack serves the interface to the Ethernet PG OP channel This inte...

Page 31: ...Pin Assignment 1 n c 2 M24V 3 RxD TxD P line B 4 RTS 5 M5V 6 P5V 7 P24V 8 RxD TxD N line A 5 4 3 2 1 9 8 7 6 9 n c The MPI interface handles the data exchange between CPU and PC Via a bus communication you may transfer applications and data between the CPU that are connected via MPI Standard setting is MPI Address 2 With the PtP functionality the RS485 interface is allowed to connect via serial po...

Page 32: ...ttern over the operating condition of the Profibus part RUN green ERR red DE green IF red Meaning Master has no project this means the interface is deactivated respectively PtP is active Master has bus parameters and is in RUN without slaves Master is in clear state safety state The inputs of the slaves may be read The outputs are disabled Master is in operate state this means data exchange betwee...

Page 33: ...ological functions 3 Channels Each of the digital in outputs monitors its state via a LED Via the parameterization you may assign alarm properties to every digital input Additionally the digital inputs are parameterizable as counter 1 2 3 4 5 6 7 8 9 DI 1L 12 13 14 15 16 17 18 19 20 1M 2L 2M 31 32 33 34 35 36 37 38 39 40 3L 3M 22 21 23 24 25 26 27 28 29 30 DO Attention Please take care that the vo...

Page 34: ...DI16x DC24V DO16x DC24V 0 5A DI DO 0 7 0 7 DI L1 0 7 LED green Supply voltage available for DI LEDs green I 0 0 to I 0 7 resp I 1 0 to I 1 7 Starting with app 15V the signal 1 at the input is recognized and the according LED CPU 313SC DPM Pin assignment and status indicator Pin 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Assignment Power supply DC 24V Q 0 0 Channel 0 Output Q 0 1 C...

Page 35: ...d 64kByte expandable up to 512kByte Processing times Processing times for Bit instructions 0 021µs Word instructions 0 021µs Double integer arithmetic 0 021µs Floating point arithmetic 0 125µs Timers Counters and their retentive characteristics S7 counters 512 Retentivity adjustable Preset up C0 to C7 Count value 0 up to 999 IEC counters yes Type SFB Number unlimited limited only by RAM size S7 ti...

Page 36: ...503 centralized 248 248 integrated channels no Configuration Number of racks max 4 Modules per rack max 8 max 7 in rack 3 Time Real time clock yes HW clock Backed up yes buffered period 6 Weeks Accuracy Deviation per day 10s Operating hours counter 1 Number 0 Value range 2 15 Selectivity 1hour Retentive yes must be manually restarted after every restart Testing and commissioning functions Status M...

Page 37: ... supply 15 up to 30V DC 200mA Functionality 1 interface MPI yes Profibus DP no Point to Point connection no MPI 1 interface Services PG OP communication yes Global data communication yes S7 basis communication yes S7 Communication as Server yes as Client no Transmission rates 187 5kbit s Hardware description 2 interface Physics RS 485 electrically isolated yes Interface power supply 15 up to 30V D...

Page 38: ...Rated load voltage L DC 24V Reverse polarity protection yes Isolation between channels and backplane bus yes between channels no permitted potential difference between the different circuits DC 75V AC 60V Isolation tested with DC 500V Current consumption from the power supply L 70mA Status Interrupts Diagnostics Status display green LED per channel Interrupts none Diagnostic functions none Data fo...

Page 39: ...th DC 500V Current consumption from load voltage L 100mA Status Interrupts Diagnostics Status display green LED per channel Interrupts none Diagnostic functions Group error display red F LED per group supply voltage display green LED per group Channel error display none Data for selecting an actuator Output voltage for Signal 1 min L 0 8V Output current at Signal 1 0 5A Rated value 5mA to 0 6A at ...

Page 40: ...Chapter 3 Hardware description Manual VIPA System 300S SPEED7 3 14 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...

Page 41: ...oyment CPU 313SC DPM 4 1 Installation 4 2 Start up behavior 4 3 Addressing 4 4 Address assignment 4 6 Initialization Ethernet PG OP channel 4 7 Access to the internal web page 4 10 Project engineering as CPU 313C 2DP 4 11 CPU parameterization 4 14 Parameterization of the RS 485 interface X3 4 18 Parameterization of modules 4 21 Project transfer 4 22 Operating modes 4 26 Overall reset 4 29 Firmware...

Page 42: ...to the protected earth conductor has to be 10mm 2 Stick the power supply to the profile rail and pull it to the left side to the grounding bolt of the profile rail Fix the power supply by screwing Take a backplane bus connector and click it at the CPU from the backside like shown in the picture Stick the CPU to the profile rail right from the power supply and pull it to the power supply Click the ...

Page 43: ...RUN without program The CPU switches to RUN with the program stored in the battery buffered RAM The accumulator battery is automatically loaded via the integrated power supply and guarantees a buffer for max 30 days If this time is exceeded the battery may be totally discharged This means that the battery buffered RAM is deleted In this state the CPU executes an overall reset If a MMC is plugged p...

Page 44: ...dress 0 127 The process image stores the signal states of the lower address 0 127 additionally in a separate memory area The process image this divided into two parts process image to the inputs PII process image to the outputs PIQ I O area 0 127 8191 Process image 0 127 0 127 Inputs PII Outputs PIQ Digital modules Analog modules The process image is updated automatically when a cycle has been com...

Page 45: ...ccording module is stored in the address range is calculated with the following formulas DIOs Start address 4 slot 4 AIOs FMs CPs Start address 16 slot 4 256 SC CPU 4 5 6 7 4 5 Start address digital analog 12 304 8 288 4 272 0 256 Slot number The following sample shows the functionality of the automatic address allocation 0 8 9 12 13 255 256 320 335 2048 8191 0 1 12 13 255 256 272 287 2048 8191 PI...

Page 46: ...igital Input I 1 0 I 1 7 Counter 768 DInt Channel 0 Count value Frequency value 772 DInt Channel 1 Count value Frequency value 776 DInt Channel 2 Count value Frequency value 780 DInt reserved Sub module Default address Access Assignment DI16 DO16 124 Byte Digital Output Q 0 0 Q 0 7 125 Byte Digital Output Q 1 0 Q 1 7 Counter 768 DWord reserved 772 DWord reserved 776 DWord reserved 780 DWord reserv...

Page 47: ...signed to this by means of the Siemens SIMATIC manager This is called Initialization There are the following possibilities for assignment of IP address parameters initialization PLC functions with Assign Ethernet address Hardware project engineering with CP Minimal project For the hardware configuration the following software is necessary SIMATIC Manager from Siemens V 5 1 or higher SIMATIC NET Th...

Page 48: ... address 0 0 0 0 and the station name Onboard PG OP Choose the determined module and click to OK Set the IP configuration by entering IP address subnet mask and net transition In addition an IP address may be received from a DHCP server For this depending upon the selected option the MAC address device name or the Client ID which may be entered here is to be conveyed to the DHCP server The Client ...

Page 49: ...S7 313 6CF03 0AB0 V2 0 from the hardware catalog This may be found at SIMATIC 300 CPU 300 CPU 313C 2DP Include the CP 343 1EX11 at slot 4 SIMATIC 300 CP 300 Industrial Ethernet CP 343 1 Type the wanted IP address and subnet mask into the dialog window of Properties of the CP 343 1 and connect the CP with Ethernet Save and compile your project Transfer your project via MPI or MMC into your CPU More...

Page 50: ... OP Addresses Cpu state RUN CPU state FunctionRS485 X2 MPI RS485 function of X2 FunctionRS485 X3 DPM async RS485 function of X3 Cycletime microseconds min 17000 cur 17000 ave 17000 max 17000 CPU cycle time min minimal cur current ave average max maximal MCC Trial Time 70 23 Remaining time for deactivation of the expansion memory if MCC is removed Additional CPU components Slot 201 Slot 201 Profibu...

Page 51: ...e catalog If necessary you have to update the hardware catalog with Options Update Catalog For the project engineering a thorough knowledge of the Siemens SIMATIC Manager and the hardware configurator from Siemens are required and assumed To be compatible with the Siemens hardware configurator the following steps should be executed Modules at the bus Module DI16 DO16 Slot 343 1EX11 Ethernet PG OP ...

Page 52: ...CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 DI DO DIO AI AO CPU 313SC Module DI16 DO16 Slot Count CPU 313C 2 DP DP 1 2 X2 2 2 2 4 3 The modules at the bus are configured with the following approach Include your System 300 modules at the bus in the plugged sequence starting with slot 4 Parameterize the CPU res the modules where appropriate The parameter window opens by a double click on the according mod...

Page 53: ...P 343 1EX11 Enter General and click at Properties Type in the IP address subnet mask and gateway for the CP and select the wanted subnet With the CPU you have access to up to 31 modules Since 8 modules may maximally be addressed by the CPU in one row as a virtual bus extension the IM 360 from the hardware catalog of the Siemens SIMATIC manager may be used Here 3 further extension racks may be virt...

Page 54: ...n the Siemens hardware configurator the parameters of the CPU 313SC DPM may be set with Object properties during hardware configuration Via a double click on the CPU 313C 2DP the parameter window may be accessed Using the registers you get access to all parameters of the CPU Note A description of the parameters of the sub module DI16 DO16 and Count may be found at chapter Deployment I O periphery ...

Page 55: ...red slot or if another type of module is inserted there instead then the CPU switches to STOP mode If the checkbox for Startup when expected actual configuration differ is selected then the CPU starts even if there are modules are not located in their configured slots of if another type of module is inserted there instead such as during an initial system start up This operation specifies the maxim...

Page 56: ...ime the scan cycle time of OB 1 is still being influenced by asynchronous events e g process interrupts as well The preset reaction of the CPU may be changed to an I O access error that occurs during the update of the process image by the system The CPU 313SC 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 Activate the chec...

Page 57: ...modified Enter the time intervals in ms in which the watchdog interrupt OBs should be processed The start time for the clock is when the operating mode switch is moved from STOP to RUN Not adjustable Is not supported Here 1 of 3 protection levels may be set to protect the CPU from unauthorized access Protection level 1 default setting No password adjustable no restrictions Protection level 2 with ...

Page 58: ...InOut PtP virtual DP Master for CPU 100 VIPA VIPA_SPEEDbus Order No 313 6CF03 at slot 100 Slot 1 CPU Adr 100 Object properties of the CPU at slot 100 Modules at the bus Module 342 5DA02 V5 0 Standard bus Slot 1 2 X2 2 2 2 4 3 DI16 DO16 Count CPU 313C 2 DP DP Via a hardware configuration the VIPA specific parameters of the SPEED7 CPU may be configured Via a double click on the inserted CPU 313SC DP...

Page 59: ...ependently Profibus DP syncIn CPU is waiting for DP master input data Profbus DP syncOut DP master system is waiting for CPU output data Profibus DP syncInOut CPU and DP master system are waiting on each other and form thereby a cycle Normally the cycle of CPU and DP master run independently The cycle time of the CPU is the time needed for one OB1 cycle and for reading respectively writing the inp...

Page 60: ...e response time of your system can be improved because output data were directly transmitted to the DP master system If necessary the time of the Watchdog of the bus parameters should be increased at this mode RUN SPEED7 CPU SPEED Bus DP master system Cycle RUN SPEED7 CPU SPEED Bus DP master system Cycle Cycle CPU DPM 1 tier CPU cycle Cycle CPU DPM n tier CPU cycle Cycle In the operating mode Prof...

Page 61: ...project engineering at the slot overview on the module you want to parameterize In the appearing dialog window you may set the wanted parameters By using the SFCs 55 56 and 57 you may alter and transfer parameters for wanted modules during runtime For this you have to store the module specific parameters in so called record sets More detailed information about the structure of the record sets is t...

Page 62: ...se of which the address 0 is reserved for programming devices The structure of a MPI net is in the principal identical with the structure of a 1 5MBaud Profibus net I e 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 Your SC CPU supports transfer rates of up to 1 5MBaud Per d...

Page 63: ...AM to ROM if one is plugged As external storage medium a MMC is deployed The MMC Memory Card serves as external transfer medium for programs and firmware for among others it provides the PC compatible FAT16 file system With an overall reset or PowerON the MMC is automatically read There may be stored several projects and sub directories on a MMC storage module Please take care that your current pr...

Page 64: ...r Event ID Meaning 0xE100 MMC access error 0xE101 MMC error file system 0xE102 MMC error FAT 0xE200 MMC writing finished The transfer of the application program from the MMC into the CPU takes always place after an overall reset The blinking of the LED MCC of the CPU marks the active transfer An overall reset of the CPU takes place if the MMC does not contain a valid application program or if the ...

Page 65: ...and assign it to IP address parameters As long as the Ethernet PG OP channel was not initialized yet this owns the IP address 0 0 0 0 and the station name Onboard PG OP Direct after the assignment the Ethernet PG OP channel may be reached by the Siemens SIMATIC manager by means of these IP address parameters The transfer happens in the following approach Open your project in the Siemens SIMATIC ma...

Page 66: ...d i e all digital outputs are disabled RUN LED off STOP LED on During the transition from STOP to RUN a call is issued to the start up organization block OB 100 The length of this OB is not limited The processing time for this OB is not monitored The START UP OB may issue calls to other blocks All digital outputs are disabled during the START UP i e outputs are inhibited RUN LED blinks STOP LED of...

Page 67: ...h a circle To activate the breakpoint click on Debug Breakpoints Active The circle is changed to a filled circle Bring your CPU into RUN When the program reaches the breakpoint your CPU switches to the state HOLD the breakpoint is marked with an arrow and the register contents are monitored Now you may execute the program code step by step via Debug Execute Next Statement or run the program until ...

Page 68: ... analog outputs The voltage supply for the output channels is switched off decentralized outputs The outputs are set to 0V decentralized inputs The inputs are read constantly from the slave and the recent values are put at disposal STOP RUN respectively PowerON general First the PII is deleted then OB 100 is called After the execution of the OB the BASP is reset and the cycle starts with Delete PI...

Page 69: ...PU is STOP Place the function selector on the CPU in position STOP the STOP LED is on Overall reset Place the function selector in the position MRES and hold it in this position for app 3 seconds The STOP LED changes from blinking to permanently on Place the function selector in the position STOP and switch it to MRES and quickly back to STOP within a period of less than 3 seconds The STOP LED bli...

Page 70: ...ted At this point the CPU attempts to reload the parameters and the program from the memory card The MCC LED blinks 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 The following approach deletes the internal RAM of the CPU completely and sets it back to the delivery state Please regard that the ...

Page 71: ... the pkg file assigned components within the CPU get the new firmware Firmware package and version 1 CPU 313SC DPM 2 Profibus DP master The latest 2 firmware versions may be found in the service area at www vipa de and at the ftp server at ftp vipa de support firmware For example the following files are necessary for the firmware update of the CPU 313 6CF03 and its components with hardware release...

Page 72: ...ction to the CPU To monitor the module information you choose the option PLC Module Information in the Siemens SIMATIC Manager Via the register General the window with hardware and firmware version may be selected From software technical reasons there is something different of the CPU 313SC DPM to the CPU 313C 2DP from Siemens The releases of hard and software may be found at Order No Description ...

Page 73: ...nternet Explorer ftp access only with version 5 5 or higher Options Internet options Register Advanced in the area Browsing activate Enable folder view for ftp sites activate Use passive ftp Netscape ftp access only with version 6 0 or higher No further adjustments are required If you still have problems with the ftp access please ask your system operator Attention With a firmware update an overal...

Page 74: ...inutes 5 The update is successful finished when the LEDs PWR STOP SF FRCE and MCC are on If they are blinking fast an error occurred 6 Turn Power OFF and ON Now it is checked by the CPU whether further current firmware versions are available at the MMC If so again the LEDs SF and FRCE flash after a short start up period Continue with point 3 If the LEDs do not flash the firmware update is ready No...

Page 75: ...c light states 3 After the 6 th static light release the operating mode switch and tip it downwards to MRES within 1s 4 For the confirmation of the resetting procedure the LEDs PWR STOP SF FRCE and MCC get ON If not the factory reset has failed and only an overall reset was executed In this case you can repeat the procedure A factory reset can only be executed if the stop LED has static light for ...

Page 76: ... memory expansion on the MCC exceeds the maximum extendable memory range of the CPU the maximum possible memory of the CPU is automatically used You may determine the recent memory extension via the Siemens SIMATIC Manager at Module Information Memory Attention Please regard that the MCC must remain plugged when you ve executed the memory expansion at the CPU Otherwise the CPU switches to STOP aft...

Page 77: ...ction you transfer the protected blocks into a WLD file named protect wld By plugging the MMC and following overall reset the blocks in the protect wld are permanently stored in the CPU You may protect OBs FBs and FCs When back reading the protected blocks into the PG exclusively the block header are loaded The source remains in the CPU and is thus protected for accesses of 3 rd persons CPU MMC RN...

Page 78: ...nsferred to the PG The block code that is to protect remains in the CPU and can not be read Protected blocks in the RAM of the CPU may be substituted at any time by blocks with the same name This change remains up to next overall reset Protected blocks may permanently be overwritten only if these are deleted at the protect wld before By transferring an empty protect wld from the MMC you may delete...

Page 79: ...regard the command sequence is to be started with CMD_START and ended with CMD_END Command Description Diagnostics entry CMD_START In the first line CMD_START is to be located 0xE801 There is a diagnostic entry if CMD_START is missing 0xE8FE WAIT1SECOND Waits ca 1 second 0xE803 WEBPAGE The current web page of the CPU is stored at the MMC as webpage htm 0xE804 LOAD_PROJECT The function Overall rese...

Page 80: ...ter the command CMD_END is not evaluated CMD_START Marks the start of the command sequence 0xE801 LOAD_PROJECT proj2 wld Execute an overall reset and load proj2 wld 0xE805 WAIT1SECOND Wait ca 1s 0xE803 WAIT1SECOND Wait ca 1s 0xE803 SET_NETWORK172 16 129 210 255 255 224 0 172 16 129 210 IP parameter 0xE80E WAIT1SECOND Wait ca 1s 0xE803 WAIT1SECOND Wait ca 1s 0xE803 WEBPAGE Store web page as webpage...

Page 81: ...UF More information may be found at MMC Cmd Auto commands Note Every register of the module information is supported by the VIPA CPUs More information may be found at the online help of the Siemens SIMATIC manager To monitor the diagnostic entries you choose the option PLC Module Information in the Siemens SIMATIC Manager Via the register Diagnostic Buffer you reach the diagnostic window The diagn...

Page 82: ...ization 0xE013 Error at shift register access to VBUS digital modules 0xE014 Error at Check_Sys 0xE015 Error at access to the master Zinfo2 Slot of the master 32 page frame master 0xE016 Maximum block size at master transfer exceeded Zinfo1 I O address Zinfo2 Slot 0xE017 Error at access to integrated slave 0xE018 Error at mapping of the master I O devices 0xE019 Error at standard back plane bus sy...

Page 83: ... the Ethernet PG OP channel by means of SET_NETWORK is faulty 0xE8FC MMC Cmd Error Not every IP Parameter is set at SET_NETWORK 0xE8FE MMC Cmd Error CMD_START was not found 0xE8FF MMC Cmd Error Reading the CMD file is faulty MMC error 0xE901 Check sum error 0xEA00 Internal error Please contact the VIPA Hotline 0xEA01 Internal error Please contact the VIPA Hotline 0xEA04 SBUS Multiple parameterizat...

Page 84: ...al error Please contact the VIPA Hotline 0xEA20 Error RS485 interface is not set to Profibus DP master but there is a Profibus DP master configured 0xEA21 Error Project engineering RS485 interface X2 X3 Profibus DP master is configured but missing Zinfo2 Interface x 0xEA22 Error RS485 interface X2 value is out of range Zinfo Configured value X2 0xEA23 Error RS485 interface X3 value is out of range...

Page 85: ...being executed It is also possible to enter corrections to the program Note When using the test function Monitor the PLC must be in RUN mode The processing of statuses can be interrupted by means of jump commands or by timer and process related alarms At the breakpoint the CPU stops collecting data for the status display and instead of the required data it only provides the PG with data containing...

Page 86: ... of outputs It is possible to check the wiring and proper operation of output modules You can set outputs to any desired status with or without a control program The process image is not modified but outputs are no longer inhibited Control of variables The following variables may be modified E A M T Z and D The process image of binary and digital operands is modified independently of the operating...

Page 87: ...e CPU 313SC It describes functionality project engineering and diagnostic of the analog and digital part Topic Page Chapter 5 Deployment I O periphery 5 1 Overview 5 2 In Output range CPU 313SC DPM 5 3 Address assignment 5 5 Digital part 5 6 Digital part Parameterization 5 8 Counter Fast introduction 5 9 Counter Controlling 5 14 Counter Functions 5 18 Counter Additional functions 5 24 Counter Diag...

Page 88: ...uring hardware configuration So for example the integrated RS485 interface may be parameterized The integrated I Os of the CPU 313SC DPM may be used for technological functions or as standard I Os Technological functions and standard I Os may be used simultaneously with appropriate hardware Read access to inputs used by technological functions is possible Write access to used outputs is not possib...

Page 89: ...hnological functions 3 Channels Each of the digital in outputs monitors its state via a LED Via the parameterization you may assign alarm properties to every digital input Additionally the digital inputs are parameterizable as counter 1 2 3 4 5 6 7 8 9 DI 1L 12 13 14 15 16 17 18 19 20 1M 2L 2M 31 32 33 34 35 36 37 38 39 40 3L 3M 22 21 23 24 25 26 27 28 29 30 DO Attention Please take care that the ...

Page 90: ...L DI16x DC24V DO16x DC24V 0 5A DI DO 0 7 0 7 DI L1 0 7 LED green Supply voltage available for DI LEDs green I 0 0 to I 0 7 resp I 1 0 to I 1 7 Starting with app 15V the signal 1 at the input is recognized and the according LED CPU 313SC DPM Pin assignment and status indicator Pin 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Assignment Power supply DC 24V Q 0 0 Channel 0 Output Q 0 1...

Page 91: ...igital Input I 1 0 I 1 7 Counter 768 DInt Channel 0 Count value Frequency value 772 DInt Channel 1 Count value Frequency value 776 DInt Channel 2 Count value Frequency value 780 DInt reserved Sub module Default address Access Assignment DI16 DO16 124 Byte Digital Output Q 0 0 Q 0 7 125 Byte Digital Output Q 1 0 Q 1 7 Counter 768 DWord reserved 772 DWord reserved 776 DWord reserved 780 DWord reserv...

Page 92: ...Pulse I 0 1 Channel 0 B Direction I 0 2 Channel 0 HW gate I 0 3 Channel 1 A Pulse I 0 4 Channel 1 B Direction I 0 5 Channel 1 HW gate I 0 6 Channel 2 A Pulse I 0 7 Channel 2 B Direction not connected not connected I 1 0 Channel 2 HW gate I 1 1 Channel 3 A Pulse I 1 2 Channel 3 B Direction I 1 3 Channel 3 HW gate I 1 4 Channel 0 Latch I 1 5 Channel 1 Latch I 1 6 Channel 2 Latch I 1 7 Channel 3 Latc...

Page 93: ... green Supply voltage available for DO LEDs green Q 0 0 to Q 0 7 resp Q 1 0 to Q 1 7 on at active output LED red Overload or short circuit error The CPU 313SC DPM creates in its peripheral area an area for input respectively output data Without a hardware configuration the in the following specified default addresses are used Sub module Default address Access Assignment DI16 DO16 124 Byte Digital ...

Page 94: ...t this register the start address of the in output periphery may be set Here there are the following adjustment possibilities Hardware interrupt Input delay For the digital output channels there are no parameters A hardware interrupt may be optionally triggered on the rising or falling edge of an input A diagnostic interrupt is only supported together with hardware interrupt lost Select with the a...

Page 95: ...number of activated counters for the CPU 313SC DPM the maximum frequency amounts to 30kHz The controlling of the appropriate modes of operation is made from the user program by the SFB COUNT SFB 47 Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Assignment Power supply DC 24V I 0 0 Ch 0 A Pulse I 0 1 Ch 0 B Direction I 0 2 Ch 0 Hardware gate I 0 3 Ch 1 A Pulse I 0 4 Ch 1 B Direction I 0 5 C...

Page 96: ...Hereby you get read and write access to the registers of the appropriate counter So that a new job may be executed the previous job must have be finished with JOB_DONE TRUE Per channel you may call the SFB in each case with the same instance DB since the data necessary for the internal operational are stored here Writing accesses to outputs of the instance DB is not permissible Note You must not c...

Page 97: ...e gatex This input allows you to open the HW gate with a high peek and thus start a count process The usage of the HW gate may be parameterized Latchx With an edge 0 1 at Latchx the recent counter value is stored in a memory that you may read at need Every counter has an assigned output channel The following behavior for the output channel may be set via parameterization No comparison Output is no...

Page 98: ...ith continuous count Down Restricts the down counting range The Counter starts at the declared start value or load value in negative direction counts to 1 and then jumps to start value at the next negative encoder pulse End value Start value End value with up count as default Start value with down count as default 2 2147483647 2 31 1 2147483647 2 31 1 Gate function Cancel count The count starts wh...

Page 99: ...setting Characteristics of the output Pulse at comparison value the pulse duration of the output signal may be specified Only even values are possible The value is internal multiplied with 1 024ms 0 to 510 0 Hardware interrupt Hardware gate opening In the activated state a hardware interrupt is generated when the hardware gate opens while the software gate is open activated deactivated Hardware in...

Page 100: ...ALSE Enables the output False Standard Digital Output SET_DO INPUT BOOL 4 2 FALSE Parameter is not evaluated JOB_REQ INPUT BOOL 4 3 FALSE Initiates the job edge 0 1 JOB_ID INPUT WORD 6 0 0 Job ID JOB_VAL INPUT DINT 8 0 0 Value for write jobs STS_GATE OUTPUT BOOL 12 0 FALSE Status of the internal gate STS_STRT OUTPUT BOOL 12 1 FALSE Status of the hardware gate is only refreshed if HW gate is activa...

Page 101: ...FALSE Overflow status is only set at range overflow STS_UFLW BOOL 26 6 FALSE Underflow status is only set at range underflow STS_ZP BOOL 26 7 FALSE Status of the zero mark The bit is only set when counting without main direction Indicates the zero mark This is also set when the counter is set to 0 or if is start counting JOB_OVAL DINT 28 0 Output value for read request RES10 BOOL 32 0 FALSE reserv...

Page 102: ...s the hysteresis 90h Reads the pulse duration A0h Reads the end value JOB_VAL DINT 8 0 0 Value for write jobs see table at the following page Call the SFB The job is processed immediately JOB_DONE only applies to SFB run with the result FALSE JOB_ERR TRUE if an error occurred Details on the error cause are indicated at JOB_STAT Name Data type Address DB Default Comment JOB_DONE BOOL 22 0 TRUE New ...

Page 103: ... Job Valid range End value 2 to 2147483646 231 1 Writing counter directly 2147483648 231 to end value 2 Writing the load value 2147483648 231 to end value 2 Writing comparison value 2147483648 231 to end value 1 Writing hysteresis 0 to 255 Writing pulse duration 0 to 510ms Single periodic count main count direction down Job Valid range Writing counter directly 2 to 2147483647 231 1 Writing the loa...

Page 104: ...hosen the complete counting range is available Limit counter Valid value range Lower count limit 2 147 483 648 231 Upper count limit 2 147 483 647 231 1 Otherwise this range may be limited in both directions by a start value as load value and an end value Main counting direction forward Upper restriction of the count range The counter counts 0 res load value in positive direction until the paramet...

Page 105: ...ps to the lower count limit and counts from there on When the counter counts backwards and reaches the lower count limit and another counting pulse in negative direction arrives it jumps to the upper count limit and counts from there on The count limits are set to the maximum count range Valid value range Lower count limit 2 147 483 648 231 Upper count limit 2 147 483 647 231 1 upper counter limit...

Page 106: ... edge 0 1 of the gate At interrupting gate control the count process continuous with the last recent counter value At aborting gate control the counter starts with the load value Valid value range Lower count limit 2 147 483 648 2 31 Upper count limit 2 147 483 647 2 31 1 Interrupting gate control upper counter limit lower counter limit load value 0 gate start overflow underflow time counter value...

Page 107: ...8 231 end value lower counter limit load value 0 overflow underflow time counter value gate stop automatically gate stop automatically gate start gate start Main counting direction backwards The counter counts backwards starting with the load value When the counter reaches the end value 1 in negative direction it jumps to the load value at the next negative count pulse and the gate is automaticall...

Page 108: ...483 648 231 Upper count limit 2 147 483 647 231 1 upper counter limit load value 0 gate start time counter value gate stop lower counter limit overflow underflow zero crossing Main counting direction forward The counter counts forward starting with the load value When the counter reaches the end value 1 in positive direction it jumps to the load value at the next positive count pulse Valid value r...

Page 109: ...ing with the load value When the counter reaches the end value 1 in negative direction it jumps to the load value at the next negative count pulse You may exceed the upper count limit Valid value range Limit value 2 147 483 647 231 1 to 2 147 483 647 231 2 Upper count limit 2 147 483 647 231 1 upper counter limit load value 0 gate start time counter value gate stop end value ...

Page 110: ...et a comparison value that activates res de activates a digital output res releases a hardware interrupt depending on the counter value Hysteresis The setting of a hysteresis avoids for example a high output toggling when the value of an encoder signal shifts around a comparison value The illustration shows how the additional functions influence the counting behavior The following pages describe t...

Page 111: ...at hardware gatex input of the module SW gate open activate In application program by setting SW_GATE of the SFB 47 close deactivate In application program by resetting SW_GATE of the SFB 47 Gate function cancel and stop The parameterization defines if the gate cancels or stops the counter process At cancel function the counter starts counting with the load value after gate restart load value gate...

Page 112: ...SW gate HW gate Reaction Counter edge 0 1 1 Continue 1 edge 0 1 Restart with load value Gate control via SW HW gate stopping HW gate activated gate function Stop count SW gate HW gate Reaction Counter edge 0 1 1 Continue 1 edge 0 1 Continue Gate control via SW HW gate operating mode Count once If the internal gate has been closed automatically it may only be opened again under the following condit...

Page 113: ... shown by the status bit STS_CMP This status bit may only be reset if the comparison condition is no longer fulfilled Pulse at comparison value When the counter reaches the comparison value the output is set for the parameterized pulse duration If you have configured a main count direction the output is only activated when the comparison value is reached with the specified main count direction For...

Page 114: ... 6 5 4 3 2 1 0 Comparison value Hysteresis Output Hysteresis 0 Hysteresis 3 Counter value 1 2 3 4 5 6 7 1 Counter value comparison value output is set and hysteresis activated 2 Leave hysteresis range output is reset 3 Counter value comparison value output is set and hysteresis activated 4 Leave hysteresis range output remains set for counter value comparison value 5 Counter value comparison value...

Page 115: ...on value output is set and hysteresis activated 4 Output is reset for leaving hysteresis range and counter value comparison value 5 Counter value comparison value output is set and hysteresis activated 6 Counter value comparison value and hysteresis active output remains set 7 Leave hysteresis range and counter value comparison value output is reset With reaching the comparison condition the hyste...

Page 116: ...hysteresis range without changing counting direction hysteresis is de activated 5 Counter value comparison value pulse of the parameterized duration is put out the hysteresis is activated and the counting direction stored 6 Counter value comparison value and hysteresis active no pulse 7 Leaving the hysteresis range contrary to the stored counting direction pulse of the parameterized duration is pu...

Page 117: ...the local double word 8 The local double word 8 of the OB 40 has the following structure Local byte Bit 7 Bit 0 8 Bit 0 Edge at I 0 0 Bit 1 Edge at I 0 1 Bit 2 Edge at I 0 2 Bit 3 Edge at I 0 3 Bit 4 Edge at I 0 4 Bit 5 Edge at I 0 5 Bit 6 Edge at I 0 6 Bit 7 Edge at I 0 7 9 Bit 0 Edge at I 1 0 Bit 1 Edge at I 1 1 Bit 2 Edge at I 1 2 Bit 3 Edge at I 1 3 Bit 4 Edge at I 1 4 Bit 5 Edge at I 1 5 Bit ...

Page 118: ...a channel where currently a diagnostic interruptincoming is processed res interim stored initializes further hardware interrupts these get lost When a hardware interrupt for which a diagnostic interruptincoming has been released is ready the diagnostic interrupt processing is called again as diagnostic interruptgoing All events of a channel between diagnostic interruptincoming and diagnostic inter...

Page 119: ... following structure Byte Bit 7 0 0 Bit 0 set at module failure Bit 1 0 fix Bit 2 set at external error Bit 3 set at channel error Bit 4 set when external auxiliary supply is missing Bit 7 5 0 fix 1 Bit 3 0 Module class 0101b Analog 1111b Digital Bit 4 Channel information present Bit 7 5 0 fix 2 Bit 3 0 0 fix Bit 4 Failure module internal supply voltage output overload Bit 7 5 0 fix 3 Bit 5 0 0 fi...

Page 120: ...Error in channel group 1 I 0 4 I 0 7 Bit 2 Error in channel group 2 I 1 0 I 1 3 Bit 3 Error in channel group 3 I 1 4 I I 7 Bit 4 Error in channel group 4 Counter 0 Bit 5 Error in channel group 5 Counter 1 Bit 6 Error in channel group 6 Counter 2 Bit 7 reserviert 8 Diagnostic interrupt due to hardware interrupt lost at Bit 0 input I 0 0 Bit 1 0 fix Bit 2 input I 0 1 Bit 3 0 fix Bit 4 input I 0 2 Bi...

Page 121: ...e Counter 0 open Bit 3 0 fix Bit 4 Over underflow end value Counter 0 Bit 5 0 fix Bit 6 Counter 0 reached comparison value Bit 7 0 fix 13 Diagnostic interrupt due to hardware interrupt lost at Bit 0 Gate Counter 1 closed Bit 1 0 fix Bit 2 Gate Counter 1 open Bit 3 0 fix Bit 4 Over underflow end value Counter 1 Bit 5 0 fix Bit 6 Counter 1 reached comparison value Bit 7 0 fix 14 Diagnostic interrupt...

Page 122: ...Chapter 5 Deployment I O periphery Manual VIPA System 300S SPEED7 5 36 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...

Page 123: ...ial PtP communication Here you ll find all information about the protocols and project engineering of the interface which are necessary for the serial communication using the RS485 interface Topic Page Chapter 6 Deployment PtP communication 6 1 Fast introduction 6 2 Protocols and procedures 6 3 Principals of the data transfer 6 7 Deployment RS485 interface 6 8 Parameterization 6 9 Communication 6 ...

Page 124: ...in a DB for all protocols except ASCII The communication is controlled by SFCs Send takes place via SFC 217 SER_SND and receive via SFC 218 SER_RCV The repeated call of the SFC 217 SER_SND delivers a return value for 3964R USS and Modbus via RetVal that contains among other things recent information about the acknowledgement of the partner station The protocols USS and Modbus allow to evaluate the...

Page 125: ...s BCC Any data transferred from the periphery must be preceded by a start followed by the data characters and the end character Depending of the byte width the following ASCII characters can be transferred 5Bit not allowed 6Bit 20 3Fh 7Bit 20 7Fh 8Bit 20 FFh The effective data which includes all the characters between Start and End are transferred to the PLC when the End has been received When dat...

Page 126: ...C Block Check Character NAK Negative Acknowledge STX DLE Message data DLE ETX BCC Monitor delayed acknowledgment DLE Monitor delayed acknowledgment Active partner Passive partner You may transfer a maximum of 255Byte per message Note When a DLE is transferred as part of the information it is repeated to distinguish between data characters and DLE control characters that are used to establish and t...

Page 127: ...happens exclusively in half duplex operation After a send command the acknowledgement telegram must be read by a call of the SFC 218 SER_RCV The telegrams for send and receive have the following structure Master Slave telegram STX LGE ADR PKE IND PWE STW HSW BCC 02h H L H L H L H L H L Slave Master telegram STX LGE ADR PKE IND PWE ZSW HIW BCC 02h H L H L H L H L H L where STX Start sign STW Contro...

Page 128: ...gn Slave address Function Code Data Flow control End sign A request can be directed to a special slave or at all slaves as broadcast message To mark a broadcast message the slave address 0 is used In opposite to a normal send command the broadcast does not require a telegram evaluation via SFC 218 SER_RCV Only write commands may be sent as broadcast Modbus offers 2 different transfer modes ASCII m...

Page 129: ...size of 2x1024Byte and can there be read by the PLC If the data is transferred via a protocol the adoption of the data to the according protocol happens automatically In opposite to ASCII and STX ETX the protocols 3964R USS and Modbus require the acknowledgement of the partner An additional call of the SFC 217 SER_SND causes a return value in RetVal that includes among others recent information ab...

Page 130: ...interface Logical states represented by voltage differences between the two cores 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 Data communication rate up to 115 2kBaud 9pin SubD jack Pin RS485 1 n c 2 M24V 3 RxD TxD P Line B 4 RTS 5 M5V 6 P5V 7 P24V 8 RxD TxD N Line A 5 4 3 2 1 9 8 7 6 9 n c RxD TxD P B...

Page 131: ...e baudrate CharLen IN BYTE 0 5Bit 1 6Bit 2 7Bit 3 8Bit Parity IN BYTE 0 None 1 Odd 2 Even StopBits IN BYTE 1 1Bit 2 1 5Bit 3 2Bit FlowControl IN BYTE 1 fix RetVal OUT WORD Return value 0 OK All time settings for timeouts must be set as hexadecimal value Find the hex value by multiply the wanted time in seconds with the baudrate Example Wanted time 8ms at a baudrate of 19200Baud Calculation 19200Bi...

Page 132: ...es end sign should always be a value 20 otherwise the sign is ignored Data block at 3964R DBB0 Prio BYTE The priority of both partners must be different DBB1 ConnAttmptNr BYTE Number of connection trials DBB2 SendAttmptNr BYTE Number of telegram retries DBW4 CharTimeout WORD Character delay time DBW6 ConfTimeout WORD Acknowledgement delay time Data block at USS DBW0 Timeout WORD Delay time in Data...

Page 133: ...lowControl is ignored When sending RST 0 when receiving RST 1 Return values send by the block Error code Description 0000h no error 809Ah interface not found 8x24h Error at SFC Parameter x with x 1 Error at Protocol 2 Error at Parameter 3 Error at Baudrate 4 Error at CharLength 5 Error at Parity 6 Error at StopBits 7 Error at FlowControl Parameter missing 809xh Error in SFC parameter value x where...

Page 134: ...r SER_SND Name Declaration Type Comment DataPtr IN ANY Pointer to Data Buffer for sending data DataLen OUT WORD Length of data sent RetVal OUT WORD Return value 0 OK Here you define a range of the type Pointer for the send buffer where the data that has to be sent is stored You have to set type start and length Example Data is stored in DB5 starting at 0 0 with a length of 124Byte DataPtr P DB5 DB...

Page 135: ... x where x 1 Error in DataPtr 2 Error in DataLen 8122h Error in parameter DataPtr e g DB too short 807Fh Internal error 809Ah Interface not found or interface is used for Profibus 809Bh Interface not configured ASCII Value Description 9000h Buffer overflow no data send 9002h Data too short 0Byte STX ETX Value Description 9000h Buffer overflow no data send 9001h Data too long 1024Byte 9002h Data to...

Page 136: ...00h Buffer overflow no data send 9001h Data too long 1024Byte 9002h Data too short 2Byte Modbus RTU ASCII Master Error code Description 2000h Send ready positive slave respond 2001h Send ready negative slave respond 8080h Receive buffer overflow no space for receipt 8090h Acknowledgement delay time exceeded 80F0h Wrong checksum in respond 80FDh Length of respond too long 80FEh Wrong function code ...

Page 137: ...fferent protocols 3964R USS Modbus SFC 217 SER_SND Busy RetVal 8xxxh 90xxh RetVal 2001h RetVal 2000h N N N Error evaluation End J J J Data evaluation End N J SFC 217 SER_SND Busy RetVal 8xxxh 90xxh RetVal 2001h RetVal 2000h N N N SFC 218 SER_RCV Error evaluation End J J J SFC 218 SER_RCV Data evaluation End N J ASCII STX ETX SFC 217 SER_SND RetVal 900xh Error evaluation End J N Principles of progr...

Page 138: ... STX ETX and 3964R the length of the received user data or 0 is entered At ASCII the number of read characters is entered This value may be different from the read telegram length This word gets an entry in case of an error The following error messages may be created depending on the protocol ASCII Bit Error Description 0 overrun Overflow a sign couldn t be read fast enough from the interface 1 fr...

Page 139: ...tr 2 Error at DataLen 3 Error at Error 8122h Error in parameter DataPtr e g DB too short 809Ah Serial interface not found res interface is used by Profibus 809Bh Serial interface not configured The following picture shows the basic structure for programming a receive command This structure can be used for all protocols SFC 218 SER_RCV RetVal 0000h RetVal 8xxxh N Data evaluation End J Error evaluat...

Page 140: ...Chapter 6 Deployment PtP communication Manual VIPA System 300S SPEED7 6 18 HB140E CPU SC RE_313 6CF03 Rev 07 45 ...

Page 141: ...rameterization of a CPU 313SC with integrated Profibus Part from VIPA is shown Further you get information about usage as DP master and DP slave of the Profibus part The chapter is ended with notes to commissioning and start up Topic Page Chapter 7 Deployment Profibus communication 7 1 Overview 7 2 Project engineering CPU with integrated Profibus DP master 7 3 Deployment as Profibus DP slave 7 5 P...

Page 142: ...the Profibus master part During the start up the DP master automatically includes his data areas into the address range of the CPU A project engineering in the CPU is not required As external storage medium the Profibus DP master uses the MMC Multi Media Card together with the CPU Via the Profibus DP master up to 125 Profibus DP slaves may be coupled to the CPU The DP master communicates with the ...

Page 143: ... of the CPU and the Profibus DP master a thorough knowledge of the Siemens SIMATIC manager is required The hardware configurator is a part of the Siemens SIMATIC Manager It serves the project engineering The modules that may be configured here are listed in the hardware catalog For the deployment of the Profibus DP slaves of the Systems 100V 200V and 300V from VIPA you have to include the modules ...

Page 144: ...modules of your DP slave system in the plugged sequence and add the addresses that should be used by the modules If needed parameterize the modules Save compile and transfer your project More detailed information about project engineering and project transfer may be found at chapter Deployment CPU 313SC DPM Note If you deploy an IM153 from Siemens under a VIPA CPU 313SC DPM please use the compatib...

Page 145: ...the following these steps are more detailed Start the Siemens SIMATIC manager with a new project Insert a SIMATIC 300 station and name it as DP slave Open the hardware configurator and insert a profile rail from the hardware catalog Place the following Siemens CPU at slot 2 CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 Add your modules according to the real hardware assembly Connect the CPU to Profibus se...

Page 146: ...stem and select your slave system Open the Configuration at Object properties of your slave system Via double click to the according configuration line you assign the according input address area on the master CPU to the slave output data and the output address area to the slave input data Save compile and transfer your project More detailed information about project engineering and project transf...

Page 147: ... transfer medium Profibus uses an isolated twisted pair cable based upon the RS485 interface The RS485 interface is working with voltage differences Though it is less irritable from influences than a voltage or a current interface You are able to configure the network as well linear as in a tree structure Your VIPA CPU 31xSC includes a 9pin slot where you connect the Profibus coupler into the Prof...

Page 148: ...e Profibus line has to be terminated with its ripple resistor Please make sure to terminate the last participants on the bus at both end by activating the terminating resistor In systems with more than two stations all partners are wired in parallel For that purpose the bus cable must be feed through uninterrupted Via the order number VIPA 972 0DP10 you may order the bus connector EasyConn This is...

Page 149: ...s provided with a switch that is used to activate a terminating resistor Attention The terminating resistor is only effective if the connector is installed at a slave and the slave is connected to a power supply Note A complete description of installation and deployment of the terminating resistors is delivered with the connector Loosen the screw Lift contact cover Insert both wires into the ducts...

Page 150: ...d bus parameter were transferred to the DP master The DP master does not have any operation switch His state is controlled by the RUN STOP state of the CPU Dependent on the CPU state the following behavior is shown by the DP master The global control command Operate is sent to the slaves by the master Here the DE LED is ON Every connected DP slave is cyclically attended with an output telegram con...

Page 151: ... Hardware interrupt 5 31 Hysteresis 5 28 Latch function 5 17 5 26 Load value 5 18 Main counting direction 5 18 Pin assignment 5 9 Request interface 5 16 SFB 47 5 14 Value ranges 5 17 Cycle time surveillance 4 28 D Deployment CPU 313SC DPM 4 1 I O periphery 5 1 Profibus 7 1 PtP communication 6 1 Diagnostic Buffer 4 41 Counter 5 31 MPI 4 24 Digital part 3 7 5 3 Address assignment 5 7 E EMC 2 8 Basic...

Page 152: ...ors 7 8 De isolating lengths 7 9 Deployment as DP slave 7 5 Installation guidelines 7 7 Line termination 7 9 Overview 7 2 Start up behavior 7 10 Synchronization 4 19 Transfer medium 7 7 Profile rail 2 2 Project engineering 4 11 Bus extension 4 4 Fast introduction 4 11 Profibus DP master 7 1 Transfer 4 22 Ethernet PG OP channel 4 25 MMC 4 23 MPI 4 22 Diagnostics 4 24 PtP communication 6 1 3964R 6 4...

Reviews: