Home
SODIMM-PLC7001 User Manual
Contents
1. D R O1 O N Oo Output Hysteresis 0 Hysteresis 3 Counter value gt comparison value output is set and hysteresis activated Leave hysteresis range output is reset Counter value gt comparison value output is set and hysteresis activated Leave hysteresis range output remains set for counter value gt comparison value Counter value lt comparison value and hysteresis active output is reset Counter value gt comparison value output is not set for hysteresis active CEO Leave hysteresis range output remains set for counter value gt comparison 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 hysteresis range After leaving the hysteresis range a new hysteresis is only activated with again reaching the comparison conditions SODIMM PLC7001 User Manual Revision 1 01 81 Copyright profichip GmbH 2009 I O periphery Effect at pulse at comparison value with pulse duration Zero Counter value Hysteresis Comparison value D PO OO N 00 Output Hysteresis 0 Hysteresis 3 Counter value comparison value output is set and hysteresis activated Leave hysteresis range output is reset and counter value lt comparison v
2. Example Input channel 3 3 6 14 3 Process alarm without Diagnostic alarm OB40 OB40_3 OB40_6 OB40_14 OB40_3 lost lost 3 6 6 Fast memory buffer FIFO 3 6 14 14 3 DB40_3 OB40_6 0B40 14 with Diagnostic alarm OB40 OB82 rit Yops2 8 oB82 3 Bs2 8 B82 3 incoming incoming outgoing outgoing 3 3 lost G 6 6 14 14 14 14 Fast memory buffer Proz FIFO 8 Fast memory buffer Diag FIFO Diagnostic interrupt processing Every OB 82 call causes an entry in the diagnostic buffer of the CPU containing error cause and module address SODIMM PLC7001 User Manual Revision 1 01 85 Copyright profichip GmbH 2009 I O periphery By using the SFC 59 you may read the diagnostic bytes At de activated diagnostic interrupt you have access to the last recent diagnostic event lf you ve activated the diagnostic function in your hardware configuration the contents of record set 0 are already in the local double word 8 when calling the OB 82 The SFC 59 allows you to also read the record set 1 that contains additional information After leaving the OB 82 a clear assignment of the data to the last diagnostic interrupt is not longer possible Record set 0 Diagnos
3. CMD_END In the last line CMD_END is to be located OxE802 Examples SODIMM PLC7001 User Manual Revision 1 01 51 Copyright profichip GmbH 2009 Basic Operations The structure of a command file is 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 wid Execute an overall reset and load proj wid OxE805 WAIT1SECOND Wait ca 1s OxE803 WEBPAGE Store web page as webpage htm 0xE804 DIAGBUF Store diagnostics buffer of the CPU as diagbuff txt OxE80B CMD_END Marks the end of the command sequence 0xE802 arbitrary text Text after the command CMD_END is not evaluated Example 2 CMD_START Marks the start of the command sequence 0xE801 LOAD PROJECT proj2 wld Execute an overall reset and load proj2 wld OxE805 WAIT1SECOND Wait ca 1s OxE803 WAIT1SECOND Wait ca 1s OxE803 SET NETWORK 172 16 129 210 255 255 224 0 172 16 129 210 IP parameter OxE80E WAIT1SECOND Wait ca 1s 0xE803 WAIT1SECOND Wait ca 1s OxE803 WEBPAGE Store web page as webpage htm 0xE804 DIAGBUF Store diagnostics buffer of the CPU as diagbuff txt OxE80B CMD_END Marks the end of the command sequence 0xE802 arbitrary text Text after the command CMD_END is not evaluated Note The parameters IP address subnet mask and gateway may be received from the system administrator Enter the IP address if there is no
4. Version Dae Page pen um iosa mae SSS V1 01 12 07 2010 Chap 9 comments to signal descriptionsadded Chap 6 chapter Dual Port Memory Interface added SODIMM PLC7001 User Manual Revision 1 01 133 Copyright profichip GmbH 2009 profichip GmbH Einsteinstrasse 6 91074 Herzogenaurach Germany Phone 49 9132 744 200 Fax 49 9132 744 2064 www profichip com profichip automation in silicon
5. Copyright profichip GmbH 2009 Signal Description PWRDN LED_RUN BATF LED_STOP VDD13 LED_SF GPIO9 LED FRC GPIO10 GND14 GPIO11 LED_MMC SPI_CS SWITCH_MRES SPI_CLK SWITCH_RUN SPI_SI GPIO7 SPI_SO GPIO08 VDD14 STEE GND15 Note Please see the subsequent chapters for details about the different interfaces 80 86 89 90 94 96 8B 99 9 1 MCU Interface Dual Port RAM Interface Signal Type VO Standard Characteristics Function Duso 10 LvTTLaav eama Wsbe AUSO o LVTTLaav eama MCU address bus SSCSCSC S S S S oes o LvTTLaav 24mA MCU output enable READA wer o LvTTLaav eama MCUwrteenabe wm 1 LVTTL A V internal Pullip 5V Reserved for tuture use Please leave unconnected _ External Pullup required Ne En a u Reserved for future use Please leave unconnected BSi O LVTTL3 3V MCU upper byte select WAIT E LVTTL 3 3V Internal PullUP 3 3V Reserved for future use Please leave unconnected 118 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Signal Description The 16 bit MCU interface serves as a Dual Port RAM DPR interface to extend the amount of I O data visible to the PLC program It can be used to access user specific hardware like analog channels or additional communication interfaces by read and write commands directly from inside the PLC program The size of the DPR interface is 4096 bytes input data and 4096 bytes
6. More information may be found at the part Factory reset further below 4 10 Firmware update Overview By means of an MMC there is the opportunity to execute a firmware update at the CPU For this an accordingly prepared MMC must be in the CPU during the start up Latest Firmware For latest firmware version mail to support profichip com or visit htto www profichio com products speed7 technology single board plc Attention When installing a new firmware you have to be extremely careful Under certain circumstances you may destroy the CPU for example if the voltage supply is interrupted during transfer or if the firmware file is defective In this case please call the profichip support Please make sure that the version of the update firmware is different to the existing firmware otherwise no update is executed Display the Firmware version of the SPEED7 system via web page The PLC 7001 CPU has an integrated web page that monitors information about firmware version of the I O components The Ethernet PG OP channel provides the access to this web page To activate the PG OP channel you have to enter according IP parameters This can be made in Siemens SIMATIC manager either by a hardware configuration loaded by MMC respectively MPI or via Ethernet by means of the MAC address with PLC gt Assign Ethernet Address 44 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations After tha
7. Bit 6 input I 1 7 Bit 7 O fix Diagnostic interrupt due to hardware interrupt lost at Bit 0 Gate Counter 0 closed Bit 1 O fix Bit 2 Gate Counter 0 open Bit 3 0 fix Bit 4 Over underflow end value Counter 0 Bit 5 0 fix Bit 6 Counter 0 reached comparison value Bit 7 O fix Diagnostic interrupt due to hardware interrupt lost at Bit 0 Gate Counter 1 closed Bit 1 O fix Bit 2 Gate Counter 1 open Bit 3 0 fix Bit 4 Over underflow end value Counter 1 Bit 5 0 fix Bit 6 Counter 1 reached comparison value Bit 7 0 fix Diagnostic interrupt due to hardware interrupt lost at Bit 0 Gate Counter 2 closed Bit 1 O fix Bit 2 Gate Counter 2 open Bit 3 0 fix Bit 4 Over underflow end value Counter 2 Bit 5 0 fix Bit 6 Counter 2 reached comparison value Bit 7 0 fix 88 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Dual Port Memory Interface 6 Dual Port Memory Interface User Interface The SFB 240 System Function Block provides access to the DPR Dual Port RAM Interface There are 4096 Byte input and 4096 Byte output data Example SFBZ40 WELSFLOOO DO Besult UEFA EIN DU L H T rue H DU 0 Hetrwerk 2 Titel Fommentar DU L DU L H True H H T TUE H Netzwerk 3 Titel Fommentar BO 0 BO O False False H SODIMM PLC7001 User Manual Revision
8. Modifying electrostatic sensitive modules you should only use soldering irons with grounded tips Attention Personnel and instruments should be grounded when working on electrostatic sensitive modules SODIMM PLC7001 User Manual Revision 1 01 17 Copyright profichip GmbH 2009 General Information 3 2 Operating Structure of a CPU General The CPU contains a processor with internal program memory A CPU supports the following modes of operation cyclic operation timer processing alarm controlled operation priority based processing Cyclic processing Cyclic processing represents the major part of all the processes that are executed in the CPU Identical sequences of operations are repeated in a never ending cycle Timer processing Where a process requires control signals at constant intervals you can initiate certain operations based upon a timer e g not critical monitoring functions at one second intervals Alarm controlled processing If a process signal requires a quick response you would allocate this signal to an alarm controlled procedure An alarm can activate a procedure in your program Priority based processing The above processes are handled by the CPU in accordance with their priority Since a timer or an alarm event requires a quick reaction the CPU will interrupt the cyclic processing when these high priority events occur to react to the event Cyclic processing will resume once the reaction has been proce
9. Parameterization nennen 15 3 General Information 17 3 1 Safety Information for Users 17 3 2 Operating Structure of a CPU 18 29 e E ee le le Sa ee 18 3 4 Operands of the CPU 19 Oo a S 20 4 Basic 0 1 6 11 0 9 nana 23 4 1 va fe Ol BeNavViO gt 23 4 2 Initialization Ethernet PG OP channel 24 4 2 1 Initialization via PLC functions cc ceeeeeeeeeeeeeeeeeeeeees 24 4 2 2 Initialization via minimal Droiect 25 4 3 Access to the internal web page nnnnonnnsnsennnnsennneneneresennne 26 4 4 Project engineering as CPU 313C 2DP sssnaseannnnnnennneennnn 27 4 5 CPU parameterization cccccccccccsssseeeeeecseeseeeeeseeesseeeeseees 30 4 6 Operating SPEED7 200V modules een 34 4 7 Project transfer Rs 37 4 8 Operating modes nennen 40 49 Overall TESE T es cos 42 4 10 Firmware update 2H enensteecnnenenens sectes osmengie 44 4 11 Factory TES ann sn en uns 46 4 12 Memory extension with MCCL 47 4 13 Extended know how protection nennen 48 4 14 MMC Cmd Auto commande 51 4 15 CPU specific diagnostic entries 52 4 16 Using test functions for control and monitoring of variables 56 c Perel geg 59 5 1 OVEIVIGW ss eebe 59 5 2 Iesele 60 5 3 PIG Mall DAN E 60 5 4 Digital part Parameterization snaennnnnannnnnennnnnennnnnenennnennee 61 5 5 Counter Brief Introduction 62 5 6 Counter Controlling
10. RS485 A RS485_B RS485 RTS GND_ISO_A SCHIRM SUBD_BU_PROFIBUS VN003013 SODIMM PLC7001 User Manual Revision 1 01 129 Copyright profichip GmbH 2009 External Circuit Description 11 2 RJ45 Ethernet jack To connect a RJ45 Ethernet jack no additional i e ETH1_TX hardware is required except the LEDs for speed erg and link need a series resistor ETH1_AVDD lt Q EMRS 11 3 USB jack vs lt Like the RJ45 jack the USB jack also requires no additional hardware to be connected to the SODIMM module Please refer to the manual of the jack to get the Pin information you need 11 4 MMC Card slot The MMC Card slot may be directly connected to the pins of the PLC 7001 module There is no additional hardware required Please refer to the manual of your producer 11 5 LEDs of the GPIO interface The LEDs of the GPIO interface are all considered as low active In order to get well known Signals from your SODIMM module e g for overall reset it is recommended that you don t change that In addition you will need series resistors for voltage correction Colors of Status LEDs 130 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Appendix Appendix A Index JOON EPPP EE E E ETT ES 95 Memory management 11 yANe er 11 0 0 18 minimal Gorolect 25 eebe 94 AN EUNEEEEENRSEEINNEERERNENTEER 38 123 Battery butter 23 MMC Gard alot nennen 130 Dreakpoomte nenn 41 MMC Cmd Communication Auto
11. and then click on Properties e Set in the register MPI the transfer parameters of your MPI net and type a valid address e Switch to the register Local connection e Set the COM port of the PCs and the transfer rate 38400Baud for the MPI programming cable from VIPA e Via PLC gt Load to module you may transfer your project via MPI to the CPU and save it on a MMC via PLC gt Copy RAM to ROM if one is plugged Transfer via MMC As external storage medium a MMC is deployed The MMC Multi Media Card serves as external transfer medium for programs and firmware for among others it provides the PC compatible FAT16 file system With an overall reset or PowerON the MMC is automatically read There may be stored several projects and sub directories on a MMC storage module Please take care that your current project engineering is stored in the root directory For reading from the MMC the following file names must be used e Read after overall reset S7PROG WLD S7 project file PROTECT WLD Extended Know how protection e Read after PowerON AUTOLOAD WLD S7 project file Transfer CPU MMC When the MMC has been installed the write command stores the content of the battery buffered RAM as S7PROG WLD at the MMC The write command is controlled by means of the Siemens hardware configurator via PLC gt Copy RAM to ROM During the write process the MCC LED of the CPU is blinking When the LED expires the write process is finished
12. ccccccceeeeeeeccceeeeeseeeseeeeeeeeeeeseaeeeees 66 5 7 Counter Functions nn 71 6 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Copyright profichip GmbH 2009 SODIMM PLC7001 5 7 1 Count Continuously 0 00 cece cccccccecccseeeeeeeeeeeeesseaeeeeeeeeeeees 72 972 COUNT ONCO TEE 72 DAS Coun lee De IEN 75 5 8 Counter Additional functions nennen 77 5 9 Counter Diagnostic and interrupt ceeeeeeeeeeeeeeeeeeeeeeees 84 6 Dual Port Memory Interface 89 7 PUP e e lu Le E 93 7 1 Biet WM OCG HOU nennen ee ee 93 7 2 Protocols and procedures snoennneeooennnneosennnnennnnnnrensnnnenee 94 1 3 Principals of the data ranster nn 98 7 4 RS485 interface seireun eE n EE ER EREE 99 75 COMMUNICATION ET 102 8 Profibus Communication 109 8 1 KEE 109 8 2 Profibus DP Gl ve 109 8 3 Profibus installation guidelines gt 111 8 4 Commissioning and Start up behavior 115 SE Sinal Ggs 116 9 1 MCU Interface Dual Port RAM Interface 118 9 2 VBUS Interface Serial Extension Bus 120 9 3 Digital Inputs DDR 120 9 4 Digital Outputs DO 121 9 5 Serial Interfaces SI_O SI S apns 121 9 6 Ethernet Interfaces ETH1 amp ETH2 122 9 7 FPGA Configuration Interface ccccccccsssssseeeeeeeeeeeeeeeeees 122 9 8 Multi Media Gard Interface MM 123 9 9 Bau Ee eee ee 123 9 10 IC Interface 123 IA SNS ln ee
13. configuration data on the CPU activated As there are no other modules this is placed at slot 4 e Add a CP 342 5 Module 6GK7 342 5DA02 0XE0 V5 0 Access the configuration of this module and set Operating Less Mode DP Master e Place a SPEED7 module at the profibus which work as rack D 20 SPEEL for Speed7 200V modules with addresses 20 a e Add your Speed 200V modules to the SPEED7 module ES max 8 PG OP CP 342 5 Steps of the project engineering The project engineering is separated into 3 parts e Project engineering of the CPU e Project engineering of the PG OP channel e Project engineering of Speed7 200V modules Project engineering CPU as CPU 313C 2DP e Start the hardware configurator from Siemens with a new project and insert a profile rail from the hardware catalog e Place the following Siemens CPU at slot 2 CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 Project engineering of Ethernet PG OP channel as 343 1EX21 Slot Module For the internal Ethernet PG OP channel you have to 1 configure a Siemens CP 343 1 343 1EX21 module This 2 CPU 313C 2 DP may be found at the hardware catalog at SIMATIC 300 X2 DP CP 300 Industrial Ethernet CP 343 1 6GK7 343 2 2 DI16 D016 1EX21 OXEO 2 4 Count In the configuration of CP343 1 in the tab options the attitude Save configuration data on the CPU must be activated 28 Revision 1 01 SODIMM PLC7001 User Manual Co
14. e Words e Double words Timers and Counters In your program you may load cells of the timer with a value between 10ms and 9990s As soon as the user application executes a start operation the value of this timer is decremented by the interval that you have specified until it reaches zero You may load counter cells with an initial value max 999 and increment or decrement these when required Data Blocks A data block contains constants or variables in the form of bytes words or double words You may always access the current data block by means of operands You may access the following types of data e individual Bits e Bytes SODIMM PLC7001 User Manual Revision 1 01 19 Copyright profichip GmbH 2009 General Information e Words e Double words 3 5 CPU 313 6CF03 Overview The PLC 7001 is based upon the SPEED7 technology This supports the CPU at programming and communication by means of co processors that causes a power improvement for highest needs The CPU is programmed in STEP 7 from Siemens For this you may use WinPLC7 from VIPA or the Siemens SIMATIC Manager The CPU with integrated Ethernet PG OP channel a MPI Profibus Slave and RS485 slot simplifies the integration of the CPU into an existing network or the connection of additional peripheral equipment Memory Management The CPU has an integrated work memory During program run the total memory is divided into 50 for program code and 50 for data T
15. 1 01 89 Copyright profichip GmbH 2009 Dual Port Memory Interface Parameters WORD 16 Bit Integer BOOL 1 Bit S7 Any Pointer Please see S7 documentation for details Name Range Address within area seperate for input and output Selects read 0 or write 1 different areas in DPR S7 Pointer IN WORD Size 1 4095 Data size same as in Any Pointer IN BOOL Verify 0 1 For test verify written data IN BOOL Testmode 0 1 For test 1 write into the input area loopback OUT WORD RetVal Return Value Technical Background Input area Access to the DPR address 0x1000 Oxifff 4096 Bytes Output area Access to the DPR Address 0x2000 0xffff 4096 Bytes There is no option for IRQs 90 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Dual Port Memory Interface Special Return Values for other Return Values see CPU Manual 0 8001 8002 8003 8004 8005 8006 8007 No Error Successful executed Address not valid 0 4096 Wrong SrcDst Any Pointer only Q M Areal Size in Any Pointer and Size Parameter do not match Size exceeds range gt 4096 Address size gt 4096 SrcDst there is a BitAddress lt gt 0 within the AnyPointer Only if Verify Parameter 1 There was an Error during data verification Comments on Address and Size DWORD 82 Bit Copy When Address modulo 4 0 and Pointer modulo 4 0 WORD 16 Bit Copy When Address modulo 2 0 and Poin
16. 11 Order number SPEED GSD file type file SPEED GSD Family 1 0 DP slave type SPEED Designation SPEED Node Master System PROFIBUS 20 DP master system 180 SYNC FREEZE Capabilities LE 20 SPEED 1 zo T FREEZE V Watchdog St 4 DPID Order Number S 1 68 zzi tgrzopigg Comment 2 68 221 1BF00DI8 3 68 221 16F00DI8 4 68 221 1BF00DI8 5 222 1BF 00 DOK E 2221BF00 DOE R Hel 7 132 222 1800 DOE EE 8 132 232 1BD60 804 12B1it Universa TL ek des This is not a physically bus and only for configuration of the Speed 200V modules Parameterization of modules By using the SIMATIC Manager from Siemens you may set parameters for configurable system 200 modules at any time For this double click during the project engineering at the slot overview on the module you want to parameterize Inside the appearing dialog window you may set the desired parameters SODIMM PLC7001 User Manual Revision 1 01 35 Copyright profichip GmbH 2009 Basic Operations 0 UE PROFIBUS 2 DP Mastersystem 1 Ja CPU 313C 2 DP H oP Zem H Dirswors DH Z hlen HE CP 343 1 d HESE __PROFIBUS 1 DP master system D wlc ol slemlenl luns ny Properties DP slave 20 SPEED Order Number Designation engin 223 1BF00 DIOS DC24Y Address Lenath Untt Consistent over E ha ii bouge cs adecimal seperated by comma or b
17. 13 59 JEE 12 Project engineering 27 Ethernet PG OP nn 11 ransfer hen 37 Nee een ee 12 Ethernet PG OP channel sssssseseseeeeen 39 Profibus EE 12 MMC KLEER OC 38 NP A 37 Kat ae 12 RS485 Diagnostics EEN 38 Profib Project engineering CPU cccceceseeeeeees 28 2 IDUS SE Project engineering Ethernet ccscccseccseeseee 8 Mer nz nn PtP COMMUNICATION 93 Know how Droiechon 48 BIBA 2 aa a de 95 EDS 11 130 Eeer 94 Vu 11 47 MC T ne een ene 118 Broadcast EE 96 Memory extension 47 Communication 102 SODIMM PLC7001 User Manual Revision 1 01 131 Copyright profichip GmbH 2009 Appendix Error messages 102 103 107 Status RE 130 Fast introduction a OONN 93 SIA E ea a 94 Mocdbus nn 97 Se ger 129 Parameterization nn 100 Supported parameters cccsesceeseeeeeseeeees 30 at TVS EE 124 Principals data transfer 98 ae Protocols 94 est Blieder EE 56 EN CC timer and COUNTED ccecceeeceeeeeeeeeeeeeeneaeeees 19 RS485 interface 99 BE 123 SECS s ries 93 102 USB ach 130 SA E 94 lt E 96 RE 96 EE EAE 120 RJ45 ACK E 130 WY AICO G E 42 OO A E O E A 121 Web oage ee 26 Speed7 QOOV ccccccceceeeeeeeeeeeeeeeeeeaees 29 34 wld files a tecoc ees cestecteceetee seeniseancanmteneeeectean 38 49 Start up behavior 23 132 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Revision History
18. 2009 External Circuit Description 11 External Circuit Description This chapter describes circuit schematics in order to use the signals accessible at the module in standard conform ways such as connecting to a jack The modules and elements used in the schematics may be exchanged by analog modules from other producers 11 1 SubD jack 9pin The SubD 9 pin jack is the standard connector for Profibus MPI and PtP connections In order to connect the SODIMM PLC 7001 module to this standard you need additional hardware The 5V supply voltage for the interfaces is recommended to be electrically isolated The signal lines should be DC isolated by the used periphery There fore a high speed half duplex isolated IC61 RS485 Transceiver is recommended The ge VC vec2 keete Zi picture shows the one in use at the EVABoard SI_1_RTS gt RTS for the SODIMM module The power supply and SON HO pin assignment is chip specific so in case you GND Lu RES use a different device please refer to the manual PwRoN_RESET y PV from the producer The bus side voltage GND 2 cno GND3 H GND_ISO_B however must be an isolated 5V supply in order GND GND2 GND4 45 enp_Iso_8 to match bus standard SOL 20Mbps An isolated DC DC converter may be extended by a voltage stabilizer This is depending on quality of your converter The pin assignment of a standard 9 pin SubD jack is shown in this picture SCHIRM VCC_ISO_A lt GND pr 247 X
19. 22 1 FALSE Joberror __ Z lt o JOB STAT WORD 240 jO JoberrorID SODIMM PLC7001 User Manual Revision 1 01 67 Copyright profichip GmbH 2009 I O periphery Local data only in instance DB Data type Address Default Comment Instance DB value RES00 BOOL 26 0 FALSE RESO BOOL 26 1 FALSE RESO2 BOOL 1262 FALSE STS CMP BOOL 26 3 FALSE Comparator Status Status bit STS CMP indicates that the comparison condition of the comparator is or was reached STS_CMP also indicates that the output was set STS DO TRUE This parameter is only refreshed if in the hardware configuration a comparison value is set at Characteristics of the output reserved S RES04 BOOL FALSE reserved ssl OFLW Las AE 5 EN Overflow status is only set at ene overflow ae UFLW ve rss Is Underflow status is only set at range underflow Weed ZP S ee Status of the zero mark The bit is only set when counting without main direction Indicates the zero mark This is also set when the counter is set to 0 or if is start counting JOB_OVAL DINT er Output value for read request RES10 BOOL FALSE RES11 BOOL FALSE RES_STS BOOL 32 2 FALSE Reset status bits Resets the status bits STS CMP GIG OFLW STS ZP The SFB must be twice to reset the status bit Reset with RES STS Note Per channel you may call the SFB in each case with the same instance DB since the data necessary for the in
20. B RXDITXD N A 8 RxD TxD N A shield Periphery RxD TxD P B RxD TxD N A Periphery RxD TxD P B RxD TxD N A SODIMM PLC7001 User Manual Revision 1 01 99 Copyright profichip GmbH 2009 PtP Communication Parameterization SFC 216 SER_CFG The parameterization happens during runtime deploying the SFC 216 SER_CFG You have to store the parameters for STX ETX 3964R USS and Modbus in a DB Protocol 1 ASCIl 2 STX ETX 3 3964R Parameter Pointer to protocol parameters Baudrate Number of the baudrate CharLen 0 5Bit 1 6Bit 2 7Bit 3 8Bit Parity O None 1 Odd 2 Even StopBits 1 1Bit 2 1 5Bit 3 2Bit FlowControl 1 fix RetVal Return value 0 OK Parameter description All time settings for timeouts must be set as hexadecimal value Find the hex value by multiply the wanted time in seconds with the baudrate Example Wanted time 8ms at a baudrate of 19200Baud Calculation 19200Bit s x 0 008s 154Bit 9Ah Hex value is 9Ah Protocol Here you fix the protocol to be used You may choose between 1 ASCII 2 STX ETX 3 3964R 4 USS Master 5 Modbus RTU Master 6 Modbus ASCII Master Parameter as DB At ASCII protocol this parameter is ignored At STX ETX 3964R USS and Modbus you fix here a DB that contains the communication parameters and has the following structure for the according protocols Data block at STX ETX DBBO STX1 BYTE 1 Start ID in hexadecimal
21. Commande 51 Ke 12 MOSS een 97 POIDS e 13 ODOT ANS inanin ETER 19 Zon GE 13 Operating mode nnnnnonoaannnnnnonnennnnnnnnnneennni 40 Compatibility cccccccssssseeeeeeeesseseeeeeeees 21 operating structure 18 Counter Overall TSG een 42 Address assignment 14 60 Factory Setting 44 CP en tees 17 Overview CPU parameterization 30 CPU 313SC DPM 20 Cycle time sumveillance 42 Parameterization Deployment Digital part 15 61 VO periphery vores 9 59 Modules uauaeaeaeaeeenenenenenennnnnnennnnnnnnnn 35 PtP communication 93 Weit E 57 DR ste aweceatarswaene case eenetatan 120 FOWE OUPS niian S 21 Diagnostic POCONG O 2 een 95 Sift nern 52 DIOCESEI e EE 18 VE 38 Profibus DP Digital CHE 14 60 BAU ANC a en 111 Address assignment 14 60 COMMISSIONING ssseeeeeeeeeeeeeeeeees 115 E ee ee E 121 Connectors E SEN 112 Environmental conditions 4uu gt 20 dismantling lengths 113 TINCT E E bannen tree 122 130 Installation guidelines ETE 111 n SEH Line termination nn nn nn 114 ven TELS sun Ee Start up behavior EE 1 15 Factory setting 44 47 es 44 Transfer medium 111 RO a ee 122 Profibus DP master CO eee 125 Deployment as DP slave 109 EE EOE 123 Overview 109 In Output range ueeaeaenannennnennnnnnnennnennn 13 60 project engineering ENEE
22. Load value too low 0152h Load value too high 0161h Count value too low 0162h Count value too high O1FFh Invalid job ID e A new job may be started with JOB_DONE TRUE SODIMM PLC7001 User Manual Revision 1 01 69 Copyright profichip GmbH 2009 I O periphery e A value to be read of a read job may be found in JOB OVAL in the instance DB at address 28 Permitted value range for JOB_VAL Continuous Count Valid range Valid range O O S Writing counter directl 2147483647 2 1 to 2147483646 2 2 Writing the load value 2147483647 2 1 to 2147483646 2 2 2147483648 2 to 2147483647 2 1 Writing hysteresis 0 to 255 Writing pulse duration O to 510ms Single periodic count no main count direction Valid range Valid range O 2147483647 2 1 to 2147483646 2 2 2147483647 2 1 to 2147483646 2 2 2147483648 2 to 2147483647 2 1 Single periodic count main count direction up 2 to 2147483646 2 1 2147483648 2 to end value 2 2147483648 2 to end value 1 Single periodic count main count direction down 2 to 2147483647 2 1 2 to 2147483647 2 1 Writing comparison value 1 to 2147483647 2 1 Writing hysteresis 0 to 255 Writing pulse duration O to 510ms Only even values are allowed Odd values are automatically rounded Latch function As soon as during a count process an edge 0 1 is recognized at the L
23. Min Typ Max Unit yo De Supply Voltage lyyran 8 20 bev E E Los V__ Vu Input High level Voltage ____ LVTTLS SV TTL SV E __ V Vy Ene SE negative going LVTTL3 3V ST Threshold Level Schmitt Trigger positive going LVTTL 3 3V ST 1 6 2 0 V Threshold Level Va Output Low Level Voltage LVTTL3 3V E f 04 v Von f Output High Level Voltage pLYTTL3SV BL 83 Y TTLSV i Vo V Cx put Gapacitanee 20 lo Output Current Please see corresponding tables for details 126 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Electrical Characteristics 10 1 4 DC Characteristics of USB Transceiver Symbol Parameter Conditions Min Typ Max Unit V Input Low level Voltage USB Transceiver 08 V Yu Input High level Vollage EHNEN Range Vo Output Low level Voltage USB Transceiver 03 CN Von Output High level Voltage USB Transceiver 28 CN Ce EE EE Ju Input Leakage Current 1 0V lt Vn lt 33V 5 5 A ee E 10 1 5 DC Characteristics of Ethernet PHY Symbol Parameter Conditionns Min Typ Max Unit Peak Differential Ouput Voltage 100Base TX 05 105 V Output Voltage Imbalance 100Base TX TT 2 Peak Differential Ouput Voltage 10Base T 22 28 v SODIMM PLC7001 User Manual Revision 1 01 127 Copyright profichip GmbH 2009 Electrical Characteristics 128 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH
24. Modules at standard bus Write Model 4 4 Project engineering as CPU 313C 2DP Overview The project engineering of the PLC 7001 takes place in the Siemens hardware configurator and is divided into the following parts e Project engineering PLC 7001 as CPU 313C 2DP from Siemens 6ES7 313 6CF03 0AB0 V2 0 e Project engineering Ethernet PG OP channel as CP 343 1 343 1EX21 0XE0 e Project engineering of Speed 200V modules at the bus Requirements The hardware configurator is a part of the Siemens SIMATIC Manager and is used for the project engineering The modules that may be configured here are listed in the hardware catalog If necessary you have to update the hardware catalog with Options gt Update Catalog For the project engineering a thorough knowledge of the Siemens SIMATIC Manager and the hardware configurator from Siemens are required and assumed SODIMM PLC7001 User Manual Revision 1 01 27 Copyright profichip GmbH 2009 Basic Operations Fast introduction To be compatible with the Siemens hardware configurator the following steps should be executed Slot Module e Start the hardware configurator from Siemens CPU 313C 2 DP e Configure CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 yo DP from Siemens 2 2 DI16 DO16 e For the internal Ethernet PG OP channel that is integrated 2 4 Count to every SC CPU you have to configure a Siemens CP 343 1 343 1EX21 Let at options the attitude Save
25. Process control After a write process on the MMC an according ID event is written into the diagnostic buffer of the CPU To monitor the diagnosis entries you select PLC gt Module Information in the Siemens SIMATIC Manager Via the register Diagnostic Buffer you reach the diagnosis window At a successful write process the diagnostic buffer contains OxE200 When writing on the MMC the following events may occur Event ID MMC access error MMC error file system MMC error FAT MMC writing finished 38 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Transfer MMC CPU The transfer of the application program from the MMC into the CPU takes always place after an overall reset The blinking of the LED MCC of the CPU marks the active transfer An overall reset of the CPU takes place if the MMC does not contain a valid application program or if the transfer should fail The red STOP LED blinks three times Note lf the size of the user application exceeds the user memory of the CPU the content of the MMC is not transferred to the CPU Execute a compression before the transfer for this does not happen automatically Transfer via Ether net PG OP channel initialization necessary For the online access to the Ethernet PG OP channel you have to assign IP address parameters by means of the initialization After allocation the Ethernet PG OP canal may be accessed by the IP address
26. SER_SND and receive via SFC 218 SER_RCV The repeated call of the SFC 217 SER_SND delivers a return value for 3964R USS and Modbus via RetVal that contains among other things recent information about the acknowledgement of the partner station USS and Modbus protocols allow evaluation of the receipt telegram by calling the SFC 218 SER_RCV after SER_SND The SFCs are included in the consignment of the CPU Overview SFCs for serial communication The following SFCs are used for the serial communication SFC 216 SER_CFG RS485 parameterize SFC 217 SER_SND RS485 send SFC 218 SER RCV RS485 receive SODIMM PLC7001 User Manual Revision 1 01 93 Copyright profichip GmbH 2009 PtP Communication 7 2 Protocols and procedures Overview The CPU supports the following protocols and procedures e ASCII communication e STX ETX e 3964R e USS e Modbus ASCII ASCII data communication is one of the simple forms of data exchange Incoming characters are transferred 1 to 1 At ASCII with every cycle the read SFC is used to store the data that is in the buffer at request time in a parameterized 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 is available STX ETX STX ETX is a simple protocol with start and end ID where STX stands for St
27. address 1 is reserved for the system The address 1 should not be used DP slave operation For the deployment in a super ordinate master system you first have to project your slave system with configured in output areas Afterwards you configure your master system Assign your slave system to your master system by dragging the CPU 313C 2DP from the hardware catalog at Configured stations onto the master system choose your slave system and connect it 8 2 Profibus DP Slave Fast introduction The deployment of the Profibus section as intelligent DP slave happens exclusively at master systems that may be configured in the Siemens SIMATIC manager The following steps are required e Start the Siemens SIMATIC manager and configure a CPU 313C 2DP with the operating mode DP slave e Connect to Profibus and configure the in output area for the slave section e Save and compile your project e Configure another station as CPU 313C 2DP with operating mode DP master e Connect to Profibus and configure the in output ranges for the master section e Save and compile your project In the following these steps are more detailed SODIMM PLC7001 User Manual Revision 1 01 109 Copyright profichip GmbH 2009 Profibus Communication Project engineering of the slave section Start the Siemens SIMATIC manager with a new project Insert a SIMATIC 300 station and name it as DP slave Open the hardware configurator and insert a profile
28. are modules are not located in their configured slots of if another type of module is inserted there instead such as during an initial system start up Monitoring Time for Ready message by modules 100ms This operation specifies the maximum time for the ready message of all configured modules after PowerON If the modules do not send a ready message to the CPU by the time the monitoring time has expired the actual configuration becomes unequal to the preset configuration Monitoring Time for Transfer of parameters to modules 100ms The maximum time to transfer the configuration to the parameterized modules If not all of the modules have been assigned parameters by the time this monitoring time has expired the actual configuration becomes unequal to the preset configuration Cycle Clock memory scan Cycle Monitoring Time Here the scan cycle monitoring time in milliseconds may be set If the scan cycle time exceeds the scan cycle monitoring time the CPU enters the STOP mode Possible reasons for exceeding the time are e Communication processes e aseries of interrupt events e an error in the CPU program SODIMM PLC7001 User Manual Revision 1 01 31 Copyright profichip GmbH 2009 Basic Operations Scan Cycle Load from Communication Using this parameter you can control the duration of communication processes which always extend the scan cycle time so it does not exceed a specified length lf there are no additional asynchrono
29. at the end of each transferred character and mark the end of a character 1 1Bit 2 1 5Bit 3 2Bit FlowControl The parameter FlowControl is ignored When sending RST 0 when receiving RST 1 SODIMM PLC7001 User Manual Revision 1 01 101 Copyright profichip GmbH 2009 PtP Communication RetVal SFC 216 Error message SER_CFG Return values send by the block no error interface not found Error at SFC Parameter x with x 1 Error at Protocol Error at Parameter Error at Baudrate Error at CharLength Error at Parity Error at StopBits Error at FlowControl Parameter missing rror in SFC parameter value x where x Error at Protocol Error at Baudrate Error at CharLength Error at Parity Error at StopBits Error at FlowControl Access error in parameter DB DB too short Error in parameter x of DB parameter where x 1 Error 1 parameter 2 Error 2 parameter 2 3 4 5 6 T E 1 3 4 a 6 Ge 7 5 Communication Overview The communication happens via the send and receive blocks SFC 217 SER_SND and SFC 218 SER_RCV The SFCs are included in the consignment of the CPU SFC 217 SER_SND This block sends data via the serial interface The repeated call of the SFC 217 SER_SND delivers a return value for 3964R USS and Modbus via RetVal that contains among other things recent information about the acknowledgement of the partner station USS and Modbus protocols require evaluatio
30. case of an error and set it into a defined STOP state The PLC 7001 CPUs are developed function secure and have the following system properties Event Effect O RUN STOP general BASP Befehls Ausgabe Sperre i e command output lock is set central digital outputs The outputs are set to OV central analog outputs The voltage supply for the output channels is switched off decentralized outputs decentralized inputs The inputs are read constantly from the slave and the recent values are put at disposal STOP RUN general First the PII is deleted and then OB 100 is called respectively After the execution of the OB the BASP is reset PowerON and the cycle starts with Delete PIQ gt Read PII gt OB 1 preset the recent values are put at disposal general The program execution happens cyclically and can therefore be foreseen Read PII gt OB 1 Write PIQ PII Process image inputs PIQ Process image outputs 4 9 Overall reset Overview During the overall reset the entire user memory RAM is erased Data located in the memory card is not affected You have 2 options to initiate an overall reset e initiate the overall reset by means of the function selector switch e initiate the overall reset by means of the Siemens SIMATIC Manager Note You should always issue 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 42 Rev
31. causes a return value in RetVal that includes among others recent information about the acknowledgement of the partner Further on for USS and Modbus after a SER_SND the acknowledgement telegram must be evaluated by call of the SFC 218 SER_RCV RS485 PtP communication Program Protocol FIFO Buffer Interface IN RS485 SER_RCV tz RECEIVE d A 1024Byte SFC 218 1024Byte 4 SER_CFG n SFC 216 E OUT t 1024Byte gt SER_SND A SFC 217 _ SEND 1024Byte 98 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication 7 4 RS485 interface Properties RS485 The RS485 interface X3 of the CPU 313 6CF03 may be set to PtP communication point to point by means of a hardware configuration Parameterization and communication happens by means of SFCs The following characteristics distinguish the RS485 interface e Logical states represented by voltage differences between the two cores of a twisted pair cable e Serial bus connection in two wire technology using half duplex mode e Data communications up to a max distance of 500m e Data communication rate up to 115 2kBaud Connection RS485 9pin SubD jack P24V S 8 RxD TxD N Line A e 9 n c Connection CPU R5485 Periphery RxD TxD P B f N RxD TXD P
32. gate i gate The i gate is the result of logic operation of hardware gate HW gate and software gate SW gate where the HW gate evaluation may be deactivated by the parameterization HW gate open activate Edge 0 1 at hardware gate input of the module close deactivate Edge 1 0 at hardware gate input of the module SW gate open activate In application program by setting SW_GATE of the SFB 47 close deactivate In application program by resetting SW_GATE of the SFB 47 Gate functions cancel and stop The parameterization defines if the gate cancels or stops the counter process e At cancel function the counter starts counting with the load value after gate restart counter value A Ede OT L time gate start gate stopp gate start e At stop function the counter continues counting with the last recent counter value after gate restart counter value A load value gt time gate start gate stopp gate start 78 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Gate control abort interruption How the CPU should react at opening of the SW gate may be set with the parameter Gate function The usage of the HW gate may be determined by the parameter Hardware gate Gate control via SW gate canceling HW gate deactivated gate function Cancel count Reaction Counter SWgate HWgdte edge 0 1 de activated Restart with load value Gate control
33. is ignored In opposite to 1 a normal send command the broadcast does not require a telegram evaluation via SFC 218 SER_RCV Only write Broadcast commands may be sent as broadcast 96 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication Modbus The Modbus protocol is a communication protocol that fixes a hierarchic structure with one master and several slaves Physically Modbus works with a serial half duplex connection There are no bus conflicts occurring because the master can only communicate with one slave at a time After a request from the master this waits for a preset delay time for an answer of the slave During the delay time communication with other slaves is not possible After a send command the acknowledgement telegram must be read by a call of the SFC 218 SER_RCV The request telegrams send by the master and the respond telegrams of a slave have the following structure Start Slave Function Data Flow End sign address Code control sign Broadcast with slave address 0 A request can be directed to a special slave or at all slaves as broadcast message To mark a broadcast message the slave address 0 is used In opposite to a normal send command the broadcast does not require a telegram evaluation via SFC 218 SER_RCV Only write commands may be sent as broadcast ASCII RTU mode Modbus offers 2 different t
34. line where you want to insert a breakpoint e Set the breakpoint with Debug gt Set Breakpoint The according command line is marked with a circle e To activate the breakpoint click on Debug gt Breakpoints Active The circle is changed to a filled circle e Bring your CPU into RUN When the program reaches the breakpoint your CPU switches to the state HOLD the breakpoint is marked with an arrow and the register contents are monitored e Now you may execute the program code step by step via Debug gt Execute Next Statement or run the program until the next breakpoint via Debug gt Resume e Delete all breakpoints with the option Debug gt Delete All Breakpoints Behavior in operating state HOLD The LED RUN blinks and the LED STOP is on The execution of the code is stopped No level is further executed Alltimes are frozen The real time clock runs on The outputs are closed but may be released for test purposes Passive CP communication is possible Note The usage of breakpoints is always possible Switching to the operating mode test operation is not necessary With more than 3 breakpoints a single step execution is not possible SODIMM PLC7001 User Manual Revision 1 01 41 Copyright profichip GmbH 2009 Basic Operations Function security The CPUs include security mechanisms like a Watchdog 100ms and a cycle time surveillance which can be parameterized min 1ms that stop res execute a RESET at the CPU in
35. main counting direction e The counter counts once starting with the load value 5 7 2 Count Once e You may count forward or backwards e The count limits are set to the maximum count range e At over or under run at the count limits the counter jumps to the according other count limit and the gate is automatically closed e To restart the count process you must create an edge 0 1 of the gate e At interrupting gate control the count process continuous with the last recent counter value e At aborting gate control the counter starts with the load value si Valid value range Lower count limit 2 147 483 648 2 Upper count limit 2 147 483 647 2 1 72 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Interrupting gate control counter value I O periphery A upper counter limit overflow load value 0 lower counter limit underflow gt time gate start gate stop gate start gate stop automatically automatically Aborting gate control counter value A upper counter limit overflow load value 0 lower counter limit underflow gt time gate start gate stop gate start gate stop automatically automatically SODIMM PLC7001 User Manual Revision 1 01 73 Copyright profichip GmbH 2009 I O periphery Main counting direction forward e The counter counts starting with the load value e When the counter reaches the end value 1 in positive directio
36. output data In order to decouple the PLC cycle from the update cycle of the user data an external SRAM or FPGA with dual ported RAM functionality is required For more information see Chapter Dual Port Memory Interface Timinigs for Dual Port RAM Interface Read Access A 0 13 BS1 D 0 15 OE WE Setup Time 31 25 ns Write Access A 0 13 BS1 D 0 15 OE WE Setup Time 31 25 ns SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Read Access Time 143 75 ns Write Access Time 137 5 ns Revision 1 01 Hold Time 25 ns Hold Time p 25ns 119 Signal Description 9 2 VBUS Interface Serial Extension Bus Sion Time standara Characteristies Function veck o TTLSV VBUS DO O LVTTL3 3V Don t Use Pull Up 3 3V PU 4k7 8 mA Pull Up 3 3V reserved VB COM O TTL5V 8mA Serial Extension Bus compatible with VIPA System 200V modules O BES ae VBLAT O TILSV 8mA poi Tt VBUS_DO_ENA Not Connected VB_BASP reserved for future use Use RUN STOP Signal The VBUS interface can be used to extend the on board I O functions of the SODIMM PLC7001 by using pre configured hardware modules of the VIPA System 200V For more details about which types of modules are supported please contact the profichip support team The VBUS interface signals need to be connected to a 9 pin SubD connector female An adapter cable is av
37. parameterization you may assign up to 16 on chip alarm functionality which results in low latency and fast response times upon critical system conditions und provides the capability to capture time critical events very accurately Additionally 16 of the digital inputs can be parameterized as counter 5 3 Digital part Digital part The digital part consists of 16 input 16 output and 3 channels for technological functions By means of the parameterization you may assign interrupt properties to the inputs 1 0 0 to l 1 7 Access to the digital part The CPU 313 6CF03 creates in its peripheral area an area for input respectively output data Without a hardware configuration the in the following specified default addresses are used Input range Sub module Default address DI16 DO16 Digital Input DIOO DIO7 128 Byte Digital Input DIO8 DI15 RS PS JL Dint Channel Count value Frequency value 7 776 Din Channel 2 Count value Frequency value 90 Int reserved S 60 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Output range Sub module Default address DI16 DO16 Digital Output DOOO DO07 125 Byte Digital Output DO08 DO15 WE EG D LI DWord reserved SS 78 DWord reserved SSS 790 0 DWord reserved SS 5 4 Digital part Parameterization Parameter data Parameters of the digital part may be set by means of the D 16 D016 sub modul
38. process image of the selected operands is displayed Control of outputs It is possible to check the wiring and proper operation of output modules You can set outputs to any desired status with or without a control program The process image is not modified but outputs are no longer inhibited Control of variables The following variables may be modified E A M T Z and D The process image of binary and digital operands is modified independently of the operating mode of the PLC 7001 CPU When the operating mode is RUN the program is executed with the modified process variable When the program continues they may however be modified again without notification Process variables are controlled asynchronously to the execution sequence of the program SODIMM PLC7001 User Manual Revision 1 01 57 Copyright profichip GmbH 2009 Basic Operations 58 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery 5 I O periphery Overview This chapter contains all information necessary for the employment of the in output periphery of the CPU 313 6CF03 It describes functionality project engineering and diagnostic of the digital part 5 1 Overview General The SPEED7 PLC 7001 module is an embedded system Project engineering The project engineering takes place in the Siemens SIMATIC manager as CPU 313C 2DP from Siemens 6ES7 313 6CF03 0AB0 V2 0 Here the CPU is parameterized by the Pro
39. rail from the hardware catalog Place the following Siemens CPU at slot 2 CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 Add your modules according to the real hardware assembly Connect the CPU to Profibus set a Profibus address gt 1 preferably 3 and switch the Profibus section via operating mode to slave operation Via Configuration you define the in output address area of the slave CPU that shall be assigned to the DP slave Save and compile your project Slave section Standard bus Operating mode DP slave Connect Profibus CPU 313C 2DP Profibus address gt 1 DP DI16 DO16 Count Configuration Input area a 2 LUC devices Project engineering of the master section Insert another SIMATIC 300 station and name it as DP master Open the hardware configurator and insert a profile rail from the hardware catalog Place the following Siemens CPU at slot 2 CPU 313C 2DP 6ES7 313 6CF03 0AB0 V2 0 Add your modules according to the real hardware assembly Connect the CPU to Profibus set a Profibus address gt 1 preferably 2 and switch the Profibus section via operating mode to master operation Connect your slave system to the master system by dragging the CPU 31x from the hardware catalog at configured stations onto the master system and select your slave system Open the Configuration at Object properties of your slave system Via double click to the according configu
40. the parameters of the SFB are stored Among others the SFB 47 contains a request interface Hereby you get read and write access to the registers of the appropriate counter So that a new job may be executed the previous job must have be finished with JOB DONE TRUE Per channel you may call the SFB in each case with the same instance DB since the data necessary for the internal operational are stored here Writing accesses to outputs of the instance DB is not permissible 62 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Note You must not call an SFB you have configured in your program in another program section under another priority class because the SFB must not interrupt itself Example It is not allowed to call the same SFB both in OB 1 and in the interrupt OB Controlling the counter The counter is controlled by the internal gate i gate The gate is the result of logic operation of hardware gate HW gate and software gate SW gate where the HW gate evaluation may be deactivated by the parameterization HW gate open activate Edge 0 1 at hardware gate input of the module close deactivate Edge 1 0 at hardware gate input of the module SW gate open activate In application program by setting SW_GATE of the SFB 47 close deactivate In application program by resetting SW_GATE of the SFB 47 Read counter The counter values may be read by the output parameter COUNTVA
41. to ESD requirements Take precautions to use the boards only at an ESD safe workplace SODIMM PLC7001 User Manual Revision 1 01 3 Copyright profichip GmbH 2009 SODIMM PLC7001 1 3 User considerations Objective and contents This manual describes the the SODIMM PLC 7001 module from Profichip It contains a description of the construction project implementation and usage Target audience The manual is targeted at users who have a background in automation technology Structure of the manual The manual consists of chapters Every chapter provides a self contained description of a specific topic Guide to the document The following guides are available in the manual e an overall table of contents at the beginning of the manual e an overview of the topics for every chapter e an index at the end of the manual Availability The manual is available in electronic form as PDF file Adobe Acrobat Reader only Icons Headings Important passages in the text are highlighted by following icons and headings Danger Immediately or likely dangerous Personal injury is possible Attention Damages to property is likely if these warnings are not heeded Note Supplementary information and useful tips 4 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 SODIMM PLC7001 1 4 Safety information Applications conforming with specifications The SPEED7 CPU is constructed and produced for e communicat
42. where x 1 Error in DataPtr 2 Error in DataLen Error in parameter DataPtr e g DB too short Internal error Interface not found or interface is used for Profibus Interface not configured SODIMM PLC7001 User Manual Revision 1 01 103 Copyright profichip GmbH 2009 PtP Communication Protocol specific RetVal values ASCII 9000h Buffer overflow no data send 9002h Data too short OByte STX ETX Buffer overflow no data send Data too long gt 1024Byte Data too short OByte Character not allowed 3964R Send ready without error NAK received error in communication Data transfer without acknowledgement of partner or error at acknowledgement Buffer overflow no data send Data too long gt 1024Byte Data too short OByt USS Send ready without error Receive buffer overflow no space for receipt Acknowledgement delay time exceeded Wrong checksum in respond Wrong start sign in respond Wrong slave address in respond Buffer overflow no data send Data too long gt 1024Byte Data too short lt 2Byte Modbus RTU ASCII Master Send ready positive slave respond Send ready negative slave respond Receive buffer overflow no space for receipt Acknowledgement delay time exceeded Wrong checksum in respond Length of respond too long Wrong function code in respond Wrong slave address in respond Buffer overflow no data send Data too long gt 1024Byte Data too short lt 2Byte
43. 104 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication Principles of programming The following text shortly illustrates the structure of programming a send command for the different protocols 3964R SFC 217 gt SER SND Error evaluation O USS Modbus SFC 217 gt SER SND Busy go RetVal 2000h J SFC 218 SER_RCV Error evaluation SFC 218 SER_RCV N Data evaluation Data evaluation H H SODIMM PLC7001 User Manual Revision 1 01 105 Copyright profichip GmbH 2009 PtP Communication ASCII STX ETX SFC 217 SER_SND RetVal 900xh J L N Error evaluation y 106 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication SFC 218 SER_RCV This block receives data via the serial interface Using the SFC 218 SER RCV after SER_SND with the protocols USS and Modbus the acknowledgement telegram can be read Parameter Name Decration pe Comment _ __ _ Z Z o Pointer to Data Buffer for received data Length of received data Error Number Return value 0 OK DataPtr Here you set a range of the type Pointer for the receive buffer where the reception data is stored You have to set type start and length Example Data is stored in DB5 starting at 0 0 wit
44. 512 max _ 67 6 x 60 0 x 8 0 01 Hardware Description 2 1 Properties SODIMM PLC7001 CPU 313 6CF03 e The SPEED7 PLC 7001 module is an embedded system e Instruction set compatible to STEP 7 from Siemens e Integrated DC5V power supply unit e 64kByte total memory 32kByte code 32kByte data e Memory expandable to max 512kB 256kB code 256kB data e MCC pins for external memory cards and memory extension e Profibus DP slave e Real time clock e Ethernet PG OP interface integrated e MPI interface e RS485 interface configurable for PtP e Digital Os DI 16xDC3 3V DO 16xDC3 3V e 3 counter 30kHz e 512 timer e 912 counter e 8192 bit memory e Serial I O bus with up to 8 modules Order Data Description SODIMM PLC PA002100 DI 16xDC3 3V DO 16xDC 3 3V 3 counter TYPE A with 64kByte 32kB 32kB Data Instruction RAM extendable up to 256kByte 256kByte with an MCC SODIMM PLC PA002300 DI 16xDC3 3V DO 16xDC 3 3V 3 counter TYPE B with 512kB 256kB 256kB Data Instruction RAM memory not extendable 10 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Hardware Description 2 2 Components CPU LEDs The SODIMM PLC 7001 has two status LEDs onboard to indicate power supply However you can connect external status LEDs using the GPIO interface of the board For detailed information please refer to the pin out assignment later in this document Storage Media Slot As external stor
45. 6 DEC SERIALNUMBER 02106 SUPPORTDATA PRODUCT V3118 HARDWARE Memorysizes Bytes LoadMem 65536 WorkMemCode 32768 WorkMemData 32768 OnBoardEthernet MacAddress 00204577083A IP Address SubnetMask Gateway Cpu state RUN FunctionRS485 X2 MPI FunctionRS485 X3 COM2 PtP Cycletime microseconds min 17000 cur 17000 ave 17000 max 17000 MCC Trial Time 70 23 olot 202 7001 DI16 D016 V3 4 2 SUPPORTDATA PRODUCT V3422 SUPPORTDATA PRODUCT V3422 Module Type Address Input 124 125 Address Output 124 125 Slot 204 3 COUNTERS V3 4 2 SUPPORTDATA PRODUCT V3422 Module Type 26 Revision 1 01 Order no firmware vers package serial no Information for support Ethernet PG OP Addresses CPU state RS485 function of X2 RS485 function of X3 CPU cycle time min minimal cur current ave average max maximal Remaining time for deactivation of the expansion memory if MCC is removed Additional CPU components Slot 202 Digital I Os Name firmware version module type Information for support Configured input base addresses Configured output base addresses Slot 204 Counter Name firmware version module type Information for support SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Address Input 768 783 Configured input base addresses Address Output 768 783 Configured output base addresses Standard Bus BaudRate Read Model BaudRate
46. Characteristics of the output O to 510 Pulse at comparison value the pulse duration of the output signal may be specified Only even values are possible The value is internal multiplied with 1 024ms Hardware In the activated state a hardware interrupt is e activated interrupt generated when the hardware gate opens while deactivated Hardware the software gate is open gate opening Hardware In the activated state a hardware interrupt is e activated deactivated interrupt generated when the hardware gate closes while e deactivated Hardware the software gate is open gate closing Hardware In the activated state a hardware interrupt is e activated deactivated interrupt triggered on reaching the comparator reaction deactivated On reaching _ value comparator The process interrupt may only be released if in addition the value of Characteristics of the output is not no comparison Hardware In the activated state a hardware interrupt is e activated deactivated interrupt generated in the event of an overflow e deactivated Overflow exceeding the upper count limit Hardware In the activated state a hardware interrupt is activated deactivated interrupt generated in the event of an underflow e deactivated Underflow undershooting the lower count limit 5 6 Counter Controlling Overview The controlling of the appropriate counter is made from the user program by the SFB COUNT SFB 47 The SFB is to be
47. DBB1 STX2 BYTE 2 Start ID in hexadecimal DBB2 ETX1 BYTE 1 End ID in hexadecimal DBB3 ETX2 BYTE 2 End ID in hexadecimal DBW4 TIMEOUT WORD max delay time between 2 telegrams 100 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication Note The start res end sign should always be a value lt 20 otherwise the sign is ignored Data block at 3964R DBBO Prio BYTE The priority of both partners must be different DBB1 ConnAttmptNr BYTE Number of connection trials DBB2 SendAttmptNr BYTE Number of telegram retries DBW4 CharTimeout WORD Character delay time DBW6 ConfTimeout WORD Acknowledgement delay time Data block at USS DBWO Timeout WORD Delay time in Data block at Modbus Master DBWO Timeout WORD Respond delay time Baud rate Velocity of data transfer in Bit s Baud 04h 1200Baud 05h 1800Baud 06h 2400Baud 07h 4800Baud 08h 7200Baud 09h 9600Baud OAh 14400Baud OBh 19200Baud OCh 38400Baud ODh 57600Baud OEh 115200Baud CharLen Number of data bits where a character is mapped to 0 5Bit 1 6Bit 2 7Bit 3 8Bit Parity The parity is depending on the value even or odd For parity control the information bits are extended with the parity bit that amends via its value 0 or 1 the value of all bits to a defined status If no parity is set the parity bit is set to 1 but not evaluated 0 NONE 1 ODD 2 EVEN StopBits The stop bits are set
48. DP the parameter window may be accessed Using the registers you get access to all parameters of the CPU x z HW Config 313 DPS Configuration SODIMM DSi 8 Be ge MO SZ Ki A D x Find at ail Ri CPU 313C 2 DP j Profile Standard v i H Drrsspors PROFINET 10 Ii Count C3 Additional Field Devices Properties CPU 313C 2 DP RO S2 re Time of D ay Interrupts Cyclic Interrupts Diagnostics Clock Protection Communication 5 2 sie Components General Startup Cycle Clock Memory Retentive Memory Interrupts i SIMATIC 300 Short Description CPU 313C 2 DP er e i Work memory 64KB 0 1ms 1000 instructions DI16 D016 integrated 3 A CPU 300 pulse outputs 2 5kHz 3 channel counting and measuring with E CH CPU 312 incremental encoders 24Y 30KHz MPI DP connector DP master or DP slave multi tier configuration up to 31 modules Send and receive w x CPU 312 IFM CPU 312C Order No firmware BES 313 6CF03 04B0 2 0 Qi CPU 313 Name CPU 3130 2 DP CPU 313C CPU 313C 2 DP Interface i GES 313 6CE00 04B0 Type M GES 313 6CE01 04B0 6E57 313 6CF03 04B0 Address M v20 Networked M v26 CPU 313C 2 PtP CPU 314 CPU 314 1FM CPU 314C 2 DP CPU 314C 2 PtP d Comment J CPU 315 1 CPU 315 2 DP 1 CPU 315 2 PN DP CPU 315F 2 DP J CPU 315F 2 PN DP n Ga coll dic BPEBEREERE Note A description of the parameters of the sub m
49. ESFE MMC Cmd Error CMD START was not found OxE8FF MMC Cma Error Reading the CMD file is faulty MMC error Do CO OxE901 ee UNE AO Internal error Please contact the Profichip support OxE8FB OxEA01 Internal error Please contact the Profichip support SBUS Multiple parameterization of a I O address Zinfo1 I O address OxEA04 Zinfo2 Slot Zinfo3 Data width OxEA05 Internal error Please contact the Profichip support OxEA07 Internal error Please contact the Profichip support OxEA08 SBUS Parameterized input data width unequal to plugged input data width Zinfo1 Parameterized input data width Zinfo2 Slot Zinfo3 Inout data width of the plugged module SBUS Parameterized output data width unequal to plugged output data width Zinfo1 Parameterized output data width Zinfo2 Slot Zinfo3 Output data width of the plugged module SBUS Input address outside input area Zinfo1 UO address Zinfo2 Slot Zinfo3 Data width SBUS Output address outside output area Zinfo1 UO address Zinfo2 Slot Zinfo3 Data width SBUS Error at writing record set Zinfo1 Slot Zinfo2 Record set number Zinfo3 Record set length OxEA14 SBUS Multiple parameterization of a I O address Diagnostic address Zinfo1 UO address Zinfo2 Slot OxEA09 OxEA10 OxEA1 1 OxEA12 SODIMM PLC7001 User Manual Revision 1 01 55 Copyright profichip GmbH 2009 Basic Operations Event ID Zinfo3 Data
50. L of the SFB 47 There is also the possibility for direct access to the counter values by means of the input address of the Count sub module Counter inputs Connections There are the following possibilities for connection to the technological functions e 3 3V incremental encoder equipped with two tracks with 90 phase offset e 3 3V pulse generator with direction signal e 3 3V proximity switch e g BERO or light barrier For not all inputs are available at the same time you may set the input assignment for every counter via the parameterization For each counter the following inputs are available Channel A Pulse input for count signal res track A of an encoder Here you may connect encoder with 1 2 or 4 tier evaluation Channel B Direction signal res track B of the encoder Via the parameterization you may invert the direction signal Hardware gate This input allows you to open the HW gate with a high peek and thus start a count process The usage of the HW gate may be parameterized Latch With an edge 0 1 at Latch the recent counter value is stored in a memory that you may read at need Counter outputs Every counter has an assigned output channel The following behavior for the output channel may be set via parameterization e No comparison Output is not controlled and is switched in the same way as a normal output e Count value gt comparison value Output is set as long as counter value gt comparis
51. Push the operating switch down to position MRES for 30s Here the STOP LED flashes After a few seconds the stop LED changes to static light Now the STOP LED changes between static light and flashing Starting here count the static light states 3 After the 6 static light release the operating mode switch and tip it downwards to MRES within 1s 4 For the confirmation of the resetting procedure the LEDs PWR STOP SF FRCE and MCC get ON If not the factory reset has failed and only an overall reset was executed In this case you can repeat the procedure A factory reset can only be executed if the stop LED has static light for exactly 6 times 5 After factory reset switch the power supply off and on The proceeding is shown in the following Illustration 6 fb CPU in Request factory reset Start factory reset Factory reset Error Only STOP executed overall reset executed PLC PLC PLC PLC PLC ES PWR D PWR ES PWR ES PWR ES PWR RUN RUN RUN RUN RUN stop 2 gfo i STOP i STOP C STOP SF Ose Cx SF Misr SF FRCE up en FRCE FRE KR ON Tip nn EIFRCE FRCE MCC P aLa MCC MCC B
52. SODIMM PLC7001 User Manual Revision 1 01 profichip automation in silicon Le SODIMM PLC7001 Liability Exclusion We have tested the contents of this document regarding agreement with the hardware and software described Nevertheless there may be deviations and we do not guarantee complete agreement The data in the document is tested periodically however Required corrections are included in subsequent versions We gratefully accept suggestions for improvements Copyright Copyright profichip GmbH 2009 All Rights Reserved Unless permission has been expressly granted passing on this document or copying it or using and sharing its content are not allowed Offenders will be held liable All rights reserved in the event a patent is granted or a utility model or design is registered This document is subject to technical changes 2 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 SODIMM PLC7001 1 1 Document Conventions This document describes the SODIMM PLC 7001 module CPU Name e PLC 7001 CPU Configuration e CPU 313 6CF03 Manufacturer Profichip In this User Description signal names appear in italic Low active signals are denoted by after the signal name i e RDA A 0 indicates a logic zero or low level signal while a 1 represents a logic one or high level signal 1 2 Handling the Boards Handle the SODIMM PLC 7001 module with care in respect
53. The START UP OB may issue calls to other blocks e All digital outputs are disabled during the START UP i e outputs are inhibited e RUN LED blinks e STOP LED off When the CPU has completed the START UP OB it assumes the operating mode RUN Operating mode RUN e 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 e All timers and counters being started by the program are active and the process image is updated with every cycle e The BASP signal outputs inhibited is deactivated i e all digital outputs are enabled e RUN LED on e STOP LED off 40 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Operating mode HOLD The CPU offers up to 4 breakpoints to be defined for program diagnosis Setting and deletion of breakpoints happens in your programming environment As soon as a breakpoint is reached you may process your program step by step and in and outputs can be activated Precondition For the usage of breakpoints the following preconditions have to be fulfilled e Testing in single step mode is only possible with STL If necessary switch the view via View gt STL to STL e The block must be opened online and must not be protected e The open block must not be altered in the editor Approach for working with breakpoints e Activate View gt Breakpoint Bar e Set the cursor to the command
54. ace the CPU in STOP mode by the menu command PLC gt Operating mode Overall reset You may request the overall reset by means of the menu command PLC gt Clean Reset In the dialog window you may place your CPU in STOP mode and start the overall reset if this has not been done as yet The STOP LED blinks during the overall reset procedure When the STOP LED is on permanently the overall reset procedure has been completed SODIMM PLC7001 User Manual Revision 1 01 43 Copyright profichip GmbH 2009 Basic Operations Automatic reload At this point the CPU attempts to reload the parameters and the program from the memory card gt The MCC LED blinks When the reload has been completed the LED is turned off The operating mode of the CPU will be STOP or RUN depending on the position of the function selector Set back to factory setting The following approach deletes the internal RAM of the CPU completely and sets it back to the delivery state Please regard that the MPI address is also set back to default 2 e Push down the reset lever for app 30 seconds The ST LED blinks After a few seconds the LED turns to static light Count the number of static light phases because now the LED switches between static light and blinking e After the 6 static light you release the reset lever and push it down again shortly Now the green RUN LED is on once This means that the RAM is totally deleted e Turn the power supply off and on again
55. age medium for applications and firmware you may use a MMC MultiMedia Card or a MCC Memory Configuration Card for memory extension The MCC can additionally be used as an external storage medium Both storage media are pre formatted with the PC format FAT and may be accessed via a card reader An access to the storage media always happens after an overall reset and PowerON Ethernet PG OP Channel The ETH1 pins may be connected to a RJ45 jack to provide the interface to the Ethernet PG OP channel This interface allows you to program or remote control your CPU to access the internal website or to connect visualization with up to 2 PG OP connections Here a transfer rate of 100MBit full duplex is supported For online access to the CPU via Ethernet PG OP channel valid IP address parameters have to be assigned More may be found at chapter Deployment PLC 7001 CPU 313 6CF03 at Initialization Ethernet PG OP channel The jack has the following signal assignment 8pin RJ45 slot 1 eem EE op RRE Memory Management The CPU has an integrated work memory During program run the total memory is divided into 50 for program code and 50 for data There is the possibility to extend the total memory to its maximum by means of a MCC memory extension card SODIMM PLC7001 User Manual Revision 1 01 11 Copyright profichip GmbH 2009 Hardware Description Service Interface SIO0 SIS There are four Service interfaces i
56. ailable to connect this SubD connector with the backplane of the VIPA System 200V 9 3 Digital Inputs DI Signal Type VO Standard Characteristics Fun tion DI 31 16 ES LVTTL 3 3V ST PD 75k Digital inputs not used in this CPU configuration DI 15 0 1 LVTTL33V ST PD 75k Digital inputs The DI 15 0 pins serve as digital inputs equipped with configurable input filters and can be read directly from inside the PLC program In addition they can be assigned with alarm properties and parameterized as counters Please see the corresponding chapter for a detailed description about the various input functions 120 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Signal Description 9 4 Digital Outputs DO Signal 1 Type W O Standard Doch outputs DO 23 16 o LVTTL 3 3V E used in this CPU configuration DO 15 0 O LVTTL3 3V Digital outputs The DO 15 0 pins are digital outputs which can be set and cleared by the PLC program When technology functions are used some pins have special functions Please see the corresponding chapters for more details 9 5 Serial Interfaces SI_0 SI 3 Signal Type VO Standard Characteristics SI_0_TXD 0 LVTTL3 3V Transmit data SLORXD 1 Luna Recevedaa SI_0_RTS O LVTTL33V Ready to send SI_0_CTS 1 LVTIL33V Clear to send SI_1_TXD 0 LVTIL33V Transmit data SI_1_RXD l LVTIL33V Receive data Profib
57. alue Counter value comparison value output is set and hysteresis activated Output is reset for leaving hysteresis range and counter value gt comparison value Counter value comparison value output is set and hysteresis activated Counter value comparison value and hysteresis active output remains set CEO Leave hysteresis range and counter value gt comparison value output is reset With reaching the comparison condition the hysteresis gets active At active hysteresis the comparison result remains unchanged until the counter value leaves the set hysteresis range After leaving the hysteresis range a new hysteresis is only activated with again reaching the comparison conditions 82 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Effect at pulse at comparison value with pulse duration not Zero Comparison value Counter value Hysteresis ND O1 OO N Output Hysteresis 0 Hysteresis 3 90 8 88 Counter value comparison value pulse of the parameterized duration is put out the hysteresis is activated and the counting direction stored Leaving the hysteresis range contrary to the stored counting direction pulse of the parameterized duration is put out the hysteresis is de activated Counter value comparison value pulse of the parameteriz
58. art of Text and ETX for End of Text The STX ETX procedure is suitable for the transfer of ASCII characters It does not use block checks BCC Any data transferred from the periphery must be preceded by a start followed by the data characters and the end character Depending of the byte width the following ASCII characters can be transferred 5Bit not allowed 6Bit 20 3Fh 7Bit 20 7Fh 8Bit 20 FFh The effective data which includes all the characters between Start and End are transferred to the PLC when the End has been received When data is send from the PLC to a peripheral device any user data is handed to the SFC 217 SER_SND and is transferred with added Start and End ID to the communication partner Message structure STX1 gt STX2 Z Z2 Zn ETX1 ETX2 oni You may define up to 2 Start and End IDs You may work with 1 2 or no Start and with 1 2 or no End ID As Start res End ID all Hex values from 01h to 1Fh are permissible Characters above 1Fh are ignored In the user data characters below 20h are not allowed and may cause errors The number of Start and End IDs may be different 1 Start 2 End res 2 Start 1 End or other combinations If no End ID is 94 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication defined all read characters are transferred to the PLC after a parameterized chara
59. atch input of a counter the recent counter value is stored in the according latch register You may access the latch register via LATCHVAL of the SFB 47 A just in LATCHVAL loaded value remains after a STOP RUN transition 70 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery 5 7 Counter Functions Parameterization e Start the Siemens SIMATIC Manager with your project and open the hardware configurator e Place a profile rail e Configure at slot 2 the corresponding CPU from Siemens CPU 31xC e Open the dialog window Properties by a double click to the Count sub module of the CPU e As soon as an operating mode to the corresponding channel is selected a dialog window for this operating mode is created and displayed and filled with default parameters e Execute the wished parameterization e Store the project with Station gt Save and compile e Transfer the project to the CPU Load value End value Via the parameterization you have the opportunity to define a main counting direction for every counter If none or endless is chosen the complete counting range is available 2 147 483 648 2 Upper count limit 2 147 483 647 2 1 Otherwise this range may be limited in both directions by a start value as load value and an end value Main counting direction Main counting direction forward Upper restriction of the count range The counter counts 0 res load value in p
60. ate start gate stop 76 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery 5 8 Counter Additional functions Overview The following additional functions may be set via the parameterization for every counter Gate function The gate function serves the start stop and interrupt of a count function Latch function An edge 0 1 at the digital input Latch stores the recent counter value in the latch register Comparison You may set a comparison value that activates res de activates a digital output res releases a hardware interrupt depending on the counter value Hysteresis The setting of a hysteresis avoids for example a high output toggling when the value of an encoder signal shifts around a comparison value Schematic structure The illustration shows how the additional functions influence the counting behavior The following pages describe these functions in detail HW gate SW gate Pulse Track A Direction Track B Latch Internal gate I Pulse evaluation _ R Load value i e ___ Process Comparison value Counter value Latch alarm e Comparision Hysteresis II Output SODIMM PLC7001 User Manual Revision 1 01 77 Copyright profichip GmbH 2009 I O periphery Gate function The counter is controlled by the internal
61. ble or wrong slave configuration OxE012 Error at parameterization OxE013 Error at shift register access to VBUS digital modules OxE014 Error at Check_Sys OxE015 Error at access to the master Zinfo2 Slot of the master 32 page frame master OxE016 Maximum block size at master transfer exceeded Zinfo1 VO address Zinfo2 Slot Error maximum number of plug in modules exceeded OxEOBO Speed is not stoppable probably undefined BCD value at timer OxEOCO Not enough space in work memory for storing code block block size exceeded OxEOCC Communication error MPI Serial SE EE OxE400 Memory expansion MCC has been plugged OxE401 Memory expansion MCC has been removed EEE EE OxE801 MMC Cmd CMD_START recognized and successfully executed OxE802 MMC Cmd CMD_END recognized and successfully executed OxE803 MMC Cmd WAIT1SECOND recognized and successfully executed executed executed executed OxE807 MMC Cmd FACTORY_RESET recognized and successfully OxE210 MMC reading finished reload after overall reset executed OxE80B MMC Cmd DIAGBUF recognized and successfully executed Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 5 E Basic Operations Event ID OxE80E MMC Cmd SET NETWORK recognized and successfully executed MMC Cmd Error Initialization of the Ethernet PG OP channel by means of SET NETWORK is faulty OxE8FC MMC Cmd Error Not every IP Parameter is set at GET NETWORK Ox
62. by the parameter assignment screen form respectively by the request interface of the SFB 47 Characteristics of the output You pre define the behavior of the counter output via the parameterization e output never switches e output switch when counter value gt comparison value e output switch when counter value lt comparison value e output switch at comparison value No comparison The output is set as normal output The SFB input parameter CTRL_DO is effect less The status bits STS_DO and STS_CMP Status comparator in the instance DB remain reset Count gt comparison value respectively Count lt comparison value The output remains set as long as the counter value is higher or equal comparison value respectively lower or equal comparison value For this the control bit must be set The comparison result is shown by the status bit STS_CMP This status bit may only be reset if the comparison condition is no longer fulfilled Pulse at comparison value When the counter reaches the comparison value the output is set for the parameterized pulse duration If you have configured a main count direction the output is only activated when the comparison value is reached with the specified main count direction For this the control bit CTRL DO should be set first The status of the digital output may be shown by the status bit ST_DO The comparison result is shown by the status bit STS_CMP This status bit may only be reset if the pulse dura
63. called with the corresponding instance DB Here the parameters of the SFB are stored With the SFB COUNT SFB 47 you have following functional options Start Stop the counter via software gate SW_GATE Enable control output DO Read the status bit Read the actual count and latch value Request to read write internal counter registers 66 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Parameter SFB 47 ee aa ration type Inst DB value cone ee er the internal I O periphery is addressed CHANNEL INPUT INT 20 Io Channel number False Standard Digital Output JOB ID INPUT WORD 6 0 0 JJobID gt Z o O JOB VAL INPUT DINT 80 Io Vauefrwiteobs STS_STRT OUTPUT BOOL 12 1 FALSE Status of the hardware gate is only refreshed if HW gate is activated in hardware configuration before STS LTCH OUTPUT BOOL 12 2 FALSE Status of the latch input STS DO OUTPUT BOOL 12 3 FALSE STS C DN OUTPUT BOOL e 4 FALSE Status of the down count Always indicates the last direction of count After the first SFB call STS CG DN is set FALSE STS C UP OUTPUT BOOL FALSE Status of the up count Always indicates the last direction of count After the first SFB call STS C UP is set TRUE COUNTVAL DINT 114 0 fO Actual count value LATCHVAL DINT _ 18 0 fO Actual latch value JOB DONE DO0OL 1220 TRUE New job can be started _ JOB ERR BOOL
64. ch is less irritable from influences than a voltage or a current interface You are able to configure the network as well linear as in a tree structure Your SODIMM PLC 7001 module includes an interface which can be connected over additional hardware to a 9pin SubD jack where you connect the Profibus coupler into the Profibus network as a slave Max 32 participants per segment are permitted The segments are connected via repeaters The maximum segment length depends on the transfer rate Profibus DP uses a transfer rate between 9 6kBaud and 12MBaud the slaves are following automatically All participants are communicating with the same bauadrate SODIMM PLC7001 User Manual Revision 1 01 111 Copyright profichip GmbH 2009 Profibus Communication The bus structure under RS485 allows an easy connection res disconnection of stations as well as starting the system step by step Later expansions don t have any influence on stations that are already integrated The system realizes automatically if one partner had a fail down or is new in the network Bus connection The following picture illustrates the terminating resistors of the respective start and end station Master Slave Slave we bag i oder i 3 RxD TxD P B 3 RxD TxD P B 8 RxD TxD N A i a 8 RxD TxD N A Shield ki SE D Note The Profibus line has to be terminated with its characteristic impedance Please make sure to terminate the last participants o
65. cter delay time Timeout 3964R The 3964R procedure controls the data transfer of a point to point link between the CPU and a communication partner The procedure adds control characters to the message data during data transfer These control characters may be used by the communication partner to verify the complete and error free receipt The procedure employs the following control characters e SIX Start of Text e DLE Data Link Escape e EIX End of Text e BCC Block Check Character e NAK Negative Acknowledge Procedure Active partner Passive partner sn Monitor delayed acknowledgment DLE Message data DLE wc ETX BCC b Monitor delayed acknowledgment DE You may transfer a maximum of 255Byte per message Note When a DLE is transferred as part of the information it is repeated to distinguish between data characters and DLE control characters that are used to establish and to terminate the connection DLE duplication The DLE duplication is reversed in the receiving station The 3964R procedure requires that a lower priority is assigned to the communication partner When communication partners issue simultaneous send commands the station with the lower priority will delay its send command SODIMM PLC7001 User Manual Revision 1 01 95 Copyright profichip GmbH 2009 PtP Communication USS The USS protocol Universelle serielle Schnittstelle universal serial interface is a serial tra
66. de remains in the CPU and can not be read Changing or deleting protected blocks Protected blocks of the CPU may be substituted at any time by blocks with the same name in the RAM This change remains up to next overall reset Protected blocks may only be permanently overwritten if these are deleted at the protect wid before By transferring an empty protect wid from the MMC you may delete all protected blocks in the CPU Usage of protected blocks Due to the fact that reading of a protected block from the CPU monitors no symbol labels it is convenient to provide the block covers for the end user For this create a project out of all protected blocks Delete all networks in the blocks so that these only contain the variable definitions in the according symbolism 50 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations 4 14 MMC Cmd Auto commands Overview A command file at a MMC may be started automatically when the MMC is plugged and the CPU is in STOP As soon as the MMC is stuck the command file is once executed at CPU STOP up to the next PowerON The command file is a text file which consists of acommand sequence to be stored as vipa_cmd mmc in the root directory of the MMC The file has to be started by CMD START as 1st command followed by the desired commands no other text und must be finished by CMD_END as last command Text after the last command CMD_END e g comments is permiss
67. ded to your rack This is found in SIMANTIC 300 CP 300 PROFIBUS CP 342 5 6GK7 342 5DA02 0XE0 Access the configuration of this module and set Operating Mode DP Master Hi You can now attach a Speed module to this profibus which work i ia mai Ee as rack for Speed7 200V modules and is located in PROFIBUS 3 Switching Devices DP gt Additional Field Devices gt I O gt SPEED 1 0 RS 1 0 By dragging the Ga SPEED symbol to the DP master system you Z Ce get the properties monitor for this module The Speed module 3 VIPA_SPEEDbus must have profibus address set to 20 2 Gateway The Speed7 module supports up to 8 Speed7 200V En TE RE CH Config 313 DPS Configuration SODIMM Deng e Be d MO BK QU Properties CP 342 5 R0 55 General Addresses Operating Mode Options Diagnostics Ja CPU 313C 2 DP d oP ld 2 76 0076 Count DP delay time ms E 17 8 9 10 177 C DP slave e DP mode e gt 0 UR Cancel Help 34 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations 313 Configuration SODIMM ES O UR 1 2 CPU 313C 2 x2 M oP 22 19 2760076 24 f Z hlen 3 4 P CP 343 1 5 er CP 3425 PROFIBUS 2 DP master system 130 d Properties DP slave General Parameter Assignment 10 Module
68. e VOStandard Characteristics Function lt FPGA_CCLK Eu LVTTL 3 3V Do not connect reserved for future usel FPGA_ DATA LVTTL3 3V Do not connect reserved for future use FPGA_PRG Don LVTTL 3 3V Do not connect reserved for future use FPGA_INIT 1 LVTTL3 3V Do not connect reserved for future use FPGA DONE 1I LVTTL3 3V Do not connect reserved for future use 122 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Signal Description 9 8 Multi Media Card Interface MMC Seel Type WOStandard Characteristics Peien MMC_CLK 0 LVTTL3 3V Clock of an MMC or SD Card MMC_CMD 10 LVTTL 3 3V Command Response of an MMC or SD Card Data 0 of an MMC MMC_DATA 3 0 io LVTTL 3 3V Datal3 01 of an SD Card This interface is intended to be used with standard Multi Media Cards to store PLC program data permanently In addition specially prepared Memory Configuartion Cards MCC are available to extend the internal PLC memory The MultiMedia Card Interface supports the MultiMediaCard MMC Specification V2 2 and the port signals can be directly connected to an appropriate MMC socket Please see the chapter External Circuit Description for details 9 9 USB Interface Signal Type VO Standard Characteristics Function DD Reserved for future use USB Please leave unconnected Transceiver ssl ZE for future use ep So EZ leave unconnected Reserved for futu
69. e of the CPU 313C 2DP from Siemens during hardware configuration In the following all parameters are specified which may be used with the hardware configuration of the digital periphery General This provides the short description of the digital periphery At Comment information about the module such as purpose may be entered Addresses At this register the start address of the in output periphery may be set Inputs Here there are the following adjustment possibilities e Hardware interrupt e Input delay For the digital output channels there are no parameters Hardware interrupt A hardware interrupt may be optionally triggered on the rising or falling edge of an input A diagnostic interrupt is only supported together with hardware interrupt lost Select with the arrow keys the input and activate the desired hardware interrupt SODIMM PLC7001 User Manual Revision 1 01 61 Copyright profichip GmbH 2009 I O periphery 5 5 Counter Brief Introduction Overview The CPU 313 6CF03 has in outputs which may be used for technological functions respectively as standard periphery Technological functions and standard 1 0 may be used simultaneously with appropriate hardware Read access to inputs used by technological functions is possible Write access to used outputs is not possible The parameterization of the corresponding channel is made in the hardware configurator by means of the Count sub module of the CPU 312C from Siem
70. e use of highly integrated components in MOS Technology These components are extremely sensitive to over voltages that can occur during electrostatic discharges The following symbol is attached to modules that can be destroyed by electrostatic discharges The Symbol is located on the module the module rack or on packing material and it indicates the presence of electrostatic sensitive equipment lt is possible that electrostatic sensitive equipment is destroyed by energies and voltages that are far less than the human threshold of perception These voltages can occur where persons do not discharge themselves before handling electrostatic sensitive modules and they can damage components thereby causing the module to become inoperable or unusable Modules that have been damaged by electrostatic discharges can fail after a temperature change mechanical shock or changes in the electrical load Only the consequent implementation of protection devices and meticulous attention to the applicable rules and regulations for handling the respective equipment can prevent failures of electrostatic sensitive modules Shipping of modules Modules must be shipped in the original packing material Measurements and alterations on electrostatic sensitive modules When you are conducting measurements on electrostatic sensitive modules you should take the following precautions e Floating instruments must be discharged before use e Instruments must be grounded
71. ection Provided that no new hardware configuration is transferred to the CPU the given Ethernet PG OP channel is permanently stored in the project as transfer channel SODIMM PLC7001 User Manual Revision 1 01 39 Copyright profichip GmbH 2009 Basic Operations e 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 8 Operating modes Overview The CPU can be in one of 4 operating modes e Operating mode STOP e Operating mode START UP e Operating mode RUN e Operating mode HOLD Certain conditions in the operating modes START UP 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 Operating mode STOP e The application program is not processed e f 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 e Outputs are inhibited i e all digital outputs are disabled e RUN LED off e STOP LED on Operating mode START UP e During the transition from STOP to RUN a call is issued to the start up organization block OB 100 The length of this OB is not limited The processing time for this OB is not monitored
72. ecution in OB 40 another hardware interrupt is thrown for the same event The initialization of a diagnostic interrupt interrupts the recent hardware interrupt execution in OB 40 and branches in OB 82 to diagnostic interrupt processinGincoming If during the diagnostic interrupt processing other events are occurring at other channels that may also cause a process res diagnostic interrupt these are interim stored After the end of the diagnostic interrupt processing at first all interim stored diagnostic interrupts are processed in the sequence of their occurrence and then all hardware interrupts lf a channel where currently a diagnostic interrUptincoming IS Processed res interim stored initializes further hardware interrupts these get lost When a hardware interrupt for which a diagnostic interruptincoming has been released is ready the diagnostic interrupt processing is called again as diagnostic interruptgoing All events of a channel between diagnostic interruptincoming and diagnostic interruptgoing are not stored and get lost Within this time window 1 diagnostic interruptjncoming Until last diagnostic interruptgoing the SF LED of the CPU is on Additionally for every diagnostic interrUptincoming going an entry in the diagnostic buffer of the CPU occurs
73. ed duration is put out the hysteresis is activated and the counting direction stored Leaving the hysteresis range without changing counting direction hysteresis is de activated Counter value comparison value pulse of the parameterized duration is put out the hysteresis is activated and the counting direction stored Counter value comparison value and hysteresis active no pulse Leaving the hysteresis range contrary to the stored counting direction pulse of the parameterized duration is put out the hysteresis is de activated With reaching the comparison condition the hysteresis gets active and a pulse of the parameterized duration is put out As long as the counter value is within the hysteresis range no other pulse is put out With activating the hysteresis the counting direction is stored in the CPU If the counter value leaves the hysteresis range contrary to the stored counting direction a pulse of the parameterized duration is put out Leaving the hysteresis range without direction change no pulse is put out SODIMM PLC7001 User Manual Revision 1 01 83 Copyright profichip GmbH 2009 I O periphery 5 9 Counter Diagnostic and interrupt Overview The parameterization allows you to define the following trigger for a hardware interrupt that may initialize a diagnostic interrupt Status changes at an input at opened SW gate Status changes at the HW gate at opened SW gate Reaching a comparison value Overflo
74. ee ee 124 9 12 General Purpose lOs GPIO een 125 10 Electrical Characteristics uu0 200 00000000 00000 126 10 1 1 Absolute Maximum Hatmgs 126 10 1 2 Recommended Operating Conditions 126 10 1 3 DC Characteristics of Standard lOS aaseensneeseeeeeennn 126 10 1 4 DC Characteristics of USB Transceiver 127 10 1 5 DC Characteristics of Ethernet PHY 127 11 External Circuit Description 129 SE SUD AC Diese ee een 129 112 RJ45 ERT 130 NR B Eer S 130 114 lee Ee E 130 11 5 LEDs of the GPIO interface 130 SODIMM PLC7001 User Manual Revision 1 01 7 SODIMM PLC7001 rm mon en 131 A Mde CPS TR 131 8 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 2 Hardware Description Overview This chapter provides a general overview of the SODIMM module and information about the interfaces available at the SODIMM PLC7001 with 313 6CF03 configuration It describes functionality project engineering and basic information of the digital IO Hardware Description SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Technical data PLC Core CPU System frequenc User Data Extension Port Counter Up Down A B etc Dimensions sd Dimensions W xLxH mm Revision 1 po 16Bit 1024Byte x max 8 modules oo X X X 1 r 1 r 1 1X
75. em power supply detects powerloss PWRDN LVTTL 3 3V PU 1k IMPORTANT The power supply MUST provide stable power for at least 3 miliseconds ms AFTER PWRDN goes low Keep this signal high if not used Battery Fail this signal is sampled after startup and provides information about the battery for the retention function of the Low Power SRAM nz E e If low There is not enough power If high All ok SINGLE DP A GREEN LVTTL 3 3V PU 1k Reserved for future use Please leave unconnected ua 3 OV Max 100uA Supply voltage for the Low Power SRAM to provide Typ 30uA the memory retention function in case of power loss Comments on the memory retention function The memory retention function prevents the loss of data and instructions stored in low power SRAMs all OB FC FB DBs and all markers and stacks There are two functions to ensure the correct behavior a CRC checksum which is generated in the 3 ms after PWRDN signal goes low and the BATF Signal The PLC does a master reset when the CRC Check results in an error during the next startup or the BATF signal is low If a valid program file is detected on the MMC MCC this file will be transferred into the work memory To ensure that the PLC executes the user program a BATF handling block OB83 is necessary on the MMC MCC In addition a BATF message will be created in the diagnostic buffer Leave UBAT PWRDN and BATF unconnected and attach a valid MMC MCC when no retention func
76. ens Now the following technological functions at 2 channels are at the disposal e Continuous count e g for position decoding with Incremental encoder e Single count e g for unit decoding to a maximum limit e Periodical count e g for applications with repeated counting operations Independent of the number of activated counters for CPU 313 6CF03 the maximum frequency amounts to 10kHz The controlling of the appropriate modes of operation is made from the user program by the SFB COUNT SFB 47 Preset respectively parameterize counter The counter signal is detected and evaluated during counting operation Every counter occupies one double word in the input range for the counter register In the operating modes single count and periodical count an end respectively start value may be defined according to the counting direction up respectively down Each counter can be parameterized with additional functions such as gate function latch function comparison value hysteresis and hardware interrupt Each counter parameter may be set by the Count sub module of the Siemens CPU 313C 2DP Here is defined among others e Interrupt behavior e Max Frequency e Counter mode respectively behavior e Stat end comparison value and hysteresis Controlling the counter functions The SFB COUNT SFB 47 should cyclically be called e g OB 1 for controlling the counter functions The SFB is to be called with the corresponding instance DB Here
77. etermined module and click to OK e Set the IP configuration by entering IP address subnet mask and net transition In addition an IP address may be received from a DHCP server For this depending upon the selected option the MAC address device name or the Client ID which may be entered here is to be conveyed to the DHCP server The Client ID is a character sequence from maximally 63 characters Here the following indications may be used Dash 0 9 a z A Z e Confirm your settings by button Assign Address After the assignment the Ethernet PG OP channel may be reached by the Siemens SIMATIC manager by means of these IP address parameters and the Access Path TCP IP gt Network card Protocol RFC 1006 4 2 2 Initialization via minimal project e Establish a network connection between Ethernet PG OP channel of the CPU and PC e Start the SIMATIC Manager from Siemens and create a new project e Add anew System 300 station via Insert gt Station gt SIMATIC 300 Station e Activate the station SIMATIC 300 and open the hardware configurator by clicking on Hardware e Engineer a rack SIMATIC 300 Rack 300 Profile rail e Place the Siemens CPU 312C with the order no 6ES7 312 5BEO3 0ABO V2 0 from the hardware catalog This may be found at SIMATIC 300 CPU 300 CPU 312C e Include the CP 343 1EX11 at slot 4 SIMATIC 300 CP 300 Industrial Ethernet CP 343 1 e Type the wanted IP address and subnet mask into t
78. evision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Count Parameters Description Range of values Default Main count e None No restriction of the counting range e None None direction e Up Restricts the up counting range Counter e Up starts at O or load value counts in positive e Down direction up to the declaration end value 1 and not with then jumps back to load value at the next continuous count positive transducer pulse e Down Restricts the down counting range The Counter starts at the declared start value or load value in negative direction counts to 1 and then jumps to start value at the next negative encoder pulse End value End value with up count as default 2 2147483647 2147483647 Start value Start value with down count as default 2 1 G 2 Gate function e Cancel count The count starts when the gate e Abort the count Cancel count opens and resumes at the load value when the operation gate opens again e Interrupt the e Stop count The count is interrupted when count the gate closes and resumed at the last actual operation value when the gate opens again Comparison The count value is compared with the value comparison value see also the parameter Characteristics of the output e No main direction of count 2 to 2 4 e Up count as default 2 to End value e Down count as default 1 8 1 to 2 1 Hysteresis A hysteresis
79. f the time of day interrupt OBs if these are to be automatically started on complete restart Execution Select how often the interrupts are to be triggered Intervals ranging from every minute to yearly are available The intervals apply to the settings made for start date and time Start date Time Enter date and time of the first execution of the time of day interrupt Process image partition Is not supported Cyclic interrupts Priority The preset priority may not be modified Execution Enter the time intervals in ms in which the watchdog interrupt OBs should be processed The start time for the clock is when the operating mode switch is moved from STOP to RUN Phase Offset Not adjustable Process image partition Is not supported Protection Level of protection Here 1 of 3 protection levels may be set to protect the CPU from unauthorized access Protection level 1 default setting e No password adjustable no restrictions Protection level 2 with password e Authorized users read and write access e Unauthorized user read access only Protection level 3 e Authorized users read and write access e Unauthorized user no read and write access SODIMM PLC7001 User Manual Revision 1 01 33 Copyright profichip GmbH 2009 Basic Operations 4 6 Operating SPEED7 200V modules The Speed PLC 7001 is able to operate Speed 200V modules To configure this with the STEP7 HW Config you need a CP 342 5 Module ad
80. gateway used 4 15 CPU specific diagnostic entries Entries in the diagnostic buffer You may read the diagnostic buffer of the PLC 7001 via the Siemens SIMATIC Manager Besides of the standard entries in the diagnostic buffer the PLC 7001 CPUs support some additional CPU specific entries in form of event IDs The current content of the diagnostics buffer is stored on MMC by means of the MMC Cmd DIAGBUF More information may be found at MMC Cmd Auto commands 52 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Note Every register of the module information is supported by the PLC 7001 CPU More information may be found at the online help of the Siemens SIMATIC manager Monitoring the diagnostic entries To monitor the diagnostic entries you choose the option PLC gt Module Information in the Siemens SIMATIC Manager Via the register Diagnostic Buffer you reach the diagnostic window Path Accessible Nodes MPI 2 directly Operating mode of the CPU m RUN Status Not a force job Time System Performance Data Communication Stacks General Diagnostic Buffer Memory Scan Cycle Time Events Filter settings active Time including GPU local time difference No Time of day Date Event 10 01 44 22 020 pm 03 28 06 Request for automatic warm restart 11 01 44 22 020 pm 03 28 06 Mode transition from STOP to STARTUP 12 01 43 57 434 p
81. h Analog in output Bit 7 More channel types present 0 no 1 yes 5 Number of diagnostic bits per channel hereO8h it 6 __ Number of channels of a module here 08h Number of channels of a module here 08h Error in channel group 0 1 0 0 1 0 3 Error in channel group 1 1 0 4 I 0 7 Error in channel group 2 1 1 0 I 1 3 Error in channel group 3 1 1 4 I 1 7 Error in channel group 4 Counter 0 Error in channel group 5 Counter 1 Error in channel group 6 Counter 2 reserved Diagnostic interrupt due to hardware interrupt lost at Bit 0 input I 0 0 Bit 1 0 fix Bit 2 input 1 0 1 Bit 3 0 fix Bit 4 input I 0 2 Bit 5 0 fix Bit 6 input 1 0 3 Bit 7 0 fix Diagnostic interrupt due to hardware interrupt lost at Bit 0 input I 0 4 Bit 1 0 fix Bit 2 input I 0 5 Bit 3 0 fix Bit 4 input I 0 6 Bit 5 0 fix Bit 6 input I 0 7 Bit 7 0 fix SODIMM PLC7001 User Manual Revision 1 01 87 Copyright profichip GmbH 2009 Dual Port Memory Interface Diagnostic interrupt due to hardware interrupt lost at Bit 0 input I 1 0 Bit 1 O fix Bit 2 input I 1 1 Bit 3 0 fix Bit 4 input I 1 2 Bit 5 0 fix Bit 6 input I 1 3 Bit 7 O fix Diagnostic interrupt due to hardware interrupt lost at Bit 0 input I 1 4 Bit 1 O fix Bit 2 input I 1 5 Bit 3 0 fix Bit 4 input I 1 6 Bit 5 0 fix
82. h a length of 124Byte DataPtr P DB5 DBX0 0 BYTE 124 DataLen Word where the number of received Bytes is stored At STX ETX and 3964R the length of the received user data or 0 is entered At ASCII the number of read characters is entered This value may be different from the read telegram length Error This word gets an entry in case of an error The following error messages may be created depending on the protocol ASCII Bit Error Description overrun Overflow a sign couldn t be read fast enough from the interface framing error Error that shows that a defined bit frame is not coincident exceeds the allowed length or contains an additional Bit sequence Stopbit error parity Parity error overflow Buffer is full STX ETX Bit Error Description overflow The received telegram exceeds the size of the receive buffer char A sign outside the range 20h 7Fh has been received overflow Buffer is full SODIMM PLC7001 User Manual Revision 1 01 107 Copyright profichip GmbH 2009 PtP Communication Pan Modbus RTU ASCII Master Error Description 0 pete The received telegram exceeds the size of the receive buffer RetVal SFC 218 Error message SER_RCV Return values of the block no error Receive buffer too small data loss Error at SFC Parameter x with x 1 Error at DataPtr 2 Error at DataLen E Error at Error Error in parameter DataPtr e g DB too short Serial interface not fou
83. have any operation switch His state is controlled by the RUN STOP state of the CPU Dependent on the CPU state the following behavior is shown by the DP master Master behavior at CPU RUN e The global control command Operate is sent to the slaves by the master Here the DE LEDis ON e Every connected DP slave is cyclically attended with an output telegram containing recent output data e The input data of the DP slaves were cyclically transferred to the input area of the CPU Master behavior at CPU STOP e The global control command Clear is sent to the slaves by the master Here the DE LED is blinking e DP slaves with fail safe mode were provided with output telegram length 0 e DP slaves without fail safe mode were provided with the whole output telegram but with output data 0 e The input data of the DP slaves were further cyclically transferred to the input area of the CPU SODIMM PLC7001 User Manual Revision 1 01 115 Copyright profichip GmbH 2009 Signal Description 9 Signal Description Abreviations Description Pull Down Resistor Pull Up Resistor Schmitt trigger Low Voltage transistor transistor logic level 3 3V transistor transistor logic level 5V GE SODIMM Connector voor stn poor 10 Jam Wei 102 pos Jo wo Lol 108 Dos fo w 0 Do 0 p02 Co 105 Dos fo CS w 0 boo 0 D04 o 107 boi 0 e Do 0 mm 1 ES Dos Lol ie wmo my wo fo Dm LI 08 Co fm CR fr 13 Di
84. he dialog window of Properties of the CP 343 1 and connect the CP with Ethernet e Save and compile your project e Transfer your project via MPI or MMC into your CPU More information about transfer methods may be found in the chapter Project transfer Direct after the assignment the Ethernet PG OP channel may be reached by the Siemens SIMATIC manager by means of these IP address parameters and the Access Path TCP IP gt Network card Protocol RFC 1006 SODIMM PLC7001 User Manual Revision 1 01 25 Copyright profichip GmbH 2009 Basic Operations 4 3 Access to the internal web page Access to the web page The Ethernet PG OP channel provides a web page that you may access via an Internet browser by its IP address The web page contains information about firmware versions current cycle times etc The current content of the web page is stored on MMC by means of the MMC Cmd WEBPAGE More information may be found at MMC Cmd Auto commands Requirements A PG OP channel connection should be established between PC with Internet browser and CPU 313 6CF03 This may be tested by Ping to the IP address of the Ethernet PG OP channel Web page The access takes place via the IP address of the Ethernet PG OP amp gt BAA A channel The web page only serves for information output The Addr SE 23 monitored values are not alterable IP 1 CP CPU WITH ETHERNET PG OP Slot 100 TOUT SODIMM V3 2 2 E20 0 0 8
85. here is the possibility to extend the total memory to its maximum by means of a MCC memory extension card Integrated Ethernet PG OP Channel The CPU has an Ethernet interface for PG OP communication After the assignment of IP address parameters by Assign Ethernet Address respectively by a minimum project the Ethernet PG OP channel may directly be addressed by means of the PLC functions to program and remote control the CPU A maximum of 2 PG OP connections is available You may also access the CPU with visualization software via these connections Integrated Profibus DP Slave The CPU has an integrated Profibus DP slave The project engineering takes place in WinPLC7 from VIPA or in the hardware configurator from Siemens Environmental Conditions e Operating temperature 0 60 C e Storage temperature 25 70T e Relative humidity 5 95 without condensation e Ventilation by means of a fan is not required 20 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 General Information Compatibility The CPU 313 6CF03 is able to operate up to 8 external modules which can be configured with the Siemens hardware configurator using the SPEED7 gsd file Further information may be found in Operating SPEED7 200V modules Note Please do always use the CPU 313C 2DP 6ES7 313 6CF03 0ABO V2 0 from Siemens from the hardware catalog to project this SODIM PLC 7001 version from Profichip For the projec
86. his test function displays the current status and the VKE of the different operands while the program is being executed It is also possible to enter corrections to the program Note When using the test function Monitor the PLC must be in RUN model 56 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations The processing of statuses can be interrupted by means of jump commands or by timer and process related alarms At the breakpoint the CPU stops collecting data for the status display and instead of the required data it only provides the PG with data containing the value 0 For this reason jumps or time and process alarms can result in the value displayed during program execution remaining at 0 for the items below the result of the logical operation VKE Status AKKU 1 AKKU 2 Condition byte absolute memory address SAZ In this case SAZ is followed by a The interruption of the processing of statuses does not change the execution of the program lt only shows that the data displayed is no longer valid PLC gt Monitor Modify Variables This test function returns the condition of a selected operand inputs outputs flags data word counters or timers at the end of program execution This information is obtained from the process image of the selected operands During the processing check or in operating mode STOP the periphery is read directly from the inputs Otherwise only the
87. ial P STOR CC mcc MCC Power MRES L MRES MRES OFF ON 30 Sec 1 Sec Note After the firmware update you always should execute a Factory reset 4 12 Memory extension with MCC Overview The memory of the PLC 7001 CPU may be extended from 64kB up to 512kB by using a memory extension card MCC from VIPA The MCC is a specially prepared MMC Multimedia Card When this card is available to the CPU connecting it to the according pins with an MMC slot the memory will be extended after an overall reset Only one memory expansion may be activated at the same time On the MCC there is the file memory key This file may not be altered or deleted You may use the MCC also as normal MMC for storing your project SODIMM PLC7001 User Manual Revision 1 01 47 Copyright profichip GmbH 2009 Basic Operations Approach To extend the memory make the MCC available to the CPU via a MMC slot and perform an overall reset If the memory expansion on the MCC exceeds the maximum extendable memory range of the CPU the maximum possible memory of the CPU is automatically used You may determine the recent memory extension via the Siemens SIMATIC Manager at Module Information Memory Attention Please make sure that the MCC remains plugged when you ve executed the memory expansion at the CPU Otherwise the CPU switches to STOP after 48h The MCC can not be exchanged with a MCC of the same memory configuration Behavior When the MCC memo
88. ible because this is ignored As soon as the command file is recognized and executed each action is stored at the MMC in the log file logfile txt In addition for each executed command a diagnostics entry may be found in the diagnostics buffer Commands In the following there is an overview of the commands Please regard the command sequence is to be started with CMD_START and ended with CMD_END Command Description Diagnostics entry CMD _ START In the first line CMD START is to be located OxE801 There is a diagnostic entry if CMD_START is OxE8FE MISSING WAIT1SECOND Waits ca 1 second OxE803 The current web page of the CPU is stored at the 0xE804 MMC as webpage htm LOAD PROJECT The function Overall reset and reload from MMC 0xE805 is executed The wid file located after the command is loaded else s7prog wld is loaded SAVE_PROJECT The recent project blocks and hardware OxE806 configuration is stored as s prog wid at the MMC If the file just exists it is renamed to s prog old FACTORY RESET Executes factory reset OxE807 DIAGBUF The current diagnostics buffer of the CPU is stored OxE80B as diagbuff txt at the MMC SET NETWORK IP parameters for Ethernet PG OP channel may be OxE80E set by means of this command The IP parameters are to be given in the order IP address subnet mask and gateway in the format XXX XXX XXX XXX each separated by a comma Enter the IP address if there is no gateway used
89. ion and process control general control and automation applications industrial applications operation within the environmental conditions specified in the technical data installation into a cubicle Danger This device is not certified for applications in e in explosive environments EX zone Documentation The manual must be available to all personnel in the project design department installation department commissioning operation The following conditions must be met before using or commissioning the components described in this manual Modification to the process control system should only be carried out when the system has been disconnected from power Installation and modifications only by properly trained personnel e The national rules and regulations of the respective country must be satisfied installation safety EMC Disposal National rules and regulations apply to the disposal of the unit SODIMM PLC7001 User Manual Revision 1 01 5 Copyright profichip GmbH 2009 SODIMM PLC7001 SODIMM PLC7001 s s esesescsssrsrsesssseteseseseeraranaeseseenetes 1 1 1 Document Wiele Uu 3 1 2 Handling INE BOAlas u 2 eneee 3 1 3 User considerations nennen 4 1 4 Safety information nnnnnen0000annnnnnnonnennnnnnnnnnnnnnnnnnneennennnnennnee 5 2 Hardware Description 20 200 000a000000an0n ann nun anennn 9 2 1 FP POD MNCS ee ehe E 10 22 Eesen 11 2 3 DO leur e ee 13 2 4 Digital VO
90. is used to eliminate frequent output O to 255 jitter if the count value lies within the range of the comparison value 0 and 1 means Hysteresis switched off max You can set the maximum frequency of the track 10 5 2 1kHz 10kHz frequency A pulse track B direction and hardware gate counting signals in fixed steps signals hard ware gate max You can set the maximum frequency of the latch 10 5 2 1kHz 10kHz frequency signal in fixed steps Latch Signal The count and direction signals are connected e Pulse Direction Pulse Direction evaluation to the input e Rotary encoder A rotary transducer is connected to the input single single dual or quadruple evaluation e Rotary encoder double e Rotary encoder quadruple Hardware In the activated state the Gate control is made e activated deactivated gate via SW gate and HW gate otherwise via SW e deactivated gate only SODIMM PLC7001 User Manual Revision 1 01 65 Copyright profichip GmbH 2009 I O periphery Range of values Default Count In the activated state the direction input signal e activated deactivated direction is inverted e deactivated inverted Characteristic The output and the Comparator STS_CMP e No comparison No comparison of the output status bit are set dependent on this parameter e Count gt comparison value e Count lt comparison value e Pulse at comparison value Pulse duration With the setting
91. ision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Overall reset by means of the function selector Condition The operating mode of the CPU is STOP Place the function selector on the CPU in position STOP gt the STOP LED is on Overall reset Place the function selector in the position MRES and hold it in this position for app 3 seconds The STOP LED changes from blinking to permanently on Place the function selector in the position STOP and switch it to MRES and quickly back to STOP within a period of less than 3 seconds The STOP LED blinks overall reset procedure The overall reset has been completed when the STOP LED is on permanently gt The STOP LED is on The following figure illustrates the above procedure QD 9 e PLC PLC PWR PWR PWR RUN RUN RUN RUN N L N L stop STOP stop TOP 4 N L N SF SF SF SF FRCE FRCE FRCE FRCE MCC MCC MCC MCC RUN RUN RUN 3 Sec A gt STOP B B s B STOP E MRES MRES MRES MRES 3 Sec Automatic reload At this point the CPU attempts to reload the parameters and the program from the memory card gt The MCC LED blinks When the reload has been completed the LED is turned off The operating mode of the CPU will be STOP or RUN depending on the position of the function selector Overall reset by means of the Siemens SIMATIC Manager Condition The operating mode of the CPU must be STOP You may pl
92. l UO may be set by means of the DIT6 DO16 sub module of the CPU 313C 2DP from Siemens during hardware configuration In the following paragraphs all parameters are specified which may be used with the hardware configuration of the digital periphery General This provides the short description of the digital periphery At Comment information about the module such as purpose may be entered Addresses At this register the start address of the in output periphery may be set Inputs Here there are the following adjustment possibilities e Hardware interrupt e Input delay For the digital output channels there are no parameters Hardware Interrupt A hardware interrupt may be optionally triggered on the rising or falling edge of an input diagnostic interrupt is only supported together with hardware interrupt lost Select with the arrow keys the input and activate the desired hardware interrupt Input Delay The input delay may be configured per channel in groups of four Please note that in the parameter window only the value 0 1ms may be set At the other values 0 35ms is internally used for input delay SODIMM PLC7001 User Manual Revision 1 01 15 Copyright profichip GmbH 2009 Hardware Description 16 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 General Information 3 General Information 3 1 Safety Information for Users Handling of electrostatic sensitive modules Profichip modules mak
93. lank space Parameterization during runtime By using the SFCs 55 56 and 57 you may alter and transfer parameters for selected modules during runtime For this you have to store the module specific parameters in so called record sets More detailed information about the structure of the record sets is provided in the according module description 36 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations 4 7 Project transfer Overview There are the following possibilities for project transfer into the CPU e Transfer via MPI e Transfer via MMC e Transfer via integrated Ethernet PG OP channel Initialization necessary Transfer with MPI Programming cable In order to program the CPU via MPI you will need a MPI programming cable witch are available in different variants The deployment of the cables is identical The cables provide an RS485 connector for the MPI jack of the CPU and a RS232 or USB plug for the PC Due to the RS485 connection you may plug the MPI programming cables directly to an already plugged MPI connector on the MPI jack Every bus participant identifies itself at the bus with a unique MPI address in the course of which the address O is reserved for programming devices The structure of a MPI net is widely identical with the structure of a 1 5MBaud Profibus net l e the same rules are valid and you use the same components for the build up The single partici
94. m 03 28 06 STOP caused by PG stop operation or by SFB 20 STO 13 01 43 51 356 pm 03 28 06 EventID 164 EOCC 14 01 42 26 687 pm 03 28 06 Mode transition from STAPF 15 01 42 26 686 pm 0328 06 Request for automatic warm i Ev ent ID 16 01 42 26 686 pm 03 28 06 Mode transition from STOP to STARTUP 17 01 42 16 904 pm 03 28 06 EventID 16H EOCC Details on Event 1of 18 EventID 16 4302 Mode transition from STARTUP to RUN Startup information Difference between setpoint and actual configuration Time for time stamp at the last backed up power on Single processor operation Current last startup tupe sl Save As Settings Close Update Print pen Bloch The diagnosis is independent from the operating mode of the CPU You may store a maximum of 100 diagnostic entries in the CPU The following page shows an overview of the CPU specific Event IDs Overview of the Event IDs Event ID OxE003 Error at access to I O devices Zinfo1 I O address Zinfo2 Slot OxE004 Multiple parameterization of a I O address Zinfo1 I O address Zinfo2 Slot OxE005 Internal error Please contact the Profichip support Internal error Please contact the Profichip support OxE010 Not defined module group at backplane bus recognized Zinfo2 Slot SODIMM PLC7001 User Manual Revision 1 01 53 Copyright profichip GmbH 2009 Basic Operations Zita Type D OxE011 Master project engineering at Slave CPU not possi
95. ment of the terminating resistors is delivered with the connector Assembly BEER Loosen the screw e Lift contact cover Insert both wires into the ducts provided watch for the correct line color as below e Please take care not to cause a short circuit between screen and data lines e Close the contact cover e Tighten screw max tightening torque 4Nm Please note The green line must be connected to A the red line to B 114 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Profibus Communication 8 4 Commissioning and Start up behavior Start up on delivery In delivery the CPU is overall reset The Profibus part is deactivated Online with bus parameter without slave project The DP master can be served with bus parameters by means of a hardware configuration As soon as these are transferred the DP master goes online with his bus parameter This is shown by the RUN LED Now the DP master can be contacted via Profibus by means of his Profibus address In this state the CPU can be accessed via Profibus to get configuration and DP slave project Slave configuration If the master has received valid configuration data he switches to Data Exchange with the DP Slaves This is indicated by the DE LED CPU state controls DP master After Power ON or a receipt of a new hardware configuration the configuration data and bus parameter were transferred to the DP master The DP master does not
96. n it jumps to the load value at the next positive count pulse and the gate is automatically closed e To restart the count process you must create an edge 0 1 of the gate The counter starts with the load value Valid value range 2 147 483 646 2 1 to 2 147 483 646 2 1 Lower count limit 2 147 483 648 2 counter value A end value overflow load value 0 lower i underflow counter limit time gate stop gate start gate stop gate start f automatically automatically Main counting direction backwards e The counter counts backwards starting with the load value e When the counter reaches the end value 1 in negative direction it jumps to the load value at the next negative count pulse and the gate is automatically closed e To restart the count process you must create an edge 0 1 of the gate The counter starts with the load value _ Valid value range 2 147 483 646 2 1 to 2 147 483 646 2 1 Upper count limit 2 147 483 646 2 1 counter value A upper counter limit load value end value 0 gt time gate start gate stop gate start gate stop automatically automatically 74 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery 5 7 3 Count Periodically No main counting direction e The counter counts forward or backwards starting with the load value e At over or under run at the count limits the co
97. n of the receipt telegram by calling the SFC 218 SER_RCV after SER_SND 102 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication Parameter Name Declaration Type Comment DataPtr IN ANY Pointer to Data Buffer for sending data DataLen OUT WORD Length of data sent RetVal OUT WORD Return value 0 OK DataPtr Here you define a range of the type Pointer for the send buffer where the data that has to be sent is stored You have to set type start and length Example Data is stored in DB5 starting at 0 0 with a length of 124Byte DataPtr P DB5 DBX0 0 BYTE 124 DataLen Word where the number of sent bytes is stored At ASCII if data were sent by means of SFC 217 faster to the serial interface than the interface sends the length of data to send could differ from the DataLen due to a buffer overflow This should be considered by the user program With STX ETX 3964R Modbus and USS always the length set in DataPtr is stored or 0 RetVal SFC 217 Error message SER_SND Return values of the block Send data ready Nothing sent data length 0 Protocol executed error free with xx bit pattern for diagnosis Data is stored in internal buffer active busy Transfer active Protocol executed with errors with xx bit pattern for diagnosis no acknowledgement by partner Protocol not executed with xx bit pattern for diagnosis no acknowledgement by partner Error in SFC parameter x
98. n the bus at both ends by activating the terminating resistor EasyConn Bus connector In systems with more than two stations all partners are wired in parallel For that purpose the bus cable must be feed through uninterrupted Profichip provides the EasyConn connector in different variations 90 45 and 0 with switchable terminating resistor and integrated bus diagnostic Order code PA003105 PA003112 PA003111 112 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Profibus Communication 0 45 90 gt gt gt 15 8 all in mm Note To connect this EasyConn plug please use the standard Profibus cable type A EN50170 available at Profichip in different length Order code PA00315x You may also purchase the EasyStrip de isolating tool from VIPA under the order no 905 6AA00 which makes the connection of the EasyConn much easier Dimensions in mm SODIMM PLC7001 User Manual Revision 1 01 113 Copyright profichip GmbH 2009 Profibus Communication Termination with EasyConn The EasyConn bus connector is provided with a switch that is used to activate a terminating resistor Attention The terminating resistor is only effective if the connector is installed at a slave and the slave is connected to a power supply Note A complete description of installation and deploy
99. nd res interface is used by Profibus Serial interface not configured Principles of programming The following picture shows the basic structure for programming a receive command This structure can be used for all protocols SFC 218 SER_RCV Data evaluation y RetVal 8xxxh N Error evaluation 108 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Profibus Communication 8 Profibus Communication 8 1 Overview Profibus DP Profibus is an international standard applicable to an open and serial fieldbus for building manufacturing and process automation that can be used to create a low sensor actuator level or medium process level performance network of programmable logic controllers Profibus comprises an assortment of compatible versions The following details refer to Profibus DP Profibus DP is a special protocol intended mainly for automation tasks in a manufacturing environment DP is very fast offers Plug n Play facilities and provides a cost effective alternative to parallel cabling between PLC and remote IC Profibus DP was designed for high speed data communication on the sensor actuator level The data transfer referred to as Data Exchange is cyclical During one bus cycle the master reads input values from the slaves and writes output information to the slave Profibus address 1 is reserved Please regard that the Profibus
100. nnected I O devices current cycle times etc For online access to the CPU via Ethernet PG OP channel valid IP address parameters have to be assigned to this by means of the Siemens SIMATIC manager This is called Initialization Possibilities for Initialization There are the following possibilities for assignment of IP address parameters initialization e PLC functions with Assign Ethernet address e Hardware project engineering with CP Minimal project Requirements For the hardware configuration the following software is necessary e SIMATIC Manager from Siemens V 5 1 or higher e SIMATIC NET 4 2 1 Initialization via PLC functions The initialization takes place after the following proceeding e Determine the current Ethernet MAC address of your Ethernet PG OP channel e Establish a network connection between Ethernet PG OP channel of the CPU and PC e Start the Siemens SIMATIC manager at the PC e Set via Options gt Set PG PC Interface the Access Path to TCP IP gt Network card Protocol RFC 1006 e Open with PLC gt Assign Ethernet Address the dialog window for initialization of a station 24 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations e Use the Browse button to determine the CPU components via MAC address As long as the Ethernet PG OP channel was not initialized yet this owns the IP address 0 0 0 0 and the station name Onboard PG OP e Choose the d
101. nsfer protocol defined by Siemens for the drive and system components This allows to build up a serial bus connection between a superordinated master and several slave systems The USS protocol enables time cyclic telegram traffic by presetting a fix telegram length The following features characterize the USS protocol e Multi point connection e Master Slave access procedure e Single Master System e Max 32 participants e Simple and secure telegram frame You may connect 1 master and max 31 slaves at the bus where the single slaves are addressed by the master via an address sign in the telegram The communication happens exclusively in half duplex operation After asend command the acknowledgement telegram must be read by a call of the SFC 218 GER HCH The telegrams for send and receive have the following structure Master Slave telegram o2zn In JL H L H JL IH LH Te Slave Master telegram d2h H L IH Ir H JL IH L H L Where 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 Broadcast by setting Bit 5 in A request may be directed to a certain slave ore be sent to all ADR Byte slaves as broadcast message For the identification of a broadcast message you have to set Bit 5 to 1 in the ADR 6 5 4 3 2 1 O Byte Here the slave addr Bit O0 4
102. ntegrated to the PLC SIO provides MPI with up to 187 5 MBit s SI1 is configured as PROFIBUS Slave with 12 MBit s maximum transfer rate SI2 is for Standard serial communication like PtP connection SI3 is not used in this configuration The interfaces have the following functionality Profibus DP Slave In order to use this interfaces it is recommended to connect them to 9 pin SubD jacks to be compatible with standard systems Note To support the SubD jack additional hardware is required Pin assignment All interfaces have the same pin assignment 9 pin SubD jack Pin Assignment S LI CCE un eas 4 V 2 e Pv o oo y o JS Es he MPI functionality The MPI interface handles the data exchange between CPU and PC Via a bus communication you may transfer applications and data between the CPUs that are connected via MPI Standard setting is MPI Address 2 12 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Hardware Description PtP functionality With the PtP functionality the RS485 interface is allowed to connect via serial point to point connection to different source or target systems The protocols ASCII STX ETX 3964R USS and Modbus master ASCII RTU are supported The PtP communication is configured during run time by means of the SFC 216 SER CFG The communication happens by means of the SFC 217 SER_SND and SFC 218 SER_RCV Profibus functionality Using the Profibus func
103. o io ns Dm LI 15 Do ns Dm LI ms ro ne so e wms To samo Jo no fo vo e sor Lo py Tewes T 120 saro r 21 A00 ol a SsLoRXD i CORTE i sars lo A02 Co 123 sors o A04 Co 125 socs 1 wcu A e so e Ar Lol 128 sam o as To Da Beo o ms Lol 480 ssr i aoo CO i ser r 16 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 zech Signal Description at i ss RTS o so ooo s2 Rs o Aa 0 s3 crs i Lon M ES s2 crs C ano To os fe soy one wer Da ES wm 1 is ETHI_LNKACT O vou vr er Ta Bs lo Z Jee e ms e mum Io wey feng vw eok o 145 Fremet a9 veus ve com To ETH RX II ve Roy IL 150 VBLATH 0 ETH RX II ve anm 152 enoni TI 153 mum nn t EE PR pe I 154 FPGA FPGACCK o vos Je mme mucck Lo Dan 1 Fiss FP A FPGa Data Io ba 1 Fir mue mmeom Io Des 158 pe Ieper To Dea 1 hs mue Imme Dao o e De 1 peo pe emm II Der te me meban 10 Di 1 162 me FPGA DONE II Des i fies we uwen o Doss t jee Io Lg Dos i fies we mcos o e Doan fies jee ljiPcpara To Dos ter lus uewe II e Dos De Suppy Jeune TI e Dos o he ue Tussom Le Dos 170 es RESETINE II eey Tode 178 supy upps TI Des Il 17 ar Dn h SYS RUNSTOP Io ons 1 178 Supply Jeun T SODIMM PLC7001 User Manual Revision 1 01 117
104. odule D 16 D016 and Count may be found at chapter Deployment IC periphery Supported parameters The CPU does not evaluate all parameters that may be set at the hardware configuration The following parameters are supported at this time General Short description Since the PLC 7001 with CPU 313 6CF03 configuration is configured as CPU 313C 2DP from Siemens here the short description CPU 313C 2DP stands 30 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Order No Firmware Order number and firmware are identical to the details in the Hardware catalog window Name The Name field provides a short description of the module which you can change to meet your requirements If you change the description the new description appears in the SIMATIC Manager Interface Here the address of the MPI interface stands Properties Click the Properties button to change the properties of the MPI interface Comment In this field information about the module may be entered Startup Startup when expected actual configuration differs If the checkbox for Startup when expected actual configuration differ is deselected and at least one module is not located at its configured slot or if another type of module is inserted there instead then the CPU switches to STOP mode If the checkbox for Startup when expected actual configuration differ is selected then the CPU starts even if there
105. on value SODIMM PLC7001 User Manual Revision 1 01 63 Copyright profichip GmbH 2009 I O periphery e Count value lt comparison value Output is set as long as counter value lt comparison value e Pulse at comparison value You can specify a pulse period for adaptation to the actuators you are using The output is set for the given pulse duration as soon as the counter reached the comparison value If you have parameterized a main count direction the output is only set when reaching the comparison value from the main counting direction The maximum pulse duration may amount to 510ms By setting O as pulse duration the output gets set as long as the comparison conditions are fulfilled Parameter overview In the following the parameters are listed which may be used for counter configuration during hardware configuration General Here the short description of the counter function may be found At Comment information about the module such as purpose may be entered Addresses Here the start address of the in output periphery is set Basic parameters Here the interrupts the counter functions should trigger may be selected You have the following options e None No interrupt is triggered e Process The counting function triggers a hardware interrupt e Diagnostics and Process With the CPU 312SC the diagnostic interrupt of the digital in output periphery is only supported in connection with hardware interrupt lost 64 R
106. ositive direction until the parameterized end value 1 and then jumps back to the load value with the next following encoder pulse Please note a load value may exclusively be set by the request interface of the counter Main counting direction backwards Lower restriction of the count range The counter counts from the parameterized start res load value in negative direction to the parameterized end value 1 and then jumps back to the start value with the next following encoder pulse Please note an end value may exclusively be set by the request interface of the counter SODIMM PLC7001 User Manual Revision 1 01 71 Copyright profichip GmbH 2009 I O periphery 5 7 1 Count Continuously In this operating mode the counter counts from 0 res from the load value When the counter counts forward and reaches the upper count limit and another counting pulse in positive direction arrives it jumps to the lower count limit and counts from there on When the counter counts backwards and reaches the lower count limit and another counting pulse in negative direction arrives it jumps to the upper count limit and counts from there on The count limits are set to the maximum count range Valid value range Lower count limit 2 147 483 648 2 Upper count limit 2 147 483 647 2 1 counter value A GEN overflow counter limit load value 0 lower Gg underflow counter limit r time gate start gate stop No
107. ource remains in the CPU and is thus protected for accesses of 3 persons 48 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations CPU OVERALL RESET Qi J MMC protected Blocks gt are located in the CPU wid file protect wld Protect blocks with protect wid Create a new wild file in your project engineering tool with File gt Memory Card file gt New and rename it to protect wla Transfer the according blocks into the file by dragging them with the mouse from the project to the file window of protect wid Transfer protect wld to CPU with overall reset Transfer the file protect wid to a MMC storage module plug the MMC into the CPU and execute an overall reset with the following approach Q 2 3 4 PLC PLG PLG PLC PWR PWR PWR PWR RUN RUN RUN 7 STOP FOP TOP L N SF SF SF FRCE FRCE FRCE MCC MCC MCC RUN FOP RUN RUN RUN RUN 3 Sec A gt STOP STOP P STOP STOP MRES MRES MRES MRES 3 Sec ATS SF The overall reset stores the blocks in protect wid permanently in the CPU protected from accesses of third persons FRCE MCC LOCI SODIMM PLC7001 User Manual Revision 1 01 49 Copyright profichip GmbH 2009 Basic Operations Protection behavior Protected blocks are overwritten by a new protect wld Using a PG 3 persons may access protected blocks but only the block header is transferred to the PG The protected block co
108. pants are connected with each other via bus interface plugs and Profibus cables Your PLC 7001 CPU supports transfer rates for MPI with 187 5kBaud Default address is MPI address 2 Terminating resistor A cable has to be terminated with its surge impedance For this you switch on the terminating resistor at the first and the last participant of a network or a segment Please make sure that the participants with the activated terminating resistors are always provided with voltage during start up and operation STEP7 Zu Il MPI programming cable Terminating MPI Profibus net Terminating m TN Approach transfer via MPI A maximum of 32 PG OP connections is supported by MPI The transfer via MPI takes place with the following proceeding e Connect your PC to the MPI jack of your CPU via a MPI programming cable SODIMM PLC7001 User Manual Revision 1 01 37 Copyright profichip GmbH 2009 Basic Operations e Load your project in the SIMATIC Manager from Siemens e Choose in the menu Options gt Set PG PC interface e Select in the according list the PC Adapter MPI if appropriate you have to add it first
109. parameters Initialization In the following the steps of initialization are described More information may be found at initialization of the PG OP channel e Determine the Ethernet MAC address of the Ethernet PG OP channel This always may be found as 1 address under the front flap of the CPU on a sticker on the left side e Establish a network connection between Ethernet PG OP channel of the CPU and PC e Set at Siemens SIMATIC manager via Options gt Set PG PC Interface the access path to TCP IP gt Network card Protocol RFC 1006 e Open with PLC gt Assign Ethernet Address the dialog window for initialization of a station e Determine the CPU components via MAC address and assign it to IP address parameters As long as the Ethernet PG OP channel was not initialized yet this owns the IP address 0 0 0 0 and the station name Onboard PG OP Transfer Direct after the assignment the Ethernet PG OP channel may be reached by the Siemens SIMATIC manager by means of these IP address parameters The transfer happens in the following approach e Open your project in the Siemens SIMATIC manager e Set at Siemens SIMATIC manager via Options gt Set PG PC Interface the access path to TCP IP gt Network card Protocol RFC 1006 e Click to PLC gt Download the dialog Select target module is opened Select your target module and enter the IP address parameters of the Ethernet PG OP channel as address for conn
110. perties dialog of the CPU 313C 2DP For parameterization of the digital I O periphery and the technological functions the corresponding sub module of the CPU 313C 2DP may be used By including the SPEED7 gsd the specific parameters of the PLC 7001 CPU may be set during hardware configuration So for example the integrated RS485 interface may be parameterized UO periphery The integrated I Os of the PLC 7001 may be used for technological functions or as standard I Os Technological functions and standard I Os may be used simultaneously with appropriate hardware Read access to inputs used by technological functions is possible Write access to used outputs is not possible Technological functions Up to 3 channels may be parameterized as technological function The parameterization of the appropriate channel is made in the hardware configurator by the count sub module of the CPU 313C 2DP There are the following technological functions e Continuous count e Single count e Periodic count The controlling of the corresponding counter mode happens by means of the SFB COUNT SFB 47 of the user program SODIMM PLC7001 User Manual Revision 1 01 59 Copyright profichip GmbH 2009 I O periphery 5 2 In Output range Overview CPU 313 6CF03 The PLC 7001 has the following digital in and output ranges integrated in this module e Digital Input 16xDC 3 3V e Digital Output 16xDC 3 3V e Technological functions 3 Channels Via the
111. ppropriate channel is made in the hardware configurator by the count sub module of the CPU 313C 2DP There are the following technological functions e Continuous count e Single count e Periodic count The controlling of the corresponding counter mode happens by means of the SFB COUNT SFB 47 of the user program Via the parameterization you may assign up to 16 on chip alarm functions which results in low latency and fast response times upon critical system conditions und provides the capability to capture time critical events very accurately Additionally the digital inputs can be parameterized as counter or may get interrupt properties assigned Access to the Digital Part The PLC 7001 creates in its peripheral area an area for input respectively output data Without a user specific hardware configuration the following default addresses are used Input Range pubmed address E Address 1125 Byte Digital Input 1 1 0 1 1 7 EEE EEE EEE MER JL Dint Channel 1 Count value Frequency value _ 78 Din Channel 2 Count value Frequency value _ 790 Din Lresened S Output range res Address pis Byte Digital Output Q 1 0 QH 7 SEE WEG RE MEN JL DWord reserved 2 1776 DWord reserved _ __ _ SSS 790 DWord reserved SS 14 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Hardware Description 2 4 Digital UO Parameterization Parameter Data Parameters of the digita
112. pyright profichip GmbH 2009 Basic Operations Set IP parameters Open the property window via double click on the CP 343 1EX21 Enter General and click at Properties Type in the P address subnet mask and gateway for the CP and select the wanted subnet Project engineering of Speed7 200V modules The PLC 7001 CPU is able to operate with Speed 200V modules To configure this with the STEP7 HW Config you need a CP 342 5 Module added to your rack which is located in SIMANTIC 300 CP 300 PROFIBUS CP 342 5 6GK7 342 5DA02 0XE0 Access the configuration of this module and set Operating Mode DP Master You can now attach a Speed module to this profibus which work 38 PROFIBUS DP as rack for Speed7 200V modules and is located in PROFIBUS Additional Field Devices DP Additional Field Devices I O SPEED7 a Devices The Speed7 module must have profibus address set to 20 i _ The Speed7 module supports up to 8 Speed 200V D SPEED CC VIPA_SPEEDbus Gateway 4 Compatible PROFIBUS m CiR Object SODIMM PLC7001 User Manual Revision 1 01 29 Copyright profichip GmbH 2009 Basic Operations 4 5 CPU parameterization Overview Since the CPU Configuration CPU 313 6CF03 of PLC 7001 is to be configured as Siemens CPU 313C 2DP in the Siemens hardware configurator the parameters of the SPEED7 PLC 7001 may be set with Object properties during hardware configuration Via a double click on the CPU 313C 2
113. ransfer modes e 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 e RTU mode Every Byte is transferred as one character This enables a higher data pass through as the ASCII mode Instead of start and end sign a time control is used The mode selection happens during runtime by using the SFC 216 SER_CFG Supported Modbus protocols The following Modbus Protocols are supported by the RS485 interface e Modbus RTU Master e Modbus ASCII Master SODIMM PLC7001 User Manual Revision 1 01 97 Copyright profichip GmbH 2009 PtP Communication 7 3 Principals of the data transfer Overview The data transfer is handled during runtime by using SFCs The principle of data transfer is the same for all protocols and is shortly illustrated in the following Principle Data that is into the according data channel by the PLC is stored in a FIFO send buffer first in first out with a size of 2x1024Byte and then put out via the interface When the interface receives data this is stored in a FIFO receive buffer with a size of 2x1024Byte and can there be read by the PLC If the data is transferred via a protocol the adoption of the data to the according protocol happens automatically In Opposite to ASCII and STX ETX the protocols 3964R USS and Modbus require the acknowledgement of the partner An additional call of the SFC 217 SER_SND
114. ration 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 110 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Profibus Communication e Save compile and transfer your project More detailed information about project engineering and project transfer may be found at chapter Deployment PLC 7001 CPU 313 6CF03 8 3 Profibus installation guidelines Profibus in general e A Profibus DP network may only be built up in linear structure e Profibus DP consists of minimum one segment with at least one master and one slave e A master has to be deployed together with a CPU e Profibus supports max 126 participants e Per segment a max of 32 participants is permitted e The max segment length depends on the baud rate 9 6 187 5kBaud gt 1000m 500kBaud gt 400m 1 5MBaud gt 200m 3 12MBaud gt 100m e Max 10 segments may be built up The segments are connected via repeaters Every repeater counts for one participant e All participants are communicating with the same baudrate The slaves adjust themselves automatically on the baudrate e The bus has to be terminated at both ends e Master and slaves can be combined as you like Transfer medium As transfer medium Profibus uses an isolated twisted pair cable based upon the RS485 interface The RS485 interface is working with voltage differences whi
115. re use er EE Eee Please leave unconnected USB 2 0 Full Speed 12 Mbits per second Device Port with integrated transceiver The port Signals can be connected diretly to an appropriate USB socket Please see the chapter External Circuit Description for details The current configuration does not support USB communication 9 10 TC Interface Signal Type VOStandard Characteristics Function DL Reserved for future use zu o EEN EE Please leave unconnected Reserved for future use an ER ed S MA ROLIG Please leave unconnected High speed mode compatible TC interface which can be used to connect to external devices like EEPROMs or ADCs and DACs supporting IC communication The current configuration does not support C communication SODIMM PLC7001 User Manual Revision 1 01 123 Copyright profichip GmbH 2009 Signal Description 9 11 System Pins Signal Type VO Standard Characteristics Function Master Reset Input must be held low for at least 1 RESET_IN HE LVTTL 3 3V PU 4k7 door RESET_OUT O LVTTL3 3V Master Reset Output Operational Status of the CPU this signal is high Run after OB100 is finished and during normal Su SEEN operation Cycle OB1 OB35 low in every fault RUN STOP condition and during Stop ANLAUF En LVTTL 3 3V PD 1k Reserved for future use Please leave unconnected Power Down Power Fail This signal should change its state from high to low when the PLC Syst
116. ry configuration has been taken over you may find the diagnosis entry OxE400 in the diagnostic buffer of the CPU After pulling the MCC the entry OxE401 appears in the diagnostic buffer the SF LED is on and after 72h the CPU switches to STOP A reboot is only possible after plugging in the MCC again or after an overall reset After re plugging the MCC the SF LED extinguishes and OxE400 is entered into the diagnostic buffer You may reset the memory configuration of your CPU to the initial status at any time by executing an overall reset without MCC 4 13 Extended know how protection Overview Besides the standard Know how protection the SODIMM PLC 7001 from Profichip provides an extended know how protection that serves a secure block protection for accesses of 3 persons Standard protection The standard protection from Siemens transfers also protected blocks to the PG but their content is not displayed But with according manipulation the Know how protection is not guaranteed Extended protection The extended know how protection offers the opportunity to store blocks permanently in the CPU At the extended protection you transfer the protected blocks into a WLD file named protect wld By plugging the MMC and following overall reset the blocks in the protect wld are permanently stored in the CPU You may protect OBs FBs and FCs When back reading the protected blocks into the PG exclusively the block header are loaded The s
117. sition the CPU switches to RUN without program Boot procedure with valid data in the CPU The CPU switches to RUN with the program stored in the battery buffered RAM Boot procedure with empty battery The accumulator battery is automatically loaded via the integrated power supply and guarantees a buffer for max 30 days If this time is exceeded the battery may be totally discharged This means that the battery buffered RAM is deleted SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Revision 1 01 23 Basic Operations In this state the CPU executes an overall reset If a MMC is plugged program code and data blocks are transferred from the MMC into the work memory of the CPU If no MMC is plugged the CPU transfers permanent stored protected blocks into the work memory if available Information about storing protected blocks in the CPU can be found in this chapter at Extended Know how protection Depending on the position of the RUN STOP lever the CPU switches to RUN res remains in STOP This event is stored in the diagnostic buffer as Start overall reset automatically unbuffered POWER_ON 4 2 Initialization Ethernet PG OP channel Overview The SPEED7 PLC 7001 has an integrated Ethernet PG OP channel This channel allows you to program and remote control your CPU with up to 2 connections The PG OP channel also gives you access to the internal web page that contains information about firmware version co
118. ssed This means that cyclic processing has the lowest priority 3 3 CPU Applications Overview The program that is present in every CPU is divided as follows e System routine e User application System Routine The system routine organizes all those functions and procedures of the CPU that are not related to a specific control application User Application This consists of all the functions that are required for the processing of a specific control application The operating modules provide the interfaces to the system routines 18 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 General Information 3 4 Operands of the CPU Overview The following series of operands is available for programming the CPU e Process image and periphery e Bit memory e Timers and counters e Data blocks Process Image and Periphery The user application can quickly access the process image of the inputs and outputs PAA PAE You may manipulate the following types of data e individual Bits e Bytes e Words e Double Words You may also gain direct access to peripheral modules via the bus from user application The following types of data are available e Bytes e Words e Blocks Bit Memory The bit memory is an area of memory that is accessible by means of certain operations Bit memory is intended to store frequently used working data You may access the following types of data e individual Bits e Bytes
119. t engineering a thorough knowledge of the Siemens SIMATIC Manager and the hardware configurator from Siemens is required Power Supply The SODIMM module requires a power supply of 5V DC SODIMM PLC7001 User Manual Revision 1 01 21 Copyright profichip GmbH 2009 General Information 22 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations 4 Basic Operations Note All the subsequent chapters refer to the SODIMM PLC7001 configured as a CPU 313 6CF03 Other configurations are currently not supported 4 1 Start up Behavior Turn on power supply After the power supply has been switched on the CPU changes to the operating mode inidicated by the operating mode lever Now you may transfer your project to the CPU via MPI from your configuration tool or plug in a MMC with your project and execute an overall reset Overall reset The following picture shows the approach once more 9 a PLC PLC PLC PLC PWR PWR PWR PWR S RUN RUN RUN RUN 1 Erop STOP FOP STOP HT ke me ISF SF SF ISF FRCE FRCE FRCE FRCE MCC MCC MCC _ MCC RUN RUN RUN RUN 3 Sec A STOP 2 STOP 8 STOP STOP MRES MRES MRES MRES 3 Sec Note The transfer of the application program from the MMC into the CPU takes always place after an overall reset Delivery status When the CPU is delivered it has been reset After a STOP gt RUN tran
120. t the CPU is ready for duty H 2 4 Preparation Firmware Start update Update runs recognized RUN at MMC STOP PLC PLC PLC PLC BPwr Hpwr MepwR BPwr MRES IRUN LJRUN IRUN JRUN Mstor Mstor Estop STOP ee 7 Se Insert MMC an SET Ti RUN an SET nser SR FRCE JI RCE SH FRCE FREE 7 N 7 N MCC MCC on STOP MCC MCC Power OFF ON MRES L MRES 10 Sec 4 11 Factory reset Proceeding H Update terminates error free PLC Mi Pwr BEE _ RUN LC 1 STOP i E sF E FRCE Eu MCC NININIZIZ Error With the following proceeding the internal RAM of the CPU is completely deleted and the CPU is reset to delivery state Please note that here also the IP address of the Ethernet PG OP channel is set to 0 0 0 0 and the MPI address is reset to the address 2 46 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Power OFF ON Basic Operations A factory reset may also be executed by the MMC Cmd FACTORY_ RESET More information may be found at MMC Cmd Auto commands 1 Switch the CPU to STOP 2
121. t you may access the PG OP channel with a web browser via the IP address of the project engineering More detailed information is to find in Access to the internal web page Determine CPU firmware version with module information First establish an online connection to the CPU To monitor the module information you choose the option PLC gt Module Information in the Siemens SIMATIC Manager Via the register General the window with hardware and firmware version may be selected From software technical reasons there is something different of the CPU 313 6CF03 to the CPU 313C 2 DB from Siemens The releases of hard and software may be found at Order No Description Here the number at Version is irrelevant Description CPU 313C 2 DP System Identification SIMATIC 300 Name CPU 313C 2 DP Version Order No Description Component Version 6ES 7 313 6CF03 Hardware 1 7001 10 Firmware 20 0 Hardware Release Sub version 7 irrelevant Firmware Version Note Every register of the module information dialog is supported by the PLC 7001 CPUs More about these registers may be found in the online help of the Siemens SIMATIC manager Load firmware and transfer it to MMC e Get the latest firmware from support profichip com e Extract the zip file and copy the extracted file to your MMC e Following this approach transfer all wanted firmware files to your MMC Attention With a firmware update an overall reset is executed au
122. ter modulo 2 0 Any other Case Byte Copy not recommended We recommend using the RUN STOP Signal to disable all Outputs in case of CPU Stop The RUN Stop Signal will go into RUN State AFTER the OB100 Startup Block The Dual Port Memory should be initialized within this OB100 to avoid unexpected behavior SODIMM PLC7001 User Manual Revision 1 01 91 Copyright profichip GmbH 2009 Dual Port Memory Interface 92 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 PtP Communication 7 PtP Communication Overview Content of this chapter is the deployment of the RS485 slot for serial PtP communication Here you ll find all information about the protocols and project engineering of the interface which are necessary for the serial communication using the RS485 interface 7 1 Brief introduction General The RS485 interface X3 of the CPU 313 6CF03 may be set to PtP communication point to point by means of a hardware configuration The RS485 interface in PtP operation supports the serial process connection to different source or destination systems Protocols The protocols res procedures ASCII STX ETX 3964R USS and Modbus are supported Parameterization The parameterization happens during runtime using the SFC 216 SER CFG For this you have to store the parameters in a DB for all protocols except ASCII Communication The communication is controlled by SFCs Send takes place via SFC 217
123. ternal operational are stored here Writing accesses to outputs of the instance DB is not permissible 68 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Counter request interface To read write counter registers the request interface of the SFB 47 may be used So that a new job may be executed the previous job must have be finished with JOB DONE TRUE Proceeding The deployment of the request interface takes place at the following sequence e Edit the following inout parameters Te ee ooo type DB edges 0 1 ee ID we Job ID 00h Job without function 01h Writes the count value 02h Writes the load value 04h Writes the comparison value 08h Writes the hysteresis 10h Writes the pulse duration 20h Writes the end value 82h Reads the load value 84h Reads the comparison value 88h Reads the hysteresis 90h Reads the pulse duration AOh Reads the end value JOB VAL DINT Fe Value for write jobs see table at the following page e Call the SFB The job is processed immediately JOB DONE only applies to SFB run with the result FALSE JOB ERR TRUE if an error occurred Details on the error cause are indicated at JOB STAT TT e om ae commet type DB TTA STAT WORD 24 0 0000h Job error ID 0000h No error 0121h Compare value too low 0122h Compare value too high 0131h Hysteresis too low 0132h Hysteresis too high 0141h Pulse duration too low 0142h Pulse duration too high 0151h
124. tiCincoming The record sets of the diagnostic range have the following structure itO set at module failure 0 fix set at external error set at channel error set when external auxiliary supply is missing 0 Module class 0101b Analog 1111b Digital Channel information present 5 O fix 0 0 fix Failure module internal supply voltage output overload 0 O fix Hardware interrupt lost O fix Record set 0 Diagnosticgoing After the removing error a diagnostic messagegoing takes place if the diagnostic interrupt release is still active Record set 0 Byte O to 3 Bit 0 set at module failure Bit 1 O fix Bit 2 set at external error Bit 3 set at channel error Bit 4 set when external auxiliary supply is missing Bit 7 5 O fix Bit 3 0 Module class 0101b Analog module 1111b Digital Bit 4 Channel information present Bit 7 5 O fix 00h fix 00h fix 86 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Diagnostic Record set 1 Byte 0 15 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 LIT Ot 03 Conteris record set0 soe pagebeiore Contents record set 0 see page before i Bit 6 0 channel type here 70h 70h Digital input 71h Analog input 72h Digital output 73h Analog output 74
125. tion has run off Comparison condition is no longer fulfilled With pulse time 0 the output is as set as the comparison condition is fulfilled Pulse duration For adaptation to the used actors a pulse duration may be specified The pulse duration defines how long the output should be set It may be preset in steps of 2ms between 0 and 510ms 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 A change of the pulse period during runtime is not applied until the next pulse 80 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Hysteresis The hysteresis serves e g the avoidance of many toggle processes of the output and the interrupt if the counter value is in the range of the comparison value You may set a range of 0 to 255 The settings 0 and 1 deactivate the hysteresis The hysteresis influences the zero run over and underflow An activated hysteresis remains active after a change The new hysteresis range is taken over at the next reach of the comparison value The following pictures illustrate the output behavior for hysteresis 0 and hysteresis 3 for the according conditions Effect at counter value gt comparison value Counter value Hysteresis Comparison value
126. tion is necessary 124 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Signal Description 9 12 General Purpose IOs GPIO Signal Type V Standard Characteristics Function Z Gpon O LVTTL3 3V Jam nn GPIO O LVTTL33V 8mA LED Stop O S GPIO2 O LVTTL3 3V 8mA LED SF Global Con lt GPIO3 O LVTTL3 3V 8mA LED FRCE Force Z o GPIO4 O LVTTL33V Jonn LED MMC MMC Activity GPIO5 LVTTL3 3V_ PU 4k7 Switch MRES Master Reset Overall Reset GPIO6 1 LVTTL33V PU 4k7 Switch RUN STOP Z o GEO Lnel Gro Int o O qpiog Lnel LI Gro nce Reserved for future use spot nce O please leave unconnected Go Lnel LI Gro Ins SSS S O Go Lnel GEO Une SODIMM PLC7001 User Manual Revision 1 01 125 Copyright profichip GmbH 2009 Electrical Characteristics 10 Electrical Characteristics 10 1 1 Absolute Maximum Ratings Symbol _ Parameter Conditions Min Max Unit DC Supply Voltage 0 8 60 V Input Voltage LVTTL 3 3V Vo lo LD Output Current see IO tables for details 24 24 mA Tsior Storage Temperature 4 125 10 1 2 Recommended Operating Conditions Symbol Parameter Conditions Min Max Unit Nop DO Supply Votage E a u V Coo a a enen mo as IV i TN 7 0 50 V no weena 81 8 10 1 3 DC Characteristics of Standard IOs Symbol Parameter Conditions
127. tionality the integrated Profibus DP slave is connected to Profibus via RS485 interface A slave will automatically adjust the parameters to the bus master 2 3 Digital In Output Overview The SODIMM PLC 7001 has the following digital in and output ranges integrated e Digital Input 16xDC 3 3V e Digital Output 16xDC 3 3V e Technological functions 3 Channels Project Engineering The project engineering takes place in the Siemens SIMATIC manager as CPU 313C 2DP from Siemens 6ES7 313 6CF03 0AB0 V2 0 Here the CPU is parameterized by the Properties dialog of the CPU 313C 2DP For parameterization of the digital I O periphery and the technological functions the corresponding sub module of the CPU 313C 2DP may be used By including the SPEED7 gsd the specific parameters of the PLC 7001 CPU may be set during hardware configuration So for example the integrated RS485 interface may be parameterized UO Periphery The integrated I Os of the PLC 7001 may be used for technological functions or as standard I Os Technological functions and standard I Os may be used simultaneously with appropriate hardware Read access to inputs used by technological functions is possible Write access to used outputs is not possible SODIMM PLC7001 User Manual Revision 1 01 13 Copyright profichip GmbH 2009 Hardware Description Technological Functions Up to 3 channels may be parameterized as technological function The parameterization of the a
128. tomatically If your program is only available in the load memory of the CPU it is deleted Save your program before executing a firmware update After the firmware update you should execute a Set back to factory settings see following page SODIMM PLC7001 User Manual Revision 1 01 45 Copyright profichip GmbH 2009 Basic Operations Transfer firmware from MMC into CPU 1 Get the RUN STOP lever of your CPU in position STOP Turn off the voltage supply Plug the MMC with the firmware files into the CPU Please take care of the correct orientation of the MMC Turn on the voltage supply 2 After a short boot up time the alternate blinking of the LEDs SF and FRCE shows that at least one newer firmware file was found on the MMC 3 You start the transfer of the firmware as soon as you tip the RUN STOP lever downwards to MRES within 10s 4 During the update process the LEDs SF and FRCE are blinking alternately and the MMC LED is on This may last several minutes 5 The update is finished successfully when the LEDs PWR STOP SF FRCE and MCC are on If they are blinking fast an error occurred 6 Turn Power OFF and ON Now it is checked by the CPU whether newer firmware versions are available on the MMC If so again the LEDs SF and FRCE flash after a short start up period Continue with step 3 lf the LEDs do not flash the firmware update is completed Now a factory reset should be executed see below After tha
129. unter jumps to the according other count limit and counts from there on e The count limits are set to the maximum count range _ Valid value range Lower count limit 2 147 483 648 2 Upper count limit 2 147 483 647 2 1 counter value A Upper SA overflow counter limit load value 0 zero crossing lower E underflow counter limit time gate start gate stop Main counting direction forward e The counter counts forward starting with the load value e When the counter reaches the end value 1 in positive direction it jumps to the load value at the next positive count pulse Valid value range 2 147 483 647 2 1 to 2 147 483 647 2 1 Lower count limit 2 147 483 648 2 SODIMM PLC7001 User Manual Revision 1 01 75 Copyright profichip GmbH 2009 I O periphery counter value A end value overflow load value 0 lower one SE underflow counter limit gt time gate start gate stop Main counting direction backwards e The counter counts backwards starting with the load value e When the counter reaches the end value 1 in negative direction it jumps to the load value at the next negative count pulse e You may exceed the upper count limit si Valid value range 2 147 483 647 2 1 to 2 147 483 647 2 2 Upper count limit 2 147 483 647 2 1 counter value A upper counter limit load value end value 0 time g
130. us DP Slave SI_1_RTS O LVTIL33V Ready to send Interface SI_1_CTS 1 LVTIL33V Clear to send SI_2 TXD 0 LVTTL3 3V Transmit data ser 1 Daa Recevedata UART PiP uwen SI_2_RTS O LVTTL33V Ready to send SI_2 CTS 1 LVTIL33V Clear to send SI_3_TXD 0 LVTIL33V Transmit data SI_3_RXD 1 LVTIL38V TReceive data ee SLSRTS o LVTTL3aV Aeadytosend ue need SI_3_CTS 1 LVTIL33V Clear to send The serial interfaces of the SODIMM PLC7001 are providing dedicated communication functions like mentioned in the table above Please see the chapter External Circuit Description for details about how to connect the pins of the SODIMM module to the associated physical layers SODIMM PLC7001 User Manual Revision 1 01 121 Copyright profichip GmbH 2009 Signal Description 9 6 Ethernet Interfaces ETH1 amp ETH2 Signal Type VO Standard Characteristics Function Speed LED OFF H 10BT ON L 100BT L 13 3 V supply for RJ45 jack Link Activity LED OFF H No Link ETH1_LNK ACT LVTTL3 3V 8 mA ON L Link TOGGLE Activit LVTTL 3 3V ETH2_LNK ACT ne ETH2_SPEED ne I ETH2 AVDD ne TI The Ethernet PHY is integrated on the SODIMM PLC7001 module The Ethernet signals can be connected to the corresponding pins of a RJ45 jack directly Please see the chapter External Circuit Description for details 9 7 FPGA Configuration Interface Srel Typ
131. us events the scan cycle time of OB1 is increased by following factor 100 100 Cycle load from communication If the cycle load from communication is set to 50 the scan cycle time of OB 1 can be doubled At the same time the scan cycle time of OB 1 is still being influenced by asynchronous events e g process interrupts as well OB85 Call up at I O Access Error The preset reaction of the CPU may be changed to an I O access error that occurs during the update of the process image by the system The CPU 313 6CFOS is preset such that OB 85 is not called if an I O access error occurs and no entry is made in the diagnostic buffer either Clock Memory Activate the check box if you want to use clock memory and enter the number of the memory byte Note The selected memory byte cannot be used for temporary data storage Retentive Memory Number of Memory Bytes from MBO Enter the number of retentive memory bytes from memory byte 0 onwards Number of S7 Timers from TO Enter the number of retentive S7 timers from TO onwards Each S7 timer occupies 2 bytes Number of S7 Counters from CO Enter the number of retentive S7 counter from CO onwards Interrupts Hardware Interrupts Currently the default priority may not be modified 32 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 Basic Operations Time of Day interrupts Priority The priority may not be modified Active Activate the check box o
132. via SW gate stopping HW gate deactivated gate function Stop count HW gate Reaction Counter SW gate de activated Continue Gate control via SW HW gate canceling HW gate activated gate function Cancel count HW gate Reaction Counter edge 0 1 Restart with load value Gate control via SW HW gate stopping HW gate activated gate function Stop count HW gate Reaction Counter edge 0 1 Io eiue Continue 1 Jedge 0 1 Gate control Count once Gate control via SW HW gate operating mode Count once lf the internal gate has been closed automatically it may only be opened again under the following conditions SW gate HWgdte Reaction gate edge 0 1 edge 0 1 edge 0 1 after edge 0 1 at HW gate Latch function As soon as during a count process an edge 0 1 is recognized at the Latch input of a counter the recent counter value is stored in the according latch register The latch value may be accessed by the parameter LATCHVAL of the SFB 47 A just in LATCHVAL loaded value remains after a STOP RUN transition SODIMM PLC7001 User Manual Revision 1 01 79 Copyright profichip GmbH 2009 I O periphery Comparator Inthe CPU a comparison value may be stored that is assigned to the digital output to the status bit Status Comparator STS_CMP and to the hardware interrupt The digital output may be activated depending on the count value and comparison value A comparison value may be entered
133. w respectively at overrun upper counter limit Underflow respectively at under run lower counter limit Hardware interrupt A hardware interrupt causes a call of the OB 40 Within the OB 40 you may find the logical basic address of the module that initialized the hardware interrupt by using the Local word 6 More detailed information about the initializing event is to find in the local double word 8 84 Local double word 8 of the OB 40 The ocal double word 8 of the OB 40 has the following structure Edge at I 0 0 Edge at 1 0 1 Edge at I 0 2 Edge at I 0 3 Edge at I 0 4 Edge at I 0 5 Edge at I 0 6 Edge at I 0 7 Edge at I 1 0 Edge at I 1 1 Edge at I 1 2 Edge at I 1 3 Edge at I 1 4 Edge at I 1 5 Edge at I 1 6 Edge at I 1 7 Gate counter 0 open activated Gate counter 0 closed Over underflow end value counter 0 Counter 0 reached comparison value Gate counter 1 open activated Gate counter 1 closed Over underflow end value counter 1 Counter 1 reached comparison value Gate counter 2 open activated Gate counter 2 closed Over underflow end value counter 2 Revision 1 01 SODIMM PLC7001 User Manual Copyright profichip GmbH 2009 I O periphery Bit 3 Counter 2 reached comparison value Bit 7 4 reserved Diagnostic interrupt Via the parameterization record set Fh you may activate a global diagnostic interrupt for the analog and digital part A diagnostic interrupt occurs when during a hardware interrupt ex
134. width OxEA15 Internal error Please contact the Profichip support OxEA18 SBUS Error at mapping of the master I O devices Zinfo2 Master slot Error RS485 interface is not set to Profibus DP master but there is a Profibus DP master configured OxEA21 Error Project engineering RS485 interface X2 X3 Profibus DP master is configured but missing Zinfo2 Interface x Error RS485 interface X2 value is out of range Zinfo Configured value X2 Error RS485 interface X3 value is out of range Zinfo Configured value X3 OxEA24 Error Project engineering RS485 interface X2 X3 Interface Protocol is missing the default settings are used Zinfo2 Configured value X2 Zinfo2 Configured value X3 C S OxEA3O0 Internal error Please contact the Profichip support ENDEN WEE OxEA98 Timeout at waiting for reboot of a SBUS module Server OxEA99 Error at file reading via SBUS C S OxEEOO Internal error Please contact the Profichip support 4 16 Using test functions for control and monitoring of variables Overview For troubleshooting purposes and to display the status of certain variables you can access certain test functions via the menu item Debug of the Siemens SIMATIC Manager The status of the operands and the VKE can be displayed by means of the test function Debug gt Monitor You can modify and or display the status of variables by means of the test function PLC gt Monitor Modify Variables Debug gt Monitor T
Download Pdf Manuals
Related Search
Related Contents
取扱説明書 (4.35 MB/PDF) Manuel d`installation du web smart pack version Handbuch - Speidel Gartengeräte Fachmarkt für Garten Peerless MOD-ACF mounting kit the ultimate memory guide Swingline 1765025 本取扱説明書を読み、 内容を理解してから当製品の使用 Window Air Conditioner SVC MANUAL(Exploded ZyXEL NBG460N User's Manual FEAP Example Manual - Civil and Environmental Engineering Copyright © All rights reserved.
Failed to retrieve file