background image

Input

Description

Assignment

Signal evaluation

Specify the signal of the connected encoder:

n

Pulse/direction At the input count and direction signal

are connected

n

At the input there is an encoder connected with the fol-

lowing evaluation:

Rotary encoder single

Rotary encoder double

Rotary encoder quadruple

Pulse/direction

Hardware gate

Gate control exclusively via channel 3:

n

enabled: The gate control for channel 3 happens via

SW and HW gate

n

disabled: The gate control for channel 3 exclusively

happens via SW gate

Ä

 Chapter 5.6.6.2 ‘Gate function’ on page 111

disabled

Count direction inverted

Invert the input signal 

‘Direction’

:

n

enabled: The input signal is inverted

n

disabled: The input signal is not inverted

disabled

Output

Description

Assignment

Characteristics of the output The output and the "Comparator" (STS_CMP) status bit

are set, dependent on this parameter.

n

No comparison: The output is used as normal output

and STS_CMP remains reset.

n

Comparator

Counter value 

³

 Comparison value

Counter value 

£

 Comparison value

n

Pulse at 

comparison value

To adapt the used actuators you can specify a

pulse duration

. The output is set for the specified

pulse duration

 when the counter value reaches the

comparison value

. When you've set a main

counting direction the output is only set at reaching

the 

comparison value

 from the main counting direc-

tion.

No comparison

Pulse duration

Here you can specify the 

pulse duration

 for the output

signal.

n

The 

pulse duration

 starts with the setting of the

according digital output.

n

The inaccuracy of the 

pulse duration

 is less than 1ms.

n

There is no past triggering of the 

pulse duration

 when

the 

comparison value

 has been left and reached again

during pulse output.

n

If the 

pulse duration

 is changed during operation, it will

take effect with the next pulse.

n

If the 

pulse duration

 = 0, the output is set until the com-

parison condition is not longer fulfilled.

Range of values: 0...510ms in steps of 2ms

0

VIPA System MICRO

Deployment I/O periphery

Counting > Parametrization

HB400 | CPU | M13-CCF0000 | en | 16-47

 

102

Summary of Contents for VIPA System MICRO M13-CCF0000

Page 1: ...CPU M13 CCF0000 Manual HB400 CPU M13 CCF0000 en 16 47 VIPA System MICRO SPEED7 CPU M13C www vipa com en service support manual ...

Page 2: ...M13 CCF0000_000_CPU M13C 1 EN 2016 VIPA GmbH Ohmstr 4 91074 Herzogenaurach Telephone 09132 744 0 Fax 09132 744 1864 Email info vipa com Internet www vipa com ...

Page 3: ...34 3 2 1 System MICRO CPU M13C 34 3 2 2 Interfaces 35 3 2 3 LEDs 40 3 2 4 Memory management 41 3 2 5 Slot for storage media 42 3 2 6 Buffering mechanisms 42 3 2 7 Operating mode switch 42 3 3 Option Extension module EM M09 2x serial interface 43 3 4 Technical data 44 3 4 1 Technical data CPU 44 3 4 2 Technical data EM M09 55 4 Deployment CPU M13 CCF0000 56 4 1 Assembly 56 4 2 Start up behavior 56 ...

Page 4: ...ettings 78 4 15 Deployment storage media VSD VSC 79 4 16 Extended know how protection 81 4 17 CMD auto commands 82 4 18 Control and monitoring of variables with test functions 84 4 19 Diagnostic entries 85 5 Deployment I O periphery 86 5 1 Overview 86 5 2 Address assignment 87 5 3 Analog input 87 5 3 1 Properties 87 5 3 2 Analog value representation 88 5 3 3 Wiring 89 5 3 4 Parametrization 89 5 4 ...

Page 5: ...connections 147 6 9 Configure Open Communication 152 7 Option PtP communication 155 7 1 Fast introduction 155 7 2 Principle of the data transfer 156 7 3 PtP communication via extension module EM M09 157 7 4 Parametrization 160 7 4 1 FC SFC 216 SER_CFG Parametrization PtP 160 7 5 Communication 161 7 5 1 FC SFC 217 SER_SND Send to PtP 161 7 5 2 FC SFC 218 SER_RCV Receive from PtP 161 7 6 Protocols a...

Page 6: ...fer via MPI 197 9 7 2 Transfer via Ethernet 199 9 7 3 Transfer via memory card 200 10 Configuration with TIA Portal 201 10 1 TIA Portal Work environment 201 10 1 1 General 201 10 1 2 Work environment of the TIA Portal 201 10 2 TIA Portal Hardware configuration CPU 202 10 3 TIA Portal Hardware configuration Ethernet PG OP channel 205 10 4 TIA Portal VIPA Include library 207 10 5 TIA Portal Project ...

Page 7: ...ve purchase contract Hereby VIPA GmbH declares that the products and systems are in compliance with the essential requirements and other relevant provisions Conformity is indicated by the CE marking affixed to the product For more information regarding CE marking and Declaration of Conformity DoC please contact your local VIPA customer service organization VIPA SLIO System 100V System 200V System ...

Page 8: ...3 CCF0000 01 V2 0 12 The manual is targeted at users who have a background in automation technology The manual consists of chapters Every chapter provides a self contained description of a specific topic The following guides are available in the manual n An overall table of contents at the beginning of the manual n References with page numbers The manual is available in n printed form on paper n i...

Page 9: ...t n installation department n commissioning n operation CAUTION The following conditions must be met before using or commis sioning the components described in this manual Hardware modifications to the process control system should only be carried out when the system has been disconnected from power Installation and hardware modifications only by properly trained per sonnel The national rules and ...

Page 10: ... to the applicable rules and regulations for handling the respective equipment can prevent failures of electrostatic sensitive modules Modules must be shipped in the original packing material When you are conducting measurements on electrostatic sensitive modules you should take the following precautions n Floating instruments must be discharged before use n Instruments must be grounded Modifying ...

Page 11: ...ected via backplane bus the CPU has removable connectors By installing of up to 8 periphery modules at the backplane bus of the CPU these are electrically connected this means these are assigned to the backplane bus and con nected to the DC 24V electronic power supply By using extension modules you can extend the interfaces of the CPU The attachment to the CPU is made by plugging on the left side ...

Page 12: ...2 3 Dimensions Dimensions in mm Dimensions in mm Dimensions CPU M13C Dimensions extension module EM M09 VIPA System MICRO Basics and mounting Dimensions HB400 CPU M13 CCF0000 en 16 47 12 ...

Page 13: ...ithout mounting rail is only permitted if you only want to use the CPU without extension and periphery modules Otherwise a mounting rail must always be used for EMC technical reasons Dimensions periphery module SM M2x VIPA System MICRO Basics and mounting Mounting Mounting CPU HB400 CPU M13 CCF0000 en 16 47 13 ...

Page 14: ... locking levers get visible 2 Use the appropriate screws to fix your CPU to your back wall Consider the installa tion clearances for the CPU ð The CPU is now mounted and can be wired 2 4 1 2 Mounting with mounting rail Dimensions in mm 1 Mount the mounting rail Please consider that a clearance from the middle of the mounting rail of at least 44mm respectively 55mm above and below exists Proceeding...

Page 15: ...e module may be damaged 3 Plug the CPU from the top onto the mounting rail and turn the periphery module downward until it rests on the mounting rail 4 Move the CPU on the mounting rail at its position 5 To fix the CPU at the mounting rail move the locking levers back to the initial posi tion ð The CPU is now mounted and can be wired VIPA System MICRO Basics and mounting Mounting Mounting CPU HB40...

Page 16: ... audible CAUTION It is not allowed to mount the module sideways on the mounting rail as otherwise the module may be damaged 3 To mount plug the extension module from the top onto the mounting rail and turn the extension module downward until it rests on the mounting rail 4 Attach the extension module to the CPU by sliding the extension module on the mounting rail to the right until the interface c...

Page 17: ...s not allowed to mount the module sideways on the mounting rail as otherwise the module may be damaged 3 To mount plug the periphery module from the top onto the mounting rail and turn the periphery module downward until it rests on the mounting rail 4 Attach the periphery module to the CPU by sliding the periphery module on the mounting rail to the left until the interface connector slightly lock...

Page 18: ...wiring the CPU has removable connectors With the wiring of the connectors a push in spring clip technique is used This allows a quick and easy connection of your signal and supply lines The clamping off takes place by means of a screwdriver Umax 240V AC 30V DC Imax 10A Cross section 0 2 1 5mm2 AWG 24 16 Stripping length 10mm Use for wiring rigid wires respectively use wire sleeves When using stran...

Page 19: ...1 Press with your screwdriver vertically at the release button ð The contact spring releases the wire 2 Pull the wire from the round hole 1 X2 4L DC 24V power section supply for integrated outputs X1 3L DC 24V power section supply for integrated inputs 2 X6 1L DC 24V for electronic power supply The electronic power section supply is internally protected against higher voltage by fuse The fuse is l...

Page 20: ...cked and can be removed CAUTION Via wrong operation such as pressing the screwdriver down ward the release lever may be damaged 3 Plug connector The connector is plugged by plugging it directly into the release lever 2 5 2 Wiring periphery module For wiring the periphery m module has removable connectors With the wiring of the con nectors a push in spring clip technique is used This allows a quick...

Page 21: ...ewdriver with 2 5mm blade width 1 Press with your screwdriver vertically at the release button ð The contact spring releases the wire 2 Pull the wire from the round hole By means of a screwdriver there is the possibility to remove the connectors e g for module exchange with a fix wiring For this each connector has indentations for unlocking at the top Unlocking takes place by the following proceed...

Page 22: ... exchange with a fix wiring For this each connector has indentations for unlocking at the top Unlocking takes place by the following proceeding 1 Power off your system 2 Remove connector Insert your screwdriver from above into one of the indentations 3 Push the screwdriver backwards ð The connector is unlocked and can be removed CAUTION Via wrong operation such as pressing the screwdriver down war...

Page 23: ...ith a rotation upwards from the mounting rail 3 Pull the locking levers of the CPU outwards until these engage audible CAUTION It is not allowed to mount the module sideways on the mounting rail as otherwise the module may be damaged 4 Plug the CPU from the top onto the mounting rail and turn the periphery module downward until it rests on the mounting rail CPU replacement stand alone VIPA System ...

Page 24: ...ð Now you can bring your system back into operation In the following the replacement of a CPU in a system is shown 1 If there is an extension module connected to the CPU you have to remove it from the CPU For this pull the locking levers of the extension module and CPU outwards until these engage audible Option CPU replacement in a system VIPA System MICRO Basics and mounting Demounting Demounting...

Page 25: ...e may be damaged 5 For mounting pull the locking levers of the CPU outwards until these engage audible Plug the CPU from the top onto the mounting rail and turn the periphery module downward until it rests on the mounting rail 6 Rebind your modules by moving the CPU along with the extension module on the mounting rail 7 To fix the CPU at the mounting rail move the locking levers back to the initia...

Page 26: ... rail 5 Remove the extension module with a rotation upwards from the mounting rail 6 Pull the locking levers of the extension module outwards until these engage audible CAUTION It is not allowed to mount the module sideways on the mounting rail as otherwise the module may be damaged 7 Plug the extension module from the top onto the mounting rail and turn the exten sion module downward until it res...

Page 27: ...ocking at the top Unlocking takes place by the following proceeding 1 Power off your system 2 Remove connector Insert your screwdriver from above into one of the indentations 3 Push the screwdriver backwards ð The connector is unlocked and can be removed CAUTION Via wrong operation such as pressing the screwdriver down ward the connector may be damaged 4 In this way remove all plugged connectors o...

Page 28: ...wise the module may be damaged 5 Plug the periphery module from the top onto the mounting rail and turn the periphery module downward until it rests on the mounting rail 6 Reconnect all modules by pushing them together again on the mounting rail 7 Move the locking levers back to the initial position 8 Remove the connectors which are not necessary VIPA System MICRO Basics and mounting Demounting De...

Page 29: ...eployment in industrial environments and meets 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 n Electromagnetic fields RF coupling n Magnetic fields with power frequency n Bus system n Power supply n Protected ea...

Page 30: ...Please take care for the targeted employment of the grounding actions The grounding of the PLC serves for protection and functionality activity Connect installation parts and cabinets with your PLC in star topology with the isolation protected earth conductor system So you avoid ground loops If there are potential differences between installation parts and cabinets lay suffi ciently dimensioned po...

Page 31: ... compensation line 2 8 General data Conformity and approval Conformity CE 2014 35 EU Low voltage directive 2014 30 EU EMC directive Approval UL Refer to Technical data others RoHS 2011 65 EU Restriction of the use of certain hazardous substances in electrical and electronic equipment Protection of persons and device protection Type of protection IP20 Electrical isolation to the field bus electrica...

Page 32: ...ss A Industrial area Noise immunity zone B EN 61000 6 2 Industrial area EN 61000 4 2 ESD 8kV at air discharge degree of severity 3 4kV at contact discharge degree of severity 2 EN 61000 4 3 HF field immunity casing 80MHz 1000MHz 10V m 80 AM 1kHz 1 4GHz 2 0GHz 3V m 80 AM 1kHz 2GHz 2 7GHz 1V m 80 AM 1kHz EN 61000 4 6 HF conducted 150kHz 80MHz 10V 80 AM 1kHz EN 61000 4 4 Burst degree of severity 3 EN...

Page 33: ...nnel for active and passive Communication integrated n X6 AI 2x12Bit single ended integrated n Technological functions 4 channels for counter frequency measurement and 2 chan nels for pulse width modulation n Option Extension module 2xRS485 n Option max 8 periphery modules n I O address area digital analog 2048byte n 512 timer counter 8192 flag byte Ordering data Type Order number Description CPU ...

Page 34: ...ge media lockable 4 Operating mode switch CPU 5 Status bar CPU 6 X3 Ethernet PG OP channel 7 X4 Ethernet PG OP channel 8 X5 Connector DI byte 1 9 X6 Connector electronic section supply AI DO byte 1 CPU M13 CCF0000 VIPA System MICRO Hardware description Structure System MICRO CPU M13C HB400 CPU M13 CCF0000 en 16 47 34 ...

Page 35: ...3 2 2 Interfaces VIPA System MICRO Hardware description Structure Interfaces HB400 CPU M13 CCF0000 en 16 47 35 ...

Page 36: ...Digital input DI 3 Counter 1 A 6 DI 0 2 I green Digital input DI 2 7 DI 0 1 I green Digital input DI 1 Counter 0 B Frequency 0 8 DI 0 0 I green Digital input DI 0 Counter 0 A 9 0 V I 3M GND for onboard DI power section supply 10 DC 24V I green 3L DC 24V for onboard DI power section supply Max input frequency 100kHz otherwise 1kHz X1 DI byte 0 X2 DO byte 0 VIPA System MICRO Hardware description Str...

Page 37: ...nd to access the internal web server n Configurable connections are possible n The connection happens via an integrated 2 port switch n DHCP respectively the assignment of the network configuration with a DHCP server is supported n Default diagnostics addresses 2025 2040 n For online access to the CPU via Ethernet PG OP channel you have to assign IP address parameters to this Ä Chapter 4 6 Hardwar...

Page 38: ... B Frequency 3 6 DI 1 3 I green Digital input DI 11 Gate 3 7 DI 1 4 I green Digital input DI 12 8 DI 1 5 I green Digital input DI 13 9 DI 1 6 I green Digital input DI 14 10 DI 1 7 I green Digital input DI 15 Latch 3 Max input frequency 100kHz otherwise 1kHz X5 DI byte 1 X6 DC 24V AI DO byte 1 VIPA System MICRO Hardware description Structure Interfaces HB400 CPU M13 CCF0000 en 16 47 38 ...

Page 39: ...t DO 9 9 DO 1 2 O green Digital output DO 10 10 DO 1 3 O green Digital output DO 11 The CPU has an integrated power supply The power supply has to be provided with DC 24V Via the power supply not only the internal electronic of the CPU is provided with voltage but also the electronic from the integrated IO components The power supply is protected against polarity inversion and over current X6 Elec...

Page 40: ...ion is loaded LEDs green are blinking with 1Hz Blinking test started via configuration tool LED green on and LED green flickers Access to the memory card in the RUN state LED red blinks with 1Hz and LED green flickers Access to the memory card with diagnostics messages in the RUN state LED yellow flickers Access to the memory card in STOP state Overall reset LED yellow blinks with 1Hz Overall rese...

Page 41: ... green DC 24V power section supply inputs OK DC 24V power section supply inputs not available 4L green DC 24V power section supply outputs OK DC 24V power section supply outputs not available 4M red Error overload respectively short circuit on the outputs no error 3 2 4 Memory management The CPU has an integrated memory Information about the capacity of the memory may be found at the front of the ...

Page 42: ...uffer the internal clock in case of power failure for max 30 days With PowerOFF the content of the RAM is automatically stored in the Flash NVRAM CAUTION Please connect the CPU for approximately 1 hour to the power supply so that the internal buffering mechanism is loaded accordingly In case of failure of the buffer mechanism Date and Time 01 09 2009 00 00 00 set Additionally you receive a diagnos...

Page 43: ...this the project engineering and programming happens In addition MPI serves for communication between several CPUs or between HMIs and CPU Standard setting is MPI address 2 n PROFIBUS DP slave option The PROFIBUS slave functionality of this interface can be activated by configuring the sub module MPI DP of the CPU in the hardware configuration Ä Chapter 8 Option Deployment PROFIBUS communication o...

Page 44: ...al 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 120 mA Current consumption rated value 360 mA Inrush current 3 A I t 0 1 A s Max current drain at backplane bus 1 A Max current drain load supply Power loss 7 W Technical data digital inputs Number of inputs 16 Cable length shielded 1...

Page 45: ...uts Number of outputs 12 Cable length shielded 1000 m Cable length unshielded 600 m Rated load voltage DC 24 V Reverse polarity protection of rated load voltage ü Current consumption from load voltage L without load 20 mA Total current per group horizontal configuration 40 C 6 A Total current per group horizontal configuration 60 C 6 A Total current per group vertical configuration 6 A Output volt...

Page 46: ...200 m Rated load voltage Reverse polarity protection of rated load voltage Current consumption from load voltage L without load Voltage inputs ü Min input resistance voltage range 100 kΩ Input voltage ranges 0 V 10 V Operational limit of voltage ranges 3 5 Operational limit of voltage ranges with SFU Basic error limit voltage ranges 3 0 Basic error limit voltage ranges with SFU Destruction limit v...

Page 47: ... Operational limit of thermocouple ranges Operational limit of thermocouple ranges with SFU Basic error limit thermoelement ranges Basic error limit thermoelement ranges with SFU Destruction limit thermocouple inputs Programmable temperature compensation External temperature compensation Internal temperature compensation Technical unit of temperature measurement Resolution in bit 12 Measurement pr...

Page 48: ...t Output current ranges Operational limit of current ranges Radical error limit current ranges with SFU Destruction limit against external applied voltage Settling time for ohmic load Settling time for capacitive load Settling time for inductive load Resolution in bit Conversion time Substitute value can be applied Output data size Technical data counters Number of counters 4 Counter width 32 Bit ...

Page 49: ...cation modules LAN Status information alarms diagnostics Status display yes Interrupts yes parameterizable Process alarm yes parameterizable Diagnostic interrupt yes parameterizable Diagnostic functions yes parameterizable Diagnostics information read out possible Supply voltage display green LED Group error display red LED Channel error display red LED per group Isolation Between channels ü Betwe...

Page 50: ...of S7 times 512 S7 times remanence adjustable 0 up to 256 S7 times remanence adjustable not retentive Data range and retentive characteristic Number of flags 8192 Byte Bit memories retentive characteristic adjustable adjustable 0 up to 256 Bit memories retentive characteristic preset MB0 MB15 Number of data blocks 1024 Max data blocks size 64 KB Max local data size per execution level 4096 Byte Bl...

Page 51: ...2 Analog outputs 0 Analog inputs central 2 Analog outputs central 0 Integrated analog inputs 2 Integrated analog outputs 0 Communication functions PG OP channel ü Global data communication ü Number of GD circuits max 8 Size of GD packets max 54 Byte S7 basic communication ü S7 basic communication user data per job 76 Byte S7 communication ü S7 communication as server ü S7 communication as client S...

Page 52: ...f interface RS485 isolated Connector Sub D 9 pin female Electrically isolated ü MPI ü MP I MPI RS232 DP master DP slave optional Point to point interface 5V DC Power supply max 90mA isolated 24V DC Power supply Functionality MPI Number of connections max 32 PG OP channel ü Routing ü Global data communication ü S7 basic communication ü S7 communication ü S7 communication as server ü S7 communicatio...

Page 53: ...te Address areas max 32 User data per address area max 32 Byte Point to point communication PtP communication ü Interface isolated ü RS232 interface RS422 interface ü RS485 interface ü Connector Sub D 9 pin female Transmission speed min 150 bit s Transmission speed max 115 2 kbit s Cable length max 500 m Point to point protocol ASCII protocol ü STX ETX protocol ü 3964 R protocol ü RK512 protocol U...

Page 54: ...g User data per S7 connection max 64 KB TCP connections FETCH PASSIV WRITE PASSIV Connection of passive data handling User data per TCP connection max 8 KB ISO on TCP connections RFC 1006 FETCH PASSIV WRITE PASSIV Connection of passive data handling User data per ISO connection max 8 KB Ethernet open communication via PG OP Number of configurable connections max 2 ISO on TCP connections RFC 1006 T...

Page 55: ... preparation KC certification in preparation 3 4 2 Technical data EM M09 Order no M09 0CB00 Type EM M09 Module ID Housing Material PPE PPE GF10 Mounting Profile rail 35 mm Mechanical data Dimensions WxHxD 35 mm x 88 mm x 26 mm Net weight 54 g Weight including accessories 54 g Gross weight 64 g Environmental conditions Operating temperature 0 C to 60 C Storage temperature 25 C to 70 C Certification...

Page 56: ...OP after 72 hours With a just installed VSC activated functionalities remain acti vated Ä Chapter 4 19 Diagnostic entries on page 85 After this the CPU switches to the operating mode which is set on the operating mode switch In the delivery state the CPU is overall reset After a STOP RUN transition the CPU switches to RUN without program 4 3 Addressing 4 3 1 Overview To provide specific addressing...

Page 57: ...rved 820 DWORD reserved 824 DWORD reserved 828 DWORD reserved 4 3 3 Option Addressing periphery modules The CPU M13 CCF0000 provides an I O area address 0 2047 and a process image of the in and outputs each address default 0 127 The process image stores the signal states of the lower address default 0 127 in an additional memory area The size of the process image can be preset via the parameteriza...

Page 58: ...eas of the modules are assigned without gaps separately for input and output area n Digital modules are mapped starting at address 0 and all other modules are mapped starting from address 256 n As soon as the mapping of digital modules exceeds the address 256 by regarding the order these are mapped starting from address 256 4 4 Hardware configuration CPU n The configuration of the CPU takes place ...

Page 59: ... I O è VIPA MICRO PLC In the Siemens SIMATIC Manager the following steps should be executed 1 Start the Siemens hardware configurator with a new project 2 Insert a profile rail from the hardware catalog 3 Place at Slot Number 2 the CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 4 Click at the sub module PN IO of the CPU 5 Select Context menu è Insert PROFINET IO System 6 Create with New a new sub net and as...

Page 60: ...upplied by the CPU Here up to 8 System MICRO modules can be connected 1 Perform if not already done a hardware configuration for the CPU Ä Chapter 4 4 Hardware configuration CPU on page 58 2 Starting with slot 1 place in the slot overview of the PROFINET IO device VIPA MICRO PLC your System MICRO modules in the plugged sequence 3 Parametrize if necessary the modules and assign valid addresses so t...

Page 61: ...s called initialization n This can be done with the Siemens SIMATIC Manager 1 Install your System with your CPU 2 Wire the system by connecting cables for voltage supply and signals 3 Connect the one of the Ethernet jack X3 X4 of the Ethernet PG OP channel to Ethernet to which your programming device PC is connected 4 Switch on the power supply ð After a short boot time the CPU is ready for commun...

Page 62: ... with Assign IP configuration ð Direct after the assignment the Ethernet PG OP channel may be reached online by these address data The value remains as long as it is reassigned it is over written by a hardware configuration or an factory reset is executed 1 Open the Siemens hardware configurator and configure the Siemens CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 2 For the Ethernet PG OP channel you hav...

Page 63: ...not evaluate each parameter which may be set at the hardware configu ration The parameters of the following registers are not supported Synchronous cycle interrupts communication and web The following parameters are currently supported n Short description The short description of the Siemens CPU is CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 n Order No Firmware Order number and firmware are identical to ...

Page 64: ...age to the CPU by the time the moni toring time has expired the actual configuration becomes unequal to the preset configuration n Monitoring time for transfer of parameters to modules 100ms The maximum time for the transfer of parameters to parameterizable modules Here connected PROFINET IO devices also considered until they are parameter ized If not every module has been assigned parameters by t...

Page 65: ...s This parameter is not supported n Priority Here the priorities are displayed according to which the hardware interrupt OBs are processed hardware interrupt time delay interrupt async error interrupts n Priority This value is fixed to 2 n Active By enabling Active the time of day interrupt function is enabled n Execution Select how often the interrupts are to be triggered Intervals ranging from e...

Page 66: ...ction factor in ms If the clock is 1s slow after 24 hours you have to specify a correction factor of 1000 ms n Level of protection 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 password Authorized users read and write access Unauthorized user read access only Pro...

Page 67: ...the Siemens CPU Range of values 0 default 512 n Additional retentive counter Enter the number of S7 counter With 0 the value Retentive memory è Number S7 counters starting with C0 is set which is pre set at the parameters of the Siemens CPU Range of values 0 default 512 n Diagnostics interrupt default deactivated Diagnostics interrupt DI power section supply Error 3L DC 24V DI power section supply...

Page 68: ...ction Provided that no new hardware configura tion is transferred to the CPU the entered Ethernet connection is permanently stored in the project as transfer channel 5 With OK the transfer is started System dependent you get a message that the projected system differs from target system This message may be accepted by OK Your project is transferred and may be executed in the CPU after transfer 4 9...

Page 69: ...for the build up The single participants are connected with each other via bus interface plugs and PROFIBUS cables Per default the MPI net runs with 187 5kbaud VIPA CPUs are deliv ered with MPI address 2 The MPI programming cables are available at VIPA in different variants The cables pro vide a RS232 res USB plug for the PC and a bus enabled RS485 plug for the CPU Due to the RS485 connection you ...

Page 70: ...ud for the MPI program ming cable from VIPA 8 Transfer your project via PLC è Load to module via MPI to the CPU and save it with PLC è Copy RAM to ROM on a memory card if one is plugged 4 10 Accessing the web server 4 10 1 Access via the Ethernet PG OP channel There is a web server which can be accessed via the IP address of the Ethernet PG OP channel with an Internet browser At the web page infor...

Page 71: ...cur 2000us min 2000us max 5000us avg 2335us CPU Cyclic time min minimum cur current max maximum avg average Interface Information X1 X5 DI 16 Address 136 137 AI 2 Address 800 803 Counter Address 816 831 X2 X6 DO 12 Address 136 137 Counter Address 816 831 X3 PG OP Ethernet Port 1 Address 256 271 X4 PG OP Ethernet Port 2 Address 256 271 Serial X1 PTP Serial X2 DPS Address 2047 VIPASetCard Info Info ...

Page 72: ...Load memory working memory code data WorkMemCode 304 32768 bytes WorkMemData 0 32768 bytes PG OP Network Information Device Name VIPA M13 CCF0000 Ethernet PG OP channel IP Address 192 168 1 211 Address information Subnet Mask 255 255 255 0 Gateway Address 192 168 1 211 MAC Address 00 20 D5 02 74 48 Link Mode X3 100 Mbps Full Duplex Link mode of the interfaces Link Mode X4 Not Available CPU Firmwar...

Page 73: ...and RUN require a specific reaction from the system program In this case the application interface is often provided by a call to an organization block that was included specifically for this event n The application program is not processed n If there has been a processing before the values of counters timers flags and the process image are retained during the transition to the STOP mode n Command...

Page 74: ...ment of a watchdog error n The green LED lights up when the CPU is in the RUN state n The application program in OB 1 is processed in a cycle Under the control of alarms other program sections can be included in the cycle n All timers and counters being started by the program are active and the process image is updated with every cycle n BASP is deactivated i e all outputs are enabled 4 11 2 Funct...

Page 75: ...all reset by means of the Siemens SIMATIC Manager You should always establish an overall reset to your CPU before loading an application program into your CPU to ensure that all blocks have been cleared from the CPU 4 12 1 Overall reset by means of the operating mode switch 1 Your CPU must be in STOP mode For this switch the operating mode switch of the CPU to STOP ð Status bar 2 Switch the operat...

Page 76: ...this to delivery state Please regard that the MPI address is also set back to default 2 Ä Chapter 4 14 Reset to factory settings on page 78 4 13 Firmware update There is the opportunity to execute a firmware update for the CPU and its components via memory card For this an accordingly prepared memory card must be in the CPU during the start up So a firmware files can be recognized and assigned wit...

Page 77: ...port è Downloads è Firmware 3 Via System MICRO è CPU navigate to your CPU and download the zip file to your PC 4 Unzip the zip file and copy the pgk file to the root directory of your memory card CAUTION With a firmware update an overall reset is automatically executed If your program is only available in the load memory of the CPU it is deleted Save your program before executing a firmware update...

Page 78: ...PU is reset to delivery state n Please regard that the MPI address is also reset to default 2 and the IP address of the Ethernet PG OP channel is reset to 0 0 0 0 n A factory reset may also be executed by the command FACTORY_RESET Ä Chapter 4 17 CMD auto commands on page 82 1 Switch the CPU to STOP 2 Push the operating mode switch down to position MR for 30 seconds Here the yellow LED of the statu...

Page 79: ...ssibility to unlock optional functions like work memory and field bus interfaces These functions can be purchased separately To activate the corresponding card is to be installed and a Overall reset is to be established Ä Chapter 4 12 Overall reset on page 75 A list of the currently available VSD respectively VSC can be found at www vipa com You can cause the CPU to load a project automatically re...

Page 80: ...tions Here you have the opportunity to accordingly expand your work memory respectively enable field bus func tions Information about the enabled functions can be shown via the web page Ä Chapter 4 10 Accessing the web server on page 70 CAUTION Please regard that the VSC must remain plugged when you ve enabled optional functions at your CPU Otherwise the red LED of the status line turns on and the...

Page 81: ...ction the CPUs from VIPA provide an extended know how protection that serves a secure block protection for accesses of 3 persons n Standard protection The standard protection from Siemens transfers also protected blocks to the PG but their content is not displayed But with according manipulation the know how protection is not guaranteed n Extended protection The extended know how protection develo...

Page 82: ...mmand file at a memory card is automatically executed under the following condi tions n CPU is in STOP and memory card is plugged n After each PowerON The Command file is a text file which consists of a command sequence to be stored as vipa_cmd mmc in the root directory of the memory card The file has to be started by CMD_START as 1 command followed by the desired commands no other text and must b...

Page 83: ...shown in the following The corresponding diagnostics entry is put in parenthesizes Example 1 CMD_START Marks the start of the command sequence 0xE801 LOAD_PROJECT proj wld Execute an overall reset and load proj wld 0xE805 WAIT1SECOND Wait ca 1s 0xE803 DIAGBUF Store diagnostics buffer of the CPU as diagbuff txt 0xE80B CMD_END Marks the end of the command sequence 0xE802 arbitrary text Text after th...

Page 84: ...ons to the program n The processing of the states may be interrupted by means of jump commands or by timer and process related interrupts n 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 the value 0 n The interruption of the processing of statuses does not change the execution of the program It on...

Page 85: ...changed or overwritten by the user program of the CPU By pre setting of variables with fixed values you can set certain situations for your user program and thus test the programmed functions CAUTION Please consider that controlling of output values represents a poten tially dangerous condition Even after a power cycle forced variables remain forced with its value until the force function is disab...

Page 86: ... may be used simultaneously with appropriate hardware n Read access to inputs used by technological functions is possible n Write access to used outputs is not possible n AI 2xUx12Bit 0 10V The analog channels of the module are not isolated to the electronic power supply The analog part has no status indication Ä Chapter 5 3 Analog input on page 87 n DI 16xDC 24V Interrupt functions parameterizabl...

Page 87: ...828 DINT Channel 3 Counter value Frequency value Sub module Output address Access Assignment Counter 816 DWORD reserved 820 DWORD reserved 824 DWORD reserved 828 DWORD reserved Sub module Output address Access Assignment DI24 DO16 136 BYTE Digital output Q 0 0 Q 0 7 X2 137 BYTE Digital output Q 1 0 Q 1 3 X6 5 3 Analog input 5 3 1 Properties n 2xUx12Bit 0 10V fixed n The analog channels of the modu...

Page 88: ...n Measuring value end of overdrive region 32767 7FFFh n Measuring value end of underdrive region 32768 8000h At a parameterization error the value 32767 7FFFh is issued When leaving the defined range during analog output 0V respectively 0A is issued 0 10V Measuring range Voltage U Decimal D Hex Range Formulas 0 10V 11 759V 32767 7FFFh overflow D decimal value U voltage value 11 759V 32511 7EFFh ov...

Page 89: ...es can be reduced The shield of the analog cables should be grounded at both ends If there are potential differences between the cables a potential compensation current can flow which could disturb the analog signals In this case you should only ground the shield at one end of the cable Temporarily not used analog inputs must be connected to the concerning ground 5 3 4 Parametrization 5 3 4 1 Addr...

Page 90: ... parametrization is valid can last up to 2ms During this time the measuring value output is 7FFFFh Record set 1 Byte Bit 7 Bit 0 Default 0 Bit 7 0 reserved 00h 1 Filter n Bit 1 0 Analog input channel 0 Bit 3 2 Analog input channel 1 00b Integration time 2 5ms 2ms no filter 01b Integration time 16 6ms 100ms small filter 10b Integration time 20ms 1000ms medium filter n Bit 7 4 reserved 10h 2 12 Bit ...

Page 91: ...reen Digital input DI 3 Counter 1 A 6 DI 0 2 I green Digital input DI 2 7 DI 0 1 I green Digital input DI 1 Counter 0 B Frequency 0 8 DI 0 0 I green Digital input DI 0 Counter 0 A 9 0 V I 3M GND for onboard DI power section supply 10 DC 24V I green 3L DC 24V for onboard DI power section supply Max input frequency 100kHz otherwise 1kHz X1 DI byte 0 X5 DI byte 1 VIPA System MICRO Deployment I O peri...

Page 92: ...rupt at you can specify a hardware interrupt for each input for the corresponding edge The hardware interrupt is disabled if nothing is selected default setting A diagnostics interrupt is only supported with Hardware inter rupt lost Select with the arrow keys the input and enable the according hardware inter rupts Here is valid n Rising edge Edge 0 1 n Falling edge Edge 1 0 5 4 3 3 Input delay n T...

Page 93: ...cy 100kHz otherwise 1kHz X5 Function Type LED Description 1 reserved 2 reserved 3 DI 1 0 I green Digital input DI 8 4 DI 1 1 I green Digital input DI 9 Counter 3 A 5 DI 1 2 I green Digital input DI 10 Counter 3 B Frequency 3 6 DI 1 3 I green Digital input DI 11 Gate 3 7 DI 1 4 I green Digital input DI 12 8 DI 1 5 I green Digital input DI 13 9 DI 1 6 I green Digital input DI 14 10 DI 1 7 I green Di...

Page 94: ...puts not available 4L green DC 24V power section supply outputs OK DC 24V power section supply outputs not available 4M red Error overload respectively short circuit on the outputs no error 5 5 Digital output 5 5 1 Properties n 12xDC 24V 0 5A n Status indication via LEDs 5 5 2 Wiring X2 DO byte 0 VIPA System MICRO Deployment I O periphery Digital output Wiring HB400 CPU M13 CCF0000 en 16 47 94 ...

Page 95: ...ule Output address Access Assignment DI24 DO16 136 BYTE Digital output Q 0 0 Q 0 7 X2 137 BYTE Digital output Q 1 0 Q 1 3 X6 5 5 4 Status indication X2 Function Type LED Description 1 DO 0 7 O green Digital output DO 7 2 DO 0 6 O green Digital output DO 6 3 DO 0 5 O green Digital output DO 5 4 DO 0 4 O green Digital output DO 4 5 DO 0 3 O green Digital output DO 3 Output channel counter 3 6 DO 0 2...

Page 96: ...green DC 24V power section supply inputs OK DC 24V power section supply inputs not available 4L green DC 24V power section supply outputs OK DC 24V power section supply outputs not available 4M red Error overload respectively short circuit on the outputs no error 5 6 Counting 5 6 1 Properties n 4 channels n Various counting modes once continuously periodically n Control by the user program via blo...

Page 97: ...tion supply 10 DC 24V I green 3L DC 24V for onboard DI power section supply Max input frequency 100kHz otherwise 1kHz X5 Function Type LED Description 1 reserved 2 reserved 3 DI 1 0 I green Digital input DI 8 4 DI 1 1 I green Digital input DI 9 Counter 3 A 5 DI 1 2 I green Digital input DI 10 Counter 3 B Frequency 3 6 DI 1 3 I green Digital input DI 11 Gate 3 7 DI 1 4 I green Digital input DI 12 8...

Page 98: ...te 3 Via this input you can if parameterized open the HW gate of Counter 3 with edge 0 1 and start counting n Latch 3 Via this input via edge 0 1 the current counter value of Counter 3 is stored in a memory that you may read if needed 5 6 2 2 Counter outputs X6 Function Type LED Description 1 Sys DC 24V I green 1L DC 24V for electronic section supply 2 Sys 0V I 1M GND for electronic section supply...

Page 99: ...FB are stored n Among others the SFB 47 contains a request interface Hereby you get read and write access to the registers of the appropriate counter n So that a new job may be executed the previous job must have be finished with JOB_DONE TRUE n 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 n Writing ac...

Page 100: ...e inter rupt was lost 5 6 4 3 Operating mode per channel Select via Channel the channel select via Operating the operating mode The fol lowing operating modes are supported n Not parameterized Channel is deactivated n Ä Chapter 5 6 5 1 Count continuously on page 104 n Ä Chapter 5 6 5 2 Count once on page 105 n Ä Chapter 5 6 5 3 Count periodically on page 108 n Ä Chapter 5 7 Frequency measurement o...

Page 101: ...rrupted when the gate closes and resumed at the last actual counter value when the gate opens again Ä Chapter 5 6 6 2 Gate function on page 111 Abort count process Start value End value Start value with counting direction backward End value with main counting direction forward Range of values 2 2147483647 231 1 2147483647 231 1 Comparison value The count value is compared with the comparison value...

Page 102: ...ut and STS_CMP remains reset n Comparator Counter value Comparison value Counter value Comparison value n Pulse at comparison value To adapt the used actuators you can specify a pulse duration The output is set for the specified pulse duration when the counter value reaches the comparison value When you ve set a main counting direction the output is only set at reaching the comparison value from t...

Page 103: ...mparator is trig gered can be configured via Characteristics of the output n disabled no hardware interrupt disabled Overflow Hardware interrupt overflow n enabled Hardware interrupt on overflow the upper counter limit n disabled no hardware interrupt disabled Underflow Hardware interrupt on underrun n enabled Hardware interrupt on underflow the lower counter limit n disabled no hardware interrupt...

Page 104: ... another counting pulse in negative direction arrives it jumps to the upper count limit and counts from there on n The counter limits are fix set to maximum range n With overflow or underflow the status bits STS_OFLW respectively STS_UFLW in the SFB 47 are set These bits remain set until these are reset with RES_STS If enabled additionally a hardware interrupt is triggered Limits Valid range of va...

Page 105: ...t process you have to generate an edge 0 1 at the gate Ä Chapter 5 6 6 2 Gate function on page 111 n With the configured Gate function Interrupt count the counting is continued with current Counter value n With configured Gate function Cancel count the counter starts with the Load value Limits Valid range of values Lower count limit 2 147 483 648 231 Upper count limit 2 147 483 647 231 1 Interrupt...

Page 106: ...lly a hardware interrupt is triggered n To restart the count process you have to generate an edge 0 1 at the gate Ä Chapter 5 6 6 2 Gate function on page 111 The counter counts starting with the load value n You may exceed the lower count limit Limits Valid range of values End value 2 147 483 647 231 1 up to 2 147 483 647 231 1 Lower count limit 2 147 483 648 231 VIPA System MICRO Deployment I O p...

Page 107: ...ally a hardware interrupt is triggered n To restart the count process you have to generate an edge 0 1 at the gate Ä Chapter 5 6 6 2 Gate function on page 111 The counter counts starting with the load value n You may exceed the upper count limit Limits Valid range of values End value 2 147 483 648 231 up to 2 147 483 646 231 2 Upper count limit 2 147 483 647 231 1 VIPA System MICRO Deployment I O ...

Page 108: ...he counter jumps to the load value and con tinues counting If enabled additionally a hardware interrupt is triggered n The counter limits are fix set to maximum range Limits Valid range of values Lower count limit 2 147 483 648 231 Upper count limit 2 147 483 647 231 1 VIPA System MICRO Deployment I O periphery Counting Counter operating modes HB400 CPU M13 CCF0000 en 16 47 108 ...

Page 109: ...alue at the next positive count pulse and continues counting If enabled additionally a hardware interrupt is triggered n You may exceed the lower count limit Limits Valid range of values End value 2 147 483 647 231 1 up to 2 147 483 647 231 1 Lower count limit 2 147 483 648 231 VIPA System MICRO Deployment I O periphery Counting Counter operating modes HB400 CPU M13 CCF0000 en 16 47 109 ...

Page 110: ...mps to the load value at the next negative count pulse and continues counting If enabled additionally a hardware interrupt is triggered n You may exceed the upper count limit Limits Valid range of values End value 2 147 483 648 231 up to 2 147 483 646 231 2 Upper count limit 2 147 483 647 231 1 VIPA System MICRO Deployment I O periphery Counting Counter operating modes HB400 CPU M13 CCF0000 en 16 ...

Page 111: ...ppens via the internal gate I gate The i gate is the result of logic operation of HW gate and SW gate The HW gate evaluation of the connection Gate 3 may be deactivated by the parametrization With a de activated HW gate evaluation the triggering exclusively happens by setting the SW gate of SFB 47 The parametrization defines if the gate interrupts or aborts the counter process n At abort function ...

Page 112: ... may be stored During the counting procedure the counter value is compared with the comparative value Depending on the result of the comparison the output channel of the counter and the status bit of STS_CMP of SFB 47 can be set In addition you can configure a hardware interrupt A comparison value can be specified via the parametrization respectively the job interface of SFB 47 Function VIPA Syste...

Page 113: ... Interrupt count process Continue Edge 0 1 1 Abort count process Continue 1 Edge 0 1 Abort count process Restart with load value Edge 0 1 1 Interrupt count process Continue 1 Edge 0 1 Interrupt count process Continue Counter 3 count once If the internal gate has been closed automatically it may only be opened again under the following conditions SW gate HW gate I gate 1 Edge 0 1 1 Edge 0 1 after e...

Page 114: ...it ST_DO The comparison result is shown by the status bit STS_CMP The bit may only be reset if the pulse duration has expired n Pulse duration The pulse duration starts with the setting of the according digital output The inaccuracy of the pulse duration is less than 1ms There is no past triggering of the pulse duration when the comparison value has been left and reached again during pulse output ...

Page 115: ...ison value With reaching the comparison condition the hysteresis gets active At active hysteresis the comparison result remains unchanged until the counter value leaves the set hyste resis range After leaving the hysteresis range a new hysteresis is only activated with again reaching the comparison conditions 1 Counter value comparison value output is set and hysteresis activated 2 Leave hysteresi...

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

Page 117: ...le n Control by the user program via SFB 48 More information about the usage of this block may be found in the manual SPEED7 Operation List from VIPA 1 Integration time 2 Counting pulse 3 SW gate 4 Frequency measurement start 5 Frequency measurement stop n The measurement is carried out during the integration time and is updated after the integration time has expired n If the period of the measure...

Page 118: ...ed during the pulse width modulation on the same channel 5 7 2 Wiring 5 7 2 1 Frequency measurement inputs Connect the signal to be measured at input B of the corresponding counter X1 DI byte 0 VIPA System MICRO Deployment I O periphery Frequency measurement Wiring HB400 CPU M13 CCF0000 en 16 47 118 ...

Page 119: ...pply 10 DC 24V I green 3L DC 24V for onboard DI power section supply Max input frequency 100kHz otherwise 1kHz X5 Function Type LED Description 1 reserved 2 reserved 3 DI 1 0 I green Digital input DI 8 4 DI 1 1 I green Digital input DI 9 Counter 3 A 5 DI 1 2 I green Digital input DI 10 Counter 3 B Frequency 3 6 DI 1 3 I green Digital input DI 11 Gate 3 7 DI 1 4 I green Digital input DI 12 8 DI 1 5...

Page 120: ... the SFB are stored 5 7 4 Parametrization 5 7 4 1 Address assignment Sub module Input address Access Assignment Counter 816 DINT Channel 0 Counter value Frequency value 820 DINT Channel 1 Counter value Frequency value 824 DINT Channel 2 Counter value Frequency value 828 DINT Channel 3 Counter value Frequency value Sub module Output address Access Assignment Counter 816 DWORD reserved 820 DWORD res...

Page 121: ...ment Default values and structure of this dialog box depend on the selected Operating mode The following parameters are supported 1 Integration time 2 Counting pulse 3 SW gate 4 Evaluated frequency Parameter overview Operating parameters Description Assignment Integration time Specify the integration time Range of values 10ms 10000ms in steps of 1ms 100ms max counting frequency Specify the max Fre...

Page 122: ...00kHz otherwise 1kHz X5 Function Type LED Description 1 reserved 2 reserved 3 DI 1 0 I green Digital input DI 8 4 DI 1 1 I green Digital input DI 9 Counter 3 A 5 DI 1 2 I green Digital input DI 10 Counter 3 B Frequency 3 6 DI 1 3 I green Digital input DI 11 Gate 3 7 DI 1 4 I green Digital input DI 12 8 DI 1 5 I green Digital input DI 13 9 DI 1 6 I green Digital input DI 14 10 DI 1 7 I green Digita...

Page 123: ...ion PWM 5 8 1 Properties n By presetting of time parameters the CPU evaluates a pulse sequence with according pulse pause ratio and outputs it via the according output channel n Channel 0 and 1 are supported n Control by the user program via SFB 49 More information about the usage of this block may be found in the manual SPEED7 Operation List from VIPA 1 Period 2 On delay 3 Pulse duration 4 Pulse ...

Page 124: ...ction supply 5 8 3 Proceeding In the Siemens SIMATIC Manager the following steps should be executed 1 Perform a hardware configuration for the CPU Ä Chapter 4 4 Hardware configura tion CPU on page 58 2 Double click the counter sub module of the CPU 314C 2 PN DP ð The dialog Properties is opened 3 As soon as you select the operating mode for the corresponding channel a dialog box with default value...

Page 125: ... via Channel the channel select via Operating the operating mode The fol lowing operating modes are supported n Not parameterized Channel is deactivated n Ä Chapter 5 6 5 1 Count continuously on page 104 n Ä Chapter 5 6 5 2 Count once on page 105 n Ä Chapter 5 6 5 3 Count periodically on page 108 n Ä Chapter 5 7 Frequency measurement on page 117 n Ä Chapter 5 8 Pulse width modulation PWM on page 1...

Page 126: ...n set the time base which will apply for resolu tion and range of values of the period duration minimum pulse duration and on delay n 1ms Die Time base is 1ms n 0 1ms Time base is 0 1ms 0 1ms On delay Enter here a value for the time to expire from the start of the output sequence to the output of the pulse The pulse sequence is output at the output channel on expiration of the on delay Range of va...

Page 127: ...se 0 1ms 2 Period 2 0 1ms 2 5 8 5 Status indication Digital output LED Description DO 0 0 DO 0 7 green Digital output Q 0 0 0 7 has 1 signal Digital output Q 0 0 0 7 has 0 signal DO 1 0 DO 1 3 green Digital output Q 1 0 1 3 has 1 signal Digital output Q 1 0 1 3 has 0 signal Power supply LED Description 1L green DC 24V electronic section supply DC 24V electronic section supply not available 3L gree...

Page 128: ...4V DO power section supply n Error 3L DC 24V DI power section supply n Short circuit overload DO 5 9 2 Process interrupt An interrupt for the corresponding channel operating mode can only be triggered if you have additionally parameterized Diagnostics Process at Select interrupt of the Basic parameters A process interrupt causes a call of the OB 40 Within the OB 40 you may find the logical basic a...

Page 129: ...1 6 n Bit 7 Edge at I 1 7 10 11 n Bit 7 0 reserved Local double word 8 of OB 40 at counter function Local byte Bit 7 0 8 n Bit 0 Edge at I 0 0 n Bit 1 Edge at I 0 1 n Bit 2 Edge at I 0 2 n Bit 3 Edge at I 0 3 n Bit 4 Edge at I 0 4 n Bit 5 Edge at I 0 5 n Bit 6 Edge at I 0 6 n Bit 7 Edge at I 0 7 9 n Bit 0 Edge at I 1 0 n Bit 1 Edge at I 1 1 n Bit 2 Edge at I 1 2 n Bit 3 Edge at I 1 3 n Bit 4 Edge ...

Page 130: ... Bit 1 Edge at I 0 1 n Bit 2 Edge at I 0 2 n Bit 3 Edge at I 0 3 n Bit 4 Edge at I 0 4 n Bit 5 Edge at I 0 5 n Bit 6 Edge at I 0 6 n Bit 7 Edge at I 0 7 9 n Bit 0 Edge at I 1 0 n Bit 1 Edge at I 1 1 n Bit 2 Edge at I 1 2 n Bit 3 Edge at I 1 3 n Bit 4 Edge at I 1 4 n Bit 5 Edge at I 1 5 n Bit 6 Edge at I 1 6 n Bit 7 Edge at I 1 7 10 n Bit 0 End of measurement channel 0 end of the integration time n...

Page 131: ...agnostic interruptincoming has been released is ready the diagnostic interrupt processing is called again as diagnostic inter ruptoutgoing All events of a channel between diagnostic interruptincoming and diagnostic inter ruptoutgoing are not stored and get lost Within this time window 1 diagnostic inter ruptincoming until last diagnostic interruptoutgoing the SF LED of the CPU is on Additionally f...

Page 132: ...l information present Counter Frequency measurement Process interrupt lost Digital input Process interrupt lost Missing power supply DI or DO Digital output short circuit overload n Bit 7 5 0 fix 2 n Bit 3 0 0 fix n Bit 4 set at missing internal power supply Missing power supply DI or DO n Bit 7 5 0 fix 3 n Bit 5 0 0 fix n Bit 6 Process interrupt lost n Bit 7 0 fix After the removing error a diagn...

Page 133: ...Bit 4 set at missing internal power supply Missing power supply DI or DO n Bit 7 5 0 fix 3 n Bit 7 0 0 fix The record set 0 of the alarm interrupts counter function frequency measurement and pulse width modulation has the same structure There are differences in the structure of record set 1 The record set 1 contains the 4byte of the record set 0 and additionally 12byte module specific diagnostic d...

Page 134: ... 6 input I 0 7 n Bit 7 0 fix 10 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 1 0 n Bit 1 0 fix n Bit 2 input I 1 1 n Bit 3 0 fix n Bit 4 input I 1 2 n Bit 5 0 fix n Bit 6 input I 1 3 n Bit 7 0 fix 11 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 1 4 n Bit 1 0 fix n Bit 2 input I 1 5 n Bit 3 0 fix n Bit 4 input I 1 6 n Bit 5 0 fix n Bit 6 input I 1 7...

Page 135: ...roup 5 counter 1 n Bit 6 Error in channel group 6 counter 2 n Bit 7 Error in channel group 7 counter 3 8 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 0 0 n Bit 1 0 fix n Bit 2 input I 0 1 n Bit 3 0 fix n Bit 4 input I 0 2 n Bit 5 0 fix n Bit 6 input I 0 3 n Bit 7 0 fix 9 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 0 4 n Bit 1 0 fix n Bit 2 input I...

Page 136: ... 7 0 fix 14 Diagnostic interrupt due to process interrupt lost at n Bit 3 0 reserved n Bit 4 over underflow end value counter 2 n Bit 5 0 fix n Bit 6 counter 2 reached comparison value n Bit 7 0 fix 15 Diagnostic interrupt due to process interrupt lost at n Bit 0 Gate counter 3 closed n Bit 1 0 fix n Bit 2 Gate counter 3 opened n Bit 4 over underflow end value counter 3 n Bit 5 0 fix n Bit 6 count...

Page 137: ...requency meter 1 n Bit 6 Error in channel group 6 Frequency meter 2 n Bit 7 Error in channel group 7 Frequency meter 3 8 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 0 0 n Bit 1 0 fix n Bit 2 input I 0 1 n Bit 3 0 fix n Bit 4 input I 0 2 n Bit 5 0 fix n Bit 6 input I 0 3 n Bit 7 0 fix 9 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 0 4 n Bit 1 0 fix...

Page 138: ...gnostic interrupt due to process interrupt lost at n Bit 0 End of measurement channel 3 End of integration time n Bit 7 1 0 fix The record set 1 contains the 4byte of the record set 0 and additionally 12byte module specific diagnostic data The diagnostic bytes have the following assignment Byte Bit 7 0 0 3 Content record set 0 Ä Record set 0 Diagnosticincoming on page 132 4 n Bit 6 0 Channel type ...

Page 139: ...it 0 input I 0 4 n Bit 1 0 fix n Bit 2 input I 0 5 n Bit 3 0 fix n Bit 4 input I 0 6 n Bit 5 0 fix n Bit 6 input I 0 7 n Bit 7 0 fix 10 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 1 0 n Bit 1 0 fix n Bit 2 input I 1 1 n Bit 3 0 fix n Bit 4 input I 1 2 n Bit 5 0 fix n Bit 6 input I 1 3 n Bit 7 0 fix 11 Diagnostic interrupt due to process interrupt lost at n Bit 0 input I 1...

Page 140: ...t is an electrical net based on shielded twisted pair cabling or optical net based on optical fibre Industrial Ethernet is defined by the international standard IEEE 802 3 The net access of Industrial Ethernet corresponds to IEEE 802 3 CSMA CD Carrier Sense Multiple Access Collision Detection scheme n Every station listens on the bus cable and receives communication messages that are addressed to ...

Page 141: ...checking functions for bit strings transferred between two com municating partners This includes the recognition and correction or flagging of communi cation errors and flow control functions The security layer data link layer converts raw communication data into a sequence of frames This is where frame limits are inserted on the transmitting side and where the receiving side detects them These li...

Page 142: ... superseded by the twisted pair network cable due to its immunity to interference The CPU has a twisted pair con nector The twisted pair cable consists of 8 cores that are twisted together in pairs Due to these twists this system is provides an increased level of immunity to electrical interfer ence For linking please use twisted pair cable which at least corresponds to the category 5 Where the co...

Page 143: ...ts may be transferred between PLC sys tems based on Siemens STEP 7 Here the stations are connected via Ethernet Precon dition for the Siemens S7 communication is a configured connection table which contains the defined connections for communication Here NetPro from Siemens may be used Properties n A communication connection is specified by a connection ID for each connection partner n The acknowle...

Page 144: ...k will copy the received data completely into the receive range n Connection less protocol There is thus no establishment and termination of a connection with a remote partner Connection less protocols transmit data with no acknowledge and with no reliable guaranteed delivery to the remote partner UDP accord to RFC 768 In this case when calling the sending block you have to specify the address par...

Page 145: ... reserved for special purposes The address formats of the 3 classes A B C are only differing in the length of Network ID and Host ID These addresses can be used as net ID by several organizations without causing con flicts for these IP addresses are neither assigned in the Internet nor are routed in the Internet To build up private IP Networks within the Internet RFC1597 1918 reserves the followin...

Page 146: ...handling blocks Open communication Configuration and communication happens by standard handling blocks n Transfer of the complete project to CPU In the Siemens SIMATIC Manager the CPU M13 CCF0000 from VIPA is to be configured as CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 The Ethernet PG OP channel of the CPU M13 CCF0000 is always to be configured as CP343 1 343 1EX30 V3 0 from Siemens at slot 4 6 7 Hard...

Page 147: ...characterizing a communication connection n One station always executes an active connection establishment n Bi directional data transfer Send and receive on one connection n Both participant have equal rights i e every participant may initialize the send res receive process event controlled n Except of the UDP connection at a communication connection the address of the communication partner is se...

Page 148: ...u several functions 1 Station This includes a PLC station with rack CPU and communication components Via the context menu you may configure a station added from the net objects and its concerning components in the hardware configurator After returning to NetPro the new configured components are shown 2 CPU A click onto the CPU shows the connection table The connection table shows all connections t...

Page 149: ...ction partner may exist in the current project or in an unknown project Connection jobs to an unknown project must be defined by an unique connection name which is to be used in the projects of both stations Due to this allocation the connection remains unspecified 2 Choose the connection partner and the type of connection and confirm with OK ð If activated a properties dialog for the according co...

Page 150: ...define a connection end point The following parameters define a connection end point Station A Station B remote TSAP à Siemens S7 connection à local TSAP local TSAP ß ß remote TSAP ID A ID B Combination options with deployment of the FB SFB VIPA handling blocks Connection partner Connection establishing Connection specified in NetPro in the current project active passive specified unspecified in N...

Page 151: ...Address details With this button a dialog window is opened which shows address information about the local and partner station The parameters may also be changed TSAP With Siemens S7 connections a TSAP is automatically generated of the connec tion resource one way two way and state of place rack slot respectively system internal ID at PC stations Connection resource The connection resource is part...

Page 152: ...can be used to write data to a remote CPU The respective CPU may be in RUN mode or in STOP mode 6 9 Configure Open Communication Those in the following listed UTDs and FBs serve for open communication 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 at Com munication Blocks Plea...

Page 153: ...ata FB 65 TCON Establishing a connection Configuring the local communications access point FB 66 TDISCON Terminating a connection Closing the local communications access point FB 67 TUSEND Sending data FB 68 TURCV Receiving data More information about the usage of these blocks may also be found in the manual SPEED7 Operation List from VIPA n Connection oriented protocols establish a logical connec...

Page 154: ... the receive block will not copy any data into the receive range but instead will supply the following error information ERROR 1 STATUS 8088h n There is thus no establishment and termination of a connection with a remote partner n Connection less protocols transmit data with no acknowledge and with no reliable guaranteed delivery to the remote partner The following connection oriented protocol is ...

Page 155: ...he FC SFC 217 SER_SND delivers a return value for 3964R USS and Modbus via RetVal that con tains among other things recent information about the acknowledgement of the partner station The protocols USS and Modbus allow to evaluate the receipt telegram by calling the FC SFC 218 SER_RCV after SER_SND The FCs SFCs are included in the consign ment of the CPU Use FCs instead SFCs Please regard that the...

Page 156: ... CPU n If the data is transferred via a protocol the embedding of the data to the according protocol happens automatically n In opposite to ASCII and STX ETX the protocols 3964R USS and Modbus require the acknowledgement of the partner n An additional call of the FC SFC 217 SER_SND causes a return value in RetVal that includes among others recent information about the acknowledgement of the partne...

Page 157: ...Two wire operation RS485 Data transfer rate max 115 kBaud A hardware configuration to enable the PtP functionality is not necessary 1 Turn off the power supply 2 Mount the extension module Ä Chapter 2 4 Mounting on page 13 3 Establish a cable connection to the communication partner 4 Switch on the power supply ð After a short boot time the interface X1 PtP is ready for PtP communication X1 PtP RS4...

Page 158: ...hield and the M5V pin 5 together due to the compensation currents the interfaces could be destroyed RS485 cabling with PROFIBUS cable VIPA System MICRO Option PtP communication PtP communication via extension module EM M09 HB400 CPU M13 CCF0000 en 16 47 158 ...

Page 159: ...eflection level 1 X1 PtP interface 2 Periphery 1 X1 PtP interface 2 Periphery 3 Send 4 Receive For line lengths 50m you have to solder a terminating resistor of approx 330W on the receiver side for interference free data traffic RS485 cabling with defined static voltage levels RS422 cabling VIPA System MICRO Option PtP communication PtP communication via extension module EM M09 HB400 CPU M13 CCF00...

Page 160: ...rox 330W on the receiver side for interference free data traffic X1 PtP TxD Description green flickers Send activity No send activity 7 4 Parametrization 7 4 1 FC SFC 216 SER_CFG Parametrization PtP The parametrization happens during runtime deploying the FC SFC 216 SER_CFG You have to store the parameters for STX ETX 3964R USS and Modbus in a DB RS422 cabling with defined static voltage levels St...

Page 161: ...erized receive data block If a telegram is spread over various cycles the data is overwritten There is no reception acknowledgement The communication procedure has to be controlled by the concerning user application An according Receive_ASCII FB may be found within the VIPA library in the service area of www vipa com STX ETX is a simple protocol with start and end ID where STX stands for Start of ...

Page 162: ...K Negative Acknowledge You may transfer a maximum of 255byte per message Procedure When a DLE is transferred as part of the information it is repeated to dis tinguish between data characters and DLE control characters that are used to establish and to terminate the connection DLE duplication The DLE duplication is reversed in the receiving station The 3964R procedure requires that a lower priority...

Page 163: ... 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 with STX Start sign STW Control word LGE Telegram length ZSW State word ADR Address HSW Main set value PKE Parameter ID HIW Main effective value IND Index BCC Block Check Character PWE Parameter value A request can be directed to a certain slave ore be send to all slaves as broadcast mes ...

Page 164: ...s broadcast Modbus offers 2 different transfer modes The mode selection happens during runtime by using the FC SFC 216 SER_CFG n ASCII mode Every byte is transferred in the 2 sign ASCII code The data are marked with a start and an end sign This causes a transparent but slow transfer n RTU mode Every byte is transferred as one character This enables a higher data pass through as the ASCII mode Inst...

Page 165: ...ster Code Command Description 01h Read n bits Read n bits of master output area 0x 02h Read n bits Read n bits of master input area 1x 03h Read n words Read n words of master output area 4x 04h Read n words Read n words master input area 3x 05h Write 1 bit Write 1 bit to master output area 0x 06h Write 1 word Write 1 word to master output area 4x 0Fh Write n bits Write n bits to master output area...

Page 166: ...Read n bits of master input area 1x Command telegram Slave address Function code Address 1 bit Number of bits Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Number of read bytes Data 1 byte Data 2 byte Check sum CRC LRC 1byte 1byte 1byte 1byte 1byte 1word max 250byte 03h Read n words of master output area 4x 04h Read n words master input area 3x Respon...

Page 167: ...code Address bit Status bit Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Address bit Status bit Check sum CRC LRC 1byte 1byte 1word 1word 1word Code 06h Write 1 word to master output area 4x Command telegram Slave address Function code Address word Value word Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code...

Page 168: ...its Check sum CRC LRC 1byte 1byte 1word 1word 1word Code 10h Write n words to master output area 4x Command telegram Slave address Function code Address 1 word Number of words Number of bytes Data 1 word Data 2 word Check sum CRC LRC 1byte 1byte 1word 1word 1byte 1word 1word 1word 1word max 125words Respond telegram Slave address Function code Address 1 word Number of words Check sum CRC LRC 1byte...

Page 169: ...he sub module X1 MPI DP 8 2 PROFIBUS communication n PROFIBUS is an international standard applicable to an open and serial 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 program mable logic controllers n PROFIBUS comprises an assortment of compatible versions The following details re...

Page 170: ...is not possible 8 3 PROFIBUS communication via extension module EM M09 9pin SubD jack isolated The interface supports the following functionalities which are switch able by an hardware configuration n MPI default after overall reset The MPI interface serves for the connection between programming unit and CPU By means of this the project engineering and programming happens In addition MPI serves fo...

Page 171: ...r 4 15 Deployment storage media VSD VSC on page 79 1 RS485 interface 2 Periphery Never connect the cable shield and the M5V pin 5 together since the interfaces could be destroyed X2 MPI PB DE Description green n Slave is in DE data exchange n Slave exchanges data with the master n Slave is in RUN state green blinking n Slave CPU is in state start up n Slave CPU is without master n There is no powe...

Page 172: ...Add your modules according to the real hardware assembly 4 Open the properties dialog of the DP interface of the CPU by means of a double click at MPI DP 5 Set Interface type to PROFIBUS 6 Connect to PROFIBUS and preset an address e g 3 and confirm with OK 7 Switch at Operating mode to DP slave 8 Via Configuration you define the in output address area of the slave CPU which are to be assigned to t...

Page 173: ...uration at Object properties of your slave system 10 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 11 Save compile and transfer your project to your CPU 1 Standard bus Object properties Operating mode DP master PROFIBUS address 1 2 Hardware catalog CPU 3...

Page 174: ...ifferences 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 n Max 32 participants per segment are permitted Within a segment the members are linear connected The segments are connected via repeaters The maximum segment length depends on the transfer rate n PROFIBUS DP uses a transfer rate b...

Page 175: ...n mm 0 45 90 A 64 61 66 B 34 53 40 C 15 8 15 8 15 8 To connect this EasyConn plug please use the standard PROFIBUS cable type 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 Dimensions in mm The EasyCo...

Page 176: ... Lift contact cover 3 Insert both wires into the ducts provided watch for the correct line colour as below 4 Please take care not to cause a short circuit between screen and data lines 5 Close the contact cover 6 Tighten screw max tightening torque 0 08Nm The green line must be connected to A the red line to B 8 6 Commissioning and Start up behavior On delivery the CPU is overall reset The PROFIBU...

Page 177: ...behavior at CPU STOP n The global control command Clear is sent to the slaves by the master Here the DE LED is blinking n DP slaves with fail safe mode were provided with output telegram length 0 n DP slaves without fail safe mode were provided with the whole output telegram but with output data 0 n The input data of the DP slaves were further cyclically transferred to the input area of the CPU Ma...

Page 178: ...vely in docu mentation of the SPEED7 Studio Click at the button You can find SPEED7 Studio in Windows Start at VIPA ð SPEED7 Studio is started The start page is opened 1 Start You can create a new project open a saved project or delete projects 2 Project If a project is open you can open the Project overview or add a new device 3 Last projects Here recently opened projects are listed You can repea...

Page 179: ...an select whether to save or ignore the changes ð SPEED7 Studio is ended 9 2 SPEED7 Studio Work environment 1 Menu bar 2 Toolbar 3 CPU control centre 4 Project tree 5 Area of operations 6 Output range 7 Catalog properties 8 Status line You can show and hide additional windows and the arrangement and size of the windows can be adjusted End SPEED7 Studio VIPA System MICRO Configuration with VIPA SPE...

Page 180: ...evices and components Fur thermore you can open editors in order to edit settings configurations the control pro gram and visualisation Devices and project data can be edited in the area of operations You can open different editors for this purpose The register in the area of operations is divided into two register levels You can switch through the editors in the area of operations via the tabs In...

Page 181: ...e project in the project tree you must create a new project or open a stored project It is not possible to edit several projects at the same time It is possible to run SPEED7 Studio simultaneously several times on one PC if you want to use it for various projects The objects in the project tree are arranged in a tree structure You can show or hide objects Hide all objects Project è Reduce project ...

Page 182: ...of the catalog you must click on Catalog at the lower screen edge Certain tabs are displayed in the catalog depending on which editor window is opened in the foreground The objects in the catalog are arranged in a tree structure You can show or hide objects Hide all objects Project è Reduce project tree Hide all objects Project è Reduce catalog tree Show all objects Project è Expand catalog tree H...

Page 183: ...ag the desired object from the catalog to a suitable position ð The object is added 1 Select the desired object hold left mouse button down 2 Drag the object 3 Drop the object at a suitable place release the mouse button 4 The object is added Example The catalog information shows detailed information of the selected object e g name pro ducer version and order information 4 Search 5 Filter 6 Add ob...

Page 184: ...X3 PG_OP_Ethernet 9 4 SPEED7 Studio Hardware configuration Ethernet PG OP channel The CPU has an integrated Ethernet PG OP channel This channel allows you to pro gram and remote control your CPU n The Ethernet PG OP channel X3 X4 is designed as switch This enables PG OP communication via the connections X3 and X4 n The Ethernet PG OP channel also gives you access to the internal web page that cont...

Page 185: ...s an initialization You get valid IP address parameters from your system administrator The assignment of the IP address data happens online in the SPEED7 Studio with the following proceeding 1 Ethernet PG OP Determine the current Ethernet MAC address of your Ethernet PG OP channel This can be found at the front of the CPU labelled as MAC PG OP 2 Start the SPEED7 Studio with your project 3 Click in...

Page 186: ...gnment the Ethernet PG OP channel is online reachable using the set IP address data The value remains as long as it is reassigned it is over written by a hardware configuration or a factory reset is executed 10 With clicking at Apply settings the IP address data a stored in the project If you are not online you can assign IP address data to your Ethernet PG OP channel with following proceeding 1 S...

Page 187: ... configuration 2 Starting with slot 1 place in the Device configuration yourSystem MICRO modules in the plugged sequence For this drag from the hardware catalog the corre sponding module to the corresponding position in the Device configuration For parametrization double click in the Device configuration on the module you want to parametrize Then the parameters of the module are shown in a dialog ...

Page 188: ...means of handling blocks of the user program 9 6 2 Analog input 9 6 2 1 Overview n 2xUx12Bit 0 10V n Sub module AI2 n Ä Chapter 5 3 Analog input on page 87 9 6 2 2 Parametrization in SPEED7 Studio 9 6 2 2 1 I O addresses Sub module Input address Access Assignment AI2 800 WORD Analog input channel 0 X4 802 WORD Analog input channel 1 X4 9 6 2 2 2 Parameter The analog input part has a filter integra...

Page 189: ...0 1ms is only possible with fast inputs which have a max input frequency of 100kHz Ä Chapter 5 4 Digital input on page 90 Within a group the input delay for slow inputs is limited to 0 5ms n Range of values 0 1ms 0 5ms 3ms 15ms 9 6 4 Digital output 9 6 4 1 Overview n 12xDC 24V 0 5A n Sub module DI16 DO12 n Ä Chapter 5 5 Digital output on page 94 9 6 4 2 Parametrization in SPEED7 Studio 9 6 4 2 1 I...

Page 190: ...can trigger a hardware interrupt select able via Count Hardware gate opening Hardware gate closing On reaching the comparator on Counting pulse on overflow on underflow n Diagnostics process A diagnostics interrupt is only triggered when a hardware inter rupt was lost 9 6 5 2 3 Channel x Select via Channel the channel select via Operating the counter operating mode The following counter operating ...

Page 191: ...n the gate closes and resumed at the last actual counter value when the gate opens again Ä Chapter 5 6 6 2 Gate function on page 111 Abort count process Start value End value Start value with counting direction backward End value with main counting direction forward Range of values 2 2147483647 231 1 2147483647 231 1 Comparison value The count value is compared with the comparison value See also t...

Page 192: ..._CMP remains reset n Comparator Counter value Comparison value Counter value Comparison value n Pulse at comparison value To adapt the used actuators you can specify a pulse duration The output is set for the specified pulse duration when the counter value reaches the comparison value When you ve set a main counting direction the output is only set at reaching the comparison value from the main co...

Page 193: ... n disabled no hardware interrupt disabled On reaching comparator Hardware interrupt on reaching comparator n enabled Hardware interrupt when comparator is trig gered can be configured via Characteristics of the output n disabled no hardware interrupt disabled Overflow Hardware interrupt overflow n enabled Hardware interrupt on overflow the upper counter limit n disabled no hardware interrupt disa...

Page 194: ...pported n None The interrupt function is disabled n Process The following events of the frequency measurement can trigger a hardware interrupt selectable via Frequency counting End of measurement n Diagnostics process A diagnostics interrupt is only triggered when a hardware inter rupt was lost 9 6 6 2 3 Channel x Select via Channel the channel and select for frequency measurement via Operating mo...

Page 195: ... 2 Parametrization in SPEED7 Studio 9 6 7 2 1 I O addresses Sub module Input address Access Assignment Count 816 DINT reserved 820 DINT reserved 824 DINT reserved 828 DINT reserved Sub module Output address Access Assignment Count 816 DWORD reserved 820 DWORD reserved 824 DWORD reserved 828 DWORD reserved 9 6 7 2 2 Channel x Select via Channel the channel and select for pulse width modulation via ...

Page 196: ...r resolu tion and range of values of the period duration minimum pulse duration and on delay n 1ms The time base is 1ms n 0 1ms The time base is 0 1ms n 1µs The time base is 1µs 0 1ms On delay Enter here a value for the time to expire from the start of the output sequence to the output of the pulse The pulse sequence is output at the output channel on expiration of the on delay Range of values 0 6...

Page 197: ...MPI net is electrically identical with the structure of a PROFIBUS net This means the same rules are valid and you use the same components for the build up The single participants are connected with each other via bus interface plugs and PROFIBUS cables Per default the MPI net runs with 187 5kbaud VIPA CPUs are deliv ered with MPI address 2 The MPI programming cables are available at VIPA in diffe...

Page 198: ... project and select Context menu è Recompile ð Your project will be translated and prepared for transmission 5 To transfer the user program and hardware configuration click in the Project tree at your CPU and select Context menu è Transfer all ð A dialog window for project transfer opens 6 Select the Port type Serial interface and start the transfer with Transfer Proceeding transfer via MPI VIPA S...

Page 199: ...er supply of your CPU and start the SPEED7 Studio with your project 2 Set at Active PC interface the Ethernet interface 3 Click in the Project tree to your project and select Context menu è Recompile ð Your project will be translated and prepared for transmission 4 To transfer the user program and hardware configuration click in the Project tree at your CPU and select Context menu è Transfer all ð...

Page 200: ...d the hardware config uration 4 Copy the wld file at a suited memory card Plug this into your CPU and start it again ð The transfer of the application program from the memory card into the CPU takes place depending on the file name after an overall reset or PowerON S7PROG WLD is read from the memory card after overall reset AUTOLOAD WLD is read from the memory card after PowerON The flickering of ...

Page 201: ...ens Automation è TIA Then the TIA Portal opens with the last settings used With the menu Project è Exit in the Project view you may exit the TIA Portal Here there is the possibility to save changes of your project before 10 1 2 Work environment of the TIA Portal Basically the TIA Portal has the following 2 views With the button on the left below you can switch between these views The Portal view p...

Page 202: ...L file into the Siemens TIA Portal The hardware configuration of the CPU is divided into the following parts n Installation GSDML VIPA MICRO PLC for PROFINET n Configuration Siemens CPU n Connection VIPA MICRO PLC as PROFINET IO device The installation of the PROFINET IO devices VIPA MICRO PLC happens in the hard ware catalog with the following approach 1 Go to the service area of www vipa com 2 L...

Page 203: ... as CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 from Siemens 1 Start the Siemens TIA Portal 2 Create a new project in the Portal view with Create new project 3 Switch to the Project view 4 Click in the Project tree at Add new device 5 Select the following CPU in the input dialog SIMATIC S7 300 CPU 314C 2 PN DP 314 6EH04 0AB0 V3 3 ð The CPU is inserted with a profile rail Device overview Module Slot Type ...

Page 204: ...alling the GSDML the IO device for the CPU may be found in the hardware catalog at Other field devices PROFINET IO VIPA GmbH VIPA MICRO PLC Connect the slave system to the CPU by dragging dropping it from the hard ware catalog to the Network view and connecting it via PROFINET to the CPU 3 Click in the Network view at the PROFINET part of the Siemens CPU and enter at valid IP address data in Prope...

Page 205: ...l has no IP address n For online access to the CPU via the Ethernet PG OP channel valid IP address parameters have to be assigned to this This is called initialization n This can be done with the Siemens TIA Portal 1 Install your System MICRO with your CPU 2 Wire the system by connecting cables for voltage supply and signals 3 Connect the one of the Ethernet jacks X3 X4 of the Ethernet PG OP chann...

Page 206: ...Confirm with Assign IP configuration ð Directly after the assignment the Ethernet PG OP channel is online reachable using the set IP address data The value remains as long as it is reassigned it is overwritten by a hardware configuration or an factory reset is executed Due to the system you may get a message that the IP address could not be assigned This message can be ignored 1 Open your project ...

Page 207: ...hem into your project Execute the following steps Load an unzip the file TIA_Vxx zip note TIA Portal version Open library and transfer blocks into the project Start your un zip application with a double click on the file TIA_Vxx zip and copy all the files and folders in a work directory for the Siemens TIA Portal 1 Start the Siemens TIA Portal with your project 2 Switch to the Project view 3 Choos...

Page 208: ...ization Ä Chapter 10 3 TIA Portal Hardware configuration Ethernet PG OP channel on page 205 Please consider to use the same IP address data in your project for the CP 343 1 1 For the transfer connect if not already done the appropriate Ethernet jack to your Ethernet 2 Open your project with the Siemens TIA Portal 3 Click in the Project tree at Online access and choose here by a double click your n...

Page 209: ...rall reset AUTOLOAD WLD is read from the memory card after PowerON The flickering of the yellow LED of the status bar of the CPU marks the active transfer Please regard that your user memory serves for enough space for your user program otherwise your user program is not com pletely loaded and the red LED of the status bar lights up 10 5 3 Option Transfer via MPI For the transfer via MPI the use o...

Page 210: ...directly to an already plugged plug on the RS485 jack Every bus participant identifies itself at the bus with an unique address in the course of the address 0 is reserved for programming devices 1 Establish a connection to your extension module via MPI with an appropriate pro gramming cable Information may be found in the corresponding documentation of the programming cable 2 Start the Siemens TIA...

Page 211: ...Appendix VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 211 ...

Page 212: ...Content A System specific event IDs B Integrated blocks VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 212 ...

Page 213: ...ule 0x0C Diagnostic interrupt outgoing 0x0D Cross traffic connection message 0x0E Neighbourhood change message 0x0F Synchronisation message bus 0x10 Synchronisation message device 0x11 Network component message 0x12 Clock synchronisation message bus 0x1F Pull interrupt module ZInfo3 CoE error code 0xE003 Error on accessing the periphery ZInfo1 Transfer type ZInfo2 Periphery address ZInfo3 Slot 0xE...

Page 214: ...periphery 0xE019 Error at standard back plane bus system recognition 0xE01A Error at recognition of the operating mode 8 9 bit 0xE01B Error maximum number of plug in modules exceeded 0xE020 Error Interrupt information undefined ZInfo2 Slot ZInfo3 Not relevant to the user DatID Interrupt type 0xE030 Error of the standard bus 0xE033 Internal error Please contact the hotline 0xE0B0 SPEED7 is not stop...

Page 215: ...nown error 99 Internal error 0xE0CD Error at DP V1 job management ZInfo1 Not relevant to the user ZInfo2 Not relevant to the user ZInfo3 Not relevant to the user DatID Not relevant to the user 0xE0CE Error Timeout at sending of the i slave diagnostics 0xE100 Memory card access error 0xE101 Memory card error file system 0xE102 Memory card error FAT 0xE104 Memory card error at saving ZInfo3 Not rele...

Page 216: ... Block length 0xE21E Memory card reading Error at reload after overall reset file Protect wld too big OB Not relevant to the user 0xE21F Memory card reading Error at reload after overall reset checksum error at reading PK Not relevant to the user OB Not relevant to the user ZInfo1 Not relevant to the user ZInfo2 BstTyp 0x38 OB 0x41 DB 0x42 SDB 0x43 FC 0x44 SFC 0x45 FB 0x46 SFB 0x6F VOB 0x65 VFB 0x...

Page 217: ...o2 Reserved ZInfo3 Source of the FSC 0 CPU 1 Card 0xE402 A configured functionality is not activated ZInfo1 FCS ErrorCode 1 The PROFIBUS functionality is disabled The interface acts further as MPI interface 2 The EtherCAT functionality is not enabled 3 The number of configured axis is not enabled 0xE403 FSC can not be activated in this CPU ZInfo1 Memory extension in kB ZInfo2 FeatureSet PROFIBUS Z...

Page 218: ...61 VDB 0x62 VSDB 0x64 VSFC 0x66 VSFB ZInfo3 Block no 0xE501 Parser error ZInfo3 SDB number ZInfo1 ErrorCode 1 Parser error SDB structure 2 Parser error SDB is not a valid SDB type ZInfo2 SDB type 0xE502 Invalid block type in protect wld ZInfo2 Block type 0x38 OB 0x41 DB 0x42 SDB 0x43 FC 0x44 SFC 0x45 FB 0x46 SFB 0x6F VOB 0x65 VFB 0x63 VFC 0x61 VDB 0x62 VSDB VIPA System MICRO System specific event ...

Page 219: ...ed connections 0xE610 Onboard PROFIBUS MPI Bus error fixed ZInfo1 Interface ZInfo2 Not relevant to the user ZInfo3 Not relevant to the user PK Not relevant to the user DatID Not relevant to the user 0xE701 Internal error Please contact the hotline 0xE703 Internal error Please contact the hotline 0xE710 Onboard PROFIBUS MPI Bus error occurred ZInfo1 Interface ZInfo2 Not relevant to the user ZInfo3 ...

Page 220: ...create error 0xFEA1 File write error 0xFEA2 Odd address when reading 0xE80C Internal error Please contact the hotline 0xE80D Internal error Please contact the hotline 0xE80E CMD Auto command SET_NETWORK recognized and successfully executed 0xE80F Internal error Please contact the hotline 0xE810 Internal error Please contact the hotline 0xE811 Internal error Please contact the hotline 0xE812 Intern...

Page 221: ...MD Auto command Error CMD_START missing 0xE8FF CMD Auto command Error Error while reading CMD file memory card error 0xE901 Check sum error ZInfo1 Not relevant to the user ZInfo2 Not relevant to the user DatID Not relevant to the user 0xE902 Internal error Please contact the hotline 0xEA00 Internal error Please contact the hotline 0xEA01 Internal error Please contact the hotline 0xEA02 SBUS Intern...

Page 222: ...D Process image enabled in STOP 0xFE Watchdog 0xFF Not set 0xEA04 SBUS Multiple configuration of a periphery address ZInfo1 Periphery address ZInfo2 Slot ZInfo3 Data width 0xEA05 Internal error Please contact the hotline 0xEA07 Internal error Please contact the hotline 0xEA08 SBUS Parametrized input data width unequal to plugged input data width ZInfo1 Parametrized input data width ZInfo2 Slot ZIn...

Page 223: ...19 Internal error Please contact the hotline 0xEA1A SBUS Error at access to the FPGA address table ZInfo2 HW slot ZInfo3 Table 0 Reading 1 Writing PK Not relevant to the user DatID Not relevant to the user 0xEA20 Error RS485 interface is not pre set to PROFIBUS DP master bus a PROFIBUS DP master is configured 0xEA21 Error Configuration RS485 interface X2 X3 PROFIBUS DP master is configured but mis...

Page 224: ...ber of configured devices ZInfo2 Slot ZInfo3 Maximum possible number of devices 0xEA54 PROFINET IO controller IO controller reports multiple parametrization of a periphery address ZInfo1 Periphery address ZInfo2 Slot ZInfo3 Data width PK Not relevant to the user DatID Not relevant to the user 0xEA61 Internal error Please contact the hotline 0xEA62 Internal error Please contact the hotline 0xEA63 I...

Page 225: ...ce DatID StackError DeviceRef ZInfo1 StackError Error Code ZInfo2 StackError Error Detail ZInfo3 StackError Error AdditionalDetail ZInfo3 StackError Error AreaCode 0xEA67 PROFINET IO controller Error reading record set PK Error type 0 Record set error local 1 Record set error stack 2 Record set error station OB Rack slot of the controller DatID Device ZInfo1 Record set number ZInfo2 Record set han...

Page 226: ...user ZInfo3 Not relevant to the user OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8 RUN 9 RUN redundant operation 10 HALT 11 COUPLING 12 UPDATING 13 DEFECTIVE 14 Troubleshooting 15 Without power 0xFD Process image enabled in STOP 0xFE W...

Page 227: ...er 0xFD Process image enabled in STOP 0xFE Watchdog 0xFF Not set 0xEA6D PROFINET IO controller No empty Name ZInfo1 Device ID ZInfo2 Not relevant to the user ZInfo3 Not relevant to the user OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8...

Page 228: ...ate 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8 RUN 9 RUN redundant operation 10 HALT 11 COUPLING 12 UPDATING 13 DEFECTIVE 14 Troubleshooting 15 Without power 0xFD Process image enabled in STOP 0xFE Watchdog 0xFF Not set PK Rack slot DatID Not relevant to the user 0xEA6F PROFINET IO controller PROFINET...

Page 229: ...supportedApiError slot ZInfo2 UnsupportedApiError subslot OB UnsupportedApiError api PK Rack Slot No DatID UnsupportedApiError deviceID 0xEA71 Internal PROFINET error Please contact the hotline 0xEA81 Internal error Please contact the hotline 0xEA82 Internal error Please contact the hotline 0xEA83 Internal error Please contact the hotline 0xEA91 Internal error Please contact the hotline 0xEA92 Int...

Page 230: ...mode 0x01 10Mbit half duplex 0x02 10Mbit full duplex 0x03 100Mbit half duplex 0x04 100Mbit full duplex 0x05 Link mode undefined 0x06 Auto Negotiation OB Current operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8 RUN 9 RUN redundant operation 1...

Page 231: ...ge not suitable PK Not relevant to the user DatID Not relevant to the user ZInfo2 Slot 0 not be determined 0xEB10 System error Bus error ZInfo1 Type of error 0x60 Bus enumeration error 0x80 General error 0x81 Queue execution error 0x82 Error interrupt PK Not relevant to the user DatID Not relevant to the user 0xEB11 System error during bus initialization PK Not relevant to the user DatID Not relev...

Page 232: ...bytes ZInfo3 Error code lower 2 bytes 0xEC04 EtherCAT Multiple configuration of a periphery address ZInfo1 Periphery address ZInfo2 Slot PK Not relevant to the user DatID Not relevant to the user 0xEC05 EtherCAT Check the set DC mode of the YASKAWA Sigma 5 7 drive PK Not relevant to the user OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initi...

Page 233: ... sending the SDO request for further information the subsequent event with the ID 0xED60 is to be analysed on the CP 7 Drive returns error in the SDO response for further information the subsequent event with the ID 0xED60 is to be analysed on the CP 8 SDO timeout DC mode could not be determined for further information the subsequent event with the ID 0xED60 is to be analysed on the CP ZInfo3 Not ...

Page 234: ... Op ZInfo2 Diagnostics address of the master ZInfo3 Number of stations which are not in the same state as the master DatID Input address DatID Output address DatID Station not available DatID Station available 0xEC12 EtherCAT Restoration slave ZInfo1 Old status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo1 New status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp...

Page 235: ... slaves out of Sync OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8 RUN 9 RUN redundant operation 10 HALT 11 COUPLING 12 UPDATING 13 DEFECTIVE 14 Troubleshooting 15 Without power 0xFD Process image enabled in STOP 0xFE Watchdog 0xFF Not ...

Page 236: ...le DatID Station available 0xED12 EtherCAT Slave failure ZInfo1 Old status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo1 New status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo2 Diagnostics address of the station ZInfo3 AlStatusCode 0x0000 No Error 0x0001 Unspecified error 0x0011 Invalid requested status change 0x0012 Un...

Page 237: ...ut FMMU configuration 0x0030 Invalid DC Sync configuration 0x0031 Invalid DC Latch configuration 0x0032 PLL error 0x0033 Invalid DC IO error 0x0034 Invalid DC timeout error 0x0042 Error in acyclic data exchange Ethernet over EtherCAT 0x0043 Error in acyclic data exchange CAN over EtherCAT 0x0044 Error in acyclic data exchange file access over EtherCAT 0x0045 Error in acyclic data exchange servo dr...

Page 238: ...atID Station available 0xED21 EtherCAT Faulty bus status change ZInfo1 Old status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo1 New status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo2 Diagnostics address of the master ZInfo3 Error code 0x0008 Busy 0x000B Invalid parameters 0x000E Invalid status 0x0010 Timeout 0x0004 Abb...

Page 239: ...ecified error 0x0011 Invalid requested status change 0x0012 Unknown requested status 0x0013 Bootstrap not supported 0x0014 No valid firmware 0x0015 Invalid mailbox configuration 0x0016 Invalid mailbox configuration 0x0017 Invalid sync manager configuration 0x0018 No valid inputs available 0x0019 No valid outputs available 0x001A Synchronisation error 0x001B Sync manager watchdog 0x001C Invalid syn...

Page 240: ...ata exchange servo drive profile over EtherCAT 0x004F Error in acyclic data exchange vendor specific over EtherCAT DatID Input address DatID Output address DatID Station not available DatID Station available 0xED23 EtherCAT Timeout while changing the master status to OP after CPU has changed to RUN OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP ow...

Page 241: ... master 0xED31 EtherCAT Overflow of the interrupt queue ZInfo2 Diagnostics address of the master 0xED50 EtherCAT DC slaves in sync ZInfo2 Diagnostics address of the master ZInfo3 DC State change 0 Master 1 Slave OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STOP overall reset 3 STOP own initialization 4 STOP internal 5 Start up cold start 6 Start up cold restart warm star...

Page 242: ...nternal 5 Start up cold start 6 Start up cold restart warm start 7 Start up restart 8 RUN 9 RUN redundant operation 10 HALT 11 COUPLING 12 UPDATING 13 DEFECTIVE 14 Troubleshooting 15 Without power 0xFD Process image enabled in STOP 0xFE Watchdog 0xFF Not set ZInfo1 New status 0x00 Undefined Unkown 0x01 INIT 0x02 PreOp 0x03 BootStrap 0x04 SafeOp 0x08 Op ZInfo2 Slave address ZInfo3 AlStatusCode 0x00...

Page 243: ...alid output FMMU configuration 0x002E Invalid input FMMU configuration 0x0030 Invalid DC Sync configuration 0x0031 Invalid DC Latch configuration 0x0032 PLL error 0x0033 Invalid DC IO error 0x0034 Invalid DC timeout error 0x0042 Error in acyclic data exchange Ethernet over EtherCAT 0x0043 Error in acyclic data exchange CAN over EtherCAT 0x0044 Error in acyclic data exchange file access over EtherC...

Page 244: ...stics buffer CP Error in the response to an INIT command PK EtherCAT station address low byte OB EtherCAT station address high byte ZInfo1 Error type 1 No response 2 Validation error 3 INIT command failed requested station could not be reached 0 Not defined 0xED70 EtherCAT Diagnostics buffer CP Twice HotConnect group found OB Operation mode 0 Configuration in operation mode RUN 1 STOP update 2 STO...

Page 245: ...D Not relevant to the user 0xEE01 Internal error Please contact the hotline 0xEEEE CPU was completely overall reset since after PowerON the start up could not be finished 0xEF00 Internal error Please contact the hotline 0xEF01 Internal error Please contact the hotline 0xEF11 Internal error Please contact the hotline 0xEF12 Internal error Please contact the hotline 0xEF13 Internal error Please cont...

Page 246: ...ity class error OB 86 RACK_FLT Slave failure restart OB 100 COMPLETE RESTART Start up OB 102 COLD RESTART Start up OB 121 PROG_ERR Programming error OB 122 MOD_ERR Periphery access error SFB Name Description SFB 0 CTU Up counter SFB 1 CTD Down counter SFB 2 CTUD Up down counter SFB 3 TP Create pulse SFB 4 TON On delay SFB 5 TOF Create turn off delay SFB 7 TIMEMESS Time measurement SFB 12 BSEND Sen...

Page 247: ...ead consistent data SFC 15 DPWR_DAT Write consistent data SFC 17 ALARM_SQ ALARM_SQ SFC 18 ALARM_SQ ALARM_S SFC 19 ALARM_SC Acknowledgement state last alarm SFC 20 BLKMOV Block move SFC 21 FILL Fill a field SFC 22 CREAT_DB Create a data block SFC 23 DEL_DB Deleting a data block SFC 24 TEST_DB Test data block SFC 28 SET_TINT Set time of day interrupt SFC 29 CAN_TINT Cancel time of day interrupt SFC ...

Page 248: ... default parameter SFC 57 PARM_MOD Parametrize module SFC 58 WR_REC Write record set SFC 59 RD_REC Read record set SFC 64 TIME_TCK Read system time tick SFC 65 X_SEND Sending data SFC 66 X_RCV Receiving data SFC 67 X_GET Read data SFC 68 X_PUT Write data SFC 69 X_ABORT Disconnect SFC 70 GEO_LOG Determining the start address of a module SFC 71 LOG_GEO Determining the slot belonging to a logical add...

Reviews: