EUCHNER EKS-A-AIX-G18 Скачать руководство пользователя страница 20

Application EKS
Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3

20

(Application) AP000240-01-01/19

2. 

In the properties for the read (

Inputs

) module, click the 

Linked to...

 button .

Figure 22:  Properties of the read (

Inputs

) module

3. 

Select the input variable and click OK. To link the output variables, undertake steps 1-3 again for the write 

(Outputs)

 

module that is to be found in 

Solution Explorer

 in 

Term 3 (Write: 128 bytes)

.

Figure 23:  Adding the input variables

Содержание EKS-A-AIX-G18

Страница 1: ...EN Application Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 ...

Страница 2: ...ring the PROFINET network 8 7 2 Configuring the EKS with PROFINET interface 9 7 3 Setting the EKS parameters 11 7 4 Assigning PROFINET device names to the EKS 12 8 Using the BECKHOFF library 14 8 1 Installation of the library 14 8 2 Calling the library and description of the block interface 16 8 2 1 Calling the library 16 8 2 2 Description of the block interfaces 18 8 2 3 Complete EKS data type ca...

Страница 3: ... machines as well as setup and servicing staff possessing special expertise in handling safety components as well as expertise in the installation setup programming and diagnostics of programmable logic controllers PLC and bus systems 1 4 Supplementary documents The overall documentation for this application consists of the following documents Document title document number Contents Manual 2516210...

Страница 4: ...surement 1 0 TcProjectCompare 1 0 0 9 TcTargetBrowserPackage Extension 1 0 TcXaeDebuggerLiveWatch 1 0 TcXaeHelper 1 0 TcXaeModules 1 0 TwinCAT XAE Base 3 1 0 0 TwinCAT XAE EventLogger 1 0 TwinCAT XAE PLC 3 1 0 0 3 Functional description EKS PROFINET devices are read write systems with electronics for the inductive bidirectional interface to the transponder and the interface electronics The system ...

Страница 5: ...o 0 in the command byte Start address of user data byte no 0 4 8 112 Byte 2 Number of bytes Defines the number of bytes in the memory in the Electronic Key that are written on setting bit no 0 in the command byte Number of bytes of user data 4 8 12 116 bytes Byte 3 Not used Byte 4 Transmit data If bit no 0 in the command byte is set to 1 the content of these bytes is written to the Electronic Key ...

Страница 6: ...he EKS Design Related GSD file compact Order No 106305 106306 GSDML V2 31 Euchner EKS_3 x x_109539 YYYYMMDD xml modular Order No 122352 122353 GSDML V2 31 EUCHNER EKS_PN_modular_126145 YYYYMMDD xml You will find the GSD files in the download area at www euchner com Always use the latest GSD file Please proceed as follows to integrate the GSD file in TwinCAT 3 Open the path as shown in Figure 1 and...

Страница 7: ...ication EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 EN 6 Setting the control system parameters Specify the cycle time for the PlcTask Use the value 2 for this purpose Figure 2 Setting the control system parameters ...

Страница 8: ... EKS with PROFINET interface 7 1 Configuring the PROFINET network Add the PROFINET network as follows 1 In Solution Explorer click I O right click Devices and choose Scan Figure 3 Adding PROFINET network NOTE To undertake scans the TwinCAT must be in the Config Mode 2 Select the PROFINET controller and accept using OK Figure 4 Selection of PROFINET controller ...

Страница 9: ...as to whether a search is to be made for additional boxes devices Please answer this prompt with No because it cannot be ensured the correct EKS will be configured Figure 5 Rejecting search for devices 7 2 Configuring the EKS with PROFINET interface 4 Right click the PROFINET controller and then choose Add New Item Figure 6 Adding a device ...

Страница 10: ...ion of EKS with PROFINET interface in BECKHOFF TwinCAT 3 10 Application AP000240 01 01 19 5 Select the corresponding GSDML file Figure 7 Selection of the GSDML file 6 Select the corresponding EKS Figure 8 Selection of the EKS ...

Страница 11: ...EN 7 3 Setting the EKS parameters The following PROFINET parameters must be set Ì Ì Device name factory setting from GSD file eks pn Ì Ì IP address fixed Figure 9 PROFINET parameters Ì Ì IO cycle real time settings These values are already set to the recommended default values Figure 10 PROFINET real time settings ...

Страница 12: ...ice names to the EKS There are two ways of assigning a device name to the EKS Either using the EKS web browser see manual or using TwinCAT In the following we show name assignment using TwinCAT 1 To assign the name to the EKS using TwinCAT please right click the PROFINET controller and then choose Scan Figure 11 Searching for devices online ...

Страница 13: ...F TwinCAT 3 EN 2 Select the EKS from the list Enter the device name in Stationname and accept using Set Stationname Figure 12 Assigning device name TIP As an alternative to MAC address comparison you can use Start Signal to see whether you have selected the correct subscriber The LED flashes on the EKS ...

Страница 14: ...s pre prepared data that you can then use Open the page with the EKS applications in the download area at www euchner com and download the library for the EKS 8 1 Installation of the library 1 Click the PLC tab and open the Library Repository 2 Install the library and select the path where you have saved the library Figure 13 Installing library NOTE As soon as the library is installed it is displa...

Страница 15: ...OFINET interface in BECKHOFF TwinCAT 3 EN 3 Next you must add the library to the project In Solution Explorer right click References and then choose Add library Figure 14 Adding library to the project 4 Select the library prepared by EUCHNER Figure 15 Selection of the library ...

Страница 16: ...k and select the programming section You can select the blocks with the aid of the Input Assistant that can be opened using the right mouse button or the F2 key Figure 16 Opening the Input Assistant 2 You will find the library on the Categories tab Select Function Blocks You will find the EUCHNER library in the window on the right You can select two function blocks from the library EKS_Read is req...

Страница 17: ... Then you can repeat this process step 1 to 3 for the data type EKS_Write Figure 18 Declaring the data type 4 The program must now be built In this way the input and output variables for the project are generated these variables must be linked later to the read and write submodules Click the BUILD tab and select Build Solution or use the shortcut Ctrl Shift B Figure 19 Automatically generated inpu...

Страница 18: ...ite process Job_in_progress BOOL Indicates that a write process is in progress Receive_data ARRAY 0 123 OF BYTE Electronic Key data Table 1 Read block interface Parameter Data type Description Write_Electronic_Key BOOL Set this bit to issue the write command Start_address BYTE Defines the first byte to be written in the memory in the Electronic Key Number_of_bytes BYTE Defines the number of bytes ...

Страница 19: ... Linking the input and output areas in EKS The read Inputs and write Outputs modules must be linked using the variables generated in chapter 8 2 1 1 In Solution Explorer open the tree as shown below Double click the read Inputs module to open the properties Figure 21 EKS read Inputs module in the hardware configuration ...

Страница 20: ...es for the read Inputs module click the Linked to button Figure 22 Properties of the read Inputs module 3 Select the input variable and click OK To link the output variables undertake steps 1 3 again for the write Outputs module that is to be found in Solution Explorer in Term 3 Write 128 bytes Figure 23 Adding the input variables ...

Страница 21: ...Electron ic Key in the Electronic Key adapter The Electronic Key data are transferred cyclically to the PLC Figure 24 Reading Electronic Key data example 10 3 Writing content of the memory in the Electronic Key using the block interface The same block interface has been prepared such that data can also be written to the Electronic Key For this purpose the start address and the number of bytes must...

Страница 22: ... This application must be regarded only as assistance for the considerations about safety measures The design engineer of a machine installation has the obligation to assess the safety technology him herself The exam ples must not be used for an assessment because only a small excerpt of a complete safety function was considered in terms of safety engineering here In order to be able to use the sa...

Страница 23: ...23 AP000240 01 01 19 Application Application EKS Integration of EKS with PROFINET interface in BECKHOFF TwinCAT 3 EN ...

Страница 24: ... KG Kohlhammerstraße 16 D 70771 Leinfelden Echterdingen info euchner de www euchner com Edition AP000240 01 01 19 Title Application EKS IntegrationofEKSwithPROFINETinterfaceinBECKHOFFTwinCAT3 Copyright EUCHNER GmbH Co KG 01 2019 Subject to technical modifications no responsibility is accept ed for the accuracy of this information ...

Отзывы: