Programming Manual IO-Link Master With AS-Interface Interface . - Ifm

1y ago
5 Views
1 Downloads
773.96 KB
58 Pages
Last View : 30d ago
Last Download : 3m ago
Upload by : Josiah Pursley
Transcription

Programming Manual IO-Link Master with AS-Interface Interface StandardLine AC6000 AC6001 AC6002 AC6003 ifm AC600x Lib: 1.0.0.11 CODESYS Development System: 3.5 SP9 Patch 7 Hotfix 3 or higher 80293948 / 00 04 / 2020 English

IO-Link Master with AS-Interface Interface StandardLine Contents 1 Preliminary note 1.1 1.2 1.3 1.4 Legal and copyright information .4 Symbols used.5 Warnings used .5 Modification history .5 2 Safety instructions 2.1 System requirements 3.1 3.2 Installation 4.1 Getting started 5.1 5.2 5.3 Programming 6.1.1 6.1.2 6.2.1 6.4.1 7 2 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.1.10 7.1.11 11 Notes on programming .11 Optional: Changing the AS-i address . 11 Optional: Adjusting the gateway profile . 11 Configuring IO-Link ports .12 Note: Device validation and data storage . 12 Reading / writing parameters of the IO-Link devices .13 Reading / writing process data.13 Note: Using cyclic process data . 13 Reading identification and diagnostic information .15 Reading IO-Link events .15 Resetting the IO-Link master .15 Firmware update .15 Appendix 7.1 9 Preparations .9 Creating a project .9 Integrating the library for the AC600n in the project .10 6 6.5 6.6 6.7 6.8 8 Installing the CODESYS library for AC600n .8 5 6.3 6.4 7 Hardware .7 Software .7 4 6.2 6 Required background knowledge .6 3 6.1 4 16 CODESYS library ifm AC600x Lib .17 qFactoryReset (FB) . 18 qReadDevName (FB) . 21 qReadDiagnosisData (FB). 24 qReadInputPD (FB) . 26 qReadIOLParameter (FB) . 28 qReadIOLPortsCfg (FB) . 30 qReadIOLPortsCfgErr (FB) . 32 qReadOutputPD (FB) . 34 qWriteIOLParameter (FB). 36 qWriteIOLPortsCfg (FB) . 38 qWriteOutputPD (FB) . 40

IO-Link Master with AS-Interface Interface StandardLine 7.1.12 7.1.13 7.1.14 7.1.15 7.1.16 8 qWritePortFailsafePattern (FB) . 42 FWUpdate (FB) . 44 InterpretBasicSlaveData (FB) . 47 Complex variables (STRUCT) . 49 Enumeration types (ENUM). 53 Index 58 3

IO-Link Master with AS-Interface Interface StandardLine 1 Preliminary note Content Legal and copyright information .4 Symbols used .5 Warnings used .5 Modification history .5 33203 1.1 Legal and copyright information 33117 All rights reserved by ifm electronic gmbh. No part of this manual may be reproduced and used without the consent of ifm electronic gmbh. All product names, pictures, companies or other brands used on our pages are the property of the respective rights owners: AS-i is the property of the AS-International Association, ( www.as-interface.net) CAN is the property of the CiA (CAN in Automation e.V.), Germany ( www.can-cia.org) CODESYS is the property of the 3S – Smart Software Solutions GmbH, Germany ( www.codesys.com) DeviceNet is the property of the ODVA (Open DeviceNet Vendor Association), USA ( www.odva.org) EtherNet/IP is the property of the ODVA EtherCAT is a registered trade mark and patented technology, licensed by Beckhoff Automation GmbH, Germany IO-Link is the property of the PROFIBUS Nutzerorganisation e.V., Germany ( www.io-link.com) ISOBUS is the property of the AEF – Agricultural Industry Electronics Foundation e.V., Deutschland ( www.aef-online.org) Microsoft is the property of the Microsoft Corporation, USA ( www.microsoft.com) Modbus is the property of the Schneider Electric SE, France ( www.schneider-electric.com) PROFIBUS is the property of the PROFIBUS Nutzerorganisation e.V., Germany ( www.profibus.com) PROFINET is the property of the PROFIBUS Nutzerorganisation e.V., Germany Windows is the property of the Microsoft Corporation, USA 4

IO-Link Master with AS-Interface Interface StandardLine 1.2 Symbols used 58277 Important note Non-compliance can result in malfunction or interference Information Supplementary note . Request for action Reaction, result . . "see" abc Cross-reference 123 0x123 0b010 Decimal number Hexadecimal number Binary number [.] Designation of pushbuttons, buttons or indications 1.3 Warnings used 58278 WARNING Warning of serious personal injury. Death or serious irreversible injuries may result. CAUTION Warning of personaly injury. Slight reversible injuries may result. NOTICE! Warning of damage to property 1.4 Modification history 34492 Version Topic Date 00 New creation of document 04/2020 5

IO-Link Master with AS-Interface Interface StandardLine 2 Safety instructions Content Required background knowledge .6 28333 2.1 Required background knowledge 42525 This document is intended for people with knowledge of control technology and PLC programming to IEC 61131-3. To program the PLC, these people should also be familiar with the CODESYS software. This document is intended for specialists. Specialists are people who, based on their relevant training and experience, are capable of identifying risks and avoiding potential hazards that may be caused during operation or maintenance of the product. The document contains information about the correct handling of the product. Read this document before use to familiarise yourself with operating conditions, installation and operation. Keep this document during the entire duration of use of the device. Follow the safety instructions. 6

IO-Link Master with AS-Interface Interface StandardLine 3 System requirements Content Hardware .7 Software.7 38972 3.1 Hardware 59364 AS-i master: SmartSPS AC14 DataLine (AC1403/04, AC1423/24, AC1433/34) or AS-i gateway AC14 (AC1401/02, AC1411/12, AC1421/22) IO-Link master: AC600n (AC6000/01, AC6002/03) PC/laptop for CODESYS development system 3.2 Software 59365 CODESYS development system, version 3.5 SP9 patch 7 or higher CODESYS package for AC14: "CODESYS for SmartPLC AC14 DataLine", version 1.6.4.4 or higher "CODESYS for SmartPLC AC14 StandardLine", version 1.6.4.4 or higher CODESYS library for AC600n "ifm AC600x Lib", version 1.0.0.1 or higher The features and functions described in this manual can only be obtained by using the software components in the versions stated here. ifm offers the software component for download on its website ( www.ifm.com) 7

IO-Link Master with AS-Interface Interface StandardLine 4 Installation Content Installing the CODESYS library for AC600n.8 42637 4.1 Installing the CODESYS library for AC600n 59366 ifm offers the function library "ifm AC600n Lib" for the programming system CODESYS. The library offers the following functionality: Function blocks to configure and administer the IO-Link master and the IO-Link ports of the AC600n Function blocks to configure the connected IO-Link devices Function blocks to read and write process values of the IO-Link ports Data structures (enumeration types (ENUM) Structure variables (STRUCT) To install the CODESYS library for the AC600: Requirements: CODESYS development system has been installed correctly on the PC / laptop. CODESYS package for AC14 has been correctly installed. CODESYS library for the AC600n has been downloaded. Start CODESYS with administrator rights. Select [Tools] [Library repository .]. Dialogue window [Library repository] appears. Click on [Install.]. Select "ifm AC600n Lib" and click on [Open] to start the installation. The library will be installed. 8

IO-Link Master with AS-Interface Interface StandardLine 5 Getting started Content Preparations .9 Creating a project .9 Integrating the library for the AC600n in the project .10 59367 5.1 Preparations 59368 Please note the following documents: Device manual and programming manual SmartPLC AC14 / AS-i gateway AC14 Operating instructions AC600n Ensure that the following conditions are met: AS-i network with AC14 (AS-i master) and AC600n (AS-i slave) has been configured. AS-i address and gateway profile of the AC600n have been set according to the requirements. AC14 works in the "protected mode". CODESYS PC and AC14 are connected via Ethernet cable. The programming interface between the CODESYS PC and the AC14 has been configured correctly. The CODESYS PLC of the AC14 is enabled. The CODESYS PLC has write access to the AS-i outputs. 5.2 Creating a project 59369 Requirements: CODESYS Development System has been started. Open project with SmartPLC AC14 / AS-i gatewayAC14. OR Select [File] [New Project.]. Select suitable template and click [OK]. CODESYS generates a project with SmartPLC AC14 / AS-i gateway AC14. Device tree shows standard project with SmartPLC AC14 / AS-i gateway AC14. Significance of the project objects: Programming manual AC14 With the project template, the function libraries "ACnnnn Utils" and "ACnnnn SYS CMD" for the AC14 will be linked automatically into the project. 9

IO-Link Master with AS-Interface Interface StandardLine 5.3 Integrating the library for the AC600n in the project 59370 To use the functions and elements of the function library for the AC600n, the user must link the installed library into the CODESYS project. In the device tree of the project: Open [Library Manager]. The library manager shows the libraries that are linked into the project. Click on [Add library]. A dialogue window appears. Select the library "ifm AC600x Lib" and click on [OK] to confirm the selection. CODESYS integrates the library "ifm AC600x Lib" into the project. The user can use the elements of the library in the CODESYS project. 10

IO-Link Master with AS-Interface Interface StandardLine 6 Programming Content Notes on programming .11 Configuring IO-Link ports.12 Reading / writing parameters of the IO-Link devices .13 Reading / writing process data .13 Reading identification and diagnostic information .15 Reading IO-Link events .15 Resetting the IO-Link master .15 Firmware update .15 59371 6.1 Notes on programming 59372 The FBs of the library "ifm AC600x Lib" use the FB "ACnnnn SysCmd". This is why all function blocks are executed as acyclic commands. Make sure that the ifm package has been installed for the AC14 device that is used. 6.1.1 Optional: Changing the AS-i address 59373 The user can set the AS-i address of the AC600n with functions of the AS-i master. In addition, the user can change the address of the basic AS-i slave within a CODESYS application using the following function blocks: FB "Set SlaveAddress" FB "ACnnnn SysCmd" (change AS-i slave address with command 0x1006) After the address has been changed, the AS-i master shows a configuration error. Reconfigure the AS-i network. 6.1.2 Optional: Adjusting the gateway profile 59374 The gateway profile determines which process data of the IO-Link ports is transmitted cyclically between the IO-Link master and the AS-i network. The user can adjust the adequate gateway profile using the ID1 code of the basic AS-i slave. The process data is transmitted in the analogue channels of the additional AS-i slaves (mapping: Operating instructions of the AC600n). The user can set the ID1 code of the basic AS-i slave using functions of the AS-i master. In addition, the user can change the ID1 code of the basic AS-i slave within a CODESYS application using the following function blocks: FB "Set SlaveExtendedID1" FB "ACnnnn SysCmd" (with command "0x1009 – change extended ID1 of the AS-i slave") After the ID1 code has been changed, the AS-i master shows a configuration error. Reconfigure the AS-i network. 11

IO-Link Master with AS-Interface Interface StandardLine 6.2 Configuring IO-Link ports 59375 The configuration of an IO-Link port consists of the following parameters: Operating mode (IO-Link, digital input, digital output, disabled) Cycle time of the data transmission between the IO-Link master and the IO-Link device Data storage of the IO-Link device configuration for automatic recovery Device validation for connected IO-Link devices (validation ID) Vendor and device ID for active device validation Fail-safe values in case the AS-i connection is interrupted Available functions: Name Description Reference qReadIOLPortsCfg Read current configuration of all IO-Link ports qReadIOLPortsCfg (FB) ( S. 30) qWriteIOLPortsCfg Write the configuration of all IO-Link ports qWriteIOLPortsCfg (FB) ( S. 38) qWritePortFailsafePattern Set fail-safe values qWritePortFailsafePattern (FB) ( S. 42) qReadIOLPortsCfgErr Read configuration errors of the IO-Link ports qReadIOLPortsCfgErr (FB) ( S. 32) 6.2.1 Note: Device validation and data storage 59312 The user can choose how the IO-Link ports are to behave with regard to the device validation and the storage / recovery of parameter data of the connected IO-Link device. The following options are available: Validation of the IO-Link device Option Storage of the parameter values Recovery of the parameter values [No check and clear] no no no [Type compatible V1.0 device] yes, test the compatibility with IO-Link standard V1.0 no no [Type compatible V1.1 device] yes, test the compatibility with IO-Link standard V1.1 no no [Type compatible V1.1 device with Backup Restore] yes, test the compatibility with IO-Link standard V1.1 and identity of design (vendor ID and device ID) yes, automatic storage of the parameter values; changes of the current parameter values will be stored yes, recovery of the parameter values when connecting an identical IO-Link device with factory settings [Type compatible V1.1 device with Restore] yes, test the compatibility with IO-Link standard V1.1 and identity of design (vendor ID and device ID) no, there is no automatic storage changes of the current parameter values will not be stored yes, recovery of the parameter values when connecting an identical IO-Link device with factory settings The options only apply if the IO-Link port is in the operating mode "IO-Link". For options [Type compatible V1.1 device with Backup Restore] and [Type compatible V1.1 device with Restore]: If the vendor ID and device ID are changed in the online mode, the data memory will be deleted and a new backup of the parameter values of the connected IO-Link device will be created in the IO-Link master. 12

IO-Link Master with AS-Interface Interface StandardLine 6.3 Reading / writing parameters of the IO-Link devices 59376 The parameters of an IO-Link device can be set using ISDU via IO-Link index and subindex. The "IO-Link Device Description" (IODD) contains all available parameters of an IO-Link device as well as their indexes and sub-indexes: Operating instructions of the IO-Link device Requirements: AC600n is integrated in the AS-i network. IO-Link port is in the operating mode "IO-Link". IO-Link device is connected to the IO-Link port of the AC600n. Available functions: Name Description Reference qReadIOLParameter Read the parameters of an IO-Link device qReadIOLParameter (FB) ( S. 28) qWriteIOLParameter Write the parameters of an IO-Link device qWriteIOLParameter (FB) ( S. 36) 6.4 Reading / writing process data 59377 Available functions: Name Description Reference qReadInputPD Read the process data of the inputs qReadInputPD (FB) ( S. 26) InterpretBasicSlaveData Read digital input data on pin 2 and/or pin 4 of the IO-Link port InterpretBasicSlaveData (FB) ( S. 47) qWriteOutputPD Write process data of the outputs qWriteOutputPD (FB) ( S. 40) qReadOutputPD Read back process data of the outputs qReadOutputPD (FB) ( S. 34) 6.4.1 Note: Using cyclic process data 59378 In the "protected mode", the process data of the IO-Link ports is mapped cyclically to the following nodes in the device tree of the project: 13

IO-Link Master with AS-Interface Interface StandardLine Input data: AS-i master 1: [ASi 1 analogIO] [ASi Input[x]] [Channel [0.3]] AS-i master 2: [ASi 2 analogIO] [ASi Input[x]] [Channel [0.3]] Output data: AS-i master 1: [ASi 1 analogIO] [ASi Output[y]] [Channel [0.3]] AS-i master 2: [ASi 2 analogIO] [ASi Output[y]] [Channel [0.3]] If the IO-Link ports have been configured as “Digital Input” or “Digital Output”, the digital switching states will be transmitted in the first word of the process data of the corresponding IO-Link port (0x0000 OFF, 0x0100 ON). To use the cyclic process data in the CODESYS application: In the application: declare variables (data type: WORD). In the device tree: double-click on [ASi 1 analogIO] or [ASi 2 analogIO] Detailed view shows mapping settings of the AS-i inputs and outputs. Map analogue I/O channels of the additional AS-i slaves to the declared variables. The application can access cyclical process data via variables. Example: System configuration with following devices and settings: IO-Link master: AC6002 (AS-i address: 4; ID1 code: 0xA) Mapping of the process data for ID1 code 0xA: Port X02 1 0 1 0 Channel 0 Channel 1 0 Channel 2 1 Basic Slave (n) Channel 3 Channel 0 0 Channel 1 1 Channel 2 Channel 0 Port X01 Channel 1 Add. Slave (n 1) Channel 2 Add. Slave (n 2) Channel 3 AS-i master: AC1421 Channel 3 Status information green input data red output data Mapping of the process data in the device tree: Input data: Port X01: [ASi 1 analogIO] [ASi Input[5] [Channel [0.1]] Port X02: [ASi 1 analogIO] [ASi Input[5] [Channel [2.3]] Output data: Port X01: [ASi 1 analogIO] [ASi Output[6] [Channel [0.1]] Port X02: [ASi 1 analogIO] [ASi Output[6] [Channel [2.3]] 14

IO-Link Master with AS-Interface Interface StandardLine 6.5 Reading identification and diagnostic information 59379 Available functions: Name Description Reference qReadDevName Read device information of the IO-Link master qReadDevName (FB) ( S. 21) InterpretBasicSlaveData Read the status information of the basic AS-i slave InterpretBasicSlaveData (FB) ( S. 47) 6.6 Reading IO-Link events 59380 The AC600n receives event messages of the IO-Link devices. The messages signal the occurrence of specific events (errors, warnings, information). Available functions: Name Description Reference qReadDiagnosisData Event messages have been received (IO-Link Events ) qReadDiagnosisData (FB) ( S. 24) 6.7 Resetting the IO-Link master 59381 The user can reset the AC600n to factory settings. Available functions: Name Description Reference qFactoryReset Read device information of the IO-Link master qFactoryReset (FB) ( S. 18) 6.8 Firmware update 59382 When the firmware of the IO-Link master is updated, the set parameters values will be kept. During the firmware update, no process data of the IO-Link will be transmitted. When the firmware has been updated, the AC600n will restart automatically. Make sure that the system / the plant is in a safe state during the firmware update. Available functions: Name Description Reference FWUpdate Read the status information of the basic AS-i slave FWUpdate (FB) ( S. 44) 15

IO-Link Master with AS-Interface Interface StandardLine 7 Appendix Content CODESYS library ifm AC600x Lib .17 33879 16

IO-Link Master with AS-Interface Interface StandardLine 7.1 CODESYS library ifm AC600x Lib Content qFactoryReset (FB) .18 qReadDevName (FB) .21 qReadDiagnosisData (FB).24 qReadInputPD (FB) .26 qReadIOLParameter (FB) .28 qReadIOLPortsCfg (FB) .30 qReadIOLPortsCfgErr (FB) .32 qReadOutputPD (FB) .34 qWriteIOLParameter (FB).36 qWriteIOLPortsCfg (FB) .38 qWriteOutputPD (FB) .40 qWritePortFailsafePattern (FB) .42 FWUpdate (FB) .44 InterpretBasicSlaveData (FB) .47 Complex variables (STRUCT) .49 Enumeration types (ENUM).53 52021 17

IO-Link Master with AS-Interface Interface StandardLine 7.1.1 qFactoryReset (FB) 52023 Function block type: Function block (FB) Library: ifm AC600x Lib.library Symbol in CODESYS: Description 52025 The FB resets the following parameters to factory settings Configuration of the IO-Link ports X01.X04 AS-i address of the basic slave ID1 of the AS-i basic slave After the reset, the IO-Link master will reboot. Input parameter 52026 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE Don't execute FB TRUE Start one-time FB execution enASi Master asiMaster Identifier for AS-i master asiMaster (ENUM) ( S. 53) enBasicSlaveAddr BasicSlave Address Identifier for AS-i slave BasicSlaveAddress (ENUM) ( S. 53) 18

IO-Link Master with AS-Interface Interface StandardLine Output parameters 52029 Parameter Data type Description Possible values xWaiting BOOL Signal indicates whether the FB is waiting for a free resource for processing FALSE FB is executed or is inactive. TRUE FB is waiting for free resources. xReady xBusy xError wDiagnostic BOOL BOOL BOOL WORD Signal indicates whether the execution FALSE of the FB is completed. Signal indicates whether the FB is being executed. Signal indicates whether errors occurred while the FB was executed. Diagnostic information FB is inactive or being executed. TRUE FB execution is completed. FALSE FB is deactivated or FB execution is completed. TRUE FB execution has started but is not yet completed. FALSE FB is disabled or is being executed or FB was executed without error. TRUE An error occurred while the FB was executed. List below (Diagnostic codes) 19

IO-Link Master with AS-Interface Interface StandardLine Diagnostic codes: 0x0004 Acyclic access blocked by other command 0x0007 Wrong Target ID 0x0008 Invalid parameter length 0x0009 Parameter value not in range 0x000A Wrong Block ID 0x000B See additional Information 0xCF01 ACnnnn SysCmd (Acyclic Read) - Unknown error 0xCF02 ACnnnn SysCmd (Acyclic Read) - Unknown/Invalid Target 0xCF03 ACnnnn SysCmd (Acyclic Read) - Unknown command ID 0xCF04 ACnnnn SysCmd (Acyclic Read) - Invalid parameters 0xCF05 ACnnnn SysCmd (Acyclic Read) - Timeout during proccessing 0xDF01 ACnnnn SysCmd (Acyclic Write) - Unknown error 0xDF02 ACnnnn SysCmd (Acyclic Write)

IO-Link Master with AS-Interface Interface StandardLine . AC6000 AC6001 AC6002 AC6003. ifm_AC600x_Lib: 1.0.0.11 CODESYS Development System: 3.5 SP9 Patch 7 Hotfix 3 or higher English . IO-Link Master with AS -Interface Interface StandardLine 2 Contents 1 Preliminary note 4

Related Documents:

jpeg/png/wmf/ti /. Four major graphic environments Low-level infrastructure R Base Graphics (low- and high-level) grid: Manual Link, Book Link High-level infrastructure lattice: Manual Link, Intro Link, Book Link ggplot2: Manual Link, Intro Link, Book Link Graphics and Data Visualization in R

transmitted through IO-Link (IO-Link master). The IO-Link modules can be connected to any IO-Link master and thus enable a set-up of distributed I/O module units that are field-bus-independent. IO-Link modules Software IO-Link software tools and functional modules ensure standardised and efficient engineering and visualisation of diagnostic

11 I Blue Link User’s Manual Blue Link User’s Manual I 12 Using Blue Link in Your Car Standard Rearview Mirror Controls for Blue Link in-vehicle voice-response use are located on the rearview mirror. Press the Blue Link button for access to the voice-response menu of services: Service Link Roadside Assistance Blue Link Account Assistance

About this Programming Manual The PT Programming Manual is designed to serve as a reference to programming the Panasonic Hybrid IP-PBX using a Panasonic proprietary telephone (PT) with display. The PT Programming Manual is divided into the following sections: Section 1, Overview Provides an overview of programming the PBX. Section 2, PT Programming

TP-Link TC-7610 Setup and Admin Login Guide TP-Link TC-7610 Setup and Admin Login Guide . TP-Link RE450 AC1750 Wi-Fi Range Extender Manual TP-Link RE450 AC1750 Wi-Fi Range Extender Manual TP-Link Technologies Co.,. 5. tp-link TL-WR90N 450Mbps Wireless N Router U

Site Master is the preferred cable and antenna analyzer of wireless providers, contractors and installers. Site Master S331D/S332D Cable and Antenna Analyzer MS2712 MS2712 MS2712 SiteMaster SpectrumMaster CellMaster S331D Site Master Site MasterMS2711D Spectrum Master Spectrum MT8212A Cell Master CellMaster Color display option shown. Programming Manual

USB-Link IDSC Holdings LLC retains all ownership rights to the USB-Link and its documentati on. The USB-Link source code is a confidential trade secret of ID SC Holdings LLC. You may not decipher or decompile USB-Link software, develop source code for the USB-Link, or know ingly allow others to do so. The USB- Link and its documentation may .

2 PT Programming Manual Introduction About this Programming Manual The PT Programming Manual is designed to serve as a reference to programming the Panasonic Hybrid IP-PBX using a Panasonic proprietary telephone (PT) with display. The PT Programming Manual is divided into the following sections: Section 1, Overview