Home
40 Profinet IO (RT/IRT)
Contents
1. Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 ADI number low byte Read Reference to the ADI previously mapped with Data 1 ADI number high byte Read Map_ADI_Read_Area Data 2 First ADI element Read Reference to the first ADI element associated with the submodule Range 0 to 255 ADI element 0 is the first element Data 3 Number of consecutive ADI elements Number of consecutive elements associated with the Read submodule Range 1 to 255 Number of elements Data 4 ADI number low byte Write Reference to the ADI previously mapped with Data 5 ADI number high byte Write Map_ADI_Write_Area Data 6 ADI element Write Reference to the first ADI element associated with the submodule Range 0 to 255 ADI element 0 is the first element Data 7 Number of consecutive ADI elements Number of consecutive elements associated with the Write submodule Range 1 to 255 Number of elements Data 8 API low word low byte Application Process Instance API Data 9 API low word high byte Data 10 API high word low byte Ses also f Data 11 API high word high byte Application Process Instances API on page 22 Data 12 SlotNr low byte Destination slot for submodule Data 13 SlotNr high byte Range 0 OX7FFF Data 14 SubSlotNr low byte Destination subslot for submodule Range Data 15 SubSlotNr high byte For API 0 1
2. Order no Hardware revision level Software revision level Name Interface IV Prioritized startup Cancel p Heip y 3 Return to the HW Config window Double click on Port 1 in the Module column The Genera Adkresses Topology Optone window shown to the right will appear Choose master Transmission medium duplex TP 2 ITP 100 Mbps full duplex the Options tag To configure fastest possible startup choose transmission medium duplex TP ITP 100 Mbps full duplex and check the Disable autonegotiation box 4 Repeat for Port 2 Cancel Help 3 8 Address Conflict Detection ACD The Anybus CompactCom 40 PROFINET IO module supports Address Conflict Detection ACD This mechanism involves the following two aspects Initial probing before using an IP address the module issues ARP probes to see if the address is already in use three probes with a 100 ms delay e Address announcement after the initial probing the module issues ARP announcements If an IP address conflict is detected IP address error will be indicated on the Network Status LED The module will use address 0 0 0 0 A new address can be configured via the Anybus IPconfig tool IMPORTANT If Fast Start Up is used ACD initial probing is automatically disabled to ensure a fast startup Address announcement is still used as it will not affect the actual startup time To enable disable ACD see Et
3. nection to be closed with the FIN flag instead e Command Details Field CmdExt 0 Contents Instance number to delete low CmdExt 1 Instance number to delete high Comments Instance number of socket that shall be deleted e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 105 Command Details Bind Category Advanced Details Command Code 10h Valid for Instance Description This command binds a socket to a local port Command Details Field Contents Comments CmdExt 0 Requested port number low Set to 0 zero to request binding to any free port CmdExt 1 Requested port number high e Response Details Field Contents Comments CmdExt 0 Bound port number low Actual port that the socket was bound to CmdExt 1 Bound port number high Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 106 Command Details Shutdown Category Advanced Details Command Code 11h Valid for Instance Description This command closes a TCP connection using the FIN flag Note that the response does not indicate if the connection actually shut down which means that this command cannot be used to poll non block ing sockets nor will it block for blocking sockets e Command Details Field Contents CmdExt 0 reserved set to zero CmdExt 1 Value Mode 00h Shu
4. CmdExt 0 reserved set to zero CmdExt 1 Segmentation Control bits see Command Segmentation on page 150 Data 0 Receive data size low Data 1 Receive data size high Only used in the first segment e Response Details Note The data in the response may be segmented see Message Segmentation on page 150 Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Segmentation Control bits see Response Segmentation on page 151 Data 0 Host IP address byte 3 low Data 1 Host IP address byte 2 Data 2 Host IP address byte 1 Data 3 Host IP address byte 0 high Data 4 Host port number low Datal 5 Host port number high Data 6 n Received data The host address port information is only included in the first segment All data thereafter will start at Data 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 112 Command Details Send Category Advanced Details Command Code 17h Valid for Instance Description This command sends data on a connected socket Message segmentation may be used to send up to 1472 bytes see Message Segmentation on page 150 NONBLOCKING mode If there isn t enough buffer space available in the send buffers the module will respond with er rot code 0006h EWOULDBLOCK BLOCKING mode If there isn t enough buffer space ava
5. The Compact om 40 now creates modules and submodules based on this information as described in Real Identification RI on page 23 To alter this configuration do the following 1 Call API_Add to add an API 2 Call Plug_Module to add a module to the API 3 Call Plug_Submodule one or more times to add submodules to the module 4 Repeat steps 2 and 3 to add modules to the API After the configuration is complete call setup complete Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 86 Removing and exchanging modules and submodules There are ways of removing modules and plug new modules during runtime The end user may have defined five different modules in the GSDML file and during start up one of them is always mapped as the default mapping When constructing the PLC program the PLC programmer decides to use two different modules as pro cess data The application will then be notified by the command Cfg_Mismatch_Ind for every submodule that does not match This information will also be provided in the command Expected_Ident_Ind The ap plication can then decide to remove the plugged module by issuing the command Pull_Module This will remove the whole module and its submodules Then based on the information received from either Cf g Mismatch_Ind or Expected_Ident_Ind the application can adopt to the PLC configuration by issuing new Plug_Module Plug_Submodule and Plug_Submodule_Ext commands Objec
6. exec cmd_argument SsiOutput success failure gt success String to use in case of success failure String to use in case of failure Default Output this command produces no output on its own Example The following example illustrates how to use this command lt exec cmd_argument SsiOutput Parameter stored Error gt lt exec cmd_argument SetConfigItem File cfg Overwrite gt See also e SSI Output Configuration on page 57 7 3 5 DisplayRemoteUser This command stores returns the username on an authentication session Note This command cannot be used in e mail messages Syntax lt exec cmd_argument DisplayRemoteUser gt Default Output Scenario Default Output Success current user Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 46 7 3 6 ChangeLanguage This command changes the language setting based on an HTML form object Note This command cannot be used in e mail messages Syntax lt exec cmd_argument ChangeLanguage source gt source Name of form object which contains the new language setting The passed value must be a single digit as follows Form value Language 0 English ia German EC Spanish i Italian A French Default Output Scenario Default Output Success Language changed Error Failed to change la
7. on page 97 5 AddedApis Get UINT16 Returns the number of APIs added including API 0 6 ApiList Get Array of UINT32 First element will always be zero and the second ele ment will contain an additional API Length of the array is determined by parameter AddedApis i EstablishedArs Get UINT16 The number of Application Relationships currently established 8 ArList Get Array of UINT16 Array of Application Relationship handles Length of array is determined by parameter EstablishedArs 9 S g 10 Port 1 MAC Address Get Array of UINT8 6 Byte PROFINET Port 1 MAC address See also Ethernet Host Object F9h on page 145 11 Port 2 MAC Address Get Array of UINT8 6 Byte PROFINET Port 2 MAC address See also Ethernet Host Object F9h on page 145 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 88 Command Details Plug_Module Category Advanced Details Command Code Valid for Description 10h Object Instance This command may be called during start up to specify the Real Identification It may also be called during runtime in case there are changes to the Real Identification Note It is only permitted to issue this command if API_Add has been issued first Command Details Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 API low word
8. 0x8002 For API gt 0 1 Ox7FFF Data 16 SubModldent low word low byte Submodule identifier as stated in the GSD file Data 17 SubModldent low word high byte Data 18 SubModldent high word low byte Data 19 SubModldent high word high byte See also e Real Identification RI on page 23 Configuration Mismatch on page 24 e Command Detail e Command Detail ls Plug Module on page 88 ls Doll Module on page 93 e Command Details Pull_Submodule on page 94 e Command Details ART Add on page 95 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Pull_Module Category Advanced Details Command Code 12h Valid for Object Instance Description 93 This command removes a module from the configuration Can be issued at any time During runtime it can be called in case there are changes to the Real Identification The CompactCom 40 then automat ically issues a Pull or Pull Module alarm to the master e Command Details Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 API low word low byte Application Process Instance API Data 1 API low word high byte Data 2 API high word low byte Data 3 API high word high byte See also Application Process Instances API on page 22 Data 4 SlotNr low byte Datal 5
9. Issue the Send Instance Email command 10h towards the e mail instance Poe ES Optionally delete the e mail instance using the Delete command 04h Sending a message based on a file in the file system is achieved using the Send Email from File com mand For a description of the file format see Command Details Send E mail From File on page 121 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Chapter 7 7 Server Side Include SSI 7 1 General Information Category advanced Server Side Include functionality or SSI allows data from files and objects to be represented on web pages and in e mail messages SSI are special commands embedded within the source document When the Anybus CompactCom module encounters such a command it will execute it and replace it with the result if applicable By default only files with the extension shtm are scanned for SSI 7 2 Include File This function includes the contents of a file The content is scanned for SSI Note This function cannot be used in e mail messages Syntax lt include file filename gt filename Soutce file Default Output Scenario Default Output Success contents of file Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 7 3 Command Functions 7 3 1 General Information Command functions executes commands and includes the result General Syntax lt exec cmd
10. 11 7 Socket Interface Object 07h Category Advanced Object Description This object provides direct access to the TCP IP stack socket interface enabling custom protocols to be implemented over TCP UDP Note that some of the commands used when accessing this object may require segmentation For more information see Message Segmentation on page 150 IMPORTANT The ase of functionality provided by this object should only be attempted by users who are already fa miliar with socket interface programming and who fully understands the concepts involved in TCP IP programming Supported Commands Object Instance Get_Attribute Create See Command Details Create on page 103 Delete See Command Details Delete on page 104 Get_Attribute Set_Attribute Bind See Command Details Bind on page 105 Shutdown See Command Details Shutdown on page 106 Listen See Command Details Listen on page 107 Accept See Command Details Accept on page 108 Connect See Command Details Connect on page 109 Receive See Command Details Receive on page 110 Receive_From See Command Details Receive_From on page 111 Send See Command Details Send on page 112 Send_To See Command Details Send_To on page 113 IP_Add_membership See Command Details IP_Add_Membership on page 114 IP_Drop_membership See Command Details IP_Drop_Membership on page
11. 49 This function returns a formatted string which may contain data from the Anybus CompactCom module and or application The formatting syntax used is similar to that of the standard C function printf The function accepts a template string containing zero or more formatting tags followed by a number of arguments Each formatting tag corresponds to a single argument and determines how that argument shall be converted to human readable form Syntax lt exec cmd _argument printf template argumentli argumentN gt template Template which determines how the arguments shall be represented May contain any number of formatting tags which are substituted by subse quent arguments and formatted as requested The number of format tags must match the number of arguments if not the result is undefined Formatting tags are written as follows Flags Width Precision Modifier type See also e Formatting Tags on page 50 argument Source arguments optional parameters which specify the actual source of the data that shall be inserted in the template string The number of argu ments must match the number of formatting tags if not the result is un defined At the time of writing the only allowed argument is ABCCMessage See also e ABCCMessage on page 53 Default Output Scenario Default Output Success printf result ABCCMessage error ABCCMessage error string 7 56 Error
12. CmdExt 1 e Response Details Field Contents Comments CmdExt 0 reserved ignore CmdExt 1 MsgData 0 Instance number low byte MsgData 1 high byte Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Delete Category Advanced Details Command Code Valid for Description 04h Object This command deletes an e mail instance Command Details 120 Field Contents Comments CmdExt 0 E mail instance number low byte CmdExt 1 high byte e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Send E mail From File Category Advanced Details Command Code 11h Valid for Object Description This command sends an e mail based on a file in the file system File format The file must be a plain ASCII file in the following format To recipient From sender Subject email subject Headers extra headers optional Message actual email message Command Details 121 Field Contents Comments CmdExt 0 reserved set to zero CmdExt 1 MsgData 0 n Path filename of message file e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Send E mail Category Advanced Details Command Code 10h Valid for Instance Description This command sends
13. During the next start up this parameter data is already saved in the module s nonvolatile storage and will not be sent to the application Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 3 7 3 Fast Start Up Configuration with STEP7 GS Hw Config SIMATIC 300 1 D Station Edit Insert PLC Men Options Window Help PROFINET IO Implementation Details 29 The example below shows the procedure when the Siemens tool STEP7 is used for configuration Activation of Fast Start Up 1 Start the configuration tool The figure below shows the HW Config window of the STEP7 tool Configuration CPU315F gt 1 ABCCAO PIR DUT Dert hgh e al ala Wl nz ADIH3 256 257 ADIHI7 256 259 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Profle Standard SZ Wi PROFIBUS DP PROFIBUS PA cog PROFINET 10 m SIMATIC 300 zB SIMATIC 400 ef SIMATIC PC Based Control 300 400 S SIMATIC PC Station PROFIBUS DP slaves for SIMATIC 57 M7 and C7 distributed Ed rack E T r 2 Doc ld HMSI 27 226 PROFINET IO Implementation Details 30 2 Double click on Interface in the Module column The window shown to the right will Properties Interface X1 General Addresses 10 Cycle appear Choose the General tab and check Short desepion note the box Prioritized startup
14. In Unknown Protos Received packets with unsupported protocol type Out Octets Sent bytes Out Ucast packets Sent unicast packets Out NUcast packets Sent non unicast packets broadcast and multicast Out Discards Outgoing packets discarded due to no available memory buffers Out Errors Transmission errors Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Web Server 36 Media Counters Description Alignment Errors Frames received that are not an integral number of octets in length FCS Errors Frames received that do not pass the FCS check Single Collisions Successfully transmitted frames which experienced only one collision Multiple Collisions Successfully transmitted frames that experienced more than one collision SQE Test Errors Number of times SQE test error messages are generated Deferred Transmissions Frames for which first transmission attempt is delayed because the medium is busy Late Collisions Number of times a collision is detected later than 512 bit times into the transmission of a packet Excessive Collisions Frames for which a transmission fails due to excessive collisions MAC Receive Errors Frames for which reception of an interface fails due to an internal MAC sublayer receive error MAC Transmit Errors Frames for which transmission fails due to an internal MAC sublayer receive error Carrier Sense Errors
15. MainFamily lists the kinds of devices for which the product shall be listed As of GSD specification v2 3 the following families are available General Drives Switching Devices I O Valves Controllers HAM Encoders NC RC Gateway PLCs Ident Systems PA Profiles Network Components Sensors G 3 Factory Default Reset Reset command to Application Object FFh must be supported When PROFINET IO modules are delivered they are required to be in their Factory Default state For PROFINET devices this means that their Station Name is empty and that the IP suite is not assigned IP 0 0 0 0 When a Factory Default Reset command is received from the network the Anybus module will erase all IP and Station Name information and inform the host application that hardware or software reset of the Anybus module is required This is done by sending a Reset command to the Application Object FFh of the host For more details please consult the Anybus CompactCom Soft ware Design Guide Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Conformance Test Guide 160 G 4 IP Address Normally the IP numbers of PROFINET IO devices are assigned via the PROFINET network via DCP Discovery and Configuration Protocol HMS recommends not using the Network Configuration Ob ject 04h instances 3 6 during the initialization phas
16. Network Specific Data on page 75 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 PROFINET IO Implementation Details 26 3 6 Identification amp Maintenance 18M 3 6 1 General Information Identification amp Maintenance 18M provides a standard way of gathering information about an I O device The I amp M information can be accessed by the IO Controller by means of acyclic Record Data Read Write services The application should provide application specific I amp MO information during start up See PROF INET IO Object F6h on page 130 for more information It is possible for the application to handle I amp M records Activate this using the IM_Options command See Network PROFINET IO Object OEh on page 85 for more information Default I amp MO information IM Manufacturer ID 010Ch HMS Industrial Networks IM Order ID ABCC40 PIR IM Serial Number unique serial number set during manufacturing IM Hardware Revision Anybus hardware revision ID set during manufacturing IM Software Revision Anybus software revision set during manufacturing IM Revision Counter Revision counter IM Profile ID F600h Generic Device IM Profile Specific Type 0004h No profile IM Version 0101h IM Supported 001Eh IM0 4 supported Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 PROFINET IO Implementation Details 27 3 6 2 I amp M Data Structure
17. low byte Application Process Instance API Data 1 API low word high byte Data 2 API high word low byte See also Data 3 API high word high byte a Sc Process Instances API on Data 4 SlotNr low byte Destination slot for module Data 5 SlotNr high byte Range O OX7FFF Data 6 Modldent low word low byte Module identified as state in the GSD file Data 7 Modldent low word high byte Data 8 Modldent high word low byte Data 9 Modldent high word high byte See also e Real Identification RI on page 23 Configuration Mismatch on page 24 e Command Details Plug_Submodule on page 89 e Command Details Poll Module on page 93 e Command Details Pull_Submodule on page 94 e Command Details API_Add on page 95 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 89 Command Details Plug_Submodule Category Advanced Details Command Code 11h Valid for Object Instance Description This command may be called during start up to specify the Real Identification It may also be called during runtime in case there are changes to the Real Identification In such case the Anybus will auto matically issue a Plug or Plug Wrong Submodule alarm to the IO Controller A submodule plugged with this command can hold IO data to the master from the master or data in both directions It is also possible to plug submodules which do not carry any
18. this value will be used instead b The host application has to implement the corresponding functionality the Anybus module in itself does not alter its behavior based on these parameters Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Get_Record Category Extended Details Command Code Valid for Description 10h Object Instance 134 The module issues this command in the following situations e Module receives a Record Data Read request towards an API other than 0 zero e Module receives a Record Data Read request towards API 0 but the record in question is han dled in Transparent Mode Note See attribute 7 in Instance Attributes Instance 1 on page 131 for more information about Transparent Mode See Flowchart Record Data Access on page 152 for more information It is optional to implement support for this command If not implemented the original network request will be rejected and an error is returned to the IO Controller Supervisor Command Details Field Contents Comments CmdExt 0 AR handle low byte Handle for Application Relationship AR CmdExt 1 AR handle high byte MsgData 0 API low word low byte Application Process Instance API MsgData API low word high byte MsgData 2 API high word low byte MsgData 3 API high word high byte MsgData 4 Slot low byte Slot numbe
19. 1 Not ready for data exchange Appl_State_Ready must be issued at a later stage See also e Command Details Appl_State_Ready on page 96 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details AR_Abort_Ind Category Advanced Details Command Code 19h Valid for Object Instance Description 143 This command is optional The module issues this command to indicate to the host application that an Application Relationship AR is aborted by the application or any other source Command Details Field Contents Comments CmdExt 0 CmdExt 1 AR handle low byte AR handle high byte Handle for the Application Relationship AR MsgData 0 MsgData Reason code low byte Reason code high byte 0 a OO CO JO Om amp WwW E CO JO Om P Ga b zz ei A oo x so x WWWNNNNNNNNNDND N gt CAOANDAKRWNH OO GA Co Reason code for the offline transition Value Reason No reason unknown reason Out of mem Add provider or consumer failed Miss consumer Cmi timeout Alarm open failed Alarm send cnf Alarm ack send cnf Alarm data too long Alarm ind err Rpc client call cnf Ar abort req Re run aborts existing Got release ind Device passivated Device Ar removed Protocol violation NARE error RPC Bind error RPC Connect error RPC Read error RPC
20. 115 DNS_Lookup See Command Details DNS_Loopup on page 116 Object Attributes Instance 0 Name Access Data Type Value 1 Name Get Array of CHAR Socket interface 2 Revision Get UINT8 01h 3 Number of instances Get UINT16 4 Highest instance no Get UINT16 11 Man no of instances Get UINT16 0008h Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 102 Instance Attributes Sockets 1 8 Advanced Name Access Type Description 1 Socket type Get UINT8 Value Socket Type 00h SOCK_STREAM NONBLOCKING TCP 01h SOCK_STREAM BLOCKING TCP 02h SOCK_DGRAM NONBLOCKING UDP 03h SOCK_DGRAM BLOCKING UDP Port Get UINT16 Local port that the socket is bound to Host IP Get UINT32 Host IP address or 0 zero if not connected Host port Get UINT16 Host port number or 0 zero if not connected on e Ww N TCP State Get UINT8 State TCP sockets only Value State Description 00h CLOSED Closed 01h LISTEN Listening for connection 02h SYN_SENT Active have sent SYN 03h SYN_RECEIVED Have sent and received SYN 04h ESTABLISHED Established 05h CLOSE_WAIT Received FIN waiting for close 06h FIN_WAIT_1 Have closed sent FIN 07h CLOSING Closed exchanged FIN await FIN ACK 08h LAST_ACK Have FIN and close await FIN ACK 09h FIN_WAIT_2 Have closed FIN is acknowledged DA
21. 27 226 JSON 65 mediacounters json GET network mediacounters json port lt port gt The argument lt port gt is either 1 or 2 Name Data Type Note align Number Frames received that are not an integral number of octets in length fcs Number Frames received that do not pass the FCS check singlecoll Number Successfully transmitted frames which experienced exactly one collision multicoll Number Successfully transmitted frames which experienced more than one collision latecoll Number Number of collisions detected later than 512 bit times into the transmission of a packet excesscoll Number Frames for which transmissions fail due to excessive colli sions sqetest Number Number of times SQE test error is generated deferredtrans Number Frames for which the first transmission attempt is delayed because the medium is busy macrecerr Number Frames for which reception fails due to an internal MAC sublayer receive error mactranserr Number Frames for which transmission fails due to an internal MAC sublayer transmit error cserr Number Times that the carrier sense was lost or never asserted when attempting to transmit a frame toolong Number Frames received that exceed the maximum permitted frame size tooshort Number Frames received that are shorter than the lowest permitted frame size nwstats json GET network nwstats json This object lists available statistics data The data available dep
22. Anybus CompactCom File system File 1 File 2 VFS File 1 File 2 Application The Anybus CompactCom acc sses the application file system through the Application File System Interfage Object Firmware Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Application Application File system File A1 File A2 Directory A1 File A1 1 File A1 2 Doc ld HMSI 27 226 Basic Operation 20 2 7 2 General Information The built in file system hosts 28 Mb of nonvolatile storage which can be accessed by the HTTP and FTP servers the e mail client and the host application through the Anybus File System Interface Ob ject OAh The file system uses the following conventions e VI backslash is used as a path separator Names may contain spaces but must not begin or end with one e Valid characters in names are ASCII character numbers less than 127 excluding the following characters N lt gt Names cannot be longer than 48 characters A path cannot be longer than 126 characters filename included See also e PID Server on page 31 e Web Server on page 33 E mail Client on page 39 Server Side Include SSI on page 40 e File System Interface Object OAh on page 123 IMPORTANT The fil
23. CHAR Software Rev I amp M0 Parameter Software revision of device Byte Value Meaning 0 V Official release R Revision P Prototype U Under test T Test device 1 0 255 Major Version 2 0 255 Minor Version 3 0 255 Internal Change Note Version V255 255 255 indicates availability of profile specific information 12 IAM Revision Counter Get UINT16 0000h 18M0 Parameter Revision counter of device a changed value marks a change of the hardware or its parameters 13 18M Profile ID Get UINT16 F600h Generic Device I amp M0 Parameter If the application supports a specific pro file this can be specified here Note this will not change the module s behavior since it does not handle profiles Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 133 Name Access Type Default Value Comment 14 18M Profile Specific Get UINT16 Generic Profile 18M0 Parameter Type 0004h If the application supports a specific pro Communication Module ifile the profile specific types is specified here Note this will not change the module s behavior since it does not handle profiles 15 Reserved Reserved not used 16 Reserved Reserved not used 20 Reserved Reserved not used 21 Reserved Reserved not used a If an attribute is not implemented
24. Consumption The PROFINET IO module is designed to fulfil the requirements of a Class B module The current hardware design consumes up to 390 mA F 5 Environmental Specification Consult the Anybus CompactCom 40 Hardware Design Guide for further information F 6 EMC Compliance Consult the Anybus CompactCom 40 Hardware Design Guide for further information Note that in line with HMS policy of continuous product development we reserve the right to change the exact power requirements of this product without prior notification Note however that in any case the Anybus CompactCom 40 PROFINET IO will remain as a Class B module Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Appendix G G Conformance Test Guide G 1 General When using the default settings of all parameters the Anybus CompactCom 40 PROFINET IO module is precertified for network compliance This precertification is done to ensure that your product can be certified Changes in the parameters in the example GSD file supplied by HMS will require a certification A ven dor ID can be obtained from PNO and is compulsory for certification This chapter provides a guide for successful conformance testing your product containing the Anybus CompactCom 40 PROFINET IO module to comply with the demands for network certification set by the PNO Independent of selected operation mode the actions described in this appendix have to be accounted for in the certi
25. Doc HMSI 27 226 11 3 Diagnostic Object 02h Category Extended advanced Object Description 73 This object provides a standardized way of handling host application events amp diagnostics and is thoroughly described in the general Anybus CompactCom 40 Software Design Guide Supported Commands Object Instance Get_Attribute Create Delete Get_Attribute Object Attributes Instance 0 Name Access Data Type Value Consult the general Anybus CompactCom 40 Software Design Guide for further information 11 Max no of instances Get UINT16 5 1 12 Consult the general Anybus CompactCom 40 Software Design Guide for further information a Of the maximum number of instances there should always be one instance reserved for an event of severity level Major unrecoverable to force the module into the EXCEPTION state Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Instance Attributes 74 Extended D Name Access Type Value 1 Severity Get UINT8 Consult the general Anybus CompactCom 40 Software 2 Event Code Get UINT8 Design Guide for further information Advanced Name Access Type Value 3 NW specific data Get Array of UINT8 Optional network specific information See also Details Network Specific Data on page 75 Major unrecoverable events cause the module to disconnect
26. LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE ftpd c This file is part of the FTP daemon for IwIP H e e ke e ke e e He e ke e RAR RARA RARA ARA IKARIA IKI RAR ARA RARA RRE R RARA IIIA III IIIA RARA Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Copyright Notices 167 Format lightweight string formatting library Copyright C 2010 2013 Neil Johnson All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met Redistributions of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Neither the na
27. Name Data Type Note dhcp Number addr String subnet String gateway String dns String dns2 String hostname String domainname String dhcp 0 addr 192 168 0 55 subnet 255 255 255 0 gateway 192 168 0 1 dnsl 10 10 55 1 dns2 10 10 55 2 hostname lt hostname gt domainname hms se To change IP settings use network ipconf json It accepts any number of arguments from the list above Values should be in the same format Example GET ipconf jsonPdhcp 0 amp addr 10 11 32 2 amp hostname abcc1 23 amp domainname hms se ethconf json GET network ethconfjson Name Data Type Note comm Number comm2 Number Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 ifcounters json JSON 64 GET network ifcounters json port lt port gt The argument lt port gt is either 1 or 2 Name Data Type Note inoctets Number IN bytes inucast Number IN unicast packets innucast Number IN broadcast and multicast packets indiscards Number IN discarded packets inerrors Number IN errors inunknown Number IN unsupported protocol type outoctets Number OUT bytes outucast Number OUT unicast packets outnucast Number OUT broadcast and multicast packets outdiscards Number OUT discarded packets outerrors Number OUT errors Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI
28. Settin os iaa 15 Network Data Exchanger iii 16 Apphiathon Data Instances ADIS i 16 Process Da a a da Rp 17 CANA a EE T Ee 17 Web Interact A a ida 17 Estad Client a 18 File St as artis arado O dina sais 19 AAA A A A EE EE 19 General INOA ON AA SANE S EN IEAA EV SA AATRE RAS 20 System FUS a gE AARE dit iio EK E 20 Chapter3 PROFINET IO Implementation Details E o ee 21 Application Process Instances APD nutrida Policias S 22 Application Relationships AR miii anita 22 Real Identification CR Aere ee Eeer e Bees Here General Information Configuration Mismatch EE Standard Diagnostics ae EE cos Identification amp Maintenance 8M wiccesssstevseussswesccusvevsedeuitcossvence dens ects EET ER 26 General Information I amp M Data Structures Fast Statt Up o bea General Inma EE How to Improve the FSU Time ossos Fast Start Up Configuration with STEP7 Address Conflict Detection A CD viii scada 30 Chapter 4 FTP Server General EA ala 31 LEE dd iii 31 Session Example ati li iaa ia bai 32 Chapter5 Web Server General nr ld ee 33 Default Web Pares toalla in id aia 33 Nano COL a iaa 34 Ethernet statisties PARA OR A RS RA ee 35 Server Configurations s aer a aE TEE EAEE A EE EE E EE ERE 37 General Informa ai A AN 37 Index PIE AAA ee EE AEN 37 Default Content Type eege 38 LAUDO AA ais 38 Chapter 6 E mail Client General dt atea 39 Flow to Send Femail Messages iii actialiniancsiar
29. Stephen Deering of Stanford University Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met e Redistributions of source code must retain the above copyright notice this list of conditions and the fol lowing disclaimer e Redistributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS AS IS ANDANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE RE GENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE kkkkkkkkkkkkkkkkkkkkkkkkkkkkk
30. Times that the carrier sense condition was lost or never asserted when attempted to transmit a frame Frame Size Too Long Frames received that exceed the maximum permitted frame size Frame Size Too Short Frames received that are shorter than lowest permitted frame size Fiber Optical Statistics Description Port 1 Temperature C Current temperature of port 1 transceiver in degrees Celsius Port 1 Power Budget dB Current received power budget for port 1 transceiver in dB Port 1 Power Budget Status Textual display of the power budget status for port 1 Ok Power budget status gt 2 dB Maintenance required 0 dB lt power budget status lt 2 dB Maintenance demanded Power budget 0 dB Port 2 Temperature C Current temperature of port 2 transceiver in degrees Celsius Port 2 Power Budget dB Current received power budget for port 2 transceiver in dB Port 2 Power Budget Status Textual display of the power budget status for port 2 OK Power budget status gt 2 dB Maintenance required 0 dB lt power budget status lt 2 dB Maintenance demanded Power budget 0 dB a These statistics are only available for the PROFINET IRT FO module Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Web Server 37 5 3 Server Configuration 5 3 1 General Information Category advanced Basic web server c
31. a free software that opened for education research and commercial developments under license policy of following trems Copyright C 2013 ChaN all right reserved The FatFs module is a free software and there is NO WARRANTY No restriction on use You can use modify and redistribute it for personal non profit or commercial products UNDER YOUR RESPONSIBILITY Redistributions of source code must retain the above copyright notice KHIR RK e RIKER EIR IK IK IKEA IRIE RIKI AKIRA IIIA IAI KIKI IIIA IIIA KIKI ARA Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Copyright Notices 166 Copyright c 2002 Florian Schulze All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 1 Redistributions of source code must retain the above copyright notice this list of conditions and the following disclaimer 2 Redistributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution 3 Neither the name of the authors nor the names of the contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
32. an I O device in this case the Anybus is called Application Relationship AR The Anybus module supports multiple simultane ous Application Relationships allowing multiple IO Supervisors to access its data and functions The host implementation can either ignore this functionality altogether in which case the Anybus mod ule will handle it automatically or integrate the establishment and handling of Application Relationships into the host firmware Application Relationships are managed through the following functions e AR Check Tod see Command Details AR_Check_Ind on page 138 e Expected_Ident_Ind see Command Details Expected_Ident_Ind on page 140 AR_Abort_Ind see Command Details AR_Abort_Ind on page 143 AR Abo see Command Details AR_Abort on page 97 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 3 4 Real Identification RI 3 4 1 General Information PROFINET IO Implementation Details 23 During establishment of an IO Connection towards the Anybus module the configuration derived from the IO Controller i e the Expected Identification and the actual configuration in the Anybus module i e the Real Identification or RI are compared e Default Configuration ADI Based By default i e if the application doesn t issue API_Add Plug Module Plug_Submodule the Anybus handles the plugging of modules and submodules automatically in accordance with th
33. data at all The Anybus supports up to 128 submodules in total Note 1 In case the slot number in the command is set to 0 zero the ADI number must also be 0 zero since slot 0 cannot hold any actual data Note 2 It is only permitted to issue this command if API_Add has been issued first Note 3 The Interface and Port submodules have to be plugged in order to pass certification tests Note 4 The interface and port submodule can only be plugged during the SETUP state Any attempt to plug these submodules during runtime will result in error Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details 90 Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 ADI number low byte Read Reference to the ADI previously mapped with Data 1 JADI number high byte Read Map_ADI_Read_Area Data 2 ADI element Read Reference to the element of the ADI mapped with Map_ADI_Read_Area for the specified SlotNr See Data 10 11 Range 1 255ADI element associated with the submodule 0 Entire ADI is associated with the submodule Data 3 ADI number low byte Write Reference to the ADI previously mapped with Data 4 JADI number high byte Write Map_ADI_Write_Area Datal 5 ADI element Read Reference to the element of the ADI mapped with Map_ADI_Write_Area for the specifie
34. full length a Multilingual see Multilingual Strings on page 83 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 82 Instance Attributes Instance 20 Station Name The Station Name identifies the Anybus module on PROFINET If this value is changed by the host application during runtime a reset is required in order for changes to have effect Changes made through DCP will have immediate effect however The Station Name field shall be coded as data type CHAR with 1 to 240 characters The definition of RFC 5890 and the following syntax applies 1 or mote labels separated by Total length is 1 to 240 Label length is 1 to 63 Labels consist of a z 0 9 Labels do not start with Labels do not end with The first label must not have the form port xyz or port xyz abcde where a b c d e x y z 0 9 to avoid similarity with the field Alias NameValue e Station names must not have the form n n n n where n 0 999 Note Be sure to verify that the Station Name parameter value is correct according to the criteria above No verification checks will be made by the module until after the application has issued setup com plete A faulty Station Name will then be discarded set to an empty string without any warning Extended Name Access Type Description 1 Name Get Array of CHAR Station name 2 Data type Get UI
35. it is up to the application to make sure that the product is synchronous The module will only ask the application fot Output processing time The time in ns it takes from that the application is notified of new process data until valid output Input processing time The time in ns from input capture time until the process data has been copied to the module The module will notify the application of e Output valid This is the time in ns relative to the sync event for when the outputs shall be used Input capture This is the time in ns relative to the sync event for when the input process data shall be captured Cycle time i E Sync signal Inputs valid Outputs valid All modules have the sync signal in the connector and as an interrupt to the host application e al A Calculating Output Processing Time This needs to be measured by the application designer The time consists of two delays The delay added by the module from when message is available on the network until it is avail able for the host application The delay added by the application This is the time it takes for the application from it is notified that new process data has arrived to when the process data is copied and output is valid To calculate the delay added by the module the following formula shall be used tapcCH 15600 ns ton 734 ns Nou data length of n 35 ns tout total number of output submo
36. not sent ifOutDiscards 1 3 counter ifOutDiscards 1 3 Number of outbound packets which were discarded Number of discarded without any error detected not to be transmitted One packets reason to discard packages might be to free up buffer space ifOutErrors 1 3 counter ifOutErrors 1 3 Number of outbound packets that could not be trans Number of error pack mitted due to errors ets ifOutQLen 1 3 gauge ifOutQLen 1 3 Length of the output packet queue in packets Number of packets in queue ifSpecific 1 3 objid 0 0 Reference to MIB definitions specific to the particular media being used to realize the interface Here no ref erence is available so a fixed value is used for all ports a If nothing else is specified the value of a variable is 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Chapter 10 10 Media Redundancy Protocol MRP 10 1 General Media Redundancy Protocol MRP is a PROFINET specific ring protocol ensuring redundancy in the network which can significantly decrease network downtime It is a token based ring protocol with a master slave hierarchy All the nodes in the PROFINET network part of the ring are connected using ring topology that is the last node is connected directly to the first node If at any point the connection between two nodes would break the data will flow the other way instead guaranteeing that data can be sent to from the IO Con
37. of CHAR SMTP Server 2 Data type Get UINT8 07h CHAR 3 Number of elements Get UINT8 40h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 SMTP server address 64 characters Dotted decimal format or server name pad with space to full length a Multilingual see Multilingual Strings on page 83 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 81 Instance Attributes Instance 14 SMTP User This instance holds user name for the SMTP account Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array of CHAR SMTP User 2 Data type Get UINT8 07h CHAR 3 Number of elements Get UINT8 40h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 SMTP account user name 64 characters pad with space to full length a Multilingual see Multilingual Strings on page 83 Instance Attributes Instance 15 SMTP Password This instance holds the password for the SMTP account Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array of CHAR SMTP Pswd 2 Data type Get UINT8 07h CHAR 3 Number of elements Get UINT8 40h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 SMTP account password 64 characters pad with space to
38. of elements can be specified using the suffix n where n specifies the number of elements Each data element must be separated by space Type Supports Arrays Data format as supplied in msgdata BOOL Yes 1 SINT8 Yes 25 SINT16 Yes 2345 SINT32 Yes 2569 UINT8 Yes 245 UINT16 Yes 40000 UINT32 Yes 32 CHAR Yes A STRING No abcde Note Quotes can be included in the string if preceded by backslash Example We usually refer to it as the Egg FLOAT Yes 5 6538e2 NONE No Command holds no data hence no data type e Response Data Types 1_type For types which support arrays the number of elements can be specified using the suffix n where n specifies the number of elements Type Supports Arrays Comments BOOL Yes Optionally it is possible to exchange the BOOL data with a message based on the value true or false In such case the actual data type returned from the function will be STRING Syntax BOOL lt true gt lt false gt For arrays the format will be BOOL n lt true gt lt false gt SINT8 Yes SINT16 Yes SINT32 Yes UINT8 Yes This type can also be used when reading ENUM data types from an object In such case the actual ENUM value will be returned UINT16 Yes UINT32 Yes CHAR Yes STRING No ENUM No When using this data type the ABCCMessage function will first read the EN
39. page 81 Supported Commands Object Get_Attribute Create Delete Send e mail from file Command Details Send E mail From File on page 121 Instance Get_Attribute Set_Attribute Send e mail Command Details Send E mail on page 122 Object Attributes Instance 0 Name Access Data Type Value 1 Name Get Array of CHAR SMTP Client 2 Revision Get UINT8 01h 3 Number of instances Get UINT16 4 Highest instance no Get UINT16 11 Man no of instances Get UINT16 0006h 12 Success count Get UINT16 Reflects the no of successfully sent messages 13 Error count Get UINT16 Reflects the no of messages that could not be delivered Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Instance Attributes Advanced Instances ate created dynamically by the application 119 Name Access Type Description 1 From Get Set Array of CHAR eg someone somewhere com 2 To Get Set Array of CHAR eg someone else anywhere net 3 Subject Get Set Array of CHAR eg Important notice 4 Message Get Set Array of CHAR e g Duck and cover Command Details Create Category Advanced Details Command Code Valid for Description 03h Object This command creates an e mail instance Command Details Field Contents Comments CmdExt 0 reserved set to zero
40. port number low Data 7 Host port number high Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 109 Command Details Connect Category Advanced Details Command Code 14h Valid for Instance Description For SOCK DGRAM sockets this command specifies the peer with which the socket is to be associated to which datagrams are sent and the only address from which datagrams are received For SOCK_STREAM sockets this command attempts to establish a connection to a host SOCK_STREAM sockets may connect successfully only once while SOCK_DGRAM sockets may use this service multiple times to change their association SOCK DGRAM sockets may dissolve their as sociation by connecting to IP address 0 0 0 0 port 0 zero NON BLOCKING mode This command must be issued repeatedly polled until a connection is connected rejected or timed out The first connect attempt will be accepted thereafter the command will return error code 22 EINPROGRESS on poll requests while attempting to connect BLOCKING mode This command will block until a connection has been established or the connection request is cancelled due to a timeout or a connection error Command Details Field Contents Contents CmdExt 0 reserved set to zero CmdExt 1 Data 0 Host IP address byte 3 low Data 1 Host IP address byte 2 Data 2 Host IP address byte 1 Data 3 Host IP address byte 0 high Dat
41. the specified e mail instance Command Details no data e Response Details no data Object Specific Error Codes 122 Error Codes Meaning SMTP server not found SMTP server not ready Authentication error SMTP socket error SSI scan error o om A cw N gt Unable to interpret e mail file 255 Unspecified SMTP error other reserved Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 123 11 9 File System Interface Object 0Ah Category Advanced Object Description This object provides an interface to the built in file system Each instance represents a handle to a file stream and contains services for file system operations This object is thoroughly described in Anybus CompactCom 40 Software Design Guide Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 124 11 10 Network Ethernet Object 0Ch Category Advanced Object Description This object provides Ethernet specific information to the application Supported Commands Object Get_Attribute Instance Get_Attribute Object Attributes Instance 0 Name Access Data Type Value 1 Name Get Array of CHAR Network Ethernet 2 Revision Get UINT8 Oth 3 Number of instances Get UINT16 4 Highest instance no Get UINT16 Instance Attributes Instance 1 Advanced Name Access Type Descri
42. x gt D NI D om AJo INI oO a See also e SSI Output Configuration on page 57 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 7 5 SSI Output Configuration Server Side Include SSI 57 Optionally the SSI output can be permanently changed by adding the file output cfg File format 0 Js 2 ni 0 1 2 3 0 al 2 3 0 1 2 O de ABCCMessage_X Success string Error string 1 Error string 2 6 Error string 16 GetConfigltem_X Success string Authentication error string File open error SE Tag not found string SetConfigltem_X Success string Authentication error string File open error string File write error string IncludeFile X Success string Authentication error ees ee eee File readS error string scanf_X Success string Parsing error string ChangeLanguage_X O Le Success string Change error string Each error code corresponds to a dedicated output string labelled from 1 to 16 See also Errors on page 56 Use s to include the name of the file Use s to include the name of the file Use s to include the name of the file All content above can be included in the file multiple times changing the value X in each tag for differ ent languages The module will then select the correct output stri
43. 100 Mbit full duplex operation as required by PROFINET e TCP IP Settings These settings must be set in order for the module to be able to participate on the network Normally set by the IO Controller e SMTP Account Settings These settings must be set in order for the module to be able to send e mail messages PROFINET Station Name The module needs to be assigned a Station Name in order to participate on PROFINET Normally set from the network See also e Identification amp Maintenance I amp M on page 26 e Web Server on page 33 e Network Configuration Object 04h on page 77 e HICP Host IP Configuration Protocol on page 163 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Basic Operation 16 2 4 Network Data Exchange 2 4 1 Application Data Instances ADIs ADIs can be accessed acyclically from the network by means of Record Data read write services If ad dressed through a given API and Index range the module translates the service into standard object re quests towards the Application Data Object If the host application responds with an error to such a request that error will be translated to PROFINET standard The following parameters affect the addressing of ADIs on PROFINET e Application Process Instance API API 0 zero provides access to data in the Application Data Object i e the ADIs Acyclic re quests towards other APIs will be forwarded to the PROFINE
44. 22 Doc ld HMSI 27 226 JSON 59 data json GET adi data json offset lt offset gt amp count lt count gt amp callback lt function gt This object call fetches values for up to lt count gt ADIs starting from lt offset gt in a list sorted by ADI order number The values may change at any time during runtime Optionally a callback may be passed to the GET request for JSONP output JSON object layout EF A201 O1FAC105 metadata json GET adi metadata json offset lt offset gt amp count lt count gt amp callback lt function gt This object call fetches metadata for up to lt count gt ADIs starting from lt offset gt in a list sorted by ADI order number This data is static during runtime Optionally a callback may be passed to the GET request for JSONP output Name Data Type Note instance Number name String May be NULL if no name is present numelements Number datatype Number min String Minimum value May be NULL if no minimum value is present max String Maximum value May be NULL of no maximum value is present access Number Bit 0 Read access Bit 1 Write access JSON object layout instance Le name Temperature threshold numelements 1 datatype 0 min go max FR access 0x03 nine more Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 JSON 60 enum json GET adi enum json inst lt in
45. 3 Station Type The order number of the device is set with the keyword OrderNumber lt OrderNumber Value ABCC40 PIR gt In many cases the value of the OrderNumber equals the Station Type string but it does not necessary need to be that way Replace the OrderNumber value ABCC40 PIR with the order number used for the device Set with PROFINET IO Object OxF6 attribute 8 IM Order ID How to Enable Initial Record Data During the establishment of an IO connection between the IO device and the IO controller it is possible for the IO controller to send initial record data This initial record data is sent using the PROFINET IO service record write This service can be used at any time and will write data to a defined ADI The initial record data is defined in the GSD file and is specified for a submodule of a module By default the Anybus CompactCom 40 module will not make use of any initial record data but that can be enabled if needed To enable this functionality the GSD file needs to be modified as specified below In this example 2 bytes are written to ADI 67 ADI 67 corresponds to index 67 during startup of a PROFINET IO con nection the value can be configured by the end user lt RecordDataList gt lt ParameterRecordDataltem Index 67 Length 1 TransferSequence 0 gt lt Name TextId T_ID_EXAMPLE2 gt lt Ref DataType Unsigned16 ByteOffset 0 Default Value 0 AllowedValues 0 65535 TextId
46. 7 reserved 15 User specific 13 15 User specific user specific User specific See also e Command Details Get_Record on page 134 e Command Details Set_Record on page 136 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 145 12 4 Ethernet Host Object F9h Category Extended advanced Object Description This object implements Ethernet features in the host application Supported Commands Object Get_Attribute Instance Get_Attribute Set_Attribute Object Attributes Instance 0 Name Access Data Type Value 1 Name Get Array of CHAR Ethernet 2 Revision Get UINT8 02h 3 Number of instances Get UINT16 0001h 4 Highest instance no Get UINT16 0001h Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Instance Attributes Instance 1 146 Extended Name Access Type Default Comment 2 Enable HICP Get BOOL True Enable Disable HICP see HICP Host IP Configuration Protocol on page 163 3 Enable Web Server Get BOOL True Enable Disable Web Server see Web Server on page 33 5 Enable Web ADI access Get BOOL True Enable Disable Web ADI access see Web Server on page 33 6 Enable FTP server Get BOOL True Enable Disable FTP server see FTP Server on page 31 7 Enable admin mode Get BOOL False Enable Disable FTP admi
47. ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE KKK RRA KI RARA RRA RARA RAE RARA dek dek e ke k ke ke ek III KIKI III IKI IIIA III kk kk kk k kk k rsvp js Copyright c 2013 Yehuda Katz Tom Dale and contributors Permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files the Software to deal in the Software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and or sell copies of the Software and to permit persons to whom the Software is furnished to do so subject to the following conditions The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software THE SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE KKK AKIRA RARA RRA RARA RRE RARA RARA ARE RARA RAR RE RARA RARA KIKI RARA RR
48. Attribute Set_Attribute Get_Enum_String Map_ADI_Write_Area Map_ADI_Read_Area Object Attributes Instance 0 Consult the general Anybus CompactCom 40 Software Design Guide for further information Instance Attributes Instance 1 Basic Name Access Type Value 1 Network type Get UINT16 0089h 2 Network type string Get Array of CHAR PROFINET IRT 3 Data format Get ENUM 01h MSB first 4 Parameter data support Get BOOL True 5 Write process data size Get UINT16 Current write process data size in bytes Updated on every successful Map_ADI_Write_Area 6 Read process data size Get UINT16 Current read process data size in bytes Updated on every successful Map_ADI_Read_Area 7 Exception Information Get UINT8 Additional information available if the module has entered the EXCEPTION state Value Meaning Oth Illegal value 02h Wrong data size 03h Illegal response 8 10 l Consult the general Anybus CompactCom 40 Soft ware Design Guide for further information a Consult the general Anybus CompactCom 40 Software Design Guide for further information Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 77 11 5 Network Configuration Object 04h Category Extended advanced Object Description This object holds network specific configuration parameters that may be set by the end user A reset command factory default issued towards this object will result i
49. E RARA RA IIIA k k ARA Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Copyright Notices 165 libb big js The MIT Expat Licence Copyright c 2012 Michael Mclaughlin Permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files the Software to deal in the Software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and or sell copies of the Software and to permit persons to whom the Software is furnished to do so subject to the following conditions The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software THE SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE H He e ke e ke e e He e RARA RRA RARA REIKI IKEA RARA RARA ARA RARA KIKI III III kke kk k kk ARA ARA ARA FatFs FAT file system module RO 09b C ChaN 2013 FatFs module is a generic FAT file system module for small embedded systems This is
50. Input UINT32 Input capture point relative to SYNC events in nanoseconds Default value 0 4 Output processing Get T_lO_OutputMin UINT32 Minimum required time in nanosec onds between RDPDI interrupt and Output valid 5 Input processing Get T_IO_InputMin UINT32 Maximum required time in nanosec onds from Input capture until write process data has been completely writ ten to the Anybus CompactCom module 6 Min cycle time Get T_DC_Min UINT32 The module supports cycle times as low as 250 us 7 Sync mode Get Set UINT16 This attribute is used to select synchronization mode It enumerates the bits in attribute 8 0 Nonsynchronous operation Default value if nonsynchronous operation is supported 1 Synchronous operation 2 65535 Reserved Any attempt to set sync mode to an unsupported value shall generate an error response 8 Supported sync modes Get UINT16 A list of the synchronization modes the application supports Each bit corresponds to a mode in attribute 7 Bit 0 1 Nonsynchronous mode supported Bit 1 1 Synchronous mode supported Bit 2 15 Reserved 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 130 12 3 PROFINET IO Object F6h Categories Basic extended advanced Object Description This object implements PROFINET IO related settings in the host applicat
51. Intellectual Property Rights HMS Industrial Networks AB has intellectual property rights relating to technology embodied in the product described in this document These intellectual property rights may include patents and pending patent applications in the US and other countries Trademark Acknowledgements Anybus is a registered trademark of HMS Industrial Networks AB All other trademarks are the property of their respective holders Warning This is a class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures ESD Note This product contains ESD Electrostatic Discharge sensitive parts that may be damaged if ESD control proce dures are not followed Static control precautions are required when handling the product Failure to observe this may cause damage to the product Anybus CompactCom 40 PROFINET IO Network Guide Rev 1 22 CopyrightO HMS Industrial Networks AB March 2015 Doc Id HMSI 27 226 Table of Contents Table of Contents Preface About This Document Related Docuiments EEN 8 RE 8 Conventions amp demini dot asas 9 Ue ida 9 Chapter1 About the Anybus CompactCom 40 PROFINET IO General Indo tia 10 Features a ea e ed e le be de Differences between the 40 and 30 series Chapter2 Basic Operation General Information Software Requirements Electronic Data Sheet GSD ee 15 Communication
52. LC will be notified in the connect response by a module diff block Deleting a diagnostic instance is done by issuing the command Delete This will trigger a disappear alarm on the network Supply the instance ID that was returned by the create command Every diagnostic instance has a severity level and an event code associated to it Major unrecoverable events will cause the module to disconnect itself from the network thus preventing network participa tion Other severity levels either produce a Channel Diagnostic alarm or a Generic Diagnostic alarm depending on the Event Code according to the table below Severity Event code network specific Event code network specific Minor recoverable Channel Diagnostic Alarm Generic Diagnostic Alarm Minor unrecoverable See Extended Diagnostics on page 25 Major recoverable Major unrecoverable Anybus enters Exception state Note Process alarms can not be created See also e Diagnostic Object 02h on page 73 3 5 2 Extended Diagnostics Using the network specific event code FFh creates a Generic Diagnostic Alarm on the network This type of alarm can carry extended diagnostic information and more details about the source of the prob lem Generic Diagnostic Alarm instances can be tagged with a source API and slot and subslot number and can also contain additional network specific diagnostic data For more information see Details
53. N TIME_WAIT Quiet wait after close TCP RX bytes Get UINT16 Number of bytes in RX buffers TCP sockets only TCP TX bytes Get UINT16 Number of bytes in TX buffers TCP sockets only Reuse address Get Set BOOL Socket can reuse local address Value Meaning 1 Enabled 0 Disabled default Keep alive Get Set BOOL Protocol probes idle connection TCP sockets only Value Meaning 1 Enabled 0 Disabled default 10 IP Multicast TTL Get Set UINT8 IP Multicast TTL value UDP sockets only Default 1 11 IP Multicast Loop Get Set BOOL IP multicast loop back UDP sockets only Value Meaning 1 Enable default 0 Disable 12 Ack delay time Get Set UINT16 Time for delayed ACKs in ms TCP sockets only Default 200ms 13 TCP No Delay Get Set BOOL Don t delay send to coalesce packets TCP Value Meaning 1 Delay default 0 Don t delay turn off Nagle s algorithm on socket 14 TCP Connect Timeout Get Set UINT16 TCP Connect timeout in seconds default 75s If the Keep alive attribute is set the connection will be probed for the first time after it has been idle for 120 min utes If a probe attempt fails the connection will continue to be probed at intervals of 75 s The connection is ter minated after 8 failed probe attempts Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 M
54. NET networking system certain things must be taken into account Up to 32767 ADIs can be represented on PROFINET ADI names types and similar attributes cannot be accessed via PROFINET They are however represented on the network through the built in web server Up to 5 diagnostic instances can be created by the host application An additional 6th instance may be created in event of a major fault For conformance reasons the host application must implement support for network reset types 00h Power on and 02h Power on Factory Default in the Application Object FFh PROFINET in itself does not impose any particular timing demands when it comes to acyclic requests i e requests towards instances in the Application Data Object however it is generally recommended to process and respond to such requests within a reasonable time period exactly what this means in practice depends on the implementation and the actual installation The order in which ADIs are mapped to Process Data is significant and must be replicated in the IO Controller when setting up the network communication i e modules must be set up in the same order size and direction as the mapped ADIs In case of a configuration mismatch see Configuration Mismatch on page 24 for more information See also e Application Data Instances ADIs on page 16 e Diagnostic Object 02h on page 73 Anybus Module Object Anybus CompactCom 40 Soft
55. NT8 07h CHAR 3 Number of elements Get Set UINT8 FOh 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of CHAR The current Station name 6 Configured value Get Array of CHAR The configured value that will be used after restart a Multilingual see Multilingual Strings on page 83 Note 1 This attribute shall normally not be set by the application The station name is normally set by the end user via the network The host application shall use this attribute when the end user has the pos sibility to edit the station name through the application and chooses to do so Note 2 This attribute should not be set by the application at every power on as this would cause certi fication problems Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 83 Instance Attributes Instance 21 F Address This instance holds the F Address which is the PROFIsafe address for the safety module If this value is changed by the host application during runtime a reset is required in order for changes to have effect Extended Name Access Type Description 1 Name Get Array of CHAR F Address 2 Data type Get UINT8 05h UINT16 3 Number of elements Get Set UINT8 Oth 4 Descriptor Get UINT8 03h read write access 5 Value Get Set UINT16 F Address set by the host application Range 1 65534 Default 1 6 Configured value Get UINT16 The co
56. Name Description DHCP Checkbox for enabling or disabling DHCP Default value disabled IP address The TCP IP settings of the module Subnet mask Default values 0 0 0 0 Gateway address Value ranges 0 0 0 0 255 255 255 255 Host name IP address or name Max 64 characters Domain name IP address or name Max 48 characters Available SMTP Settings Name Description Server IP address or name Max 64 characters User Max 64 characters Password Max 64 characters Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Web Server 35 5 2 2 Ethernet statistics page The Ethernet statistics web page contains the following information Current IP Configuration Description DHCP Host Name IP Address Subnet Mask Gateway Address DNS Server 1 DNS Server 2 Domain Name Current Ethernet Configuration Description MAC Address Port 1 Speed The current link speed Duplex The current duplex configuration Port 2 Speed The current link speed Duplex The current duplex configuration Interface Counters Description In Octets Received bytes In Ucast Packets Received unicast packets In NUcast packets Received non unicast packets broadcast and multicast In Discards Received packets discarded due to no available memory buffers In Errors Received packets discarded due to reception error
57. Network Guide Anybus CompactCom 40 PROFINET IO PROFINET RT IRT Doc Id HMSI 27 226 Rev 1 22 11 HITIS FF Connecting Devices HALMSTAD CHICAGO KARLSRUHE TOKYO BEIJING MILANO MULHOUSE COVENTRY PUNE COPENHAGEN HMS Industrial Networks Mailing address Box 4126 300 04 Halmstad Sweden E mail info hms networks com Visiting address Stationsgatan 37 Halmstad Sweden Web www anybus com Important User Information This document is intended to provide a good understanding of the functionality offered by the Anybus CompactCom 40 PROF INET IO The document only describes the features that ate specific to the Anybus CompactCom 40 PROFINET IO For gen eral information regarding the Anybus CompactCom 40 consult the Anybus CompactCom 40 design guides The reader of this document is expected to be familiar with high level software design and communication systems in general The use of advanced PROFINET IO specific functionality may require in depth knowledge in PROFINET IO networking in ternals and or information from the official PROFINET specifications In such cases the people responsible for the implemen tation of this product should either obtain the PROFINET specification to gain sufficient knowledge or limit their implementation in such a way that this is not necessary Liability Every cate has been taken in the preparation of this manual Please inform HMS Industrial Networks AB of any inaccuracies or o
58. PROFINET IO Doc Rev 1 22 Initial API Block Initial Module Block API 0 Module Block Module 1 Submodule Block Module 1 Submodule Block Module 1 Submodule Block Module 1 Module Block Module 2 Submodule Block Module 2 Initial Module Block API 2 Module Block Module 1 Submodule Block Module 1 Submodule Block Module 1 No of APIs API no No of Modules Slot no No of Submodules Module ID Subslot no Submodule ID Input Data Length Output Data Length Subslot no Submodule ID Input Data Length Output Data Length Subslot no Submodule ID Input Data Length Output Data Length Slot no No of Submodules Module ID Subslot no Submodule ID Input Data Length Output Data Length API no No of Modules Slot no No of Submodules Module ID Subslot no Submodule ID Input Data Length Output Data Length Subslot no Submodule ID Input Data Length Output Data Length 0002h 00 00 00 00h 0002h 0001h 0003h 4A 6F 48 62h 0001h 65 6C 69 65h 0004h 0010h 0002h 76 65 73 69h 0008h 0002h 0003h 6E 53 61 6Eh 0008h 0002h 0002h 0001h 74 61 43 6Ch 0001h 6175 73 21h 0010h 0001h 00 00 00 02h 0001h 0001h 0002h 4A 6F 48 82h 0001h 65 6C 67 65h 0004h 0010h 0002h 76 65 74 69h 0008h 0002h Doc ld HMSI 27 226 142 Command Details End_Of_Prm_Ind Category Advanced D
59. PROFINET cable see Front View PROFINET IRT on page 155 F 2 Front View PROFINET IRT Fiber Optic tem 1 Optical signal from the Anybus CompactCom module 2 Optical signal to the Anybus Compact om module Connectors SC RJ Fiber Optic Connector Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Technical Specification 157 F 3 Protective Earth PE Requirements In order to ensure proper EMC behavior the module must be properly connected to protective earth via the PE pad PE mechanism described in the Anybus CompactCom 40 Hardware Design Guide Proper EMC behavior is not guaranteed unless these PE requirements ate fulfilled Note The shield of the RJ45 connector is not connected directly to PE As all nodes in a PROFINET network have to share chassis ground connection the PROFINET cable shield has to be connected to the chassis ground at each node in the network For further information see PROFINET Installation Guideline for Cabling and Assembly available for download at www profinet com RJ45 Connector for PROFINET Pin no Description 1 2 4 5 Connected to chassis ground over serial RC circuit 1 8 3 RD 6 RD 7 TD 8 TD Housing Cable Shield F 4 Power Supply Supply Voltage The module requires a regulated 3 3 V power source as specified in the general Anybus CompactCom 40 Hardware Design Guide Power
60. SlotNr high byte Slot number of module Range 0 Ox7FFF See also e Command Details Plug_Module on page 88 e Command Details Pull_Submodule on page 94 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Pull_Submodule Category Advanced Details Command Code 13h Valid for Object Instance Description 94 This command removes a submodule from the configuration Can be issued at any time During run time it can be called in case there are changes to the Real Identification The CompactCom 40 then au tomatically issues a Pull alarm to the master Command Details Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 API low word low byte Application Process Instance API Data 1 API low word high byte Data 2 API high word low byte See also Application Process Instances API on page 22 Data 3 API high word high byte Data 4 SlotNr low byte Slot number of submodule Data 5 SlotNr high byte Range 0 OX7FFF Data 6 SubSlotNr low byte Subslot number of submodule Range Data 7 SubSlotNr high byte For API 0 1 0x8002 For API gt 0 1 Ox7FFF See also e Command Details Plug_Submodule on page 89 e Command Details Poll Module on page 93 Anybus CompactCom 40 PROFINET IO Doc R
61. T IO 2 Revision Get UINT8 01h 3 Number of instances Get UINT16 0001h 4 Highest instance no Get UINT16 0001h Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Instance Attributes Instance 1 131 Basic Name Access Type Default Value Comment 1 Device ID Get UINT16 0010h Identifies the device Assigned by manufacturer 2 Vendor ID Get UINT16 010Ch Identifies the device manufacturer 18M Manufacturer 1D Assigned by the PNO 3 Station Type Get Array of CHAR ABCC40 PIR Characterizes the device Assigned by manufacturer up to 25 characters 8 18M Order ID Get Array of CHAR ABCC40 PIR 1 amp M0 Parameter Order ID of device up to 20 characters 9 18M Serial Number Get Array of CHAR Assigned during 1 amp M0 Parameter manufacturing Serial number of device up to 16 charac ters 19 System Description Get Array of CHAR HMS Industrial Up to 255 characters Networks Anybus CompactCom 40 a If an attribute is not implemented this value will be used instead GSD Entries The GSDML entries below must match the values of the corresponding attributes in the PROFINET IO object Attributes 1 and 2 corresponds the following entry in the GSDML file lt Deviceldentity VendorID 0x010C DeviceID 0x0010 gt lt OrderNumber Value ABCC40 PIR gt Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Attributes 3 corresponds th
62. T IO Object F6h by means of the Ger Record and Set_Record commands The remainder of this section assumes API 0 zero es Slot amp subslot The Slot and subslot values have no impact on the actual addressing of ADIs except that the actual Slot and subslot needs to be populated with a module submodule This is always true for the DAP Device Access Point which occupies Slot 0 subslot 1 Other Slot subslot values can also be used provided that the implementation populates it with a module submodule Index There is a 1 1 correlation between ADI and index as long as the index number is less than or equal to 7FFFh Index 0 zero is not associated with an ADI and cannot be used API Slot Subslot Index ADI Comments 0 0 1 0000h not associated with ADIs 0001h 1 Device Access Point DAP 0002h 2 7FFFh 32767 8000h FFFFh not associated with ADIs X gt 0 Y 0000h 0001h 1 Conditional X and Y must be populated 0002h 2 7FFFh 32767 8000h FFFFh not associated with ADIs gt 0 See Application Process Instances API on page 22 See also e Caveats on page 17 e Application Process Instances API on page 22 PROFINET IO Object FGh on page 130 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Basic Operation 17 2 4 2 Process Data Mapping an ADI to Write Process Data results in PROFINET input data and map
63. T_ID_EXAMPLE2_PRM_1 gt lt ParameterRecordDataltem gt lt RecordDataList gt It is recommended that the above GSD information is placed directly after the lt IOData gt keyword for the module for which the data is associated If more than one ADI need to be set the keyword ParameterRecordDataltem is duplicated Please note that TextId s T_ID_xxx above need to be added to the lt ExternalTextList gt section of the GSD file once for each language defined lt Text Textld T_ID_EXAMPLE2 Value Config parameter 1 gt lt Text Textld T_ID_EXAMPLE2_PRM_1 Value Parameter value description gt Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Basic Operation 15 2 2 Network Identity By default the module identifies itself as a generic Anybus implementation as follows Device ID 0010h Anybus CompactCom 40 PROFINET Vendor ID 010Ch HMS Industrial Networks Station Type ABCC40 PIR It is recommended to customize the identity information so that the Anybus module appears as a vendor specific implementation rather than a generic Anybus product See also e Identification amp Maintenance I amp M on page 26 e PROFINET IO Object F6h on page 130 2 3 Communication Settings Network related communication settings are grouped in the Network Configuration Object 04h and includes Ethernet Interface Settings The module is locked to
64. UM value It will then issue a Get Enum String command to retrieve the actual enumeration string The actual data type in the response will be STRING FLOAT Yes NONE No Response holds no data hence no data type IMPORTANT Iz is important to note that the message will be passed transparently to the addressed object The SST engine performs no checks for violations of the object addressing scheme eg a malformed Get_Attribute request which wrongfully includes message data will be passed unmodified to the object even though this is obviously wrong Failure to observe this may cause loss of data or other undesired side effects Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Example Get_Attribute Server Side Include SSI 55 This example shows how to retrieve the IP address using printf and ABCCMessage lt exec cmd_argument printf Su u Su u ABCCMessage 4 3 1 5 0 0 NONE UINT8 4 gt Variable Value Comments object 4 Network Configuration Object 04h instance 3 Instance 3 IP address command 1 Get_attribute ce0 5 Attribute 5 cel 0 msgdata 0 c_type NONE Command message holds no data r_type UINT8 4 Array of 4 unsigned 8 bit integers See also 7 49 printf Example Set_Attribute This example shows how to set the IP address using scanf and ABCCMessage Note the spe cial parameter value ARG which ins
65. Write error RPC Control error Forbidden pull or plug after check rsp and before in data ind AP removed Link down Could not register multicast mac Not synchronized cannot start companion ar Wrong topology cannot start companion ar Dep station name changed Dep reset to factory settings Cannot start companion AR because of parameter error Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Response Details no data Details Error Code 1 144 The error codes below shall be used when providing error responses to the following commande Get_Record Set_Record Get_IM_Record Set IN Record High nibble bits 4 7 Low nibble bits 0 3 ErrorClass Meaning ErrorCode Meaning Comments 0 9 Reserved reserved reserved 10 Application Read error Write error Module error reserved Busy Version conflict Oo el Nl ln alo o Feature not supported Y o 15 User specific 11 Access Invalid index Write length error Invalid slot subslot Type conflict Invalid area State conflict Access denied Invalid range Invalid parameter CO CO N MD GM O0O N O Invalid type Backup User specific 12 Resource Read constrain conflict Write constrain conflict Resource busy Resource unavailable a
66. _argument command gt command Command function see below Command Functions Server Side Include SSI 41 Command Valid for E mail Messages Page GetConfigltem Yes 42 SetConfigltem No 43 SsiOutput Yes 45 DisplayRemoteUser No 45 ChangeLanguage No 46 IncludeFile Yes 47 SaveDataToFile No 48 printf Yes 49 scanf No 51 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Server Side Include SSI 42 7 3 2 GetConfigltem This command returns specific information from a file in the file system File Format The source file must have the following format key1 valuel key2 value2 keyN valueN Syntax lt exec cmd _argument GetConfigltem filename key separator gt filename Source file to read from key Source key in file separator Optional specifies line separation characters e g lt br gt default is CRLF Default Output Scenario Default Output Success value of specified key Authentication Error Authentication error File open error Failed to open file filename Key not found Tag key not found Example The following SSI lt exec cmd_argument GetConfigItem fruit cnf Lemon gt in combination with the following file fruit cnf Apple Green Lemon Yellow Banana Blue returns the string Yellow A
67. a 4 Host port number low Datal 5 Host port number high e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 110 Command Details Receive Category Advanced Details Command Code 15h Valid for Instance Description This command receives data from a connected socket Message segmentation may be used to receive up to 1472 bytes see Message Segmentation on page 150 For SOCK DGRAM sockets the module will return the requested amount of data from the next re ceived datagram If the datagram is smaller than requested the entire datagram will be returned in the response message If the datagram is larger than requested the excess bytes will be discarded For SOCK_STREAM sockets the module will return the requested number of bytes from the received data stream If the actual data size is less than requested all available data will be returned NON BLOCKING mode If no data is available on the socket the error code 0006h EWOULDBLOCK will be returned BLOCKING mode The module will not issue a response until the operation has finished If the module responds successfully with 0 zero bytes of data it means that the host has closed the connection The send channel may however still be valid and must be closed using Shutdown and or Delete Command Details Field Contents Notes CmdExt 0 reserved set to
68. aacidateaeviesetelvcieacivelescasnsanstiviies 39 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Server Side Include SSI E ee Oe E SABC e EE SSI Output Configutati0N EE JSON CA e a aienea a oa Nirn eNe slsteveaseaiveosiess SNOT a ERE TT Hex Format Explained aiaia iae eaa aa idas SNMP Agent GENEL EE AE Interfaces Group Variables nai tdo Media Redundancy Protocol MRP General E GSDME ENIES sui EE EE Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 a bi 66 Doc ld HMSI 27 226 Chapter 11 Anybus Module Objects E o AAA E ae 71 Anybus Object OLA int ee a eege 72 Diagnostic Object 02h ii di 73 Network Object DN la 76 Network Configuration Object OAD iii dde 77 Network PROFINET ITO Object OED eeebsee eege 85 Socket Interface Object Ob iaa 101 SMP Ehe Object Ob 118 File System Interface Object OAh Network Ethernet Object Ch ege e ENEE atando daa Chapter 12 Host Application Objects General Information E 125 Sync Object DEER EE 126 PROFINEDTO Object rb teste ee 130 Ethernet Host Object PIN ari A A ai 145 Appendix A Categorization of Functionality Bs 148 A Sausesessssineeae E EEEE ETE RTA 148 EE 148 Appendix B Anybus Implementation Details IER Biti D Chm OT Sa 149 EE 149 Application Watchdog Timeout Handling ee 149 Appendix C Message Segmentation Generali aia A 150 Command Segmentation ri a
69. al Simple Network Management Protocol SNMP see RFC1157 standard is used in network management systems to monitor network attached devices for conditions that warrant administrative attention A management agent is installed in the managing station and exchanges data via get and set requests 9 2 Management Information MIB A MIB is a device database that is accessed by an SNMP agent The Anybus CompactCom 40 PROF INET IRT 2 Port module supports standardized MIBs LLDP MIB and MIB II Standardized MIBs are defined in RFC standards and contain variables that are divided into so called groups The host applica tion can change the values of some of the variables for the MIB II 9 3 MIB II The MIB II of the Anybus CompactCom 40 PROFINET IRT module contains the system and inter faces group The following tables show the variables according to the MIB II standard RFC1213 for monitoring the device status The access authorizations refer to access via the SNMP protocol Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 9 3 1 System Group Variables SNMP Agent 68 Variable See Description Source of Origin sysDescr Read only Description of the device Data type Display PROFINET Object String only printable ASCII characters Max 255 char Instance attribute 19 acters Factory default setting HMS Industrial System Description Networks Anybus CompactCom 40 See Instance Attrib
70. alid for Object Instance Description 84 A reset command to this object will result in that all instances are set to their default values It is optional to implement support for this command e Command Details Field Comments CmdExt 0 00h Reserved CmdExt 1 01h Factory default reset e Response Details No data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 85 11 6 Network PROFINET IO Object 0Eh General Information Extended advanced When the application maps ADIs to process data during start up the Anybus CompactCom 40 will cre ate the module configuration as described in Real Identification RI on page 23 The modules in the GSDML file must then be described in the same way The GSDML file provided by HMS provides a few examples based on this way of describing modules If the end user wishes to define modules in another way the application must provide the module con figuration to the CompactCom 40 This is achieved by using the following commands APIAdd e Plug Module e Plug Submodule e Plug Submodule_Ext These commands need to be sent after the process data is mapped and before sending setup complete to the CompactCom 40 Example Initially the application maps ADIs as process data by calling all or some of the functions below Map_ADI_Write_Area 10h Map AIDL Read Area 11h e Map AIDL Write_Ext_Area 12h Map AIDL Read Bet Area 13h
71. and PROFINET specific diagnostic support Complies with PROFINET IO Conformance class C e Supports up to 1440 bytes I O data in each direction status bytes included Supports 250 us cycle time SNMP agent s FTP server E mail client Server Side Include SSI functionality e JSON functionality e Device identity customization e GSD file template provided by HMS Supports PROFINET Fast Start Up Supports Media Redundancy Protocol MRP Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 About the Anybus CompactCom 40 PROFINET IO 11 1 3 Differences between the 40 and 30 series 18 M e I amp M5 15 requests are rejected by the CompactCom 40 module in nontransparent I amp M mode e I amp M Record data transparent mode is replaced with the IM_Options command e I amp MO parameters IM Version and IM Supported ate removed from the PROFINET Host ob ject and set to constant values Diagnostics e Process alarms cannot be created Diagnostic events can be created when not online i e in PROCESS_ACTIVE or IDLE The structure of network specific event information has changed Instead of including diagnostic source information such as API Slot and Subslot in the data field it is extracted from the extend ed diagnostic fields in the create command API Slot and Subslot is determined with the help of Slot and ADI given by the extended diagnostic mode Network Configuration Object e Network specific ins
72. ansmission an error message is returned and the curt rent segmentation message is discarded Note however that this only applies to the current seg ment previously transmitted segments are still valid C 3 Response Segmentation When a response is segmented the command initiator requests the next segment by sending the same command multiple times For each response the data field is exchanged with the next data segment Response segmentation is used for responses to the following commands Receive object specific see Command Details Receive on page 110 Receive From object specific see Command Details Receive_From on page 111 Segmentation Control bits Command Bit Contents Meaning 0 reserved set to zero 1 2 AB Set if the segmentation shall be aborted Bis L reserved set to zero Segmentation Control bits Response Bit Contents Meaning 0 FS Set if the current segment is the first segment 1 LS Set if the current segment is the last segment 2 7 reserved set to zero When receiving a segmented response the following rules apply Anybus CompactCom 40 PROFINET IO In the first segment FS is set In all subsequent segment both FS and LS are cleared In the last segment LS is set For single segment responses i e size less or equal to 1500 bytes both FS and LS are set The command initiator may at any time abort the operation by issuin
73. are Design Guide www anybus com Anybus CompactCom M40 Hardware Design Guide Anybus CompactCom Software Driver User Guide PROFINET IO specification rev 2 3 Profibus International PROFlenergy Technical Specification rev 1 0 Profibus International GSDML Technical Specification for PROFINET IO rev 2 31 Profibus International P 2 Document History Summary of Recent Changes 1 21 1 22 Change Page s Rewrote Configuration Mismatch section 24 Added attribute 16 IP configuration to the Ethernet Host Object F9h 145 Removed the system contact attribute of the PROFINET IO Object from the Conformance section 159 Added Documentation Considerations section 160 Revision List Revision Date Author s Chapter s Description 0 50 2014 01 24 ka All First draft 1 00 2014 06 13 KaD All First public release 1 10 2014 09 01 kel KaD A Major updates 1 11 2014 10 09 KaD All Added Fiber Optic information minor updates 1 20 2014 12 15 KaD All Major updates 1 21 2015 03 06 KaD 3 11 12 D G Major updates 1 22 2015 03 XX KaD Minor updates Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 About This Document 9 P 3 Conventions Terminology The following conventions are used throughout this manual Numbered lists provide sequential steps Bulleted lists provide information not proce
74. ata 7 See also e Application Process Instances API on page 22 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 96 Command Details Appl_State_Ready Category Advanced Details Command Code 15h Valid for Object Instance Description This command is only applicable if the host application implements support for Pond OC Dem Tod and signals to the module and in turn the I O Controller that the host application is ready for data exchange e Command Details Field Contents Comments CmdExt 0 AR handle low byte Handle for the Application Relationship AR CmdExt 1 AR handle high byte see Application Process Instances API on page 22 See also e Application Relationships AR on page 22 e Command Details End_Of_Prm_Ind on page 142 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 97 Command Details AR_Abort Category Advanced Details Command Code 16h Valid for Object Instance Description This command indicates to the module that the current application relationship shall be aborted Command Details Field Contents Comments CmdExt 0 AR handle low byte Handle for the Application Relationship AR CmdExt 1 AR handle high byte see Application Process Instances API on page 22 See also e Application Relationships AR on page 22 e Command Details AR_C
75. ax Syntax depends on context Argument Functions Function Description Page ABCCMessage 53 7 4 2 ABCCMessage This function issues an object request towards an object in the module or in the host application Syntax ABCCMessage object instance command ce0 cel msgdata c_type r_type object Specifies the Destination Object instance Specifies the Destination Instance command Specifies the Command Number ce0 Specifies CmdExt 0 for the command message cel Specifies CmdExt 1 for the command message msgdata Specifies the actual contents of the MsgData subfield in the command e Data can be supplied in direct form format depends on c_type The keyword ARG is used when data is supplied by the parent command e g scanf c_type Specifies the data type in the command msgdata See also e Command Data Types c_type on page 54 r_type Specifies the data type in the response msgdata See also e Response Data Types 1_type on page 54 Numeric input can be supplied in the following formats Decimal e g 50 no prefix Octal e g 043 Prefix 0 zero Hex e g Ox1f Prefix Ox See also e Example Get_Attribute on page 55 e Example Set_Attribute on page 55 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 54 e Command Data Types c_type For types which support arrays the number
76. be aware that this file can be accessed and read from the network Example In this example the list of approved users will be loaded from here cfg and too cfg File path i put some over here cfg i actually put some of it here too cfg AuthName Howdy Password please Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Chapter 6 6 E mail Client 6 1 General Information Category extended The built in e mail client allows the application to send e mail messages through an SMTP server Mes sages can either be specified directly in the SMTP Client Object or retrieved from the file system The latter may contain SSI however note that for technical reasons certain commands cannot be used spec ified separately for each SSI command The client supports authentication using the LOGIN method Account settings etc are stored in the Network Configuration Object See also e Network Configuration Object 04h on page 77 e SMTP Client Object 09h on page 118 6 2 How to Send E mail Messages To be able to send e mail messages the SMTP account settings must be specified This includes A valid SMTP server address A valid username e A valid password To send an e mail message perform the following steps 1 Create a new e mail instance using the Create command 03h Specify the sender recipient topic and message body in the e mail instance
77. but it will disregard the answer from the application Isochronous mode In this mode the isochronous mode is enabled in the PLC configuration tool The application must then implement all attributes of the Sync object The first attribute read by the module will be 8 supported syne modes The application must respond with 1 for the isochronous AR to be established By start up attribute 8 supported sync modes is read 1 For every submodule where ISOM is activated in the PLC Read OutputProcessing Read InputProcessing Read MinCycleTime 2 Write sync mode NACK amp amp ISOM enabled in PLC NACK 3 Write cycle time NACK amp amp ISOM enabled in PLC NACK 4 If ISOM is activated Set OutputValid If NACK NACK Set InputCapture If NACK NACK Supported Commands Object Get_Attribute Instance Get_Attribute Set_Attribute Object Attributes Instance 0 Consult the general Anybus CompactCom 40 Software Design Guide for further information Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Instance Attributes Instance 1 129 Name Access Profinet IRT Type Description 1 Cycle time Get Set RR SCF UINT32 The module supports cycle times as low as 250 us 2 Output valid Get Set T_IO_Output UINT32 Output valid point relative to SYNC events in nanoseconds Default value 0 2 Input capture Get Set T IO
78. c HMSI 27 226 PROFINET IO Implementation Details 28 3 7 Fast Start Up 3 7 1 General Information The Fast Start Up FSU function enables PROFINET IO devices connected to the network to power up quickly This is useful in for example robot applications where rapid retooling is necessary With FSU activated the module will send a DCP Hello message as soon as possible after powet on This function is enabled by two GSD keywords PowerOnToCommReady and DCP_HelloSupported The activation is made from the PLC configuration tool The FSU time is defined as the number of milliseconds ms from hardware reset or power on until the module enters the PROCESS_ACTIVE state On PROFINET it is recommended to try to reach a FSU time lt 500 ms To enable FSU set values according to the following listed for the Device Access Point s PowerOnToCommReady FSU time in milliseconds ms This value must be measured by the customer DCP_HelloSupported Value true To disable FSU set the keywords to the following values PowerOnToCommReady Remove this keyword from the GSD file DCP_HelloSupported Value false 3 7 2 How to Improve the FSU Time Issue as few commands as possible to the module during the SETUP state Respond as fast as possible to all commands issued by the module after setup is complete If there is record data in the GSD file use attribute 4 in the Application Object FFh instance 1 Parameter Control Sum
79. d This means that for the ADI Based RI method the command must be sent when the module has shifted to WAIT_PROCESS state For the Application specific RI method the command can be sent in SETUP state but after the plugging of modules submodules is finished Plug_Module Plug_Submodule The table below contains two entries as an example Field Contents Comments Example CmdExt 0 IM_Transparent Bitmask for enabling transparent I amp M data 02h CmdExt 1 Reserved See table below Data 0 SlotNr low byte Location of the submodule that shall be Entry 1 Data 1 SlotNr high byte part of the 18 MO Filter Data module with Data 2 SubSlotNr low byte discrete I M Data 3 SubSlotNr high byte Geh ec 1 Data 4 IMO_Filter_Data Bitmask specifying which I amp M0 Filter Data 01h block s the submodule shall belong to See table below Datal 5 SlotNr low byte Entry 2 Data 6 SlotNr high byte module with Data 7 SubSlotNr low byte discrete ANM Data 8 SubSlotNr high byte Ge 2 Data 9 IMO Eiter Data 01h IM_Transparent Bit Value Description 0 0 1 Transparent amp M data for SlotNr 0 DAP 1 0 1 Transparent amp M data for SlotNr not equal to 0 2 7 Reserved IMO_Filter_Data Bit Value Description 0 0 1 Submodule will be included in the 18MO Carrier Data block 1 0 1 Submodule will be included i
80. d SlotNr See Data 10 11 Range 1 255ADI element associated with the submodule 0 Entire ADI is associated with the submodule Data 6 API low word low byte Application Process Instance API Data 7 API low word high byte Data 8 API high word low byte See also Data 9 API high word high byte Application Process Instances API on page 22 Data 10 SlotNr low byte Destination slot for submodule Data 11 SlotNr high byte Range O OX7FFF Data 12 SubSlotNr low byte Destination subslot for submodule Range Data 13 SubSlotNr high byte For API 0 1 0x8002 For API gt 0 1 OX7FFF Data 14 SubModldent low word low byte Submodule identifier as stated in the GSD file Data 15 SubModldent low word high byte Data 16 SubModldent high word low byte Data 17 SubModldent high word high byte See also e Real Identification RI on page 23 Configuration Mismatch on page 24 e Command Details Plug Module on page 88 e Command Details Poll Module on page 93 e Command Details Pull_Submodule on page 94 e Command Details API_Add on page 95 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 91 Command Details Plug_Submodule_Ext Category Advanced Details Command Code 19h Valid for Object Instance Description This is an extended version of the Plug_Submodule command This command may be called durin
81. d combinations will be ac cepted and the home directory will be the FTP root Le ftp The home directory for a user must also exist in the file system if they should be able to log in just adding the user information to the ftp cfg file it is not enough Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 FTP Server 32 e If Admin Mode has been enabled in the Ethernet Object all username password combinations will be accepted and the user will have unrestricted access to the file system i e the home direc tory will be the system root e Itis strongly recommended to have at least one user with root access V permission If not Admin Mode must be enabled each time a system file needs to be altered including A ftp cfg 4 3 Session Example The Windows Explorer features a built in FTP client which can easily be used to access the file system as follows 1 Open the Windows Explorer by right clicking on the Start button and selecting Explorer 2 In the address field type FTP lt user gt lt password gt lt address gt Substitute lt address gt with the IP address of the Anybus module Substitute lt user gt with the username Substitute lt password gt with the password 3 Press enter The Explorer will now attempt to connect to the Anybus module using the specified settings If successful the file system will be displayed in the Explorer window File Edit View Fav
82. d from the RSA Data Security Inc MD5 Message Digest Algorithm in all material mentioning or referencing the derived work RSA Data Security Inc makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose It is provided as is without express or implied warranty of any kind These notices must be retained in any copies of any part of this documentation and or software Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Copyright Notices 164 Copyright 2013 Query Foundation and other contributors http jquery com Permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files the Software to deal in the Software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and or sell copies of the Software and to permit persons to whom the Software is furnished to do so subject to the following conditions The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software THE SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
83. de 150 Response SEMEN dl he ua Leg ad 151 Appendix D Flowcharts Flowchart Recotd Data ACCESS Asise issena Eed 152 Flowchart I amp M Record Data Handling API O onccncacacnnnnannncnnnnnnnconannononnnncnnoniononianinnacinnanicninos 153 Appendix E Secure HICP Secure Host IP Configuration Protocol Ga A oasis 154 A eile ota ied nee NO 154 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Appendix F Technical Specification Front View PROFINET E RE 155 Navas LED orea E E A E E 155 Modules tains TETS dha ita 155 LINK Acity LED iaa ada ARENS 156 E EIE ee 156 Front View PROFINET IRT Piber Op aE A S 156 Protective Earth PE Requirement insisi naaran aa ads ea 157 NEE 157 Environmental peter oi 157 EMC prp 157 Appendix G Conformance Test Guide VE 158 Reidentifying Your Production SEENEN ENEE 159 Factory Default Reset eet Ee acid calidad EE 159 IBAS O dao a ias 160 A ROA 160 Documentation Considerations 7 csc scessdadsersdassorseedsoretedsoneondienrtersenersedonstostensecedeasesseuenstdebrecnsabensase 160 Cettification am Genetic Anybus Modest desa 161 Certification in Advanced Modern a A A 162 Appendix H Copyright Notices Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 P About This Document Preface For more information documentation etc please visit the HMS website www anybus com P 1 Related Documents Document Author Anybus CompactCom 40 Softw
84. distribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 1 Redistributions of source code must retain the above copyright notice this list of conditions and the following disclaimer 2 Redistributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution 3 The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE HR RRR KIKI RARA RRA RA RAR RARA RARA He k ke k e ke e KIKI ke ARA RARA RARA RARE RARE III KEI IKI kk k kk k Anybus CompactCom 40 PROFINET IO D
85. dules Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 127 Calculating Input Processing Time This needs to be measured by the application designer The time consists of two delays The delay added by the module The time from when the message is available in the module until it is available on the network The delay added by the application This is the time it takes for the application from inputs are captured until the inputs are available for the module To calculate the delay added by the module the following formula shall be used tapcc 12980 ns trip 789 ns Ddata lengthofn 35 ns trout 240 ns trout total number of output submodules tin total number of input submodules GSDML entries When the total time has been calculated for every module the following must be added to the GSDML file IsochroneModeInRT_Classes RT_CLASS_3 in the lt Interfacesubmoduleltem gt lt IsochroneMode T_DC_Base 8 T_DC_Min 1 T_DC_Max 16 T_IO_Base 1000 T_IO_OutputMin x T_IO_InputMin y gt X output processing time Y input processing time Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 128 Using the Sync attributes Nonisochronous mode In this mode the isochronous mode is not enabled in the PLC configuration tool The application does not have to implement any of the attributes in the Sync object The module will still write to attribute 1 Cycle time
86. dural steps The terms Anybus or module refers to the Anybus CompactCom module The terms host or host application refers to the device that hosts the Anybus module Hexadecimal values are written in the format NNNNh or 0xNNNN where NNNN is the hexa decimal value A byte always consists of 8 bits P 4 Support For general contact information and support please refer to the contact and support pages at www anybus com Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 1 1 About the Anybus CompactCom 40 PROFINET IO 1 1 General Information The Anybus CompactCom 40 PROFINET IO communication module provides instant PROFINET Real Time connectivity via the patented Anybus CompactCom host interface Any device that supports this standard can take advantage of the features provided by the module allowing seamless network in tegration regardless of network type This product conforms to all aspects of the host interface defined in the Anybus CompactCom 40 Hard ware and Software Design Guides making it fully interchangeable with any other device following that specification Generally no additional network related software support is needed however in order to take advantage of advanced network specific functionality a certain degree of dedicated software sup port may be necessary 1 2 Features Ethernet connectors Up to 128 submodules in total e Up to 32767 ADIs Generic
87. e lt can be an exponential value containing a decimal rational number fol lowed by an exponent field which consists of an E or an e followed by an integer n Consumes no input the corresponding argument is an integer into which SINT8 UINT8 scanf writes the number of characters read from the object input SINT16 UINT16 SINT32 UINT32 s Accepts a sequence of nonwhitespace characters STRING scanset Accepts a sequence of nonwhitespace characters from a set of expected STRING bytes specified by the scanlist e g 0123456789ABCDEFT A literal Y character can be specified as the first character of the set A caret character UN immediately following the initial T inverts the scanlist i e allows all characters except the ones that are listed Accepts a single input at this point no assignment or conversion is done The complete conversion specification should be e Optional Data is read but ignored It is not assigned to the corresponding argument e Width Optional Specifies the maximum number of characters to be read e Modifier Optional Specifies a different data size Modifier Meaning h SINT8 SINT16 UINT8 or UINT16 SINT32 or UINT32 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 53 7 4 Argument Functions 7 4 1 General Information Argument functions are supplied as parameters to certain command functions General Synt
88. e mapped Process Data as follows A DAP is plugged into Slot 0 zero Modules are added in consecutive order based on the order of the mapping commands All modules belong to API 0 zero The module identification number and the submodule identification number should be interpreted as follows Module ID 0x00000004 ADI number Example 100BASE TX DAP Submodule ID 0 Mapped to write PD area 1 Mapped to read PD area Number of elements to map ADI start element number ADI Type Resulting Real Identification Module Submodule ID Slot Subslot 10 Data Size bytes 0x80010000 0x00000001 0 1 Device Access Point 0x80010000 0x00000002 0 0x8000 Interface 0x80010000 0x00000003 0 0x8001 Port1 0x80010000 0x00000003 0 0x8002 Port2 6 1 SINT16 Wr 0x00000006 0x00000100 111 2 0 3 2 UINT8 Rd 0x00000003 0x10000200 211 0 2 3 1UINT8 Rd 0x00000003 0x10000104 2 2 0 1 9 1 SINT32 Rd 0x00000009 0x10000100 3 1 0 4 10 1 SINT16 Wr 0x0000000A 0x00000100 14 1 2 0 See also e Application Process Instances API on page 22 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 PROFINET IO Implementation Details 24 3 4 2 Configuration Mismatch If the application has implemented support for the remap commands in the Application Data object FEh the Anybus module will in case of a configuration mismatch using th
89. e 0 0 0 0 255 255 255 255 Default 0 0 0 0 a Multilingual see Multilingual Strings on page 83 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 80 Instance Attributes Instance 11 Host name This instance holds the host name of the module Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array of CHAR Host name 2 Data type Get UINT8 07h CHAR 3 Number of elements Get UINT8 40h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of CHAR Host name 64 characters pad with space to full length a Multilingual see Multilingual Strings on page 83 Instance Attributes Instance 12 Domain name This instance holds the domain name Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array of CHAR Domain name 2 Data type Get UINT8 07h CHAR 3 Number of elements Get UINT8 30h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of CHAR Domain name 48 characters pad with space to full length a Multilingual see Multilingual Strings on page 83 Instance Attributes Instance 13 SMTP Server This instance holds the SMTP server address Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array
90. e ADI mode try to remap the Real Identification to match the Expected Identification As the Module ID contains the ADI number and the Submodule ID describes I O direction and ele ment section all information required to perform a remap is available Note The application must be able to respond with the data type for every ADI or a remap is not pos sible The remap is performed in two steps first the read area is remapped and then the write area If the first remap request is rejected no change to the process data map and Real Identification is done If the sec ond remap request is rejected the process data map is in an inconsistent state and new remap commands are sent that will remove all mappings If both remap requests succeed a new Real Identification will be built to match the Expected Identification A controller may choose to connect to fewer submodules than are plugged by the application plugged explicitly using Plug_Module Submodule or implicitly by mapping ADIs to process data e Incomplete output mapping If the controller tries to connect to fewer output submodules than are plugged by the application the controller will not be granted ownership of any output submodule Anybus state is set to ERROR and LEDs will indicate Config mismatch Matching input submodules will be owned by controller and work normally Incomplete input mapping The controller may choose to connect to a subset of the available input subm
91. e following entry in the GSDML file DNS_CompatibleName ABCC40 PIR Attributes 8 corresponds the following entry in the GSDML file Doc ld HMSI 27 226 Extended 132 Name Access Type Default Value Comment Record Data Mode Get UINT8 00h This setting affects how Record Data requests are treated and constitutes a bit field as follows Bit 0 Index 0 7FFFh 0 Normal Mode 1 Transparent Mode Bit 1 Index AFFOh AFFFh Reserved replaced with the command IM_Options 17 Port 1 MAC address Get Array of UINT8 6 byte physical address value overrides the preprogrammed Mac address 18 Port 2 MAC address Get Array of UINT8 6 byte physical address value overrides the preprogrammed Mac address a If an attribute is not implemented this value will be used instead b The module is preprogrammed with a valid Mac address To use that address do not implement this attribute Advanced Name Access Type Default Value Comment MaxAr Get UINT32 0003h Max no of simultaneous ARs Range 1 3 Reserved Reserved for future use Reserved Reserved for future use 10 18M Hardware Revision Get UINT16 Hardware Rev I amp M0 Parameter Hardware revision of device FFFFh indi cates availability of profile specific infor mation 11 18M Software Revision Get Array of
92. e for PROFINET modules unless the end user has requested the IP address to be set to a specific value by for example using a keypad The reason is that when a factory default reset command is received from the PROFINET network via DCP the node must be available after a hardware or software reset with the default IP address 0 0 0 0 G 5 Station Name Normally the Station Name of a PROFINET device is assigned by the end user v a the PROFINET DCP protocol HMS recommends not using the Station Name instance in the Network Configuration Object during the initialization phase for PROFINET modules If this attribute is used it is recom mended that it is sent explicitly when the end user changes the Station Name with e g a keypad The reason is that when a factory default reset command is received from the PROFINET network via DCP the node must be available after a hardware or software reset with the default Station Name gt IMPORTANT The Anybus module will forward all information about the connection being established to the IO Con troller as commands to the host PROFINET IO Object F6h Even though the host application might not need this information a response must always be generated such as 05h Unsupported command G 6 Documentation Considerations To obtain a certificate the following information must be present in the customer s user manual pi g D 1 Behavior of the outputs if IOPS BAD 2 Behavior of the outputs
93. e info json JSON 61 Name Data Type Note modulename String serial String 32 bit hex ASCII fwver Array of Number major minor build uptime Array of Number high low milliseconds ms cpuload Number CPU load in JSON object layout modulename ABCC M40 serial ABCDEFO0 fwver ka Oal uptime 5 123456 cpuload 55 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 8 2 3 Network ethstatus json GET network ethstatus json JSON 62 Name Data Type Note mac String 6 byte hex comm1 Object See object definition in the table below comm2 Object See object definition in the table below Comm Object Definition Name Data Type Note link Number 0 No link 1 Link speed Number 0 10 Mbit 1 100 Mbit duplex Number 0 Half 1 Full JSON object layout mac 003011FF0201 comml link 1 speed L duplex 1 comm2 link 0 speed 0 duplex 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 ipstatus json amp ipconf json JSON 63 These two object share the same data format The object ipconf json returns the configured IP settings and ipstatus json returns the actual values that are currently used ipconf json can also be used to alter the IP settings GET network ipstatus json or GET network ipconf json
94. e system is located in flash memory Due to technical reasons each flash segment can be erased approximately 100000 times before failure making it unsuitable for random access storage The following operations will erase one or more flash segments Deleting moving or renaming a file or directory e Writing or appending data to an existing file Formatting the file system 2 7 3 System Files The file system contains a set of files used for system configuration These files known as system files are regular ASCII files which can be altered using a standard text editor such as the Notepad in Micro soft Windows The format of these files are with some exceptions based on the concept of keys where each key can be assigned a value see below Example Key1 value of Keyl Key2 value of Key2 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 3 3 PROFINET lO Implementation Details 3 1 General Information This chapter covers PROFINET specific details in the Anybus implementation Note that the use of such functionality may require in depth knowledge in PROFINET networking internals and or infor mation from the official PROFINET specification In such cases the people responsible for the imple mentation of this product are expected either to obtain these specifications to gain sufficient knowledge or limit their implementation in such a way that this is not necessary The GSD fi
95. ect 04h on page 77 Network Specific Objects Socket Interface Object 07h on page 101 SMTP Client Object 09h on page 118 File System Interface Object OAh on page 123 Network Ethernet Object 0Ch on page 109 Network PROFINET IO Object OEh on page 85 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 72 11 2 Anybus Object 01h Category Basic Object Description This object assembles all common Anybus data and is described thoroughly in the general Anybus CompactCom 40 Software Design Guide Supported Commands Object Get_Attribute Instance Get_Attribute Set_Attribute Get_Enum_String Object Attributes Instance 0 Consult the general Anybus CompactCom 40 Software Design Guide for further information Instance Attributes Instance 1 Basic Name Access Type Value 1 Module type Get UINT16 0403h Standard Anybus CompactCom 40 2 11 Consult the general Anybus CompactCom 40 Software Design Guide for further information 12 LED colors Get struct of Value Color UINT8 LED1A 01h Green UINT8 LED1B 02h Red UINT8 LED2A 01h Green UINT8 LED2B 02h Red 13 16 Consult the general Anybus CompactCom 40 17 Virtual attributes Get Set Software Design Guide for further information 18 Black list White list Get Set 19 Network time Get UINT64 0 Not supported Anybus CompactCom 40 PROFINET IO Doc Rev 1 22
96. ect host object y Reject request See also PROFINET IO Object F6h on page 130 Command Details Get_Record on page 134 e Command Details Set_Record on page 136 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Appendix E E Secure HICP Secure Host IP Configuration Protocol E 1 General The module supports the Secure HICP protocol used by the Anybus IPconfig utility for changing set tings e g IP address Subnet mask and enable disable DHCP Anybus IPconfig can be downloaded free of charge from the HMS website www anybus com This utility may be used to access the network settings of any Anybus product connected to the network via UDP port 3250 The protocol offers secure authentication and the ability to restart reboot the device s E 2 Operation When the application is started the network is automatically scanned for Anybus products The network can be rescanned at any time by clicking Scan To alter the network settings of a module double click on its entry in the list A window will appear containing the settings for the module r al E Configure 00 30 11 FB 3B 22 exes Ethernet configuration IP address 10 13 234 DHCP C On Subnet mask 25 25 25 0 off Default gateway 10 10 18 1 Primary DNS 10 10 100 88 Secondary DNS 10 10 100 87 III Hostname Support Password I Change password New pass
97. ed by the SetConfigltem command lt HTML gt lt HEAD gt lt TITLE gt SetConfigltem Test lt TITLE gt lt HEAD gt lt BODY gt lt exec cmd _argument SetConfigltem Xfood txt gt lt FORM action test shtm gt lt P gt lt LABEL for Name gt Name lt LABEL gt lt BR gt lt INPUT type text name Name gt lt BR gt lt BR gt lt LABEL for _Age gt Age lt LABEL gt lt BR gt lt INPUT type text name _Age gt lt BR gt lt BR gt lt LABEL for Food gt Food lt LABEL gt lt BR gt lt INPUT type radio name Food value Cheese gt Cheese lt BR gt lt INPUT type radio name Food value Sausage gt Sausage lt BR gt lt BR gt lt LABEL for Drink gt Drink lt LABEL gt lt BR gt lt INPUT type radio name Drink value Wine gt Wine lt BR gt lt INPUT type radio name Drink value Beer gt Beer lt BR gt lt BR gt lt INPUT type submit name _submit gt lt INPUT type reset name _reset gt lt P gt lt FORM gt lt BODY gt lt HTML gt The resulting file food txt may look somewhat as follows Name Cliff Barnes Food Cheese Drink Beer Note In order for this example to work the HTML file must be named test shtm Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 45 7 3 4 SsiOutput This command temporarily modifies the SSI output of the following command function Syntax lt
98. ends on the product Example output or identifier eip title EtherNet IP Statistics or identifier bacnet title BACnet IP Statistics identifier bacnetae title BACnet Alarm and Event io identifier bacnetapl title BACnet APL Statistics Get network specific statistics GET network nwstats son eet lt ID gt lt ID gt is an identifier value returned from the previous 8 DP command eip for example name Established Classl Connections value name Established Class3 Connections value FO Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 8 2 4 Services smtp json GET services smtp json JSON 66 Note Password is not returned when retrieving the settings Name Data Type Note server String user String 8 2 5 Hex Format Explained The metadata max and min fields and the ADI values are ABP data encoded in a hex format If the data type is an integer the endianness used is determined by the data format field found in adi info json see info json on page 58 Examples The value 5 encoded as a UINT16 with data format 0 little endian 0500 The character array ABC encoded as CHAR 3 data format is not relevant for CHAR 414243 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Chapter 9 9 SNMP Agent 9 1 Gener
99. ent occurred 3 EISCONN Socket already connected 4 EOPNOTSUPP Service not supported 5 ECONNABORTED Connection was aborted 6 EWOULDBLOCK Socket cannot block because unblocking socket type 7 ECONNREFUSED Connection refused 8 ECONNRESET Connection reset 9 ENOTCONN Socket is not connected 10 EALREADY Socket is already in requested mode 11 EINVAL Invalid service data 12 EMSGSIZE Invalid message size 13 EPIPE Error in pipe 14 EDESTADDRREQ Destination address required 15 ESHUTDOWN Socket has already been shutdown 16 reserved 17 EHAVEOOB Out of band data available 18 ENOMEM No internal memory available 19 EADDRNOTAVAIL Address is not available 20 EADDRINUSE Address already in use 21 reserved 22 EINPROGRESS Service already in progress 28 ETOOMANYREFS Too many references 101 Command aborted If a command is blocking on a socket and that socket is closed using the Delete command this error code will be returned to the blocking command Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 118 11 8 SMTP Client Object 09h Category Advanced Object Description This object groups functions related to the SMTP client See also File System on page 19 E mail Client on page 39 Instance Attributes Instance 13 SMTP Server on page 80 Instance Attributes Instance 14 SMTP User on page 81 Instance Attributes Instance 15 SMTP Password on
100. escr 2 port 002 port 001 and ifDescr 2 port 002 to be compatible ifDescr 3 port inter with the STEP7 topology scanner nal ifType 1 3 integer 6 Ethernet csmacd Type of interface ifMtu 1 3 integer 1500 Size of largest datagram that can be sent received on the interface specified in octets ifSpeed 1 3 gauge 0 or 100 000 000 Data transfer rate of the Ethernet port in bits per sec ond The speed is only shown for ports where the link status is up ifPhysAddress 1 3 octetstring MAC address for the ports ifAdminStatus 1 3 integer 1 up Desired state of the Ethernet port ifOperStatus 1 3 integer 1 up or 2 down Current operating state of the Ethernet port Link up No link down ifLastChange 1 3 timeticks Time when state Time since start up when the port changed to its cur changed except ifLast rent state see previous variable Indicated in multiples Change 3 0 of hundredths of a second iflnOctets 1 3 counter iflnOctets 1 3 Num Total number of octets received on the interface includ ber of octets ing framing characters Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 SNMP Agent 69 Variable Data Type Value Description iflnUcastPkts 1 3 counter iflnUcastPkts 1 3 Number of subnetwork unicast packets delivered to a Number of unicast higher la
101. et Array of CHAR DHCP 2 Data type Get UINT8 08h ENUM 3 Number of elements Get UINT8 01h one element 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set ENUM Value Enum String Meaning 00h Disable DHCP disabled default Oth Enable DHCP enabled a Multilingual see Multilingual Strings on page 83 Note Do not set this unless the end user explicitly would like to turn DHCP on Normally the PROF INET IO Controller assigns the IP address Instance Attributes Instance 9 DNS1 Advanced This instance holds the address to the primary DNS server Changes are valid after reset Name Access Type Description 1 Name Get Array of CHAR DNS1 2 Data type Get UINT8 04h UINT8 3 Number of elements Get UINT8 04h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 Valid range 0 0 0 0 255 255 255 255 Default 0 0 0 0 a Multilingual see Multilingual Strings on page 83 Instance Attributes Instance 10 DNS2 This instance holds the address to the secondary DNS server Changes are valid after reset Advanced Name Access Type Description 1 Name Get Array of CHAR DNS2 2 Data type Get UINT8 04h UINT8 3 Number of elements Get UINT8 04h 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 Valid rang
102. etails Command Code Valid for Description 17h Object Instance The module may issue this command to indicate to the host application that the parameterization phase is completed It is optional to implement support for this command If implemented the host application may depending on the response issued to this command be re quired to issue Appl_State_Ready at a later stage to indicate that it is ready for data exchange If not implemented this is handled automatically by the module Command Details Field Contents Comments CmdExt 0 AR handle low byte Handle for the Application Relationship AR CmdExt 1 AR handle high byte MsgData 0 API low word low byte Application Process Instance API MsgData 1 API low word high byte MsgData 2 API high word low byte Only valid if subslot gt 0 MsgData 3 API high word high byte MsgData 4 Slot low byte Slot number affected by the command MsgData 5 Slot high byte Only valid if subslot gt 0 MsgData 6 Subslot low byte Subslot number affected by the command MsgData 7 Subslot high byte Value Meaning 0 Command applies to all modules in the configuration other Command applies only to the specified slot subslot e Response Details Field Contents Comments CmdExt 0 reserved set to zero CmdExt 1 MsgData 0 Application State Value Meaning 0 Ready for Data Exchange
103. etworks with name of your vendor Please note that the keyword VendorName is found not only here but also at other places in the GSD file Use Search to find all instances and replace them with the name of your vendor Specify the function of the device lt DeviceFunction gt lt Family MainFamily General ProductFamily Anybus CompactCom 40 PIR gt lt DeviceFunction gt The example GSD specifies a kind of General device as the usage of it is unclear e Replace the MainFamily with the class that best describe the device The following are the al lowed values General Drives Switching Devices I O Valves Controllers HMI Encoders NC RC Gateway PLCs Ident Systems PA Profiles Network Components Sensors Replace the ProductFamily value Anybus CompactCom 40 PIR with a string which describes your device Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Basic Operation 14 In addition to the above there ate a few more places where identity related information is present in the GSD file DNS_CompatibleName ABCC40 PIR For the Device access point DeviceAccessPointItem there is a keyword which is called DNS_Compat ibleName Locate this by using the search function Replace DNS_CompatibleName value ABCC40 PIR with the set Station Type Set with PROFINET IO Object OxF6 attribute
104. ev 1 22 Doc ld HMSI 27 226 95 Command Details API_Add Category Advanced Details Command Code 14h Valid for Object Instance Description By default the module only supports API 0 zero If additional APIs are to be supported or if the host application shall handle plugging unplugging of modules and submodules this command must be used to specify the API implementation Note that if using this command it is mandatory to declare API 0 zero prior to defining other APIs or plugging unplugging modules submodules API numbers ate as signed by PROFIBUS PROFINET International PD Note 1 This command may only be issued prior to setting the Setup Complete attribute in the Anybus Object Note 2 This command clears the default Real Identification created by the Anybus module while map ping ADIs to Process Data Therefore issuing this command effectively makes it mandatory to specify the actual Real Identification by means of the Plug_Module and Plug_Submodule commands Command Details Field Contents Comments CmdExt 0 reserved set to zero reserved for future use CmdExt 1 Data 0 API low word low byte Application Process Instance API Data 1 API low word high byte Data 2 AP high word low byte See also Date API high word high byte Application Process Instances API on page 22 Data 4 reserved set to zero reserved Data 5 Data 6 D
105. fication It is optional to implement support for this command Command Details Field Contents Comments CmdExt 0 AR handle low byte Handle for the Application Rela CmdExt 1 AR handle high byte tionship AR MsgData 0 API low word low byte Application Process Instance MsgData 1 API low word high byte API MsgData 2 API high word low byte MsgData 3 API high word high byte MsgData 4 Slot low byte Slot number of mismatch MsgData 5 Slot high byte MsgData 6 Subslot low byte Subslot number of mismatch MsgData 7 Subslot high byte MsgData 8 Expected Module Identifier low word low byte Module identifier as stated in the MsgData 9 Expected Module Identifier low word high byte GSD file derived from the IO MsgData 10 Expected Module Identifier high word low byte Controller configuration MsgData 11 Expected Module Identifier high word high byte MsgData 12 Expected Submodule Identifier low word low byte Submodule identifier as stated in MsgData 13 Expected Submodule Identifier low word high byte the GSD file derived from the IO MsgData 14 Expected Submodule Identifier high word low byte Controller configuration MsgData 15 Expected Submodule Identifier high word high byte e Response Details No data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 140 Command Detai
106. fication process The identity of the product needs to be changed to match your company and device IMPORTANT This appendix provides guidelines and examples of what is needed for certification Depending on the functionality of your application there may be additional steps to take Please contact HMS Industrial Networks at www anybus com for more information Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 G 2 Reidentifying Your Product Conformance Test Guide 159 After successful setting of the Setup Complete attribute in the Anybus Object 01h the Anybus mod ule asks for identification data from the host PROFINET IO Object F6h Therefore the attributes listed below shall be implemented and proper values returned Object Instance Attribute Explanation Default Customer sample Comment PROFINET IO Object F6h 1 Device ID With this attribute you Device ID 0010h Device ID YYYYh This information must match the keys of the Devi Instance 1 set the Device ID of celdentity of the GSD file the device Ge 10 Object F6h 2 Vendor ID vun mis arae yoi EE 1D 010Ch Vendor ID XXXXh Note that the GSD file keyword VendorName the device must correspond to the Vendor ID value PROFINET lO Object F6h 3 Station Type With this attribute you ABCC40 PIR Cust PNIO Dev This information matches in the case of Anybus Instance 1 set the station ty
107. g start up to specify the Real Identification It additionally features the possibility to associate a submodule with several consecutive ADI elements The Plug_Submodule command only allows association with one ADI element or all ADI elements This command can also be called during operation if there are changes to the Real Identification A Plug alarm or a Plug Wrong Submodule alarm is automatically sent to the master as a result of this action A submodule plugged with this command can hold IO data to the master from the master or data in both directions It is also possible to plug submodules which do not carry any data at all The Anybus CompactCom 40 supports up to 128 submodules in total Note 1 In case the slot number in the command is set to 0 zero the ADI number must also be 0 zero since slot 0 cannot hold any actual data Note 2 It is only permitted to issue this command if API_Add has been issued first Note 3 The Interface and Port submodules have to be plugged in order to pass certification tests Note 4 The interface and port submodule can only be plugged during the SETUP state Any attempt to plug these submodules during runtime will result in error Note 5 It is not recommended to mix Plug_Submodule and Plug_Submodule_Ext commands Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details 92
108. g a message with AB set Doc Rev 1 22 Doc ld HMSI 27 226 D Flowcharts Appendix D D 1 Flowchart Record Data Access This flowchart illustrates how Record Data requests are handled by the Anybus module Reject Record Data request PROFIsafe handler I amp M handler Range AFFOh AFFFh 18M Indexes See also e Application Data Instances ADIs on page 16 e PROFINET IO Object FGh on page 130 e Command Details Get_Record on page 134 e Command Details Set_Record on page 136 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Incoming Record Data Request Api Slot Subslot inserted Unknown AP Default AP Zero Range Profile Specific Index Range Range 0000h 7FFFh Transparent Mode 0000h 7FFFh No Y y Get Set_Attribute Get Set_Record Application Data PROFINET IO Object Object Doc ld HMSI 27 226 Flowcharts 153 D 2 Flowchart I amp M Record Data Handling API 0 This flowchart illustrates how I amp M Record Data requests for API 0 are handled by the Anybus module 1 amp MO 15 request Index OxAFFO OxAFFF Reject request ransp Yes ot O No Y Get_Attribute Request to Get Set_Recora PROFINET IO nonvolatile storage PROFINET IO host obj
109. gt Contents of info txt lt H1 gt lt P gt lt exec cmd _argument IncludeFile info txt gt lt P gt lt BODY gt lt HTML gt Contents of info txt Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit When viewed in a browser the resulting page should look somewhat as follows IndudefFile Test Mozilla Firefox loj x Fie Edt View Go Bookmarks Tock Help 909 Getting Started Ly Latest Headlines Contents of info txt Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit See also Include File on page 40 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 48 7 3 8 SaveDataToFile This command stores data from an HTML form as a file in the file system Content from the different form objects are separated by a blank line 2 CRLF Note This command cannot be used in e mail messages Syntax lt exec cmd_argument SaveDataToFile filename source Overwrite Append gt filename Destination file If the specified file does not exist it will be created provided that the path is valid source Optional by specifying a form object only data from that particular form object will be stored Default behavior is to store data from all form objects except the ones where the name starts with underscore Overwrite Appe
110. heck_Ind on page 138 e Command Details Expected_Ident_Ind on page 140 Command Details Appl_State_Ready on page 96 on page 142 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 98 Command Details IM_Options Category Advanced Details Command Code 18h Valid for Object Instance Description During startup this command can be called to specify if I amp M data for Slot0 DAP and or Slot gt 0 should be forwarded transparently by the Anybus CompactCom module Additionally it provides a way for the application to specify the I amp MO Filter Data when I amp M data is transparent I amp MO Filter Data is composed of three blocks I amp MO Carrier Data Module Representative Data and Device Representative Data see table below A submodule can belong to several blocks 18 MO Filter Data Contents Content Description 18MO0 Carrier Data List of all submodules being a carrier of discrete 18M data Block is mandatory to support according to the PROFINET specification Module Representative Data List of all submodules acting as module representative Block is optional to support according to the PROFINET specification Device Representative Data List of at least one submodule where I amp M1 I amp M2 18M3 and I amp M4 can be written Block is mandatory to support according to the PROFINET specification When transparent I amp M data for slot gt 0 is enabled the application must sto
111. hernet Host Object F9h on page 145 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 4 4 FTP Server 4 1 General Information Category extended The built in FTP server makes it easy to manage the file system using a standard FTP client The following port numbers ate used for FTP communication e TCP port 20 FTP data port TCP port 21 FTP command port The FTP server supports up to 8 concurrent connections 4 2 User Accounts User accounts are stored in the configuration file ftp cfg This file holds the usernames passwords and home directory for all users Users are not able to access files outside of their home directory File Format Userl1 Password1 Homedirl User2 Password2 Homedir2 User3 Password3 Homedir3 Optionally the UserN PasswordN section can be replaced by a path to a file containing a list of users as follows File Format Af tp cfg Userl Password Homedirl User2 Password2 Homedir2 path userlistA HomedirA path userlistB HomedirB The files containing the user lists shall have the following format File Format Userl1 Password1 User2 Password2 User3 Password3 Notes e Usernames must not exceed 15 characters in length e Passwords must not exceed 15 characters in length Usernames and passwords must only contain alphabetic characters and or numbers e If ftp cfg is missing or cannot be interpreted all username passwor
112. ible through the vfs folder These files are read only and cannot be deleted or overwritten The web server will first look for a file in the web root folder If not found it will look for the file in the vfs folder making it appear as the files are located in the web root folder By loading files in the web root folder with exactly the same names as the default files in the vfs folder it is possible to customize the web pages replacing such as pictures logos and style sheets If a complete customized web system is designed and no files in the vfs folder are to be used it is rec ommended to turn off the virtual file system completely see the File System Interface Object See also e File System on page 19 e File System Interface Object OAh on page 123 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Web Server 34 5 2 1 Network Configuration The network configuration page provides interfaces for changing TCP IP and SMTP settings in the Network Configuration Object Overview DHCP Enabled Y Parameters IP Address 0 0 0 0 NETWORK Subnet Mask 0 0 0 0 Status Gateway Address 0 0 0 0 Configuration Host Name Domain name ONS Server 1 0 0 0 0 oa DNS Server 2 0050 Save settings Overview Server Paramet User Status Confirm Deh Oiii Save settings SMTP The module needs a reset for the changes to take effect Available IP Configuration Settings
113. ich an lO connection is Some IO controllers will not provide valid output established is in STOP mode or the IO controller data in the first cycles following a successful con has not provided valid output at least once nection EXCEPTION Turn module status LED red to indicate major Some kind of unexpected behavior for example fault turn network status LED off and hold Ethernet MAC in reset watchdog timeout See also instance 1 attribute 7 in Network Object 03h on page 76 B 3 Application Watchdog Timeout Handling Upon detection of an application watchdog timeout the module will cease network participation and shift to state EXCEPTION No other network specific actions are performed Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Appendix C C Message Segmentation C 1 General Category Advanced The maximum message size supported by the Anybus CompactCom is 1500 bytes To provide support for longer messages needed when using the socket interface a segmentation protocol is used The segmentation protocol is implemented in the message layer and must not be confused with the frag mentation used on the serial host interface Consult the general Anybus CompactCom 40 Software De sign Guide for further information The module supports 1 one simultaneous segmented message per instance C 2 Command Segmentation When a command message is segmented the command initiator
114. ient See also e File System on page 19 e PID Server on page 31 e Web Server on page 33 Server Side Include SSI on page 40 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Basic Operation 18 2 6 E mail Client The built in e mail client enables the host application to send e mail messages stored in the file system or defined directly within the SMTP Client Object 09h Messages are scanned for SSI content which means it s possible to embed dynamic information from the file system or from the Anybus Compact Com 40 object model See also e 2 19 File System 6 39 E mail Client e 7 40 Server Side Include SSI e 11 118 SMTP Client Object 09h Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 2 7 File System 2 7 1 Overview Basic Operation 19 The Anybus CompactCom 40 PROFINET IO has a built in file system that can be accessed from the application and from the network Three directories are predefined VES The virtual file system that e g holds the web pages of the module Application This directory provides access to the application file system through the Applica tion File System Interface Object EAh optional Firmware Firmware updates are stored in this directory Important In the firmware folder it is not possible to use append mode when writing a file Be sure to use write mode only Anybus CompactCom
115. if connection is aborted 3 Behavior of the outputs at power on The Anybus CompactCom handles these situations in the following ways 1 State change to IDLE The network is informed that the I O data of the submodule with IOPS BAD is substituted with zeros clear No read process data is updated in the host interface 2 State change to WAIT_PROCESS The network is informed that the I O data of all submodules is substituted with zeros clear No process data is updated in the host interface 3 The network is informed that the I O data of all submodules is substituted with zeros clear No process data is updated in the host interface Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Conformance Test Guide 161 G 7 Certification in Generic Anybus Mode In Generic Anybus Mode when the command API_add in the Network PROFINET IO Object OEh is not used there is normally nothing that needs to be considered apart from what is mentioned earlier in this appendix The example HMS GSD file has to be modified with respect to the process mapping and identity of the product and this requires a certification of the product Send Map_ADI_Write_Area Map_ADI_Read_Area to setup the I O data to use y Set the product identity information in the PROFINET IO Object F6h Anybus Object 01h Instance 1 Setup Complete set to 1 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Co
116. ilable in the send buffers the module will block until there is e Command Details Note To allow larger amount of data i e gt 255 bytes to be sent the command data may be segmented see Message Segmentation on page 150 Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Segmentation Control see Command Segmentation on page 150 Data 0 n Data to send e Response Details Field Contents Notes CmdExt 0 reserved ignore CmdExt 1 Data 0 Number of sent bytes low Only valid in the last segment Data 1 Number of sent bytes high Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details Send_To Category Advanced Details Command Code 18h Valid for Instance Description 113 This command sends data to a specified host on an unconnected SOCK DGRAM socket Message seg mentation may be used to send up to 1472 bytes see Message Segmentation on page 150 Command Details Note To allow larger amount of data 1 e gt 255 bytes to be sent the command data may be segmented see Message Segmentation on page 153 Field Contents CmdExt 0 reserved Notes set to zero CmdExt 1 Segmentation Control see Command Segmentation on page 150 Data 0 Host IP address byte 3 low Data 1 Host IP address byte 2 Data 2 Host IP address byte 1 Data 3 H
117. in the PROFINET diagnostic alarm The data contains an identifier UserStructureldentifier that describes the structure of the data The following identifier values are supported 8000h Channel Diagnostic 8002h Extended Channel Diagnostic 8003h Qualified Channel Diagnostic Byte Contents 1 UserStructureldentifier low byte 2 UserStructureldentifier high byte 3 16 Data Object Error Codes Code Error 03h API does not exist 04h No module inserted in the specified slot 05h No submodule inserted in the specified subslot 06h Slot number specified is out of range 07h Subslot number specified is out of range 08h Failed to add the channel diagnostic entry 09h Failed to send the channel diagnostic alarm UA Channel number out of range 0Bh ChannelPropType out of range DCH ChannelPropDir out of range 0Dh ChannelPropAcc out of range QEh ChannelPropMaintReq out of range OFh ChannelPropMaintDem out of range 10h UserStructident out of range 11h ChannelErrType out of range FFh Unknown error Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 76 11 4 Network Object 03h Category Basic Object Description For mote information regarding this object consult the general Anybus CompactCom 40 Software De sign Guide Supported Commands Object Get_Attribute Instance Get_
118. ion The implementation of this object is optional the host application can support none some or all of the attributes specified below The module will attempt to retrieve the values of these attributes during start up if an attribute is not implemented in the host application simply respond with an error message 06h Invalid CmdExt 0 In such a case the module will use its default value If the module attempts to retrieve a value of an attribute not listed below respond with an error message 06h Invalid CmdExt 0 See also e Network PROFINET IO Object OEh on page 85 e Flowchart Record Data Access on page 152 e Anybus CompactCom 40 Software Design Guide Error Codes Supported Commands Object Get Attribute Get_Record Set_Record AR_Check_Ind Cfg_Mismatch_Ind Expected_Ident_Ind End_Of_Prm_Ind AR_Abort_Ind Instance Get Attribute See Command Detail See Command Detail See Command Detail See Command Detail See Command Detail Get_Record on page 134 Set_Record on page 136 AR_Check_Ind on page 138 Expected_Ident_Ind on page 140 End_Of_Prm_Ind on page 142 s s s See Command Details Cfg_Mismatch_Ind on page 139 s s s See Command Detai Object Attributes Instance 0 AR_Abort_Ind on page 143 Name Access Data Type Value 1 Name Get Array of CHAR PROFINE
119. istributions in binary form must reproduce the above copyright notice this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution 3 Neither the name of the project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE KR RRR ARIK IRE e ke H RARA RAE RARA RARA RAE RARA RAR RE RARA RARA RAE RA RARA RRE RARA RARA AAA ARA Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Copyright Notices 169 IwIP is licenced under the BSD licence Copyright c 2001 2004 Swedish Institute of Computer Science All rights reserved Re
120. itself from the network thus preventing netwot k participation Other severity levels either produce a Channel Diagnostic entry alarm or a Ge neric Diagnostic entry alarm depending on the Event Code Event Code Result 0 FEh Module issues a Channel Diagnostic entry alarm The Event Code will be translated and represented as the Channel Error Type as follows Code Event Anybus Channel Error Type PROFINET 10h Generic Error Error 20h Current Short circuit 21h Current device input side Short circuit 22h Current inside the device Short circuit 23h Current device output side Short circuit 30h Voltage Overvoltage 31h Mains Voltage Overvoltage 32h Voltage inside the device Overvoltage 33h Output Voltage Overvoltage 40h Temperature Overtemperature 41h Ambient Temperature Overtemperature 42h Device Temperature Overtemperature 50h Device Hardware Error 60h Device Software Error 61h Internal Software Error 62h User Software Error 63h Data Set Error 70h Additional Modules Error 80h Monitoring Error 81h Communication Error 82h Protocol Error Error 90h External Error Error FOh Additional Functions Error FFh Module issues a Generic Diagnostic entry alarm based on network specific data See also Details Network Specific Data on page 75 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Details Network Specific Data 75 Network specific diagnostic data serves as the payload
121. kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Copyright C 1990 2 RSA Data Security Inc All rights reserved License to copy and use this software is granted provided that it is identified as the RSA Data Security Inc MD4 Message Digest Algorithm in all material mentioning or referencing this software or this function License is also granted to make and use derivative works provided that such works are identified as derived from the RSA Data Security Inc MD4 Message Digest Algorithm in all material mentioning or referencing the derived work RSA Data Security Inc makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose It is provided as is without express or implied warranty of any kind These notices must be retained in any copies of any part of this documentation and or software eke Hee ke e ke e e ke e ke e e he e ke He e ke ee He e ke e ke e e He e ke e ke ke e ke e ke k e ke ee ke ee H e k k ke kke k k ke k kek kke k k k kk kk kkk kk kk k Copyright C 1991 2 RSA Data Security Inc Created 1991 All rights reserved License to copy and use this software is granted provided that it is identified as the RSA Data Security Inc MD5 Message Digest Algorithm in all material mentioning or referencing this software or this function License is also granted to make and use derivative works provided that such works are identified as derive
122. le must be changed to reflect all changes Implementation overview Conformance Class The Anybus module complies to conformance class C Performance Characteristics 100 Mbps full duplex with autonegotiation enabled as default Real Time RT communication 250 ys cycle time Isochronous Real Time IRT communication 250 ys cycle time Device Model One IO Device instance The IO Device instance includes an Application Process referenced by its identifier APD APIO zero is implemented by default The API implements one or more slots Each Slot implements one or more subslots Each subslot may implement one or more Channels Slots amp Subslots Up to 128 subslots in total IO Data 1440 bytes of IO data in each direction including status bytes 4 bytes for DAP submodules 1 byte per additional submodule See also Electronic Data Sheet GSD on page 13 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 PROFINET IO Implementation Details 22 3 2 Application Process Instances API As mentioned previously acyclic requests towards API 0 are forwarded to the Application Data Object Cyclic data exchange is by default carried out through API 0 i e the Anybus associates modules and submodules with API 0 See also e Real Identification RI on page 23 3 3 Application Relationships AR On PROFINET a connection between an IO Controller Supervisor and
123. ls Expected_Ident_Ind Category Advanced Details Command Code Valid for Description 1Bh Object Instance The module issues this command to inform the host application of the Expected Identification Mod ule Submodule List that the IO Controller will use for the established AR Note that this information may be split in multiple segments which means that this command will be issued multiple times by the module each time containing different parts of the configuration Expected_Ident_Ind is similar to AR_Info_Ind but uses a different segmentation protocol that shall be used for the 40 series concept For very large configurations the Expected Identification can not fit into one message max message data size 1524 bytes If this happens the message will be truncated It is optional to implement support for this command Command Details Field Contents Comments CmdExt 0 Reserved For segmented messages the CmdExt 1 byte has been CmdExt 1 Cmd segment bits reserved for segment bits MsgData 0 AR handle low byte Handle for the Application Relationship MsgData 1 AR handle high byte MsgData 2 n Data field The first two bytes in the initial block of the Data field indi cates the number of modules in the configuration Each module is represented by a Module block followed by a number of Submodule blocks provided that the module in question contains submodules See Data Fo
124. me of nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE HR ke IKK e RIKER EAR IKARIA dek dek IK IKI KIA AREA RA KIKI IK IKI KIKI KI k kk kk kk kkk kk k Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Copyright Notices 168 Print formatting routines Copyright C 2002 Michael Ringgaard All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met 1 Redistributions of source code must retain the above copyright notice this list of conditions and the following disclaimer 2 Red
125. missions The data and illustrations found in this document ate not binding We HMS Industrial Networks AB reserve the right to modify our products in line with our policy of continuous product development The information in this document is subject to change without notice and should not be considered as a commitment by HMS Industrial Networks AB HMS Industrial Net works AB assumes no responsibility for any errors that may appear in this document There ate many applications of this product Those responsible for the use of this device must ensure that all the necessary steps have been taken to verify that the applications meet all performance and safety requirements including any applicable laws regu lations codes and standards HMS Industrial Networks AB will under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of undocumented features timing or functional side effects found outside the documented scope of this prod uct The effects caused by any direct or indirect use of such aspects of the product are undefined and may include e g compatibility issues and stability issues The examples and illustrations in this document ate included solely for illustrative purposes Because of the many variables and requirements associated with any particular implementation HMS Industrial Networks AB cannot assume responsibility for actual use based on these examples and illustrations
126. n all instances being set to their default values See also e Communication Settings on page 15 e E mail Client on page 39 Note Allowing the following instances to be set by the host application during start up will inhibit the possibility to pass conformance tests Supported Commands Object Get_Attribute Reset Instance Get_Attribute Set_Attribute Get_Enum_String Object Attributes Instance 0 Name Access Type Value Description 3 Number of instances Get UINT16 17 Supported number of instances Highest instance num Get UINT16 21 Highest instance number ber Consult the general Anybus CompactCom 40 Software Design Guide for further information Instance Attributes Instance 3 IP Address Value is used after module reset Advanced Name Access Type Description 1 Name Get Array of CHAR IP address 2 Data type Get UINT8 04h UINT8 3 Number of elements Get UINT8 04h four elements 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 Valid range 0 0 0 0 255 255 255 255 Default 0 0 0 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 78 a Multilingual see Instance Attributes Instance 20 Station Name on page 82 Note This attribute should not be set by the application at every power on as this would cause certifi cation problems Instance Attribu
127. n mode see FTP Server on page 31 8 Network Status Set UINT16 See Network Status on page 147 a If an attribute is not implemented the module will use this value instead b True Enable False Disable Advanced Name Access Type Default Comment 1 MAC address Get Array of UINT8 6 byte physical address value overrides the preprogrammed Mac address Note that the new Mac address value must be obtained from the IEEE 9 Port 1 MAC Get Array of UINT8 6 byte MAC address for port 1 mandatory address for the LLDP protocol Note This setting overrides any Port MAC address in the host PROFINET lO Object 10 Port 2 MAC Get Array of UINT8 6 byte MAC address for port 2 mandatory address for the LLDP protocol Note This setting overrides any Port MAC address in the host PROFINET lO Object 11 Enable ACD Get BOOL 1 True Enable Disable ACD protocol 12 Port 1 State Get ENUM 0 Enabled The state of Ethernet port 1 0 Enabled 1 Disabled 13 Port 2 State Get ENUM 0 Enabled The state of Ethernet port 2 0 Enabled 1 Disabled 14 Enable firmware Get BOOL 1 True Enables the firmware update HTTP page updated from web 15 Enable reset from Get BOOL 0 False Enables the option to reset the module from HICP HICP 16 IP configuration Set Struct of N A Whenever the configuration is assigned or UINT32 IP address changed the CompactCom module will UINT32 Subnet mask update this attrib
128. n output The function reads a string passed from an HTML form object parses the string as spec ified by a template string and sends the resulting data to the specified argument The formatting syntax used is similar to that of the standard C function scanf The function accepts a source a template string containing zero or more formatting tags followed by a number of arguments Each argument corresponds to a formatting tag which determines how the data read from the HTML form shall be interpreted prior sending it to the destination argument Note This command cannot be used in e mail messages Syntax lt exec cmd_argument scanf source template argumenti argumentNl gt source Name of the HTML form object from which the string shall be extracted template Template which specifies how to parse and interpret the data May contain any number of formatting tags which determine the conversion prior to sending the data to subsequent arguments The number of formatting tags must match the number of arguments if not the result is undefined Formatting tags are written as follows Width Modifier type See also e Formatting Tags on page 52 argument Destination argument s specifying where to send the interpreted data The number of arguments must match the number of formatting tags if not the result is undefined At the time of writing the only allowed argument is ABCCMes
129. n the Device Representative Data block 2 0 1 Submodule will be included in the Module Representative Data block 3 7 Reserved Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 100 Object Specific Error Codes Code Meaning 01h The ADI has not been mapped with command Map_ADI_Write_Area 02h The ADI has not been mapped with command Map_ADI_Read_Area 03h Element does not exist for the ADI 04h This ADl element is already mapped 05h API 0 must be added first 06h API does not exist 07h Trying to add an API already present 08h There is no room for any more APIs 09h Module in slot O cannot have any lO data OAh Por to plugging the requested module submodule slot 0 must be populated with a module and a submodule in subslot 1 0Bh Got occupied DCH subslot occupied 0Dh No module inserted in the specified slot OEh No submodule inserted in the specified subslot OFh Slot number specified is out of range 10h subslot number specified is out of range 11h The AR handle provided is not valid 12h There is no application ready pending 13h Unknown error PROFINET IO stack denied the request 14h Max number of submodules have already been plugged 15h Safety module has not been plugged 16h ADI data type constraint Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 101
130. nd Specifies whether to overwrite or append data to existing files Default Output Scenario Default Output Success Configuration stored to filename Authentication Error Authentication error File write error Could not store configuration to filename Example The following example demonstrates how to use this function The resulting page sends a form to itself which is then evaluated by the SaveDataToFile command lt HTML gt lt HEAD gt lt TITLE gt SaveDataToFile Test lt TITLE gt lt HEAD gt lt BODY gt lt exec cmd_argument SaveDataToFile stuff txt Meat Overwrite gt lt FORM action test shtm gt lt P gt lt LABEL for Fruit gt Fruit lt LABEL gt lt BR gt lt INPUT type text name Fruit gt lt BR gt lt BR gt lt LABEL for Meat gt Meat lt LABEL gt lt BR gt lt INPUT type text name Meat gt lt BR gt lt BR gt lt LABEL for Bread gt Bread lt LABEL gt lt BR gt lt INPUT type text name Bread gt lt BR gt lt BR gt lt INPUT type submit name _submit gt lt P gt lt FORM gt lt BODY gt lt HTML gt The resulting file Astuf txt will contain the value specified for the form object called Meat Note In order for this example to work the HTML file must be named test shtm Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 7 3 9 printf Server Side Include SSI
131. nfigured value that will be used after restart a Multilingual see Multilingual Strings on page 83 Multilingual Strings The instance names and enumeration strings in this object are multilingual and are translated based on the current language settings as follows Instance English German Spanish Italian French 3 IP address IP Adresse Direcci n IP Indirizzo IP Adresse IP 4 Subnet mask Subnetzmaske Masac subred Sottorete Sous r seau 5 Gateway Gateway Pasarela Gateway Passerelle 6 DHCP DHCP DHCP DHCP DHCP Enable Einschalten Activado Abilitato Activ Disable Ausschalten Desactivado Disabilitato D sactiv 7 Comm 1 Komm 1 Comu 1 Connessione 1 Comm 1 8 Comm 2 Komm 2 Comu 2 Connessione 2 Comm 2 9 DNS1 DNS 1 DNS Primaria DNS1 DNS1 10 DNS2 DNS 2 DNS Secundia DNS2 DNS2 11 Host name Host name Nombre Host Nome Host Nom h te 12 Domainname Domain name Nobre Domain Nome Dominio Dom Domaine 13 SMTP Server SMTP Server Servidor SMTP Server SMTP SMTP serveur 14 SMTP User SMTP User Usuario SMTP Utente SMTP SMTP utilisa 15 SMTP Pswd SMTP PSWD Clave SMTP Password SMTP SMTP mt passe 20 Station name Stationsname Nom Estacion Nome Stazione Nom Station 21 F Address F Adresse Direcci n F Indirizzo F F Adresse Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Reset Category Extended Details Command Code 05h V
132. nformance Test Guide 162 G 8 Certification in Advanced Mode In advanced mode Network PROFINET IO Object OEh is used the most important thing is to use a Device Access Point DAP that conform to PROFINET IO Specification v2 0 or later DAP2 From specification version 2 0 it is possible to describe the physical Ethernet interface and its ports PDEV or Physical Device with a special mechanism This is done with special submodules at slot 0 the module at slot 0 is the access point for the device HMS recommends following the flow below for setting up a DAP2 Send Map_ADI_Write_Area Map_ADI_Read_Area to the Network Object 03h to setup the I O data to use J The commands API_Add Plug_Module and ae Plug_Submodule are sent to the Network PROFINET 1O y Object OEh Plug_Module SlotNo 0 Modident 0x00000011 Must match GSD PLUG_SUBMODULE SlotNo 0 SubSlotNo 1 SubModldent 0 Must match GSD PLUG_SUBMODULE SlotNo 0 SubModule which describes SubSlotNo 32768 the Ethernet interface SubModldent 2 Must match GSD S PLUG_SUBMODULE SubModules which describe Description of the physical SlotNo 0 the physical port of the device PDEV SubSlotNo 32769 Anybus module SubModldent 3 Must match GSD Please note that the d SubModIdent of these two SubModules does not SE need to be the same E E SubModldent 3 Must match GSD y Plug the m
133. ng based on the language settings If no information for the selected language is found it will use the default SSI output Value of X Language 0 English 1 German 2 Spanish 3 Italian 4 French See also SsiOutput on page 45 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 8 JSON 8 1 General Information Chapter 8 JSON is an acronym for JavaScript Object Notation and an open standard format for storing and ex changing data in an organized and intuitive way It is used as an alternative to XML to transmit data objects consisting of attribute value pairs between a server and a web application Access The JSON resources should be password protected Add password protection by adding a file called web_accs cfg in the root directory See Authorization on page 38 for more information 8 2 JSON Objects 8 2 1 ADI info json GET adi info json callback lt function gt This object holds data common to all ADIs that are static during runtime Optionally a callback may be passed to the GET request for JSONP output Name Data Type Note dataformat Number 0 Little endian 1 Big endian Affects value min and max representations numadis Number Total number of ADIs webversion Number Web JSON API version JSON object layout dataformat numadis webversion 0 123 1 Anybus CompactCom 40 PROFINET IO Doc Rev 1
134. nguage Example The following example demonstrates how to use this function The resulting page sends a form to itself which is then evaluated by the ChangeLanguage command lt HTML gt lt HEAD gt lt TITLE gt ChangeLanguage Test lt TITLE gt lt HEAD gt lt BODY gt lt exec cmd_argument ChangeLanguage lang gt lt FORM action test shtm gt lt P gt lt LABEL for lang gt Language 0 4 lt LABEL gt lt BR gt lt INPUT type text name lang gt lt BR gt lt BR gt lt INPUT type submit name _submit gt lt P gt lt FORM gt lt BODY gt lt HTML gt Note In order for this example to work the HTML file must be named test shtm Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 47 7 3 7 IncludeFile This command includes the content of a file Note that the content is not scanned for SSI Syntax lt exec cmd_argument IncludeFile filename separator gt filename Source file separator Optional specifies line separation characters e g lt br gt Default Output Scenario Default Output Success file contents Authentication Error Authentication error File open error Failed to open file filename Example The following example demonstrates how to use this function lt HTML gt lt HEAD gt lt TITLE gt IncludeFile Test lt TITLE gt lt HEAD gt lt BODY gt lt H1
135. nts CmdExt 0 1 reserved set to zero MsgData 0 FFh Object specific error MsgData 1 Error Code 1 See Details Error Code 1 on page 144 MsgData 2 Error Code 2 User specific error code MsgData 3 Additional Data 1 API specific Set to zero if no Additional Data 1 is defined MsgData 4 Additional Data 2 User specific Set to zero if no Additional Data 2 is defined See also e Command Details Get_Record on page 134 e Flowchart Record Data Access on page 152 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details AR Check Ind Category Advanced Details Command Code Valid for Description 14h Object Instance 138 The module issues this command to inform the host application that an Application Relationship AR is to be established It is optional to implement support for this command e Command Details Field Contents Comments CmdExt 0 AR handle low byte CmdExt 1 AR handle high byte Handle for the Application Relationship AR MsgData 0 IP address low word low byte MsgData 1 MsgData 2 IP address low word high byte IP address high word low byte MsgData 3 IP address high word high byte IP address of the remote station 10 Controller Supervisor MsgData 4 AR Type low byte MsgData 5 AR Type high byte Indicates the type of AR as follows Val
136. nybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Server Side Include SSI 43 7 3 3 SetConfigltem This function stores an HTML form as a file in the file system Note This function cannot be used in e mail messages Syntax lt exec cmd_argument SetConfigltem filename Overwritel gt filename Destination file If the specified file does not exist it will be created provided that the path is valid Overwrite Optional forces the module to create a new file each time the command is issued The default behavior is to modify the existing file File Format Each form object is stored as a tag followed by the actual value form object name 1 form object value 1 form object name 2 form object value 2 form object name 3 form object value 3 form object name N form object value N Note Form objects with names starting with underscore _ will not be stored Default Output Scenario Default Output Success Configuration stored to filename Authentication Error Authentication error File open error Failed to open file filename File write error Could not store configuration to filename Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Server Side Include SSI 44 Example The following example demonstrates how to use this function The resulting page sends a form to itself which is then evaluat
137. oc Rev 1 22 Doc HMSI 27 226 Copyright Notices 170 MD5 routines Copyright C 1999 2000 2002 Aladdin Enterprises All rights reserved This software is provided as is without any express or implied warranty In no event will the authors be held liable for any damages arising from the use of this software Permission is granted to anyone to use this software for any purpose including commercial applications and to alter H and redistribute it freely subject to the following restrictions 1 The origin of this software must not be misrepresented you must not claim that you wrote the original software If you use this software in a product an acknowledgment in the product documentation would be appreciated but is not required 2 Altered source versions must be plainly marked as such and must not be misrepresented as being the original software 3 This notice may not be removed or altered from any source distribution L Peter Deutsch ghost aladdin com Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226
138. odules of slot 1 x Set the product identity information in PROFINET IO Object F6h Anybus Object 01h Instance 1 Setup Complete set to 1 The figure shows how to set up a PROFINET compatible DAP Please note that for some commands only the relevant parameters are shown Please note that the values of SubModIdent in the above flowchart are the values of the example HMS GSD file They can be changed if necessary but there is no real need for it the important thing is that it matches the GSD file To be able to pass the PROFINET conformance test a DAP2 is mandatory Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Appendix H H Copyright Notices This product includes software developed by Carnegie Mellon the Massachusetts Institute of Technology the Uni versity of California and RSA Data Security ARARAARARA RARA RRA RARA ek ARA RARA ARE RARA RARA ARA IKI RRE RA RARA RRA RARA RAE RARA k k Copyright 1986 by Carnegie Mellon KR ke KAKI RARA RA IRI IRIE He e ke RARA RARA RARA RRE RE RARA RARA RRE RARA RA RRA RARA RAEE AR Copyright 1983 1984 1985 by the Massachusetts Institute of Technology HR RRR KIKI RARA RRA RARA ek ARA ARRE RE RARA RAR RARA RARA RARA ERA RARA RRA RARA RAEE ARA Copyright c 1988 Stephen Deering Copyright c 1982 1985 1986 1992 1993 The Regents of the University of California All rights reserved This code is derived from software contributed to Berkeley by
139. odules without any restrictions Anybus state is set to PROCESS_ACTIVE and no error is indicated on LED e Mismatch of submodule s As long as all of the output submodules of the Real Identification are present and matching in the Expected Identification the Anybus state is set to PROCESS_ACTIVE However if there is any mismatch among the other submodules the LEDs will indicate Config mismatch Note In the case of ADI based Real Identification mode a remap is first attempted for cases 1 and 3 above See also s The Remap_ADI_Write_Area and Remap_ADI_Read_Area commands in the Application Data Object FEh found in Anybus CompactCom 40 Software Design Guide Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 PROFINET IO Implementation Details 25 3 5 Diagnostics 3 5 1 Standard Diagnostics PROFINET IO uses alarms when informing the IO Controller of diagnostic entries In the Anybus im plementation it is possible for the application to create alarms via diagnostic entries by means of the Diagnostic Object 02h Up to 5 diagnostic instances can be created by the host application An additional 6th instance can always be created in event of a major unrecoverable fault Creating a diagnostic instance is done by issuing the command Create If the module is in state IDLE or PROCESS_ACTIVE the created instance will be communicated on the network as an appeat alarm If the module is in another state the P
140. onfiguration settings are stored in the system file Ahttp cfo This file holds the root directory for the web interface content types and a list of file types which shall be scanned for SSI Web Root Directory File Format The web server cannot access files outside this di WebRoot rectory web Content Types FileTypes PS yp FileTypel ContentTypel A list of file extensions and their reported content FileType2 ContentType2 types See also Default Content Types on page 38 FileTypeN ContentTypeN SSIFileTypes FileTypel FileType2 s SSI File Types 252 By default only files with the extension shtm are FileTypeN scanned for SSI Additional SSI file types can be added here as necessaty The web root directory determines the location of all files related to the web interface Files outside of this directory and its subdirectories cannot be accessed by the web server 5 3 2 Index Page The module searches for possible index pages in the following order lt WebRoot gt index htm lt WebRoot gt index html lt WebRoot gt index shtm lt WebRoot gt index wml SPA Note 1 Substitute lt WebRoot gt with the web root directory specified in A http cfg Note 2 If no index page is found the module will default to the virtual index file if enabled See also e Default Web Pages on page 33 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 5 3 3 Default Conten
141. orites Tools Help n y Back e gt v 5j p Search Folders IEJ Address ftp user password lt address gt y Go Name Size T Date Modified File and Folder Tasks a O Make a new folder Publish this folder to the Web tad Share this folder Ei Other Places LJ My Documents 4 My Computer 2 My Network Places Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 5 5 Web Server 5 1 General Information Category extended The built in web server provides a flexible environment for end user interaction and configuration put poses The powerful combination of SSI and client side scripting allows access to objects and file system data enabling the creation of advanced graphical user interfaces The web interfaces is stored in the file system which can be accessed through the FTP server If neces sary the web server can be completely disabled in the Ethernet Host Object The web server supports up to 20 concurrent connections and communicates through port 80 See also e PID Server on page 31 Server Side Include SSI on page 40 JSON on page 58 Ethernet Host Object F9h on page 145 5 2 Default Web Pages The default web pages provide access to e Network configuration parameters Network status information e Access to the host application ADIs The default web pages are built of files stored in a virtual file system access
142. ost IP address byte 0 high Data 4 Host port number low Datal 5 Host port number high Data 6 n Data to send The host address port information shall only be included in the first segment All data thereafter must start at Data 0 Response Details Data 1 Number of sent bytes high Field Contents Notes CmdExt 0 reserved ignore CmdExt 1 Data 0 Number of sent bytes low Only valid in the last segment Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details IP_Add_Membership Category Advanced Details Command Code Valid for Description 19h Instance 114 This command assigns the socket an IP multicast group membership The module always joins the All hosts group automatically however this command may be used to specify up to 20 additional member ships Command Details Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Data 0 Group IP address byte 3 low Data 1 Group IP address byte 2 Data 2 Group IP address byte 1 Data 3 Group IP address byte 0 high e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details IP_Drop_Membership Category Advanced Details Command Code Valid for Description 1Ah Instance 115 This command removes the socket from an IP m
143. pe of CompactCom 40 PROFINET IO GSD keywords the device DNS_CompatibleName and OrderNumber The Station Type must be equal to the DNS_ CompatibleName but it is allowed to have a com pletely different OrderNumber see also AM Order ID below PROFINET IO Object F6h 8 l8M Order ID With this attribute you ABCC40 PIR Cust PNIO Dev This information must match the keys of the Instance 1 set the Order ID that is OrderNumber of the GSD file used in the 18M data PROFINET IO Object F6h 10 1 amp M Hardware With this attribute you Hardware Rev 0002h Optional This information must match the keys of Instance 1 Revision set the 18M Hardware the HardwareRelease of the GSD file Revision PROFINET IO Object F6h 11 18M Software With this attribute you Software Rev WEEK Optional This information must match the keys of Instance 1 Revision set the 18M Software the SoftwareRelease of the GSD file Revision PROFINET IO Object F6h 1810 System With this attribute you HMS Industrial Net Customer HMI Inter This information kan be read by means of SNMP Instance 1 Description set the description of works Anybus Com face Module from the network side the system pactCom 40 Additional GSD File Information The GSD file keyword ProductFamily shall correspond to the vendor s name of the device The GSD file keyword
144. ping an ADI to Read Process Data results in PROFINET output data Consistency over all I O data mapped on PROFINET is guaranteed See also e Real Identification RI on page 23 IMPORTANT The order in which ADIs are mapped to Process Data is significant and must be replicated in the IO Controller when setting up the network communication e modules must be set up in the same order size and direction as the mapped ADIs See Real Identification RI on page 23 for more information 2 4 3 Caveats The length parameter in the Record Data request specifies the number of bytes to read write e When reading more data than the actual size of the ADI the response will only contain the actual ADI data i e no padding on the data is performed by the module When writing to an ADI the length parameter is not checked by the module i e the host appli cation must respond with an error if the length differs from the actual size of the requested ADI See also e Application Process Instances API on page 22 2 5 Web Interface The built in web server can be used to provide rich dynamic content by means of JSON and SSI script ing This enables access to information and configuration settings within the file system as well as through the Anybus CompactCom object module Web server content resides within the module s file system This means that it can be accessed and cus tomized as needed using a standard FTP cl
145. ption 1 MAC Address Get Array of UINT8 Current MAC address See also Ethernet Host Object F9h on page 145 2 Port1 MAC Address Get Array of UINT8 MAC address for port 1 mandatory for the LLDP protocol See also Ethernet Host Object F9h on page 145 3 Port2 MAC Address Get Array of UINT8 MAC address for port 2 mandatory for the LLDP protocol See also Ethernet Host Object F9h on page 145 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 12 12 Host Application Objects 12 1 General Information This chapter specifies the host application object implementation in the module The objects listed here may be implemented within the host application firmware to expand the PROFINET implementation Standard Objects e Application Object FFh see Anybus CompactCom 40 Software Design Guide e Application Data Object FEh see Anybus CompactCom 40 Software Design Guide Sync Object EEh on page 126 e Application File System Object EAh see Anybus CompactCom 40 Software Design Guide Network Specific Objects PROFINET IO Object FGh on page 130 Ethernet Host Object F9h on page 145 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 126 12 2 Sync Object EEh Category Extended Object Description This object contains the host object sync settings How to use Sync Functionality Please note that
146. r of request MsgData 5 Slot high byte MsgData 6 Subslot low byte Subslot number of request MsgData 7 Subslot high byte MsgData 8 Index low byte Index of request MsgData 9 Index high byte MsgData 10 Length low byte Range 1 1524 MsgData 11 2 Length high byte a MsgData 11 is only available if the length value exceeds 255 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 e Response Details Success 135 Field Contents Comments CmdExt 0 1 reserved set to zero MsgData 0 n Data up to 1524 bytes Data to be returned in the Record Data Read response e Response Details Error Field Contents Comments CmdExt 0 1 reserved set to zero MsgData 0 FFh Object specific error MsgData 1 Error Code 1 See Details Error Code 1 on page 144 MsgData 2 Error Code 2 User specific error code MsgData 3 Additional Data 1 API specific Set to zero if no Additional Data 1 is defined MsgData 4 Additional Data 2 User specific Set to zero if no Additional Data 2 is defined See also e Command Details Set_Record on page 136 e Flowchart Record Data Access on page 152 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 136 Command Details Set_Record Category Extended Details Command Code 11h Valid for Object Instance Description The module issues
147. re I amp M data for modules located in slots gt O to nonvolatile memory In this case all modules that carry discrete I amp M data shall be included in the I amp M0 Carrier Data The Anybus CompactCom 40 module will include the DAP submodule located in slot 0 subslot 1 in the I amp MO Carrier Data and Device Representative Data When transparent I amp M data for slot 0 is enabled the application must store I amp M data for slot 0 to non volatile memory The DAP submodule is by default included in the I MO Carrier Data and Device Representative Data but may be removed from any of the blocks using the IM_Options command See also e Flowchart I amp M Record Data Handling API 0 on page 153 Command Details Get_Record on page 134 e Command Details Set_Record on page 136 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 e Command Details 99 If the I amp MO Filter Data is of no interest the Data Field is left out command length 0 The command may contain one or several I amp MO Filter Data entries The maximum amount of entries depends on the application For a 256 bytes message channel the maximum amount of entries is 51 256 5 51 For a 1524 bytes message channel the maximum amount of entries is 304 1524 5 304 Important For submodules to be listed in the I amp MO Filter data the command must be sent when the Real Identification has been determine
148. rmat on page 141 for coding of the data field e Response Details No data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 141 Data Format When all data has been received the resulting data shall be interpreted as follows Type Name Description UINT16 iNbrApi Number of APIs in configuration UINT32 IApiNbr Initial module block including API number UINT16 iNbrMod and number of module blocks in the API UINT16 iSlotNbr Module block 8 bytes see below UINT16 iNbrSubMod UINT32 IModident UINT16 iSubSlotNbr Submodule block 10 bytes see below UINT32 ISubModldent UINT16 InDataLength UINT16 iOutDataLength The initial API block iNbrApi defines the number of APIs in the configuration Each API has an initial module block that includes infor mation on the API number iApiNbr and the number of modules or slots in the API Each module starts with a module block which holds the slot number the number of submodules or subslots and the module identity number Finally each submodule block holds subslot number sub module identification number input and output data lengths Example In this example the configuration contains two APIs with the following properties API 1 contains two modules the first with two submodules the second with one submodule API 2 contains one module with one submodule Anybus CompactCom 40
149. rtify the product also belong to this category A 2 Extended Use of the objects in this category extends the functionality of the application Access is given to the more specific characteristics of the industrial network not only the basic moving of data to and from the network Extra value is given to the application A 3 Advanced The objects attributes and services that belong to this group offer specialized and or seldom used func tionality Most of the available network functionality is enabled and accessible Access to the specifica tion of the industrial network is normally required Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Appendix B B Anybus Implementation Details B 1 SUP Bit Definition The supervised bit SUP indicates that the network participation is supervised by another network de vice In the case of PROFINET IO this bit is set when one or more IO connections are established B 2 Anybus State Machine The table below describes how the Anybus State Machine re ates to the PROFINET IO network Anybus State Implementation Comment WAIT_PROCESS The Anybus stays in this state until an IO con nection with an IO controller is opened ERROR Configuration data mismatch or initial parameter error PROCESS_ACTIVE IO connection established with IO controller and valid output data has been provided at least once IDLE 10 controller with wh
150. s Example See also ABCCMessage on page 53 Example Get_Attribute on page 55 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Server Side Include SSI 50 Formatting Tags e Type Required The Type character is required and determines the basic representation as follows Type Character Representation Example c Single character b d i Signed decimal integer 565 e E Floating point number in exponential notation 5 6538e2 f Floating point number in normal fixed point notation 565 38 g G e or E is used if the exponent is less than 4 or greater than or equal to the 565 38 precision otherwise f is used Trailing zeroes decimal point are not printed o Unsigned octal notation 1065 S String of characters Text u Unsigned decimal integer 4242 x X Hexadecimal integer 4e7f Literal no assignment is made Flags Optional Flag Character Meaning Left justify the result within the give width default is right justification Always include a or to indicate whether the number is positive or negative space If the number does not start with a or prefix it with a space character instead 0 zero Pad the field with zeroes instead of spaces For e E and f forces the number to include a decimal point even if no digits follow For x and X prefixes 0x or 0X respec
151. s The I amp M records uses the following data structures Record Content Size Description 18M0 Manufacturer ld 2 bytes PROFINET lO Object F6h attribute 2 Vendor ID I amp M Vendor ID Order ld 20 bytes PROFINET IO Object F6h attribute 8 I amp M Order ID Serial number 16 bytes PROFINET lO Object F6h attribute 9 18M Serial number Hardware revision 2 bytes PROFINET IO Object F6h attribute 10 18M Hardware revision F6h F6h F6h Software revision 4 bytes PROFINET IO Object F6h attribute 11 18M Software revision Revision counter 2 bytes PROFINET IO Object F6h attribute 12 18M Revision counter Profile Id 2 bytes PROFINET lO Object F6h attribute 13 18M Profile ID Profile specific type 2 bytes PROFINET IO Object F6h attribute 14 I amp M Profile specific type IM version 2 bytes 0101h Internal constant value IM supported 2 bytes 001Eh Internal constant value 18M1 Tag Function 32 bytes Default All bytes set to blanks Tag Location 22 bytes Default All bytes set to blanks 18M2 Installation date 16 bytes Default All bytes set to blanks 18M3 Descriptor 54 bytes Default All bytes set to blanks 18M4 Signature 54 bytes Default All bytes set to zero 00h See also PROFINET IO Object FGh on page 130 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Do
152. sage See also e ABCCMessage on page 53 Default Output Scenario Default Output Success Success Parsing error Incorrect data format Too much data for argument Too much data ABCC Message error ABCCMessage error string Errors on page 56 Example See also ABCCMessage on page 53 Example Set_Attribute on page 55 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Server Side Include SSI 52 Formatting Tags e Type Required The Type character is required and determines the basic representation as follows Type Input Argument Data Type c Single character CHAR d Accepts a signed decimal integer SINT8 SINT16 SINT32 i Accepts a signed or unsigned decimal integer May be given as decimal SINT8 UINT8 hexadecimal or octal determined by the initial characters of the input data SINT16 UINT16 Initial Characters Format SINT32 UINT32 Ox Hexadecimal 0 Octal 1 9 Decimal u Accepts an unsigned decimal integer UINT8 UINT16 UINT32 o Accepts an optionally signed octal integer SINT8 UINT8 SINT16 UINT16 SINT32 UINT32 Xx X Accepts an optionally signed hexadecimal integer SINT8 UINT8 SINT16 UINT16 SINT32 UINT32 e E Accepts an optionally signed floating point number The input format for float FLOAT f ing point numbers is a string of digits with some optional characteristics g G It can be a signed valu
153. sends the same command header mul tiple times For each message the data field is exchanged with the next data segment Please note that some commands can t be used concurrently on the same instance since they both need access to the segmentation buffer for that instance Command segmentation is used for the following commands Send see Command Details Send on page 112 Send To see Command Details Send To on page 113 Segmentation Control bits Command Bit Contents Meaning 0 FS Set if the current segment is the first segment 1 LS Set if the current segment is the last segment 2 AB Set if the segmentation shall be aborted 3 7 reserved Set to 0 zero Segmentation Control bits Response Bit Contents Meaning 0 7 reserved Ignore When issuing a segmented command the following rules apply e When issuing the first segment FS must be set e When issuing subsequent segments both FS and LS must be cleared e When issuing the last segment the LF bit must be set For single segment commands i e size less or equal to 1500 bytes both FS and LS must be set The last response message contains the actual result of the operation e The command initiator may at any time abort the operation by issuing a message with AB set Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Message Segmentation 151 If a segmentation error is detected during tr
154. set Red 2 flashes IP address error IP address not set Red 3 flashes Configuration error Expected Identification differs from Real Identification F 1 2 Module Status LED LED State Description Comments Off Not Initialized No power or Module in SETUP or NW_INIT state Green Normal Operation Module has shifted from the NW_INIT state Green 1 flash Diagnostic Event s Diagnostic event s present Red Exception error Device in state EXCEPTION Fatal event Major internal error this indication is combined with a red net work status LED Alternating Red Green Firmware update Do NOT power off the module Turning the module off during this phase could cause permanent damage Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 F 1 3 LINK Activity LED Technical Specification 156 LED State Description Comments Off No Link No link no communication present Green Link Ethernet link established no communication present Green flickering Activity Ethernet link established communication present F 1 4 Ethernet Interface The Ethernet interface operates at 100 Mbit full duplex as required by PROFINET Pin no Description 1 2 4 5 Connected to chassis ground over serial RC circuit 3 RD 6 RD 7 TD 8 TD Housing Cable Shield IMPORTANT For information on how to connect the
155. stance gt amp value lt element gt amp callback lt function gt This object call fetches enum strings for the instance lt instance gt If an lt element gt is specified only the enum string for that value is returned If no enum strings are available an empty list is returned Option ally a callback may be passed to the GET request for JSONP output Name Data Type Note string String value Number JSON object layout String String for value 1 value 1 String String for value 2 value 2 update json POST adi update json form data inst lt instance gt amp value lt data gt amp elem lt element gt amp callback lt function gt Updates the value of an ADI for the specified ADI instance lt instance gt The value lt data gt shall be hex formatted see Hex Format Explained on page 66 for more information If lt element gt is spec ified only the value of the specified element is updated In this case lt data gt shall only update that single element value When lt element gt is not specified lt data gt shall represent the entire array value Option ally a callback may be passed to the request for JSONP output Name Data Type Note result Number 0 success POST adi update json form data inst 158value FF01 result 0 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 8 2 2 Module info json GET modul
156. t Description Supported Commands Object Get_Attribute Plug_Module see Command Details Plug_Module on page 88 Plug_Submodule see Command Details Plug_Submodule on page 89 Plug_Submodule_Ext see Command Details Plug_Submodule_Ext on page 91 Pull_Module see Command Details Pull_Module on page 93 Pull_Submodule see Command Details Pull_Submodule on page 94 API_Add see Command Details API_Add on page 95 Appl_State_Ready see Command Details Appl_State_Ready on page 96 AR_Abort see Command Details AR_Abort on page 97 IM_Options see Command Details IM_Options on page 98 Instance Get_Attribute Object Attributes Instance 0 Name Access Data Type Value 1 Name Get Array of CHAR Network PROFINET IO 2 Revision Get UINT8 Oth 3 Number of instances Get UINT16 0001h 4 Highest instance no Get UINT16 0001h Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Instance Attributes Instance 1 87 Extended Name Access Type Value 1 OnLineTrans Get UINT32 Diagnostic counters keeps track of the number of on line transitions 2 OffLineTrans Get UINT32 Diagnostic counters keeps track of the number of off line transitions 3 reserved 4 Last Abortlnd Get UINT16 Reason code for most recent Abort indication ReasonCode See also Command Details AR_Abort
157. t Types Web Server 38 By default the following content types are recognized by their file extension File Extension Reported Content Type htm html shtm text html gif image gif jpeg jpg jpe image jpeg png image x png js application x javascript bat txt c h cpp hpp text plain zip application x zip compressed exe com application octet stream wml text vnd wap wml wmlc application vnd wap wmlc wbmp image vnd wap womp wmls text vnd wap wmlscript wmlsc application vnd wap wmlscriptc xml text xml pdf application pdf css text css Content types can be added or redefined by adding them to the server configuration file see General Information on page 37 5 3 4 Authorization Directories can be protected from web access by placing a file called web_accs cfg in the directory to protect This file shal File Format Usernamel Username2 Usernamen AuthName Passwordl Password2 PasswordN message goes here contain a list ofusers that are allowed to access the directory and its subdirectories List of approved users Optionally a login message can be specified by including the key AuthName This message will be displayed by the web browser upon accessing the protected directory The list of approved users can optionally be redirected to one or several other files Note If the list of approved users is put in another file
158. tances are moved from instance number 15 and on to instance number 20 and on This is done to increase the amount of instances in the part that is not network specific The network specific instances that handled I amp M data have been removed as they are not pos sible to set from the application PROFINET Additional Diagnostic Object e This object is removed All diagnostics are handled via the standard diagnostic object PROFINET Host Object e The instance 1 attribute PROFlenergy functionality does no longer carry any functionality It is now set to reserved e The instance 1 attribute System Contact is now set to reserved and no longer used The Expected_Ident_Ind command replaces Ar_Info_Ind See Command Details Expect ed_Ident_Ind on page 140 for more information LEDs e Major internal error is now covered by the FATAL event It is signaled by both Module and Sta tus LEDs being solid red SNMP MIB II e sysContact sysLocation and sysName are no longer connected to any other parameters attri butes They are stored as separable readable writeable parameters in the module s nonvolatile memoty Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Chapter 2 2 Basic Operation 2 1 General Information 2 1 1 Software Requirements Generally no additional network support code needs to be written to support the Anybus CompactCom 40 PROFINET IRT module however due to the nature of the PROFI
159. tdown receive channel 01h Shutdown send channel 02h Shutdown both receive and send channel e Response Details no data The recommended sequence to gracefully shut down a TCP connection is described below Application initiates shutdown 1 Send shutdown with CmdExt 1 set to 01h This will send FIN flag to host shutting down the send channel note that the receive channel will still be operational 2 Receive data on socket until error message Object specific error EDESTADDRREQ 14 is received indicating that the host closed the receive channel If host does not close the receive chan nel use a timeout and progress to step 3 3 Delete the socket instance If step 2 timed out RST flag will be sent to terminate the socket Host initiates shutdown 1 Receive data on socket if zero bytes received it indicates that the host closed the receive channel of the socket 2 Try to send any unsent data to the host 3 Send shutdown with CmdExt 1 set to 01h This will send FIN flag to host shutting down the receive channel 4 Delete the socket instance Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details Listen Category Advanced Details Command Code Valid for Description 12h Instance 107 This command puts a TCP socket in listening state Backlog queue length is the number of unaccepted connections allowed on the socket When backlog queue is full fur
160. tes Instance 4 Subnet Mask Value is used after module reset Advanced Name Access Type Description 1 Name Get Array of CHAR Subnet mask 2 Data type Get UINT8 04h UINT8 3 Number of elements Get UINT8 04h four elements 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 Valid range 0 0 0 0 255 255 255 255 Default 0 0 0 0 a Multilingual see Multilingual Strings on page 83 Note This attribute should not be set by the application at every power on as this would cause certifi cation problems Instance Attributes Instance 5 Gateway Value is used after module reset Advanced Name Access Type Description 1 Name Get Array of CHAR Gateway 2 Data type Get UINT8 04h UINT8 3 Number of elements Get UINT8 04h four elements 4 Descriptor Get UINT8 07h read write shared access 5 Value Get Set Array of UINT8 Valid range 0 0 0 0 255 255 255 255 Default 0 0 0 0 a Multilingual see Multilingual Strings on page 83 Note This attribute should not be set by the application at every power on as this would cause certifi cation problems Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 79 Instance Attributes Instance 6 DHCP Value is used after module reset Extended Name Access Type Description 1 Name G
161. ther connections will be refused with RST flag e Command Details Field Contents Comments CmdExt 0 reserved set to zero CmdExt 1 Value Backlog queue length 00h 1 Oth 2 02h 4 e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 108 Command Details Accept Category Advanced Details Command Code 13h Valid for Instance Description This command accepts incoming connections on a listening TCP socket A new socket instance is cre ated for each accepted connection The new socket is connected with the host and the response returns its instance number NONBLOCKING mode This command must be issued repeatedly polled for incoming connections If no incoming connection request exists the module will respond with error code 0006h EWOULDBLOCK BLOCKING mode This command will block until a connection request has been detected Note This command will only be accepted if there is a free instance to use for accepted connections For blocking connections this command will reserve an instance Command Details no data e Response Details Field Contents Data 0 Instance number for the connected socket low Data 1 Instance number for the connected socket high Data 2 Host IP address byte 3 low Data 3 Host IP address byte 2 Data 4 Host IP address byte 1 Data 5 Host IP address byte 0 high Data 6 Host
162. this command in the following situations e Module receives a Record Data Write request towards an API other than 0 zero e Module receives a Record Data Write request towards API 0 but the record in question is han dled in Transparent Mode See Flowchart Record Data Access on page 152 for more information It is optional to implement support for this command If not implemented the original network request will be rejected and an error is returned to the IO Controller Supervisor Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details 137 Field Contents Comments CmdExt 0 AR handle low byte Handle for Application Relationship AR CmdExt 1 AR handle high byte MsgData 0 API low word low byte Application Process Instance API MsgData 1 API low word high byte MsgData 2 API high word low byte MsgData 3 API high word high byte MsgData 4 Slot low byte Slot number of request MsgData 5 Slot high byte MsgData 6 Subslot low byte Subslot number of request MsgData 7 Subslot high byte MsgData 8 Index low byte Index of request MsgData 9 Index high byte MsgData 10 reserved Reserved set to zero MsgData 11 n Data up to 1512 bytes Data from the Record Data Write request e Response Details Success no data e Response Details Error Field Contents Comme
163. tively Width Optional Width Meaning number Specifies the minimum number of characters to be printed If the value to be printed is shorter than this number the result is padded to make up the field width The result is never truncated even if the result is larger The width is not specified in the format string it is specified by an integer value preceding the argument that has to be formatted Precision Optional The exact meaning of this field depends on the type character Type Character Meaning d i 0 u X X Specifies the minimum no of decimal digits to be printed If the value to be printed is shorter than this number the result is padded with space Note that the result is never trun cated even if the result is larger e E f Specifies the no of digits to be printed after the decimal point default is 6 g G Specifies the max no of significant numbers to be printed S Specifies the max no of characters to be printed c no effect e Modifier Modifier Character Meaning hh Argument is interpreted as SINT8 or UINT8 h Argument is interpreted as SINT16 or UINT16 Argument is interpreted as SINT32 or UINT32 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 7 3 10 scanf Server Side Include SSI 51 This function is very similar to the printf function described earlier except that it is used for input rath er tha
164. troller to the IO Device s The self healing time is approximately 200 ms The Media Redundancy Master MRM is responsible for checking the functional capability of the ring network by sending out cyclic tokens The Media Redundancy Clients MRC basically work as switches that pass on the tokens The Anybus CompactCom module supports acting as a Media Redundancy Cli ent MRC It also supports propagating link change to the Media Redundancy Master 10 2 GSDML Entries MRP functionality is enabled by default in the GSD file The settings for MRP is located at the Device Access Point DAP Within the lt InterfaceSubmoduleltem gt the role the Anybus module can play for MRP is defined This shall be set to Client with the keyword lt MediaRedundancy SupportedRole Client gt For each physical port there are two keywords in the lt PortSubmoduleltem gt section lt PortSubmoduleltem SupportsRingportConfig true IsDefaultRingport true gt These are set to true by default To disable MRP these two shall be set to false Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Chapter 11 11 Anybus Module Objects 11 1 General Information This chapter specifies the Anybus Module Object implementation in the module Standard Objects Anybus Object 01h on page 72 Diagnostic Object 02h on page 73 Network Object 03h on page 76 Network Configuration Obj
165. tructs the module to use the passed form data parsed by scant lt exec cmd _argument scanf 1P Su Su Su Sun ABCCMessage 4 3 2 5 0 ARG UINT8 4 NONE gt Variable Value Comments object 4 Network Configuration Object 04h instance 3 Instance 3 IP address command 2 Set_attribute ce0 5 Attribute 5 cet 0 msgdata ARG Use data parsed by scanf call c_type UINT8 4 Array of 4 unsigned 8 bit integers r_type NONE Response message holds no data See also scanf on page 51 Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Server Side Include SSI 56 Errors In case an object request results in an error the error code in the response will be evaluated and trans lated to human readable form as follows Error Code Output Unknown error Unknown error Invalid message format Unsupported object Unsupported instance Unsupported command Invalid CmdExt 0 Invalid CmdExt 1 Attribute access is not set able Attribute access is not get able Too much data in msg data field Not enough data in msg data field Out of range Invalid state Out of resources Segmentation failure Segmentation buffer overflow 255 Unknown error CO CO AO A G il NM gt x gt x
166. ue Meaning 1 10 AR SINGLE 3 IO AR OR 4 1O_AR_REDUNDANT_CONTROLLER 5 IO AR REDUNDANT DEVICE 6 SUPERVISOR_AR MsgData 6 AR Properties low word low byte MsgData 7 AR Properties low word high byte MsgData 8 AR Properties high word low byte MsgData 9 BH UR EE AR Properties high word high byte Bit field indicating the properties of the AR as follows Bit 0 2 State 0 Backup 1 Primary Bit 3 Supervisor take over allowed 0 Not allowed 1 Allowed Bit 4 Parameterization server 0 EXTERNAL_PRM_SERVER 1 CM_INITIATOR Bit 5 6 Data rate 0 AT_LEAST_100 Mbps 1 100 Mbps 2 1 Gbps 3 10 Gbps Bit 8 Device Access 0 AR_CONTEXT 1 DEVICE_CONTEXT Bit 9 10 Companion AR 0 SINGLE_AR 1 FIRST_AR 2 COMPANION_AR MsgData 10 Remote station name length Length of remote station name in bytes MsgData 11 n Remote station name Remote station name IO Controller Supervisor Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 139 e Response Details No data Command Details Cfg_Mismatch_Ind Category Advanced Details Command Code 15h Valid fot Object Instance Description The module issues this command to inform the host application that the configuration in the IO Con troller i e the Expected Identification does not match the configuration defined by the host application i e the Real Identi
167. ulticast group membership Command Details Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Data 0 Group IP address byte 3 low Data 1 Group IP address byte 2 Data 2 Group IP address byte 1 Data 3 Group IP address byte 0 high e Response Details no data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details DNS_Loopup Category Advanced Details Command Code Valid for Description 1Bh Object Instance 116 This command resolves the given host name and returns the IP address Command Details Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Data 0 N Host name Host name to resolve e Response Details Success Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Data 0 IP address byte 3 low IP address of the specified host Data 1 IP address byte 2 Data 2 IP address byte 1 Data 3 IP address byte 0 high Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 117 Socket Interface Error Codes Object Specific The following object specific error codes may be returned by the module when using the socket inter face object Error Code Name Meaning 1 ENOBUFS No internal buffers available 2 ETIMEDOUT A timeout ev
168. ust belong to group in order to get the loop backed message Resolution is 50ms i e 50 99 50ms 100 149 100ms 199 150ms etc Doc ld HMSI 27 226 Command Details Create Category Advanced Details Command Code Valid for Description 03h Object Instance This command creates a socket 103 Note This command is only allowed in WAIT_PROCESS IDLE and PROCESS_ACTIVE states Command Details Field Contents CmdExt 0 reserved set to zero CmdExt 1 Value Socket Type 00h SOCK_STREAM NON BLOCKING TCP 01h SOCK_STREAM BLOCKING TCP 02h SOCK_DGRAM NON BLOCKING UDP 03h SOCK_DGRAM BLOCKING UDP e Response Details Field Contents Comments Data 0 Instance number low Data 1 Instance number high Instance number of the created socket Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Command Details Delete Category Advanced Details Command Code 04h Valid for Description Object Instance 104 This command deletes a previously created socket and closes the connection if connected the RST flag If the socket is of TCP type and a connection is established the connection is terminated with To gracefully terminate a TCP connection it is recommended to use the Shutdown command see Command Details Shutdown on page 106 before deleting the socket causing the con
169. ute UINT32 Gateway a If an attribute is not implemented the module will use this value instead b The module is preprogrammed with a valid Mac address To use that address do not implement this attribute Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Network Status 147 This attribute holds a bit field which indicates the overall network status as follows Bit Contents Description 0 Link Current global link status 1 Link sensed 0 No link 1 IP established 1 IP address established 0 IP address not established 2 reserved mask off and ignore 3 Link port 1 Current link status for port 1 1 Link sensed 0 No link 4 Link port 2 Current link status for port 2 1 Link sensed 0 No link 5 15 reserved mask off and ignore Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc ld HMSI 27 226 Appendix A A Categorization of Functionality The objects including attributes and services of the Anybus CompactCom and the application are di vided into three categories basic advanced and extended A 1 Basic This category includes objects attributes and services that are mandatory to implement or to use They will be enough for starting up the Anybus CompactCom and sending receiving data with the chosen network protocol The basic functions of the industrial network are used Additional objects etc that will make it possible to ce
170. utes Instance 1 on page 131 sysObjectlD Read only N A Value 0 Internal sysUpTime Read only Time since last power up in hundredths of a second Internal sysContact Read Write Identification of the contact person for the device Internal including contact information Data type Displaystring Max 255 characters Factory default setting empty string sysName Read Write Name of the device Data type Displaystring Max 255 Internal characters Factory default setting empty string sysLocation Read Write Physical location of the device IM Tag Location Data Internal type DisplayString Max 255 characters Factory default setting empty string sysServices Read only Functionality of the device Value 74 which indicates Internal that the device has functionality that represents layers 2 switch 4 TCP and 7 Application in the OSI model 9 3 2 Interfaces Group Variables Access authorizations for all variables are read only with values from internal sources The number in brackets refers to the port number 1 Port 1 2 Port 2 3 Internal port Variable Data Type Value Description Number integer 3 Number of network interfaces present Constant Ifindex 1 3 integer iflndex 1 1 Unique value for each interface Constant iflndex 2 2 iflndex 3 3 ifDescr 1 3 octetstring ifDescr 1 port 001 Information about the interface ifDescr 1 must equal ifD
171. ware Design Guide Application Data Object FEh Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Basic Operation 13 2 1 2 Electronic Data Sheet GSD On PROFINET the characteristics of a device is stored in an XML data file This file referred to as the GSD file is used by PROFINET engineering tools when setting up the network configuration HMS provides an example GSD file which must be adapted by the user to suit the application Setting Identity and Function Information The GSD file must be adapted to your implementation First thing is the device identity In the GSD file there is a section called Deviceldentity It looks like this lt Deviceldentity VendorID 0x010C DeviceID 0x0010 gt lt InfoText TextId T_ID_DEV_DESCRIPTION gt lt VendorName Value HMS Industrial Networks gt lt Deviceldentity gt The identity in the example represents HMS values e Replace VendorID value 0x010C with the value which correspond to your vendor name If you do not have a Vendor ID you can obtain this by contacting PI Set with PROFINET IO Object OxF6 attribute 2 Vendor ID Replace the DeviceID value 0x0010 with the value you have selected for this device Set with PROFINET IO Object OxF6 attribute 1 Device ID Please note that if you change the Device ID you MUST also change the Vendor ID as the Device ID is unique for the Vendor ID e Replace the VendorName value HMS Industrial N
172. word Set Cancel Validate the new settings by clicking Set or click Cancel to cancel all changes Optionally the con figuration can be protected from unauthorized access by a password To enter a password check the Change password checkbox and enter the password in the New password text field Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc Id HMSI 27 226 Appendix F F Technical Specification F 1 Front View PROFINET IRT tem 1 Network Status LED Connector Ethernet RJ45 2 Module Status LED 3 Link Activity LED port 1 M A Link Activity LED port 2 a Test sequences are performed on the Network and Module Status LEDs during startup F 1 1 Network Status LED LED State Description Comments Off Offline No power No connection with IO Controller Green Online RUN Connection with IO Controller established IO Controller in RUN state Green 1 flash Online STOP Connection with IO Controller established 10 Controller in STOP state or 10 data bad IRT synchronization not finished Green blinking Blink Used by engineering tools to identify the node on the network Red Fatal event Major internal error this indication is combined with a red mod ule status LED Red 1 flash Station Name error Station Name not
173. yer protocol packets iflnNUcastPkts 1 3 counter iflnNUcastPkts 1 3 Number of non unicast i e subnetwork broadcast or Number of non unicast subnetwork multicast delivered to a higher layer proto packets col iflnDiscards 1 3 counter iflnDiscards 1 3 Number of inbound packets which were discarded number of discarded _ without any error detected not to be delivered to a packets higher layer protocol One reason to discard packages might be to free up buffer space ifinErrors 1 3 counter iflnErrors 1 3 num Number of inbound packets with errors ber of error packets iflnUnknownProtos 1 3 counter ifinUnknownPro Number of packets received via the interface dis tos 1 3 Number of carded because of an unknown or unsupported proto unknown packets col ifOutOctets 1 3 counter ifOutOctets 1 3 Total number of octets transmitted out from the inter Number of octets face including framing characters ifOutUcastPkts 1 3 counter ifOutUcastPkts 1 3 Total number of packets that higher level protocols Number of unicast requested to be transmitted to a subnetwork unicast packets address including those that were discarded or not sent ifOutNUcastPkts 1 3 counter ifOutNUcastPkts 1 3 Total number of packets that higher level protocols Number of non uni requested be transmitted to a non unicast i e a sub cast packets network broadcast or subnetwork multicast address including those that were discarded or
174. zero CmdExt 1 Segmentation Control bits see Command Segmentation on page 150 Data 0 Receive data size low Only used in the first segment Data 1 Receive data size high e Response Details Note The data in the response may be segmented see Message Segmentation on page 150 Field Contents Notes CmdExt 0 reserved set to zero CmdExt 1 Segmentation Control bits see Response Segmentation on page 151 Data 0 n Received data Anybus CompactCom 40 PROFINET IO Doc Rev 1 22 Doc HMSI 27 226 Command Details Receive_From Category Advanced Details Command Code 16h Valid for Instance Description 111 This command receives data from an unconnected SOCK_DGRAM socket Message segmentation may be used to receive up to 1472 bytes see Message Segmentation on page 150 The module will return the requested amount of data from the next received datagram If the datagram is smaller than requested the entire datagram will be returned in the response message If the datagram is larger than requested the excess bytes will be discarded The response message contains the IP address and port number of the sender NON BLOCKING mode If no data is available on the socket the error code 0006h EWOULDBLOCK will be returned BLOCKING mode The module will not issue a response until the operation has finished Command Details Field Contents Notes
Download Pdf Manuals
Related Search
Related Contents
Manual de usuario WANDBOARD USER GUIDE 取扱説明書 充電式クリーナ Neumann.Berlin U 67 User's Manual Fusion User Manual - Emerson Climate Technologies Chieftec SNT-2131 SATA storage enclosure Samsung NP-R522E User Manual (Vista/Windows7) LS-DYNA Keyword User`s Manual Version 970 / Update Rev Philips SVGA monitor cable SWX2116 Philips MZ1200 User's Manual Copyright © All rights reserved.
Failed to retrieve file