Home

L-1515, System Manual PLCcore-F407

image

Contents

1. LAN GET HOST CONFIG FB L 1054 NETNUMBER 0 LAN ASCII TO INET FB L 1054 NETNUMBER 0 LAN INET TO ASCII FB L 1054 NETNUMBER 0 LAN GET HOST BY NAME FB L 1054 NETNUMBER 0 LAN GET HOST BY ADDR FB L 1054 NETNUMBER 0 LAN UDP CREATE SOCKET FB L 1054 NETNUMBER 0 LAN UDP CLOSE SOCKET FB L 1054 NETNUMBER 0 LAN UDP RECVFROM STR FB L 1054 NETNUMBER 0 LAN UDP SENDTO STR FB L 1054 NETNUMBER 0 LAN UDP RECVFROM BIN FB L 1054 NETNUMBER 0 LAN UDP SENDTO BIN FB L 1054 NETNUMBER 0 1 These information are stored outside the file system to protect them against povver outages which may cause a corrupted file system In such case however the data are still getting corrupted if the power loss occurred while erasing one page or writing data to the flash Writing to NVData requires at least one erase and write operation per 4k flash page which usually requires about 90 ms max 350 ms VVriting to multiple pages requires correspondingly more time It is recommended to use 4k aligned data blocks to prevent writing multiple pages 2 The pulse train output uses a 16 bit timer with 8 bit repetition counter That implies a maximum cycle time of about 65 ms and 256 time accurate edges Using more pulses result in inaccurate pulse timings These delays depend on the usage of the PLCcore F407 which enables the controller to invoke the timer reset earlier or later the used time base and the period length 3 A
2. are reserved No reproduction may occur without the express written consent from SYS TEC electronic GmbH Inform yourselves Contact Direct Your local distributor Address SYS TEC electronic GmbH Am Windrad 2 D 08468 Heinsdorfergrund GERMANY Ordering 449 0 37 65 38 600 0 Please find a Salou Information info systec electronic com distributors under f e http www systec Technical Support 49 0 37 65 38 600 0 l ee ere E E RPR support systec electronic com Er Fax 49 0 37 65 38 600 4100 Web Site http www systec electronic com 4 Edition June 2015 SYS TEC electronic GmbH 2015 L1515 4 Page 3 System Manual PLCcore F407 Table of Contents 10 INTFOdUCHON in RES 6 Overview 1 Where to find what rrnnnnnnnvvnnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 7 Product Des rlIptl n anita Meee eer deka 9 Development Kit PLCcore F407 sssvvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnen 11 OS e 11 4 2 Electric commissioning of the Development Kit PLCcore F407 12 4 3 Control elements of the Development Kit PLCcore F407 ssssseeeee 13 4 4 Optional accessory echo na 14 4 4 4 USB RS232 Adapter Cable ue 14 Electrical characteristic of the PLCcore F407 sr 15 5 1 General operating conditions 15 5 2 JO CNaraCtenstle e ea 15 5 3 gt Ethernet characteristics iieri dende EE HESS entame Se
3. EXIT terminates the Configuration Shell The configuration is stored in non volatile memory and the PLC starts with current settings SYS TEC electronic GmbH 2015 L1515_4 Page 46 System Manual PLCcore F407 VVarning Please note that the follovving commands cannot be undone DEL CFG FILE DEL PLC PROG DEL NVDATA DEL FILE FORMAT FS Please take care about respective commands 11 2 Command Description The following section describes the commands available for the Command Configuration Shell on the PLCcore F407 11 2 1 GET DEV CONFIG The command GET DEV CONFIG shows the current device configuration This command has no parameters Example GET DEV CONFIG Device Information Type DeviceID Serial Number Product Code Hardware CPU Board IO Board I O Driver Firmware Build Date Time Virtual Machine OEM ID Device Configuration Config File PLC Backup Dir Memory available ProcessImage Extended I Os RuntimeSettings Watchdog SnglSegDwl Mode CRC Mode ETHO MAC Addr ETHO IpAddr ETHO SubnetMask ETHO Gateway ETHO PortNum SYSTEC PLCcore F407 Z5 3390025 25 1008005 250731 131301 4345 00 4346 00 1 00 5 06 01 00 Jan 9 2014 11 54 35 7 03 2 42 163 0 PC F407 cfg plcdata 512 kByte disabled DiagModeOn disabled disabled 00 50 C2 F8 04 56 192 168 10 248 255 255 255 0 192 168 10 1 8888 O SYS TEC electronic
4. System Manual PLCcore F407 User Manual Version 4 Edition June 2015 Document No L1515 4 SYS TEC electronic GmbH Am Windrad 2 D 08468 Heinsdorfergrund Telefon 49 3765 38600 0 Telefax 49 3765 38600 4100 Web http www systec electronic com Mail info systec electronic com Status Changes SYS TEC electronic GmbH System House for distributed Automation System Manual PLCcore F407 2014 01 28 All Creation T Volckmann Version 1 2014 02 20 Figures Updated figures to the latest core and T Volekmann baseboard revision Table 12 Add column for pull up down mapping 2014 02 24 Volckmann Add frequency for PWM output Section 7 5 2 Add frequency for Counter input 2014 04 10 Table 32 Add reference for using NVDATA function blocks 2014 07 23 Version 2 Section 7 7 2 Add note regarding CAN1 interface 2014 08 04 Amplitude information for PWM output Volckmann T ve i T i T 2014109119 Appendix A Add mapping for SIO PORT parameters T Volckmann Section 7 3 2 Add how to interpret current measurement 2014 09 22 T Section 9 Add jumper configuration 2015 02 10 Version 3 Section 7 8 2 Corrected current consumption T 2015 06 08 Figure 16 Corrected description of Figure 16 Version 4 Volckmann Volckmann Volckmann Volckmann ao E D c D D o e o D Reworked parameter description for SIO Section 7 8 1 Function Blocks Volckmann Table 7 Add IO Timings O S
5. 35 X301 36 DO1 CAN2 X303 35 X303 36 DO8 GND X301 37 X301 38 DO2 GND X303 37 X303 38 DO9 DI4 X301 39 X301 40 DO3 AIN2 X303 39 X303 40 DO10 DI5 X301 41 X301 42 GND AIN3 X303 41 X303 42 DO11 DI6 X301 43 X301 44 DO4 AIN4 X303 43 X303 44 GND DI7 X301 45 X301 46 DO5 AIN5 X303 45 X303 46 DO12 CONFIG X301 47 X301 48 DO6 AIN6 X303 47 X303 48 DO13 BOOTO X301 49 X301 50 DO7 AIN7 X303 49 X303 50 DO14 RESET X301 51 X301 52 RST OUT GND3 X303 51 X303 52 DO15 Table 12 is a subset of Table 11 and only includes all in and outputs of the PLCcore F407 sorted by their function Table 12 Connections of the PLCcore F407 only VO sorted by function I O i PLC Function 2 Connector UO ture PLC Function 1 A alternative S simultaneous Pull Up Pull Down x301 29 FT DI DIO Pushbutton SW PullDow X301 31 FT DI Dit Pushbutton SWD fPullDown DI2 Pushbutton SW2 PullDown 301 35 FT DI DIS Pushbutton SW3 PuliDow x30139 FTDI DIA Pull Down O DIS 301 48 FTD 106 AA Pull Down Pull Down A ASE X303 18 FT DI PA PA X303 20 FT DI BP X303 22 FT DI DI10 1 Pull Down AAA SYS TEC electronic GmbH 2015 L1515 4 Page 20 System Manual PLCcore F407 X30313 jevoi pre Pull Down X303 19 Pull Down X303 10 Pull Down X303 12 Pull Down X303 2 Pull Down X303 4 Pull Down X303 6 Pull Down X303 8 Pull Down a AE X301 34 X301 36 DO1 User LED1 X301 38 DO2 Use
6. 52 11 2 0 DEL GFEG EIDE aient a E a ATE 52 11 211 DEL PEC PROG ipe nr rt are re ne dam a n ku 52 11 212 DEL NVDAEKA itane hard dh a a ER RA 53 SP rM EE 53 11 2 14 DUMP FIDE v vk es nervi e RR P IHRE Seti PORC entame ete vale d ERO ee 53 11 2 15 DEL FIBER CERE te an en ERE Cla e ene e e ere ete 54 LAC FORMAT IPS 54 pan ric nur e TT 55 e IET 55 o NM nt 59 O SYS TEC electronic GmbH 2015 L1515 4 Page 5 System Manual PLCcore F407 1 Introduction Thank you that you have decided for the SYS TEC PLCcore F407 This product provides to you an innovative and high capacity PLC kernel Due to its high performance on a small manufactured size and due to its low power consumption it is well suitable as communication and control processor for embedded applications Please take some time to read through this manual carefully It contains important information about the commissioning configuration and programming of the PLCcore F407 It vvill assist you in getting familiar with the functional range and usage of the PLCcore F407 This document is complemented by other manuals e g for the OpenPCS IEC 61131 programming system and the CANopen extension for IEC 61131 3 Table 1 in section 2 shows a listing of relevant manuals for the PLCcore F407 Please also refer to those complementary documents For more information optional products updates et cetera we recommend you to visit our website
7. 60 Erases 60 pages before writing the flash V Verifies the vvritten flash b 115200 Use baud rate 115200 W plccore f407 z5 hex Write plecore f407 z5 hex file to flash COM3 COMS3 is used for file transfer It must be considered that the file name for the firmware may differ between firmware versions Hence you have to modify the command above regarding the file name and version number of the hex file After calling flash bat or executing the command above you have to wait several minutes till the update is finished STM32_Boot loader gt stm32flash exe e 68 u b 115266 w pleccore f4 7 z5 hex C M3 tm32flash http stm32f lash googlecode com Intel HEX 115266 8E1 Bx31 6x88 6x68 6x6413 STM32F4xx gt 128KiB 8192b reserved by bootloader itc uem sector size 4x16384 Erasing flash this takes some time Wrote and verified address MxB8B17E0B 386 154 Figure 11 Firmware update process When the update finished you need to press the reset switch to restart the PLC which applies the firmware update Run and user led are toggling as described in section 7 6 O SYS TEC electronic GmbH 2015 L1515 4 Page 34 System Manual PLCcore F407 9 Baseboard Configuration The follovving chapter describes possible jumper configurations These configurations are referring to the supplied baseboard of the PLCcore F407 9 1 General Jumpers The general configuration of the PLCcore F407 is done u
8. Bitrate Optional 20 50 100 125 250 500 1000 MstMode Optional Master mode on off Example SET CAN CONFIG 0 on 32 1000 off OK 2 11 2 4 SET CAN ERRLEV The command SET CAN ERRLEV sets the error level for saving CAN errors in the Error Log of the PLC This Error Log can be uploaded if the PLCcore F407 is online connected to the OpenPCS Programming System Command SET CAN ERRLEV IfNum ErrorLevel Table 26 Parameter for command SET CAN EHRLEV Parameters Attribute Values Description IfNum Mandatory 0 gt CANO Interface number for CAN interface 1 gt CAN1 ErrorLevel Mandatory no No CAN errors are logged in the Error Log heavy Only heavy occurring errors i e BusOff are logged in the Error Log all All occurring CAN errors are logged in the Error Log Example gt SET CAN ERRLEV 1 all OK 2 O SYS TEC electronic GmbH 2015 L1515 4 Page 49 System Manual PLCcore F407 11 2 5 SET WDG MODE The command SET VVDG MODE is used to define the behavior of the on board vvatchdog of the PLCcore F407 Command SET WDG MODE WdgMode Table 27 Parameter for watchdog configuration Parameter Auto Values Desorption Default setting Watchdog guarding is on activated The device is reset on Watchdog event Watchdog events are recognized by the firmware without resetting the device WdgMode Mandatory monitor However an error message message box is sent
9. Example gt DUMP FILE PC F407 cfg 00000000 OA 5B 45 54 48 30 5D 0A 49 70 41 64 64 72 3D 31 ETHO IpAddr 1 00000010 39 32 2E 31 36 38 2E 31 30 2E 31 38 30 0D 0A 53 92 168 10 180 S 00000020 75 62 6E 65 74 4D 61 73 6B 3D 32 35 35 2E 32 35 ubnetMask 255 25 00000030 35 2E 32 35 35 2E 30 0D 0A 47 61 74 65 77 61 79 5 255 0 Gateway 00000040 3D 31 39 32 2E 31 36 38 2E 31 30 2E 31 OD 0A 50 192 168 10 1 P 00000050 6F 72 74 4E 75 6D 3D 38 38 38 38 OD OA OA 5B 43 ortNum 8888 C 00000060 41 4E 30 5D 0A 45 6E 61 62 6C 65 3D 31 0D 0A 4E ANOJ Enablezi N 00000070 6F 64 65 49 44 3D 30 78 32 30 0D OA 42 61 75 64 odeID 0x20 Baud 00000080 72 61 74 65 3D 31 30 30 30 OD OA 4D 61 73 74 65 rate 1000 Maste 00000090 72 4D 6F 64 65 3D 30 OD 0A 45 72 72 4C 65 76 65 rMode 0 Errleve 000000A0 6C 3D 32 0D OA OA 5B 43 41 4E 31 5D OA 45 GE 61 1 2 CAN1 Ena 000000B0 62 6C 65 3D 30 OD 0A 4E 6F 64 65 49 44 3D 30 78 ble 0 NodeID 0x 000000C0 33 30 0D OA 42 61 75 64 72 61 74 65 3D 31 30 30 30 Baudrate 100 000000D0 30 0D 0A 4D 61 73 74 65 72 4D 6F 64 65 3D 30 0D 0 MasterMode 0 000000E0 OA 45 72 72 4C 65 76 65 6C 3D 32 0D OA OA 5B 50 ErrLevel 2 P 000000F0 6C 63 53 65 74 74 69 6E 67 73 5D 0A 45 GE 61 62 lcSettings Enab 00000100 6C 65 45 78 74 49 6F 3D 30 0D 0A 57 61 74 63 68 leExtlo 0 Watch 00000110 64 6F 67 4D 6F 64 65 3D 30 OD 0A 53 6E 67 6C 53 dogMode 0 Sng1S 00000120 65 67 44 77 6C 4D 6F 64 65 3D 30 0D OA 43 72 63 egDwlMode 0 Crc 00000130 4
10. How would you improve this manual Did you detect any mistakes in this manual page Submitted by Customer number Name Company Address Please return your suggestions to SYS TEC electronic GmbH Am Windrad 2 D 08468 Heinsdorfergrund GERMANY Fax 49 3765 38600 4100 Email info systec electronic com SYS TEC electronic GmbH 2015 L1515 4 Page 60
11. OpenPCS setup program e g PS665e exe and follow the self explanatory instructions until the following dialog window appears OpenPCS Add Driver Utility jes Show target drivers from directory C DRIVERS Available target drivers v Show details instal OEM Name Version Please select a driver cabinet file you wish to install Figure 19 OpenPCS Installation Setup Close the dialog in shown in Figure 19 by clicking on button Exit driver installation will be done with the SYSTEC OpenPCS Extension see Step 2 SYS TEC electronic GmbH 2015 L1515 4 Page 39 System Manual PLCcore F407 Step 2 e Startthe SYSTEC OpenPCS Extension setup program e g SYSTEC OpenPCS Extension 665e 302 exe Follow the instructions of the install program e Inthe Select Components dialog select Standard Installation for SYS TEC Control Units and then click on button Next Which components should be installed Select the components you want to install dear the components you do not want to install Click Next when you are ready to continue Standard Installation for SYS TEC Control Units Programs and Files for SYS TEC Control Units SpiderControl HMI Editor C Economy Version C Standard Version Extended Version Current selection requires at least 38 7 MB of disk space Figure 20 SYS TEC OpenPCS Extension select components dialog e
12. Z RS422 Yt GND Figure 16 Jumper and pin configuration for RS422 The RS232 is enabled by setting the marked jumpers shown in Figure 17 All serial interfaces can be used in the PLC program by using their corresponding number to call the SIO function blocks Please found more information about the function blocks in section 7 8 1 RS232 TXD RS232 CTS RS232 RXD RS232 RTS GND Figure 17 Jumper and pin configuration for RS232 O SYS TEC electronic GmbH 2015 L1515 4 Page 37 System Manual PLCcore F407 9 3 Control Area Network The CAN interfaces of the PLCcore F407 can be controlled with JP214 CAN1 and JP213 CAN2 The position of JP213 and JP214 on the baseboard are marked in Figure 18 errang Figure 18 Jumper position of JP213 and JP214 Figure 18 shows the default CAN configuration So CAN1 is enabled while CAN2 is disabled The termination jumpers are only necessary if the CAN bus is not terminated by another device or resistor SYS TEC electronic GmbH 2015 L1515_4 Page 38 System Manual PLCcore F407 10 OpenPCS Programming System 10 1 Installation Driver for USB CANmodul For using the PLCcore F407 Z4 order number 3390094 the USB CANmodul is used for data communication with the PLC To install the USB CANmodul driver following steps are necessary 1 Running driver setup SO 387 exe 2 Connect USB CANmodul to PC 10 2 Installation OpenPCS Programming System Step 1 e Start the
13. creating a process image follows the SYS TEC scheme for compact control units Like all other SYS TEC controls the PLCcore F407 supports backward documentation of the PLC program as well as the debug functionality including watching and setting variables single cycles breakpoints and single steps O SYS TEC electronic GmbH 2015 L1515 4 Page 10 System Manual PLCcore F407 4 Development Kit PLCcore F407 4 1 Overvievv The Development Kit PLCcore F407 is a high capacity complete package at a particularly favorable price Based on a compact PLC it enables the user to perform decentralized network compatible automation projects Moreover it facilitates the user to get to know the advantages of graphical and textual PLC programming according to IEC 61131 3 compared to conventional programming languages Figure 2 Development Kit PLCcore F407 The Development Kit PLCcore F407 ensures quick and problem free commissioning of the PLCcore F407 Therefore it combines all hard and software components that are necessary to create own applications the core module PLCcore F407 the corresponding Development Board containing VO periphery and numerous interfaces the OpenPCS IEC 61131 programming system as well as further accessory Thus the Development Kit forms the ideal platform for developing user specific applications based on the PLCcore F407 It allows for a cost efficient introduction into the world of decentralized automation techn
14. edge connectors X301 and X303 see Figure 6 Appropriate pin header connectors corresponding to the PLCcore F407 are available from company Tyco and JAE Tyco name 56 pol Mini PClexpress Connector Tyco order number 1717831 JAE name 56 pol Mini PClexpress Connector JAE order number MM60 52B1 E1 R650 It is also recommended to use spacers to fix the module onto the baseboard They are also available from company JAE JAE name Spacer JAE order number NT4R1600 O zNEE s HERE ENE m pe ESSE ma an IN uum nul LT i AA TT m E dnne ww M p Ems 55 ei SYS TEC electronic GmbH 4345 1 ECUcore STM32 Figure 5 Footprint of the PLCcore F407 O SYS TEC electronic GmbH 2015 L1515 4 Page 18 System Manual PLCcore F407 Figure 6 Pinout of the PLCcore F407 top view Figure 6 exemplifies the position of the pin card edge connectors X200 and X201 on the PLCcore F407 The figure below shows the mapping between the connectors of the ECUcore F407 and the Development Kit PLCcore F407 Core Modul PLCcore F407 Baseboard PLCcore F407 Figure 7 Connector Mapping between PLCcoreF407 and
15. http www systec electronic com The content of this website is updated periodically and provides to you downloads of the latest software releases and manual versions Declaration of Electro Magnetic Conformity for PLCcore F407 EMC law The PLCcore F407 has been designed to be used as vendor part for the integration into devices further industrial processing or as Development Board for laboratory development hard and software development After the integration into a device or when changes extensions are made to this product the conformity to EMC law again must be assessed and certified Only thereafter products may be launched onto the market The CE conformity is only valid for the application area described in this document and only under compliance with the following commissioning instructions The PLCcore F407 is ESD sensitive and may only be unpacked used and operated by trained personal at ESD conform work stations The PLCcore F407 is a module for the application in automation technology It features IEC 61131 3 programmability uses standard CAN bus and Ethernet network interfaces and a standardized network protocol Consequently development times are short and hardware costs are reasonable PLC functionality is created on board through a CANopen network layer Hence it is not necessary for the user to create firmware O SYS TEC electronic GmbH 2015 L1515 4 Page 6 System Manual PLCcore F407 2 Overvievv 1 VVhere to f
16. interface Figure 14 shows the corresponding jumper configuration where the SIOO interface is enabled The remaining serial interfaces SIO1 COM1 and SIO2 COM are also configured by JP212 Both serial outputs are using the same female SUB D 9 connector Hence only SIO1 or SIO2 should be enabled simultaneously Do not enable both interfaces at the same time on the reference baseboard Enabling SIO1 or SIO2 requires setting the corresponding jumpers on the baseboard for JP212 and JP202 The position of these jumpers is shown in Figure 13 which is also showing the jumper configuration where SIO2 is enabled Contrarily enabling SIO1 requires setting the corresponding jumpers on JP212 and JP202 Please note that SIO1 supports RS485 and RS422 Depending on the bus configuration it might require to terminate the bus using the RS485 TERM jumper on JP202 or not So if the bus is already terminated by another device it is not necessary to set the RS485 TERM jumper Otherwise setting this jumper is required Figure 15 shows the jumper position to enable the RS485 interface and the pin configuration Q SYS TEC electronic GmbH 2015 L1515 4 Page 36 System Manual PLCcore F407 RS485 B RS485 At dH GND Figure 15 Jumper and pin configuration for RS485 Enabling RS422 support requires removing the RS485 DE jumper of the JP212 See Figure 16 for the jumper positions and the pin configuration RS422 B RS422 A RS422
17. of network variables only requires basic knowledge about CANopen In a CANopen network exchanging PDOs only takes place in status OPERATIONAL If the PLCcore F407 is not in this status it does not process PDOs neither for send site nor for receive site and consequently it does not update the content of network variables The CANopen Manager is in charge of setting the operational status OPERATIONAL PRE OPERATIONAL etc mostly also called CANopen Master In typical CANopen networks a programmable node in the form of a PLC is used as CANopen Manager The PLCcore F407 is optionally able to take over tasks of the CANopen Manager As CANopen Manager the PLCcore F407 is able to parameterize the CANopen I O devices CANopen Slaves that are connected to the CAN bus Therefore upon system start via SDO it transfers DCF files generated by the CANopen configurator to the respective nodes 7 7 1 CAN interface CANO Interface CANO features a dynamic object dictionary This implicates that after activating the PLC the interface does not provide communication objects for data exchange with other devices After downloading a PLC program or its reload from the non volatile storage after power on the required communication objects are dynamically generated according to the DCF file which is integrated in the PLC project Thus CAN interface CANO is extremely flexible and also applicable for larger amount of data For the PLC program all n
18. set and modified by the user Thus only the amount of objects amount of network variables and PDOs is strongly specified in the static object dictionary Consequently application and characteristics of objects can be modified during runtime For this reason at interface CAN1 the PLCcore F407 acts as a CANopen VO device Note CAN1 cannot be used while CANO is disabled Hence to use CANT it is necessary to enable CANO All network variables of the PLC program are available through the marker section of the process image Therefore 252 Bytes are usable as input variables and also 252 Bytes as output variables To enable any data exchange with other CANopen VO devices the section of static network variables is mapped to different data types in the object dictionary BYTE SINT WORD INT DWORD DINT Variables of the different data types are located within the same memory area which means that all variables represent the same physical storage location Hence a WORD variable interferes with 2 BYTE variables a DWORD variable with 2 WORD or 4 BYTE variables Figure 9 exemplifies the positioning of network variables for CAN1 within the marker section CAN1 Input Variables CANI CANI CANI CANI CANI CANI CANI CANI B33 CANI CANI CANI CANI CANI CANI CANI CANI INO N1 N2 IN3 IN4 IN5 ING IN7 IN244 IN245 IN246 IN247 IN248 1N249 IN250 IN251 BYTE MB MB MB MB MB MB MB MB MB MB MB MB MB MB M
19. setting and the Network Connection UDP 192 168 10 180 which has been created in the previous section E Edit Resource Specifications SYSTEC PLCcore F407 Z5 3390095125 Name RunLight ptions Hardware Module Enable Upload SYSTEC PLCcore F407 25 3390095725 m Incl Library Functions Network Connection r I T Download Symbol Table UDP 192 168 10 180 y Optimization DCE Fa 1e Normal vi ed EE E Cancel Figure 26 Resource Properties Confirm the settings by clicking OK SYS TEC electronic GmbH 2015 L1515_4 Page 43 System Manual PLCcore F407 Step2 e Use either the entry PLC gt Rebuild Active Resource from the main menu or click at the appropriate icon as shown in the screen snapshot EZ infoteam OpenPCS 2008 C ProgramDatalinfoteam Software Open PCS 2008 Sample NSYSTEQRunlighARonLioh ver startup htm Les E File Edit View Project PLC Extras Window Blas 3 Y EI Online au Projet mame a Qu 3 A 2B Project RUNUGHT Sie 2 Build Active Resource FI foteam Software OpenPCS2008 SPLHTM startup htm B UsERTVPETVP lili Rebuild Active Resource gen E Rebuild All Resources ST OpenPCS 6 6 1 PC lt PLC Automation Suite inf teom PLC D What s new a es WU Resouces E ki Coffee Maker BL Firmware Ip Hotstart t m ps 5 ee
20. such systems resume the execution of the PLC program independently and without user intervention Figure 8 illustrates the system start in detail Power ON PLC program valid No Wait for PLC Program Download Start PLC processing Figure 8 System start of the PLCcore F407 If the firmware has found a valid control program in the non volatile memory this program is restarted and processed Otherwise the reactivated program is ready for execution and the PLCcore F407 is in stop mode 7 2 Programming the PLCcore F407 The PLCcore F407 is programmed with IEC 61131 3 conform OpenPCS programming environment There exist additional manuals about OpenPCS that describe the handling of this programming tool Those are part of the software package OpenPCS All manuals relevant for the PLCcore F407 are listed in Table 1 The PLCcore F407 firmware is based on standard firmware for SYS TEC s compact control units Consequently it shows identical properties like other SYS TEC control systems This affects SYS TEC electronic GmbH 2015 L1515_4 Page 22 System Manual PLCcore F407 especially the process image setup see section 7 3 as well as the functionality of control elements Run LED Error LED Depending on the firmware version used PLCcore F407 firmware provides numerous function blocks to the user to access communication interfaces Table 13 specifies the availability of FB communication classes S
21. 000 pF Output high to low level fall time and output low tf IO out to thigh level rise time for CL 10 pF 2 5 ns Table 8 Digital output characteristic Output low level voltage for an I O pin VoL when 8 pins are sunk at same time llo 8mA 0 4 V Output high level voltage for an I O pin VOH when 8 pins are sourced at same time 2 40 V llo Output current sunk source by any I O pin 25 mA llOmaxsource The maximum sum of IIO sourced by the device 150 000 mA llOmaxsource The maximum sum of llo sunk by the device 150 000 mA 5 3 Ethernet characteristics In the table below you will find important information about the Ethernet characteristics of the PLCcore F407 Table 9 Ethernet receive or transmit signal characteristic VIHETH Input high level voltage 2 E V VILETH Input low level voltage 0 8 V VOHETH Output high level voltage 2 40 V VOLETH Output low level voltage 0 4 V IINETH Input Current 10 10 uA loz Output Tri State Leakage 10 LA O SYS TEC electronic GmbH 2015 L1515 4 Page 16 System Manual PLCcore F407 Table 10 Ethernet LED output characteristic ILED LED output drive current mA O SYS TEC electronic GmbH 2015 L1515 4 Page 17 System Manual PLCcore F407 6 Pinout of the PLCcore F407 The PLCcore F407 provides board VO functionalities through simple connector footprint using two pin card
22. 2 Error LED red Module connection Error LED see Table 11 is designed for connecting an Error LED This Error LED provides information about the error state of the control system The error state is represented through different modes O SYS TEC electronic GmbH 2015 L1515 4 Page 27 System Manual PLCcore F407 Table 19 Display status of the Error LED LED Mode PLC Error State Off No error has occurred the PLC is in normal state Permanent light A severe error has occurred e The PLC was started using an invalid configuration e g CAN node address 0x00 and had to be stopped or e Asevere error occurred during the execution of the program and caused the PLC to independently stop its state Run division by zero invalid Array access see below Slow flashing in A network error occurred during communication to the programming system the relation 1 1 to execution of a running program is continued This error state will be reset pulse independently by the PLC as soon as further communication to the programming system is successful Quick flashing in The PLC is in mode Reset relation 1 1 to pulse Quick flashing in The PLC is on standby but is not yet running relation 1 8 to pulse e The PLC has received a start command from the OpenPCS programming environment but the local Run Stop switch is positioned to Stop In case of severe system errors such as division by zero of invalid Array ac
23. 2 lists all firmware functions and function blocks available on the PLCcore F407 Sign explanation FB Function block FUN Function Online Help OpenPCS online help L 1054 Manual SYS TEC specific extensions for OpenPCS IEC 61131 3 Manual no L 1054 PARAM 0 1 2 values 0 1 and 2 are valid for the given parameter Table 32 Firmware functions and function blocks of PLCcore F407 Name Type Reference Remark PLC standard Functions and Function Blocks SR FB Online Help RS FB Online Help R_TRIG FB Online Help F_TRIG FB Online Help CTU FB Online Help CTD FB Online Help CTUD FB Online Help TP FB Online Help TON FB Online Help TOF FB Online Help Functions and Function Blocks for string manipulation LEN FUN L 1054 LEFT FUN L 1054 RIGHT FUN L 1054 MID FUN L 1054 CONCAT FUN L 1054 INSERT FUN L 1054 DELETE FUN L 1054 REPLACE FUN L 1054 FIND FUN L 1054 GETSTRINFO FB L 1054 CHR FUN L 1054 ASC FUN L 1054 STR FUN L 1054 VAL FUN L 1054 Functions and Function Blocks for OpenPCS specific task controlling ETRC FB L 1054 PTRC FB L 1054 GETVARDATA FB Online Help GETVARFLATADDRESS FB Online Help GETTASKINFO FB Online Help SYS TEC electronic GmbH 2015 L1515 4 Page 56 System Manual PLCcore F407 Name Type Reference Remark Functions and Function Blocks for handlin
24. 3 68 65 63 6B 4D 6F 64 65 3D 30 0D OA CheckMode 0 Ok gt 11 2 15 DEL FILE The command DEL FILE deletes a specific file from the Flash File System Once done this cannot be undone Command DEL FILE lt FileName gt Table 31 Parameter for command DEL FILE Parameter Attribute Description FileName Mandatory Path to the file that should be deleted Example gt DEL FILE PC F407 cfg Ok gt 11 2 16 FORMAT FS The command FORMAT FS formats the Flash File System located in the external Flash memory Once done this cannot be undone This command has no parameters Note During this operation all data in the Flash File System will be deleted There is no way to backup or restore this data so please be carefully O SYS TEC electronic GmbH 2015 L1515 4 Page 54 System Manual PLCcore F407 Example gt FORMAT FS CAUTION This vill delete all data stored in the FLASH File Systemi Do you really want to continue y n y Formatting the FALSH File System need some seconds please wait OK gt 11 2 17 EXIT The command EXIT terminates and leaves the Configuration Shell save the configuration and restart the PLC 11 2 18 HELP The command HELP shows all available commands as well as a short command description see Figure 28 SYS TEC electronic GmbH 2015 L1515 4 Page 55 System Manual PLCcore F407 Appendix A Firmware function scope of PLCcore F407 Table 3
25. AIN2 IW12 0 15Bit sign 0 32767 AIN4 IW16 0 15Bit sign 0 32767 AIN5 IW18 0 15Bit sign 0 32767 AIN6 IW20 0 15Bit sign 0 32767 IW14 0 15Bit sign 0 32767 O SYS TEC electronic GmbH 2015 L1515 4 Page 23 System Manual PLCcore F407 VO of the PLCcore F407 Address and Data type in the Process Image IW22 0 15Bit sign 0 32767 CO 1D40 0 31Bit sign 2 2 1 counter input DI2 4 direction DI2 5 see section 7 5 1 1D44 0 31Bit sign 23 23 1 counter input DI2 6 direction DI2 7 see section 7 5 1 On board Temperature Sensor ID72 0 31Bit sign as 1 10000 C DOO DO7 QB0 0 as Byte with DOO DO7 QX0 0 QX0 7 as single Bit for each output DO8 DO15 QB1 0 as Byte with DO8 DO15 QX1 0 WQX1 7 as single Bit for each output DO16 DO21 QB2 0 as Byte with DO16 DO21 QX2 0 QX2 5 as single Bit for each output QW8 0 15Bit sign 0 t32767 QW10 0 15Bit sign 0 32767 QX0 0 default value for inactive generator Impulse output DOO see section 7 5 2 QX0 1 default value for inactive generator Impulse output DO1 see section 7 5 2 In and outputs of the PLCcore F407 are not negated in the process image Hence the H level at one input leads to value 1 at the corresponding address in the process image Contrariwise value 1 in the process image leads to an H level at the appropriate ou
26. B MB SINT USINT 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 244 0 245 0 246 0 247 0 248 0 249 0 250 0 251 0 1 Byte0 Bytet Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte244 Byte245 Byte246 Byte247 Byte248 Byte249 Byte250 Byte251 WORD MW 9 MW MW MW MW MW 9 MW 9 MW NT UINT 0 0 2 0 4 0 6 0 244 0 246 0 248 0 250 0 Word0 Word1 Word2 Word3 Word122 Word123 Word124 Word125 DWORD MD MD DINT UDINT 244 0 248 0 Dw ord61 Dw ord62 CAN1 Output Variables CANI CANI CANI CANI CANI CANI CANI CANI Ms CANI CANI CANI CANI CANI CANI CANI CANI OUTO OUT OUT2 OUT3 OUT4 OUT5 OUT6 OUT7 OUT244 OUT245 OUT246 OUT247 OUT248 OUT249OUT250 OUT251 BYTE MB MB MB MB MB MB MB MB MB MB MB MB MB MB MB MB SINT USINT 256 0 257 0 2580 259 0 260 0 261 0 262 0 263 0 500 0 501 0 502 0 503 0 504 0 505 0 506 0 507 0 A Byte0 Bytet Byte2 Bytes Byte4 Byte5 Byte6 Byte7 Byte244 Byte245 Byte246 Byte247 Byte248 Byte249 J Byte250 Byte251 WORD MW 9 MW 9 MW MW MW MW 9 MW 9 MW NE UNS 256 0 258 0 260 0 262 0 500 0 502 0 504 0 506 0 3 Word0 Word1 Word2 Word3 Word122 Word123 Word124 Word125 DWORD MD MD MD DINT UDINT 265 0 500 0 504 0 Dw ordo Dword61 Dw ord62 Figure 9 Positioning of network variables for CAN1 within the marker section Table 20 shows the representation of networ
27. C gt Connections from the OpenPCS menu e Inthe dialog window Connection Setup click at the button New This will in turn open the following window Edit Connection m Connection Name Driver Select Comment Cancel Figure 23 Target Connection Edit Connection O SYS TEC electronic GmbH 2015 L1515 4 Page 41 System Manual PLCcore F407 Step 2 e Choose the button Select e Select the driver SYSTEC Standard Driver This is the first choice for many kinds of connections ID Manuf ID Description Figure 24 Target Connection Select Driver e Confirm the selection by clicking OK Step 3 e Enter a meaningful name for the connection settings e g UDP 192 168 10 180 e Now the Edit Connection dialog looks like this m Connection Name UDP 192 168 10 180 Driver SYSTEC Standard Driver Settings Comment Figure 25 Target Connection Edit Connection filled SYS TEC electronic GmbH 2015 L1515_4 Page 42 System Manual PLCcore F407 Finish the configuration of the target connection by clicking OK in the Edit Connection dialog and Close in the Connection Setup window 10 4 Assign Network Connection to Resource Step1 Select PLC Resource Properties from the OpenPCS main menu Choose SYSTEC PLCcore F407 Z4 3390000941Z4 for the Hardware Module
28. ECUcore F407 A complete connection assignment of this module is listed up in Table 11 Table 11 Connections of the PLCcore F407 completely sorted by connection pin Signal Signal 3V3 Core X301 1 X301 2 SIO1 43 3V Core X303 1 X303 2 CNTO GND X301 3 X301 4 SIO1 GND X303 3 X303 4 CNTO DIR ETH RXP X301 5 X301 6 RUN LED JTMS X303 5 X303 6 CNT1 ETH_RXM X301 7 X301 8 ERROR LED JTCK X303 7 X303 8 CND1 DIR GND X301 9 X301 10 ETH LINK ACT DO16 X303 9 X303 10 DI18 ETH TXP X301 11 X301 12 ETH SPEED DO17 X303 11 X303 12 DI20 SYS TEC electronic GmbH 2015 L1515 4 Page 19 System Manual PLCcore F407 Signal Signal ETH TXM X301 13 X301 14 VREF DI16 X303 13 X303 14 VBAT GND X301 15 X301 16 GND DO18 X303 15 X303 16 GND AO0 X301 17 X301 18 SIOO TX DO19 X303 17 X303 18 DI8 AO1 X301 19 X301 20 SIOO RX DI17 X303 19 X303 20 DI9 GND X301 21 X301 22 SIO1 GND X303 21 X303 22 DI10 AINO X301 23 X301 24 CAN1 SIO2 X303 23 X303 24 DI11 AIN1 X301 25 X301 26 CAN1 SIO2 X303 25 X303 26 GND GND X301 27 X301 28 PWMO SIO2 X303 27 X303 28 DI12 DIO X301 29 X301 30 PWM1 SIO2 X303 29 X303 30 DI13 DI X301 31 X301 32 GND GND X303 31 X303 32 DI14 DI2 X301 33 X301 34 DOO CAN2 X303 33 X303 34 DI15 DI3 X301
29. EE ERE eh dd 16 Pinout of the PLGcore F407 oerte dis 18 PLC Functionality of the PLCcore F407 rrrrrrnnnnnvvvvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvnnnnnnnnnnnnn 22 7 1 System start of the PLCcore F407 iii 22 7 2 Programming the PLCcore F407 ire 22 7 3 Process image of the PLCcore F407 iii 23 Tat gt Local In and Outputs il aee tpe atti san Evade c eaae 23 7 3 2 Calculate current measurement 24 7 3 8 In and outputs of user specific baseboards 24 7 4 Communication interfaces sis 25 7 4 1 Serial interfaces iii 25 14 25 GAN Iterfaces dre leote edh te da 25 7 4 8 Ethernet interfaces ie 25 7 5 Specific peripheral interfaces us 25 LOT Counter inputs enc preci etre nl rene dre ane hh nd 25 ys MM Puls GUNE in dre tirer mere iii aid 26 7 6 Control and display elements sis 27 Ko Runs PEDAgreen asst oce ete e e EET 27 7 6 2 JEMOr LED Ed Hare 27 7 7 Using CANopen for CAN interfaces oooocinccicincccconccoconnnonocnnanccnonn cnn anna ente ee rnnt 28 7 7 1 CAN interface CANON ee teres eter eee eres a eee 29 7 7 2 CAN interface CAN iii 29 7 8 Controller specific PLC Function Blocks sese 32 7 8 1 The Function Blocks SIO nnne near e teste teve enn nina sanis 32 Updating the PLCcore F407 Firmware 33 Baseboard Configuration sh r tae Rot IEEE epa h s 35 93 General Jumpers cidad iine eret e perde o
30. GmbH 2015 L1515 4 Page 47 System Manual PLCcore F407 CANO Enable on CANO NodeID 32 0x20 CANO Baudrate 1000 CANO MasterMode off CANO ErrorLevel AllNetErrors CANI Enable off CAN1 NodeID 48 0x30 CANI Baudrate 1000 CAN1 MasterMode off CAN1 ErrorLevel AllNetErrors Ok 11 2 2 SET IP CONFIG The command SET IP CONFIG is used to set the communication parameters for Ethernet interface Command SET IP CONFIG IfNum IpAddr NetMask Gateway PortNum gt Table 24 Parameter for command SET IP CONFIG IfNum Mandatory 0 gt ETHO Interface number for Ethernet 1 gt ETH1 interface IpAddr Mandatory i e 192 168 10 130 IP address NetMask Optional i e 255 255 255 0 Network mask Gateway Optional i e 192 168 10 200 IP address of default gateway Example SET IP CONFIG 0 192 168 10 130 255 255 255 0 OK 2 11 2 3 SET CAN CONFIG The command SET CAN CONFIG is used to set the communication parameters of the two CAN communication interfaces CANO und CAN1 Command SET CAN CONFIG lt IfNum Enable NodeID Bitrate MstMode gt SYS TEC electronic GmbH 2015 L1515 4 Page 48 System Manual PLCcore F407 Table 25 Parameter for command SET CAN CONFIG Pwamees uibue Vales Desorption IfNum Mandatory 0 CANO Interface number for CAN interface 1 gt CANI Mandatory Enables or disables the CAN interface NodelD Optional 1 0x7F Node ID i e 0x21 CAN bus baud rate i e 500
31. IEC 61131 3 In vvhich manual2 In this manual Brief instructions for the programming system Entry OpenPCS Documentation in the OpenPCS program group of the start menu Manual no L 1005 Online help about the OpenPCS programming system Online help about the OpenPCS programming system User Manual SYS TEC specific extensions for OpenPCS IEC 61131 3 Manual no L 1054 User Manual CANopen extension for IEC 61131 3 Manual no L 1008 IEC 61131 3 Programming Industrial Automation Systems John Tiegelkamp Springer Verlag ISBN 3 540 67752 6 a short version is available as PDF on the OpenPCS installation CD SYS TEC electronic GmbH 2015 L1515 4 Page 7 System Manual PLCcore F407 Section 4 Section 6 Section 0 Section 8 Section 9 Section 10 Section 11 of this manual explains the commissioning of the PLCcore F407 based on the Development Kit for the PLCcore F407 and their electrical characteristics describes the connection assignment of the PLCcore F407 explains details about the application of the PLCcore F407 e g the setup of the process image the meaning of control elements and it provides basic information about programming the module Moreover information is given about the usage of CAN interfaces in connection with CANopen describes the firmware update process of the PLCcore F407 explains the baseboard configuration of the PLCcore F407 Development Kit show
32. IO CAN UDP for different PLCcore F407 firmware versions Table 13 Support of FB communication classes for different types of the PLCcore Type of PLCcore F407 Z3 PLCcore F407 Z4 PLCcore F407 Z5 Remark Interface Art no 3390093 Art no 3390094 Art no 3390095 CAN X X FB description see manual L 1008 UDP X X FB description see manual L 1054 SIO X X X FB description see manual L 1054 Table 32 in Appendix A contains a complete listing of firmware functions and function blocks that are supported by the PLCcore F407 Detailed information about using the CAN interfaces in connection with CANopen is provided in section 7 7 7 3 Process image of the PLCcore F407 7 3 1 Local In and Outputs Compared to other SYS TEC compact control systems the PLOcore F407 obtains a process image with identical addresses All in and outputs listed in Table 14 are supported by the PLCcore F407 Table 14 Assignment of in and outputs to the process image of the PLCcore F407 VO of the PLCcore F407 Address and Data type in the Process Image DIO DI7 IBO 0 as Byte with DIO DI7 IX0 0 IX0 7 as single Bit for each input DI8 DI15 IB1 0 961X1 0 Y 1X1 7 as single Bit for each input as Byte with DI16 DI23 AINO IW8 0 15Bit sign 0 32767 AIN IW10 0 15Bit sign 0 32767 as Byte with DI8 DI15 DIT DI23 IB2 0 961X2 0 YIX2 7 as single Bit for each input
33. Insert your name and company into the infoteam OpenPCS Licenses window and click OK Company EE 1 163M252 0715 UCD 911 WU 0000 EBBFCDAC OOLBOL3 163M 247 0715 UCD EX98US 0000 A509DEF9 46 lt F 350 163M248 0715 UCD UT2D6Y 0000 00C67076 E 7954F2 163M249 0715 UCD YRRSLS 0000 7FOFEBE5 7C99CY1 163M250 0715 UCD LP5L83 0000 86DDE2D2 P4PFD20 163M 251 0715 UCD 41RZEP 0000 718F8081 2GGYYK3 163M230 0715 UCD 3Z amp CNX 0000 4E E 45606 KBDDUN3 163M231 0715 UCD 2JGU2G 0000 59863455 T8D5Z41 163M232 0715 UCD YBYLZU 0000 31F739BB JX3EDU3 163M233 0715 UCD JAQGJ8 0000 C6955BE8 0D85X22 163M240 0715 UCD 3QUPL7 0000 75F15DE6 ZILR123 163M241 0715 UCD WAC33W 0000 E 33E 7D06 5WPQOH42 163M238 0715 UCD CSYHUL 0000 C89E 43B4 TCLLJ41 163M239 0715 UCD SPSJBP 0000 5E 516354 xFENC 2 1 Ma 235 frz15 ICD I GX nnnn CRsSRATRT STwI CRZ2 D Development Licence Info Figure 21 SYS TEC OpenPCS Extension Setup SYS TEC electronic GmbH 2015 L1515_4 Page 40 System Manual PLCcore F407 e Finish the installation pse so Completing the SYSTEC OpenPCS SYS TEC Extension Setup Wizard Setup has finished installing SYSTEC OpenPCS Extension on your computer The application may be launched by selecting Your Partner for Sena Distributed Click Finish to exit Setup Automation Launch OpenPCS Figure 22 SYS TEC OpenPCS Extension Setup 10 3 Define Network Connection Step 1 e Select PL
34. L 1054 Afterwards in a PLC program the current counter value is accessible via process image see Table 14 in section 7 3 1 or via function block CNT FUD Table 15 lists the allocation between counter channels and inputs O SYS TEC electronic GmbH 2015 L1515 4 Page 25 System Manual PLCcore F407 Table 15 Allocation between counter channels and inputs CO CO DI20 IX2 4 DI21 IX2 5 D40 0 C1 C1 DI22 1IX2 6 DI23 96IX2 7 D44 0 The theoretical maximum frequency for counter inputs is 24 MHz Practically the frequency depends on the number of interrupts done before the counter interrupt is invoked 7 5 2 Pulse outputs To release PWM signal sequences the PLCcore F407 features 2 pulse outputs PO and P1 Prior to its usage all pulse outputs must be parameterized using function block PTO PWM see manual SYS TEC specific Extensions for OpenPCS IEC 61131 3 Manual no L 1054 After the impulse generator is started it takes over the control of respective outputs If the impulse generator is deactivated the respective output adopts the corresponding value that is filed in the process image for this output see Table 14 in section 7 3 1 Table 16 lists the allocations between impulse channels and outputs Table 16 Allocation between impulse channels and outputs PO PO DO20 QX24 P1 P1 DO21 QX2 5 Table 17 shows the characteristics of the pulse width modulation and p
35. MBER 0 1 CAN SDO WRITE STR FB L 1008 NETNUMBER 0 1 CAN SDO READ BIN FB L 1008 NETNUMBER 0 1 CAN SDO WRITE BIN FB L 1008 NETNUMBER 0 1 CAN_GET_STATE FB L 1008 NETNUMBER 0 1 CAN NMT FB L 1008 NETNUMBER 0 1 CAN_RECV_EMCY_DEV FB L 1008 NETNUMBER 0 1 CAN_RECV_EMCY FB L 1008 NETNUMBER 0 1 CAN_WRITE_EMCY FB L 1008 NETNUMBER 0 1 CAN_RECV_BOOTUP_DEV FB L 1008 NETNUMBER 0 1 CAN RECV BOOTUP FB L 1008 NETNUMBER 0 1 CAN ENABLE CYCLIC SYNC FB L 1008 NETNUMBER 0 1 CAN SEND SYNC FB L 1008 NETNUMBER 0 1 SYS TEC electronic GmbH 2015 L1515 4 Page 57 System Manual PLCcore F407 Name Type Reference Remark CANL2 INIT FB L 1008 NETNUMBER 0 1 CANL2 SHUTDOWN FB L 1008 NETNUMBER 0 1 CANL2 RESET FB L 1008 NETNUMBER 0 1 CANL2 GET STATUS FB L 1008 NETNUMBER 0 1 CANL2 DEFINE CANID FB L 1008 NETNUMBER 0 1 CANL2 DEFINE CANID RANGE FB L 1008 NETNUMBER 0 1 CANL2 UNDEFINE CANID FB L 1008 NETNUMBER 0 1 CANL2 UNDEFINE CANID RANGE FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE READ8 FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE READ BIN FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE WRITE8 FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE WRITE BIN FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE UPDATES8 FB L 1008 NETNUMBER 0 1 CANL2 MESSAGE UPDATE BIN FB L 1008 NETNUMBER 0 1 Functions and Function Blocks for Ethernet interfaces UDP
36. T and hold it down 2 Press pushbutton BOOT while RESET is still down 3 Release pushbutton RESET while BOOT is still down 4 Release pushbutton BOOT To update the firmware you have to extract the firmware package to a directory of your choice The package contains at least the update tool and a hex file containing the new firmware Include in library v Share with v Burn New folder Name Date modified Type Size flash 06 03 2014 12 47 Windows Batch File 1 KB ls plccore f407 z5 hex 07 03 2014 14 45 HEX File 933 KB ices _ protocol pdf 04 05 2011 12 06 PDF File 502 KB ET stm32flash D 18 04 201214 55 Application 105 KB Figure 10 Content of firmware package If the firmware package contains a file called flash bat you can update the firmware by executing this file Otherwise you need to open a command shell and navigate to the directory containing the extracted files In this case the update process is started by entering the following line in your command shell stm32flash exe e 60 v b 115200 w hex file name COM num O SYS TEC electronic GmbH 2015 L1515 4 Page 33 System Manual PLCcore F407 For example the following command line programs the firmware hex file plecore f407 z5 hex via COMS COM3 at Host PC to the PLCcore F407 sim32flash exe e 60 v b 115200 w plccore f407 z5 hex COM3 Table 22 Parameter STM32 firmware update tool Parameter Description e
37. YS TEC electronic GmbH 2015 L1515 4 Page 2 System Manual PLCcore F407 This manual includes descriptions for copyrighted products that are not explicitly indicated as such The absence of the trademark symbol does not infer that a product is not protected Additionally registered patents and trademarks are similarly not expressly indicated in this manual The information in this document has been carefully checked and is believed to be entirely reliable However SYS TEC electronic GmbH assumes no responsibility for any inaccuracies SYS TEC electronic GmbH neither guarantees nor accepts any liability vvhatsoever for consequential damages resulting from the use of this manual or its associated product SYS TEC electronic GmbH reserves the right to alter the information contained herein without prior notification and does not accept responsibility for any damages which might result Additionally SYS TEC electronic GmbH neither guarantees nor assumes any liability for damages arising from the improper usage or improper installation of the hardware or software SYS TEC electronic GmbH further reserves the right to alter the layout and or design of the hardware without prior notification and accepts no liability for doing so Copyright 2015 SYS TEC electronic GmbH All rights including those of translation reprint broadcast photomechanical or similar reproduction and storage or processing in computer systems in whole or in part
38. able 16 TPDO and 16 RPDO The first 4 TPDO and RPDO are preconfigured and activated according to the Predefined Connection Set The first 32 Byte of input and output variables are mapped to those PDOs Table 21 in detail lists all preconfigured PDOs for interface CAN SYS TEC electronic GmbH 2015 L1515 4 Page 31 System Manual PLCcore F407 Table 21 Preconfigured PDOs for interface CANI PDO CAN ID Data 1 RPDO 0x200 NodelD MBO 0 MB7 0 2 RPDO 0x300 NodelD MB8 0 MB15 0 3 RPDO 0x400 NodelD MB16 0 MB23 0 4 RPDO 0x500 NodelD MB24 0 MB31 0 1 TPDO 0x180 NodelD MB256 0 MB263 0 2 TPDO 0x280 NodelD MB264 0 MB271 0 3 TPDO 0x380 NodelD MB272 0 MB279 0 4 TPDO 0x480 NodelD MB280 0 MB287 0 Due to limitation to 16 TPDO and 16 RPDO only 256 Bytes 2 16PDO 8Byte PDO of total 504 Bytes for network variables in the marker section 2 252Bytes can be transferred via PDO Irrespective of that it is possible to access all variables via SDO The configuration mapping CAN Identifier etc of interface CAN1 typically takes place via an external Configuration Manager that parameterizes the object dictionary on the basis of a DCF file created by the CANopen configurator By using default object inputs 1010H und 1011H the PLCcore F407 supports the persistent storage and reload of a backed configuration Alternatively the configuration map
39. cess the control system passes itself from state Run into state Stop This is recognizable by the permanent light of the Error LED red In this case the error cause is saved by the PLC and is transferred to the computer and shown upon next power on 7 7 Using CANopen for CAN interfaces The PLCcore F407 features 2 CAN interfaces CANO and CAN1 usable as CANopen Manager conform to CiA Draft Standard 302 The CAN interface allow for data exchange with other devices via network variables and is usable from a PLC program via function blocks of type CAN Xxx More details are included in User Manual CANopen Extension for IEC 61131 3 Manual no L 1008 The CANopen services PDO Process Data Objects and SDO Service Data Objects are two separate mechanisms for data exchange between single field bus devices Process data sent from a node PDO are available as broadcast to interested receivers PDOs are limited to 1 CAN telegram and therewith to 8 Byte user data maximum because PDOs are executed as non receipt broadcast messages On the contrary SDO transfers are based on logical point to point connections Peer to Peer between two nodes and allow the receipted exchange of data packages that may be larger than 8 Bytes Those data packages are transferred internally via an appropriate amount of CAN telegrams Both services are applicable for interface CANO as well as for CAN of the PLCcore F407 SDO communication basically takes plac
40. d alone without connection to a Host PC ETHO Ethernet X200 This interface serves as communication interface with the Programming PC and is necessary for the program download PLCcore F407 Z5 order number 3390095 besides can be used freely for the user program CANO CAN P201A This interface serves as communication interface with the Programming PC and is necessary for the program download PLCcore F407 Z4 order number 3390094 besides can be used freely for the user program COM1 RS485 P201B This interface can be used freely for general operation of the user program COM RS232 P201B This interface can be used freely for general operation of the user program O SYS TEC electronic GmbH 2015 L1515 4 Page 12 System Manual PLCcore F407 Figure 3 shovvs the positioning of the most important connections of the Development Board for the PLCcore F407 COM1 2 RS232 RS485 Figure 3 Positioning of most important connections on the Development Board for the PLCcore F407 Upon commissioning cables for Ethernet ETHO X200 and RS232 COMO P201B must be connected prior to activating the power supply USB P200 or external power supply via X101 X102 4 3 Control elements of the Development Kit PLCcore F407 The Development Kit PLCcore F407 allows for easy commissioning of the PLCcore F407 It has available various control elements to configure the module and to simulate in and o
41. e via function blocks of type CAN SDO Xxx see User Manual CANopen Extension for IEC 61131 3 Manual no L 1008 Function blocks are also available for PDOs CAN PDO Xxx Those should only be used for particular cases in order to also activate non CANopen conform devices For the application of PDO function blocks the CANopen configuration must be known in detail The reason for this is that the PDO function blocks only use 8 Bytes as input output parameter but the assignment of those Bytes to process data is subject to the user O SYS TEC electronic GmbH 2015 L1515 4 Page 28 System Manual PLCcore F407 Instead of PDO function blocks network variables should mainly be used for PDO based data exchange Network variables represent the easiest way of data exchange with other CANopen nodes Accessing network variables within a PLC program takes place in the same way as accessing internal local variables of the PLC Hence for PLC programmers it is not of importance if e g an input variable is allocated to a local input of the control or if it represents the input of a decentralized extension module The application of network variables is based on the integration of DCF files that are generated by an appropriate CANopen configurator On the one hand DCF files describe communication parameters of any device CAN Identifier etc and on the other hand they allocate network variables to the Bytes of a CAN telegram mapping The application
42. er ep og areas des e deas 35 9 2 cSerial O tput sienten cet beet brad oic Pe pito ee ec dyt beled 36 9 3 Control Area Network iii 38 OpenPCS Programming System en o nene sene eee nenen nene eee eee nenen nene eter nn nnn 39 10 1 Installation Driver for USB CANMOdUl aaau uuaaau aaa ananas sene ne eee e ee teres ete re eee ee zere ee teren nennen 39 10 2 Installation Open PCS Programming System a uhhaaa aaa anen e eee ever ese er ee eee ee nara e eee 39 10 3 Define Network Connection sise 41 10 4 Assign Network Connection to Resource 43 SYS TEC electronic GmbH 2015 L1515 4 Page 4 System Manual PLCcore F407 11 Configuration Command Shell nonen esen nenen eee nenen eee eee ee neo non meren eee nenes 45 11 1 Entering the Configuration Command Shell 45 11 2 Command Description sise 47 11 21 GET DEV GONEFI ipte b Ere tp tno Ee Per te te ut bei 47 11 2 2 SET IP CONF ERE RR dt RR MR RETO Re ee ee 48 14 29 SET CAN CONFIO petente erret rt tp nte MR ne Pe ete 48 1432 4 SET GAN ERRLEV innt ien ct imminent ie 49 11 2 5 SET WDG MOBDPBE 5 piter Een eec tp eno Re ne Pe hd brie 50 11 2 6 SET SSDWL MODE ico rit eoe hammam RE RET Te ug dinar fast 50 11 27 SEL GRG MODE ne irt ate UE nee ERE C Te CATH ERE RE e ane i 51 11 2 8 GET LAST ERROR s eiit nett te san EUER e mdr ta een een de de shat edge 51 11 29 PRINT CFG FCE s vez tte ERE e EROR teense cai te I ERE E ERO bind
43. etwork variables are declared as VAR_EXTERNAL according to IEC61131 3 Hence they are marked as outside of the control e g VAR_EXTERNAL NetVarl BYTE NetVar2 UINT END VAR A detailed procedure about the integration of DCF files into the PLC project and about the declaration of network variables is provided in manual User Manual CANopen Extension for IEC 61131 3 Manual no L 1008 When using CAN interface CANO it must be paid attention that the generation of required objects takes place upon each system start This is due to the dynamic object directory Design instructions are included in the DCF file that is integrated in the PLC project Hence changes to the configuration can only be made by modifying the DCF file This implies that after the network configuration is changed modification of DCF file the PLC project must again be translated and loaded onto the PLCcore F407 7 7 2 CAN interface CAN1 On the contrary to interface CANO interface CAN1 is provided as static object dictionary This means that the amount of network variables communication objects and the amount of PDOs available are both strongly specified During runtime the configuration of PDOs is modifiable This implies that communication parameters used CAN Identifier etc and the allocation of network variables to each O SYS TEC electronic GmbH 2015 L1515 4 Page 29 System Manual PLCcore F407 Byte of a CAN telegram mapping can be
44. exchanged vvith other nodes e g superior main controller VO slaves and so forth via CANopen network Ethernet UDP protocol and serial interfaces UART Moreover the number ofin and outputs either is locally extendable or decentralized via CANopen devices For this purpose the CANopen Chip is suitable It has also been designed as insert ready core module for the appliance in user specific applications The PLCcore F407 provides 24 digital inputs DIO DI23 3 3V level 22 digital outputs DOO DO21 3 3V level 2 high speed counter input with 1 direction and 1 input each and 2 PWM output 3 3V amplitude This default I O configuration can be adapted for specific application requirements by SYS TEC please contact support systec electronic com if you are interested in this option Saving the PLC program in the on board Flash Disk of the module allows an automatic restart in case of power breakdown Programming the PLCcore F407 takes place according to IEC 61131 3 using the OpenPCS programming system of the company infoteam Software GmbH http www infoteam de This programming system has been extended and adjusted for the PLCcore F407 by the company SYS TEC electronic GmbH Hence it is possible to program the PLCcore F407 graphically in KOP FUB AS and CFC or textually in AWL or ST Downloading the PLC program onto the module takes place via Ethernet or CANopen depending on the firmware that is used Addressing in and outputs and
45. g of non volatile data NVDATA BIT FB L 1054 DEVICE 0 see NVDATA INT FB L 1054 DEVICE 0 see 1 NVDATA STR FB L 1054 DEVICE 0 see 1 NVDATA BIN FB L 1054 DEVICE 0 see 1 Functions and Function Blocks for handling of time GetTime FUN Online Help GetTimeCS FUN Online Help DT CLOCK FB L 1054 DT ABS TO REL FB L 1054 DT REL TO ABS FB L 1054 Functions and Function Blocks for counter inputs and pulse outputs CNT FUD FB L 1054 CHANNEL 0 1 PTO PWM FB L 1054 CHANNEL 0 1 PTO_TAB FB L 1054 CHANNEL 0 1 Functions and Function Blocks for Serial interfaces SIO_INIT FB L 1054 PORT 0 1 2 9 SIO STATE FB L 1054 PORT 0 1 2 9 SIO READ CHR FB L 1054 PORT 0 1 2 9 SIO WRITE CHR FB L 1054 PORT 0 1 2 9 SIO READ STR FB L 1054 PORT 0 1 2 9 SIO WRITE STR FB L 1054 PORT 0 1 2 9 SIO READ BIN FB L 1054 PORT 0 1 2 9 SIO WRITE BIN FB L 1054 PORT 0 1 2 9 Functions and Function Blocks for CAN interfaces CANopen CAN GET LOCALNODE ID FB L 1008 NETNUMBER 0 1 CAN CANOPEN KERNEL STATE FB L 1008 NETNUMBER 0 1 CAN REGISTER COBID FB L 1008 NETNUMBER 0 1 CAN PDO READ8 FB L 1008 NETNUMBER 0 1 CAN PDO WRITE8 FB L 1008 NETNUMBER 0 1 CAN SDO READ8 FB L 1008 NETNUMBER 0 1 CAN SDO WRITE8 FB L 1008 NETNUMBER 0 1 CAN SDO READ STR FB L 1008 NETNU
46. guration file y n y Ok 2 11 2 11 DEL PLC PROG The command DEL PLC PROG deletes the saved PLC program in the PLC program backup archive Once done this cannot be undone This command has no parameters Example gt DEL PLC PROG Do you really want to delete the PLC program archive y n y Ok gt SYS TEC electronic GmbH 2015 L1515 4 Page 52 System Manual PLCcore F407 11 2 12 DEL NVDATA The command DEL NVDATA deletes all data variables stored in non volatile memory area Once done this cannot be undone This command has no parameters Example gt DEL NVDATA Do you really want to delete the NVDATA archive y n y Ok gt 11 2 13 DIR The command DIR allows you to see all available files saved in the Flash Files System This command has no parameters Example gt DIR File system directory hierarchy 0 7 plcdata PLCARCHV BIN 2320 Bytes PLCPDATA BIN 0 Bytes PC F407 cfg 317 Bytes gt 11 2 14 DUMP_FILE The command DUMP FILE prints out the contents of the given file in hexadecimal or in ASCII text form Command DUMP_FILE lt FileName a gt Table 30 Parameter for command DUMP_FILE Parameter Attribute Description FileName Mandatory Path to the file that should be dumped a Optional Print file as ASCII output instead of hex dump SYS TEC electronic GmbH 2015 L1515 4 Page 53 System Manual PLCcore F407
47. ilable connands type connand gt to get a nore detailed help for a connand Ctrl Eldit 1 0 Ctrl R Rlepeat la Conf igurat ion State The configuration loaded fron FLASH is vali gt help GET DEV CONFIG Display arre Device Conf igurat ion et CAN E ele et Extended et Hatchdog Ho Shou available Files and Directories Dunp File Content Delete File ORHAT FS sh KIT ELP Figure 28 Built in Configuration Command Shell The Configuration Shell uses the serial interface SIO0 of the PLCcore F407 On the Development Kit PLCcore F407 the interface SIOO is tunneled via USB on connector P200 To access the Configuration Shell connect the Development Kit to the PC using the USB cable delivered with the Kit On the PC side the virtual COM port driver delivered with the Kit CP210xVCPinstaller exe has to be installed This will add an additional virtual serial interface to the Host PC This allows for access to the Command Shell using a Terminal program Suitable as Terminal program would be HyperTerminal which is included in the Windows delivery or TeraTerm which is available as Open Source and meets higher demands downloadable from The Terminal program must be configured as follows see Figure 29 O SYS TEC electronic GmbH 2015 L1515 4 Page 45 System Manual PLCcore F407 e 115200 Baud e 8 Data bit e 1 Stop bit e no parity e noflow control Tera Term Serial port setup P
48. ind vvhat2 The PLCcore F407 is based on SYS TEC ECUcore F407 hardyvare and is extended by PLC specific functionality PLD software PLC firmware There are different hardware manuals for all hardware components such as the ECUcore F407 and the PLCcore F407 the hardware of both modules is identical development boards and reference circuitry Software sided the PLCcore F407 is programmed with IEC 61131 3 conform OpenPCS programming environment There are additional manuals for OpenPCS that describe the handling of programming tools and SYS TEC specific extensions Those are part of the software package OpenPCS Table 1 lists up all relevant manuals for the PLCcore F407 Table 1 Overview of relevant manuals for the PLCcore F407 Information about Basic information about the PLCcore F407 configuration administration process image connection assignment firmware update hardware description et cetera Basics about the OpenPCS IEC 61131 programming system Complete description of the OpenPCS IEC 61131 programming system basics about the PLC programming according to IEC 61131 3 Command overview and description of standard function blocks according to IEC 61131 3 SYS TEC extension for IEC 61131 3 String functions UDP function blocks SIO function blocks FBfor RTC Counter PWM PTO CANopen extension for IEC 61131 3 Network variables CANopen function blocks Textbook about PLC programming according to
49. k variables through appropriate inputs in the object dictionary of interface CAN1 SYS TEC electronic GmbH 2015 L1515 4 Page 30 System Manual PLCcore F407 Table 20 Representation of network variables for CANT by entries in the object dictionary OD section OD variable Data type CANopen Data type IEC 61131 3 EDS input Inputs inputs for the PLCcore F407 Index 2000H CAN1InByteO Unsigned8 BYTE USINT Sub 1 252 CAN1InByte251 Index 2001H CAN1InSInt0 Integer8 SINT Sub 1 252 CAN1InSInt251 Index 2010H CAN1InWordO Unsigned16 WORD UINT Sub 1 126 CAN1InWord125 Index 2011H CANIIninto Integer16 INT Sub 1 126 CAN1InInt125 Index 2020H CAN1InDwordO Unsigned32 DWORD UDINT Sub 1 63 CAN1InDword62 Index 2021H CAN1InDInto Integer32 DINT Sub 1 63 CAN1InDInt62 Outputs outputs for the PLCcore F407 Index 2030H CAN10OutByteO Unsigned8 BYTE USINT Sub 1 252 CAN1OutByte251 Index 2031H CAN1OutSinto Integer8 SINT Sub 1 252 CAN10utSInt251 Index 2040H CAN1OutWordO Unsigned16 WORD UINT Sub 1 126 CAN1OutWord125 Index 2041H CAN1Outinto Integer16 INT Sub 1 126 CAN10utInt125 Index 2050H CAN1OutDwordO Unsigned32 DWORD UDINT Sub 1 63 CAN1OutDword62 Index 2051H CAN1OutDiInto Integer32 DINT Sub 1 63 CAN10OutDInt62 The object dictionary of interface CAN1 in total has avail
50. l current consumption 3V3 Domain 250 000 450 000 mA VREF Reference voltage 3V3 VREF lt 1 2V 1 800 3V3 V IVREF VREF DC current consumption 300 000 500 000 JUA VBAT Backup operating voltage internal external RTC 1 800 3 600 V IVBAT Backup domain supply current E E TBD LA TA Operating Temperature Range 40 000 85 000 C 5 2 O characteristic The tables below show the most important characteristics of analog and digital in and outputs Table 5 Analog input characteristic VAIN Conversion voltage range 0 VREF V RAIN External input impedance E 50 KO CADC Internal sample and hold capacitor 4 pF Table 6 Analog output characteristic DAC OUT min Lower DAC OUT voltage 0 5 mV with buffer OFF DAC OUT min Higher DAC OUT voltage VREF V with buffer OFF 1LSB Ro Impedance output with buffer OFF i 15 ko CLOAD Capacitive load 50 000 pF O SYS TEC electronic GmbH 2015 L1515 4 Page 15 System Manual PLCcore F407 Table 7 Digital input characteristic VIL Input low level voltage GND 0 3 0 0 3 x 3V3 V VIH FT VO input high level voltage 0 7 x 3V3 3 300 5 200 V VIH TC I O input high level voltage 0 7 x 3V3 3 300 3 600 V 0 05 x Vhys IO FT Schmitt trigger voltage mV hysteresis 3V3 V likg I O FT input leakage current 3 000 uA CIO I O pin capacitance 5
51. ology All components included in the Kit enable in and output extensions of the PLCcore F407 through CANopen l O assemblies Thus the Development Kit may also be used for projects that require PLC with network connection The Development Kit PLCcore F407 contains the following hardware components PLCcore F407 Development Board for the PLCcore F407 USB cable CD with programming software examples documentation and other tools The Development Board included in the Kit facilitates quick commissioning of the PLCcore F407 and simplifies the design of prototypes for user specific applications based on this module Among other equipment the Development Board comprises different power supply possibilities Ethernet interface O SYS TEC electronic GmbH 2015 L1515 4 Page 11 System Manual PLCcore F407 CAN interface 4 push buttons and 4 LED as control elements for digital in and outputs and it comprises a potentiometer for the analog input Signals that are available from plug connectors of the PLCcore F407 are linked to pin header connectors and enable easy connection of own peripheral circuitry Hence the Development Board forms an ideal experimentation and testing platform for the PLCcore F407 The OpenPCS IEC 61131 programming system included in the Kit serves as software development platform and as debug environment for the PLCcore F407 Thus the module can either be programmed graphically in KOP FUB AS and CFC or textually in AWL o
52. on 11 Firmware updates see section 8 PLC program download and debugging Art no 3390093 only On the Development Kit PLCcore F407 the interface SIOO is tunneled via USB on connector P200 COM1 This interface can be used freely for general operation of the user program COM2 This interface can be used freely for general operation of the user program 7 4 2 CAN interfaces The PLCcore F407 features 2 CAN interfaces CANO and CAN1 CAN interfaces allow for data exchange with other devices via network variables and they are accessible from a PLC program via function blocks of type CAN Xxx see section 7 7 and User Manual CANopen Extension for IEC 61131 3 Manual no L 1008 Section 7 7 provides detailed information about the usage of the CAN interface in connection with CANopen 7 4 3 Ethernet interfaces The PLCcore F407 features 1 Ethernet interface ETHO It serves as service interface to administer the PLCcore F407 and enables data exchange with other devices The interface is accessible from a PLC program via function blocks of type LAN Xxx see manual SYS TEC specific Extensions for OpenPCS IEC 61131 3 Manual no L 1054 7 5 Specific peripheral interfaces 7 5 1 Counter inputs The PLCcore F407 features 2 fast counter inputs CO and C1 Prior to its usage all counter inputs must be parameterized via function block CNT FUD see manual SYS TEC specific Extensions for OpenPCS IEC 61131 3 Manual no
53. ort COM8 v Baud rate 115200 v Data 8 bit mj Cancel Parity none v Stop 1 bit Help Flow control none pe Transmit delay 0 msecichar 0 msecjline Figure 29 Terminal configuration using the example of TeraTerm To start the Configuration Shell of the PLCcore F 407 the following sequence is necessary 4 Both signals RESET and CONFIG see Table 11 must be set to active 5 Signal HESET has to become inactive while CONFIG must still be set active 6 Signal CONFIG has to become inactive too so that both signals RESET and CONFIG are in there normal operation state again On the Development Kit PLCcore F407 signal HESET is connected pushbutton RESET and CONFIG is connected to pushbutton CONFIG To start the Configuration Shell on a PLCcore F407 mounted to the Development Board the following sequence is necessary Press pushbutton RESET and hold it down Press pushbutton CONFIG while RESET is still down Release pushbutton RESET while CONFIG is still down Release pushbutton CONFIG DNDN After entering the Command Shell the status message should come up on the terminal window as shown in Figure 28 All inputs are case insensitive The HELP command gives you an overview about all commands available To get help for a specific command just enter HELP followed by the command name or type the command followed by an Press CTRL R to repeat the last command The command
54. ping CAN Identifier etc of the static object dictionary for interface CAN1 can take place from the PLC program by using SDO function blocks Therefore inputs NETNUMBER and DEVICE must be used as follows NETNUMBER DEVICE L Interface CANI 0 local Node x 7 8 Controller specific PLC Function Blocks 7 8 1 The Function Blocks SIO This group of function blocks controls the serial interfaces S OO SIO1 and SIO2 The function blocks are described in the manual L 1054 SYS TEC specific Extensions for OpenPCS IEC61131 3 This section gives additional information about the function block operands PORT and PROTOCOL depending on the interface Definition of the Operands PORT Number of serial interface to be used 0 SIO0 COMO RS232 12 SIO1 COM1 RS422 RS485 2 SIO2 COM2 RS232 PROTOCOL The PROTOCOL operand defines whether RS232 XON XOFF RS422 RS485 RTS CTS is used 0 RS232 available for SIOO SIO2 1 XON XOFF available for SIOO SIO1 2 Hardware Handshake via RTS CTS available for SIO2 3 RS485 available for SIO1 4 RS422 available for SIO1 O SYS TEC electronic GmbH 2015 L1515 4 Page 32 System Manual PLCcore F407 8 Updating the PLCcore F407 Firmware All necessary firmware components to run the PLCcore F407 are already installed on the module upon delivery Hence firmware updates should only be required in exceptional cases e g to input new software that includes ne
55. r LED lu iter Ium 27 E TED inem Lotte tetto eei ae 12 48 Ethernet characteristics 16 ARM cT 55 F FIiWare uu iii dise rias 33 Flash File System 53 FORMAT ES a 54 FUB idR 10 SYS TEC electronic GmbH 2015 G GET DEV CONFIG 47 GET LAST ERROR nana nane mee ee air 51 H HER sine ee ete 55 I I O characteristic 15 K KOP S 10 M Manuals Overview serre 7 O Open P S asi she dans shoes 10 Assign Network Connection 43 Installation itte 39 Network Connection 41 Operating conditions 15 P PINOU pi ae eee Rr aere ere ug 18 PO Wer ON Eva ena dvd 22 PRINT GFG FILE 52 Process Image Layout and Addressing 23 Pulse outputs 26 PW Moris dett rm dt 10 R POS la ik ue Hp kai Prosi vath 22 Run LED ia sette hi i veshni 27 S SET CAN CONFIG 48 SET CAN ERRLEV ne 49 SET CRC MODE NN 51 SET IP CONFIG 48 SET SSDL MODE 50 SET WDG MODE 50 e Me Te TNR 10 SAUD save dme iet otras 22 System Start aieo dtes 22 T Terminal Configuration 45 U Update e indue ir 33 USB RS232 Adapter Cable 14 W Watchdog necne teet 50 L1515 4 Page 59 System Manual PLCcore F407 Document Document number System Manual PLCcore F407 L1515 4 4 Edition June 2015
56. r LED2 X301 40 X301 44 X301 46 X30148 FTDO Do6 X301 50 7 sr i X303 36 FT DO 8 i No Pull No Pull No Pull No Pull No Pull No Pull No Pull No Pull ee ee AA Pp pO pO ER por PG GE PE pos No Pl x303 88 FTDO Dog NoPul x303 40 Fupo bor No Pl x303 42 FTDO DOWN x303 46 FT DO DOf2 x303 48 FT DO DOS x303 50 FT DO DOA x AE LA PVVMO 0000000 X303 52 FT DO DO15 IIA es X303 9 X303 11 X303 15 X303 17 No Pull X301 28 A PWMO No Pull X301 30 No Pull EEE o X301 23 FT AI AINO SE X301125 FA Jan 309 38 Fra farma SSCS Xsos4i FA ANS DET Xoos43 FAI Jana fNoPul 80825 FAI Jas ol QE ER Hm 4 EE No Pull No Pull No Pull No Pull No Pull No Pull No Pull No Pull No Pull No Pull No Pull X303 47 FT AI AIN6 No Pull X303149 FT AI AIN7 No Pull pS A x301 17 TC AO x301 19 TC AO No Pull No Pull SYS TEC electronic GmbH 2015 L1515 4 Page 21 System Manual PLCcore F407 7 PLC Functionality of the PLCcore F407 7 1 System start of the PLCcore F407 By default the PLCcore F407 loads all necessary firmware components upon Power on or Reset and starts running the PLC program afterwards Hence the PLCcore F407 is suitable for the usage in autarchic control systems In case of power breakdown
57. r ST Downloading the PLC program onto the module takes place via Ethernet or CANopen depending on the firmware that is used High capacity debug functionality such as watching and setting variables single cycles breakpoints and single steps simplify the development and commissioning of user software for this module 4 2 Electric commissioning of the Development Kit PLCcore F407 The Development Kit PLCcore F407 can be simply powered via USB P200 An external power adapter is only required for running the Development Kit PLCcore F407 stand alone without connection to a Host PC An USB cable is already included in the Kit delivery For commissioning the Kit it is essential to use at least USB P200 for power supply and configuration via virtual serial interface see section 11 and depending on the firmware version either ETHO X200 for order number 3390095 or CANO P2014 for order number 3390094 Table 2 provides an overview over the connections of the Development Kit PLCcore F407 Table 2 Connections of the Development Kit PLCcore F407 Connection Labeling on the Remark Development Board USB Power supply and P200 USB is used for COMO RS232 Power supply and Serial connection to run configuration shell e g setting CAN and IP configuration see section 11 Alternative X101 or X102 An external power supply 5 24V can be used Power Supply optionally for running the Development Kit PLCcore F407 stan
58. rammable in IEC 61131 3 Function block libraries for communication CANopen Ethernet and UART USART Function block libraries for hardware components RTC Counter PWM PTO Support of typical PLC control elements e g Run LED Error LED Small dimension 67 5x52 5 mm There are different types of firmware available for the PLCcore F407 They differ regarding the protocol used for the communication between Programming PC and PLCcore F407 SYS TEC electronic GmbH 2015 L1515_4 Page 9 System Manual PLCcore F407 Order number 3390094 PLCcore F407 Z4 CANopen communication vvith Programming PC via CANopen Protocol Interface CANO Order number 3390095 PLCcore F407 Z5 Ethernet communication vvith Programming PC via UDP Protocol interface ETHO Making PLC available as an insert ready core module vvith small dimensions reduces effort and costs significantly for the development of user specific controls The PLCcore F407 is also very well suitable as intelligent network node for decentralized processing of process signals CANopen and UDP Additionally it can be used as basic component for special assemblies or as PLC in hard to access areas The on board firmware of the PLCcore F407 contains the entire PLC runtime environment including CANopen connection with CANopen master functionality Thus the module is able to perform control tasks such as linking in and outputs or converting rule algorithms Data and occurrences can be
59. s E 1EC61131 3 Programming Industrial Automation Systems ControlX Editors E Resource Properties ALT ENTER Connections Compatible with Watch J Breakpoint gt Info POUs Variables XISYSTEC PLCcore F407 25 3390095 25 Cortex M4 under licence of 1996 2010 infoteam Software AG Germany svsrEC HMI 3570 13131000 Atmel ARM9 under licence of 1996 2010 infoteam Software AG Germany SYSTEC MBC 1784 13132000 Infineon TC1130 under licence of 1996 2010 infoteam Software AG Germany SYSTEC MBC 1793 13134000 Infineon TC1130 under licence of 1996 2010 infoteam Software AG Germany SYSTEC MBC 1797 13133000 Infineon TC1130 under licence of 1996 2010 infoteam Software AG Germany changing hardware to SYSTEC Standard PLC El E TU NUM Figure 27 OpenPCS Rebuild Active Resource O SYS TEC electronic GmbH 2015 L1515 4 Page 44 System Manual PLCcore F407 11 Configuration Command Shell 11 1 Entering the Configuration Command Shell The Configuration Command Shell herein after called Configuration Shell of the Controller provides a set of commands to read and write device configurations such as TCP IP address settings and CAN interface configurations F s Tera Term COM8 VT File Edit Setup Control Window Help type help to get a overvieu of all ava
60. s chapter 7 4 1 states the PLCcore F407 supports 3 different serial interfaces Each of them can be used by passing the corresponding interface number to the function block as PORT parameter The following list shows relation between the interface and the PORT parameter O SYS TEC electronic GmbH 2015 L1515 4 Page 58 System Manual PLCcore F407 Index A ACCOSSOL 5 vese vone in hae Arius 14 AT STE 10 B Baud tale ane ee 49 C CANO 12 29 48 A an aa aaa 48 CANOPEN EE 10 28 CANopen Chip 10 CANopen Master 10 CE conformity ssssssssseeeeee 6 A E E Aa 25 COMM e N A 12 COMA EE nia orion iaa 12 Command Description 47 Communication FB LL 23 Communication interfaces eer 25 Configuration Command Shell 45 Control Elements Error LED etes 27 R n b ED us ace ees 27 Counter ns a tes 10 Counter inputs sse 25 D DEL GPG FILE an cuni an ve it 52 DEE FILE itm sn liada 54 DEL NVDATA ann ana nene nese ese sene nenes 53 DEL PLC PROG cert 52 Development Board Connections us 12 Control Elements eese 13 Development Kit 11 KE ET 10 Dimension 9 gj c 53 pec 10 DU MPEIDE ciii in irat ines ai hi 53 E Electrical characteristic 15 EMC AW db ree 6 Erro
61. s how to install and configure the Open PCS environment for the PLCcore F407 explains the configuration command shell and the available commands This section not only includes the command names itself but also their parameters and shows some example configurations SYS TEC electronic GmbH 2015 L1515 4 Page 8 System Manual PLCcore F407 3 Product Description The PLCcore F407 as another innovative product extends the SYS TEC electronic GmbH product range vvithin the field of control applications In the form of an insert ready core module it provides to the user a complete and compact PLC Due to CAN and Ethernet interfaces the PLCcore F407 is best suitable to perform decentralized control tasks FERRER rn gt Figure 1 Top view of the PLCcore F407 These are some significant features of the PLCcore F407 High performance CPU kernel ARM 32 bit Cortex M4 168 MHz CPU Clock 210 DMIPS 192 KByte SDRAM Memory 1 MByte FLASH Memory 2x52 pin card edge Mini PCie connector footprint 1x 10 100 Mbps Ethernet LAN interface with on board PHY 2x CAN 2 0B interface usable as CANopen Manager CiA 302 conform 3x synchronous asynchronous serial ports USART 24 digital inputs 2 of these are usable as high speed counter with 1 direction and 1 input each 22 digital outputs 2 of these are usable as PWM PTO output with pulse dir 8 analog inputs 2 analog outputs On board peripherals RTC Temperature sensor Prog
62. sing the JP112 connector This connector is used to enable or disable the push buttons LED s and the analog input Figure 12 shows the position of JP112 Additionally this figure is also showing the position of the push buttons the LED s and the analog input represented by the potentiometer Figure 12 Positon of JP202 and JP212 for serial output JP112 consists of 10 jumpers mapped as follows Table 23 General jumper mapping LEDO LED3 JP101 JP104 SWO SW3 JP105 JP108 AIN Potentiometer JP110 Current Sense JP111 All jumpers are set by default So all push buttons LED s and analog inputs are enabled In order to disable a specific feature e g push button SW2 requires removing the corresponding jumper JP107 for SW2 O SYS TEC electronic GmbH 2015 L1515 4 Page 35 System Manual PLCcore F407 9 2 Serial Output The serial interfaces of the PLCcore F407 are controlled by JP212 COM1 and COM2 are additionally controlled by JP202 The positions of the corresponding jumpers are marked in the Figure 13 JP10t EXT ext Micro SD Card E Figure 13 Position of JP202 and JP212 for serial output SIOO refers to the UART USB Bridge COMO which is the default interface for the configuration shell and can be used for user output during runtime The interface is enabled when the first 2 jumpers from the left of JP212 are set Removing these jumpers is disabling this serial
63. test transfer time Default setting Example gt SET SSDWL MODE off OK 2 11 2 7 SET CRC MODE The command SET CRC MODE enables or disables the CRC check for saving loading the PLC resource Command SET CRC MODE CrcMode Table 29 Parameter for command SET CRC MODE on Enables the CRC mode CrcMode Mandatory off Disables the CRC mode Example gt SET CRC MODE off OK gt 11 2 8 GET LAST ERROR The command GET LAST ERROR prints detailed information about the last system error occurred This command has no parameters Example gt GET LAST ERROR ErrorCode 0 ErrorText Controller working normal Ok gt SYS TEC electronic GmbH 2015 L1515 4 Page 51 System Manual PLCcore F407 11 2 9 PRINT CFG FILE The command PRINT CFG FILE shows the content of the configuration file if the file exists Example gt PRINT CFG FILE ETHO IpAddr 192 168 10 180 SubnetMask 255 255 255 0 Gateway 192 168 10 1 PortNum 8888 CANO Enable 1 NodeID 0x20 Baudrate 1000 MasterMode 0 ErrLevel 2 CAN1 Enable 0 NodeID 0x30 Baudrate 1000 MasterMode 0 ErrLevel 2 PicSettings EnableExtIo 0 WatchdogMode 0 SnglSegDwlMode 0 CrcCheckMode 0 Ok 2 11 2 10 DEL CFG FILE The command DEL CFG FILE deletes the configuration file Once done this cannot be undone This command has no parameters Example gt DEL CFG FILE Do you really want to delete the device confi
64. to the programming system when a Watchdog event has occurred Watchdog guarding is inactive the off device does not react to any Watchdog events Example gt SET NDG MODE off OK 11 2 6 SET SSDWL MODE The command SET_SSDWL_MODE sets the mode for the transfer of a PLC program archive from the OpenPCS Programming System to the PLCcore F407 The command is described only for completeness The use of the command is very rarely needed Background A PLC program archive contains several segments of data To reduce the transfer time the segments are packed together to a container and the device sends only one ACK NAK for one container If the PC will not receive the ACK NAK within a defined timeout the connection will break with an error message The time between the transferred container and sending of the ACK NAK depends on the machine speed of the device In rare cases it can happen that is needed too long time for the processing of a container In this case the command SET_SSDL_MODE can be used to switch from container to a single segmented transfer mode Command SET SSDWL MODE lt SSDwlMode gt O SYS TEC electronic GmbH 2015 L1515 4 Page 50 System Manual PLCcore F407 Table 28 Parameter for command SET SSDWL MODE on A PLC program archive will be transferred vvith single segments single segment dovvnload SSDwiMode Mandatory off A PLC program archive will be transferred in a container This needs the shor
65. tput 7 3 2 Calculate current measurement The baseboard of the Development Kit PLCcore F407 features a current measurement circuit In the process image the value is located at AIN1 This value can be interpreted as follows 0 702127659574 1 32767 Value of AIN1 Current Consumption Current Measurement 0 1k Current Consumption in A AIN1 typically has a value around 6800 Hence the typical power consumption is 0 145 A 145 mA Please note that the value of AIN1 also depends on the current load of the module For instance enabling LED s increases the consumption 7 3 3 In and outputs of user specific baseboards The connection lines leading towards the outside provides to the user most effective degrees of freedom for designing the in output circuit of the PLCcore F407 Therewith all in and outputs of the PLCcore F407 can be flexibly adjusted to respective requirements This implicates that the process image of PLCcore F407 is significantly conditioned by the particular user specific in output circuit Please contact our support employee if you are interested in this option support systec electronic com SYS TEC electronic GmbH 2015 L1515 4 Page 24 System Manual PLCcore F407 7 4 Communication interfaces 7 4 1 Serial interfaces The PLCcore F407 features 3 serial interfaces COMO COM2 COMO This interface is used for communication between PC and PLC to allow for Configuration of module settings see secti
66. ulse train outputs Please note that the PTO becomes more inaccurate the higher the frequency is Hence it is not recommended to use the PTO with a frequency higher than 77 kHz Table 17 Characteristics of PWM PTO output Pulse Width Modulation PWM 32 Bit 65535 ms 15 mHz 2 us 500 kHz Pulse Train Output PTO 16 Bit 65 ms 15384 mHz 13 us 77 kHz O SYS TEC electronic GmbH 2015 L1515 4 Page 26 System Manual PLCcore F407 7 6 Control and display elements 7 6 1 Run LED green The module connection Run LED see Table 11 is designed for connecting a Run LED This Run LED provides information about the activity state of the control system The activity state is shown through different modes Table 18 Display status of the Run LED LED Mode PLC Activity State Off The PLC is in state Stop e the PLC does not have a valid program e the PLC has received a stop command from the OpenPCS programming environment or e the execution of the program has been canceled due to an internal error Quick flashing in The PLC is on standby but is not yet executing relation 1 8 to pulse e The PLC has received a start command from the OpenPCS programming environment but the local Run Stop switch is still positioned to Stop Slow flashing in The PLC is in state Run and executes the PLC program relation 1 1 to pulse Quick flashing in The PLC is in mode Reset relation 1 1 to pulse 7 6
67. utputs for the usage of the PLCcore F407 as PLC kernel In Table 3 control elements of the Development Board are listed and their meaning is described O SYS TEC electronic GmbH 2015 L1515 4 Page 13 System Manual PLCcore F407 Table 3 Control elements of the Development Board for the PLCcore F407 LED 1 LED1 Digital Output DO1 Process Image QX0 1 LED 2 LED2 Digital Output DO2 Process Image QxX0 2 LED 3 LED3 Digital Output DO3 Process Image QX0 3 Poti ADC AIN Analog Input AIO Process Image IW8 0 Run LED RUN Display of activity state of the PLC see section 7 6 1 Error LED ERROR Display of error state of the PLC see section 7 6 2 4 4 Optional accessory 4 4 1 USB RS232 Adapter Cable The SYS TEC USB RS232 Adapter Cable order number 3234000 provides a RS232 interface via an USB Port of the PC Together with a terminal program it enables the configuration of the PLCcore F407 from PCs e g laptop computers which do not have RS232 interfaces any more Figure 4 SYS TEC USB RS232 Adapter Cable O SYS TEC electronic GmbH 2015 L1515 4 Page 14 System Manual PLCcore F407 5 Electrical characteristic of the PLCcore F407 5 1 General operating conditions The following table shows the general operating conditions together with their respective operating range of the PLCcore F407 Table 4 General operating conditions 3V3 Standard operating voltage 3V3 3 135 13 300 13465 V 13V3 Tota
68. w functionality The PLCcore F407 Firmware includes the PLC Runtime System The Firmware can only be generated and modified by the producer it is not identical with the PLC user program which is created by the PLC user The PLC user program is directly transferred from the OpenPCS programming environment onto the module No additional software is needed An update of the PLC Firmware is made via SIOO of the PLCcore F407 On the PLCcore F407 Development Kit the interface SIOO is tunneled via USB on connector P200 Therefore connect the Development Kit to the PC using the USB cable delivered with the Kit On the PC side the virtual COM port driver delivered with the Kit CP210xVCPinstaller exe has to be installed This will add an additional virtual serial interface to the Host PC This allows for serial download the new firmware to the PLCcore F407 To set the PLCcore F407 in update mode the following sequence is necessary 1 Both signals RESET and BOOTO see Table 11 must be set to active 2 Signal RESET has to become inactive while BOOTO must still be set active 3 Signal BOOTO has to become inactive too so that both signals 7RESET and BOOTO are in there normal operation state again On the Development Kit PLCcore F407 signal HESET is connected pushbutton RESET and BOOTO is connected to pushbutton BOOT To set the PLCcore F407 in update mode the following sequence is necessary 1 Press pushbutton HESE

Download Pdf Manuals

image

Related Search

Related Contents

HA-P90SD    JT_SSD Techno_DF_Janvier 2011_V4.2  

Copyright © All rights reserved.
Failed to retrieve file