Download EtherNet/IP Scanner Protocol API

Transcript
Introduction
4/216
4.2.3 Using the configuration Tool SYCON.net ........................................................................................ 45
4.3
4.4
Task Structure of the EtherNet/IP Scanner Stack .......................................................................46
DLR ..............................................................................................................................................48
4.4.1 Fundamentals of DLR...................................................................................................................... 48
4.5 Obtaining Diagnostic Information from connected Slaves by sending an
RCX_GET_SLAVE_CONN_INFO_REQ Packet........................................................................................62
5
The Application Interface ....................................................................................................................65
5.1 The APM-Task .............................................................................................................................65
5.1.1
5.1.2
5.1.3
5.1.4
5.2
EIP_APM_WARMSTART_PRM_REQ/CNF - Set Warmstart Parameter .............................................. 66
EIP_APM_SET_CONFIGURATION_PRM_REQ/CNF - Set Configuration .......................................... 71
EIP_APM_REGISTER_APP_REQ/CNF - Register Application ......................................................... 76
EIP_APM_UNREGISTER_APP_REQ/CNF - Unregister Application.................................................. 78
The EipObject-Task .....................................................................................................................81
5.2.1 EIP_OBJECT_MR_REGISTER_REQ/CNF – Register a new Object at the Message Router............ 83
5.2.2 EIP_OBJECT_AS_REGISTER_REQ/CNF – Register a new Assembly Instance ............................. 88
5.2.3 EIP_OBJECT_ID_SETDEVICEINFO_REQ/CNF – Set the Device Information ............................... 94
5.2.4 EIP_OBJECT_CM_OPEN_CONN_REQ/CNF – Open a new Connection............................................ 99
5.2.5 EIP_OBJECT_CM_CONN_FAULT_IND/RES – Indicate a Connection Fault .................................. 112
5.2.6 EIP_OBJECT_CM_CLOSE_CONN_REQ/CNF – Close a Connection............................................... 114
5.2.7 EIP_OBJECT_SET_OUTPUT_REQ/CNF – Setting the Output Data............................................... 119
5.2.8 EIP_OBJECT_GET_INPUT_REQ/CNF – Getting the latest Input Data.......................................... 124
5.2.9 EIP_OBJECT_RESET_IND/RES – Indicate a Reset Request from the Device............................. 130
5.2.10 EIP_OBJECT_RESET_REQ/CNF – Request a Reset .................................................................... 131
5.2.11 EIP_OBJECT_TCP_STARTUP_CHANGE_IND/RES – Indicate Change of TCP Parameter ........... 134
5.2.12 EIP_OBJECT_CONNECTION_IND/RES – Indicate Change of Connection State.......................... 138
5.2.13 EIP_OBJECT_FAULT_IND/RES – Indicate a fatal Fault............................................................... 141
5.2.14 EIP_OBJECT_READY_REQ/CNF – Change Application Ready State ........................................... 143
5.2.15 EIP_OBJECT_REGISTER_CONNECTION_REQ/CNF – Register Connection at the Connection
Configuration Object ................................................................................................................................. 145
5.2.16 EIP_OBJECT_UNCONNECT_MESSAGE_REQ/CNF – Send an unconnected Message Request..... 157
5.2.17 EIP_OBJECT_OPEN_CL3_REQ/CNF – Open Class 3 Connection................................................ 161
5.2.18 EIP_OBJECT_CONNECT_MESSAGE_REQ/CNF – Send a Class 3 Message Request ................... 164
5.2.19 EIP_OBJECT_CLOSE_CL3_REQ/CNF – Close Class 3 Connection ............................................. 168
5.2.20 EIP_OBJECT_CL3_SERVICE_IND/RES – Indication of Class 3 Service ..................................... 170
5.3
The EipEncap-Task....................................................................................................................174
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
5.4
6
EIP_ENCAP_LISTIDENTITY_REQ/CNF – Issue a List Identity Request ..................................... 175
EIP_ENCAP_LISTIDENTITY_IND/RES – Indicate a List Identity Answer................................... 178
EIP_ENCAP_LISTSERVICE_REQ/CNF – Issue a List Service Request ....................................... 183
EIP_ENCAP_LISTSERVICE_IND/RES – Indicate a List Service Answer .................................... 187
EIP_ENCAP_LISTINTERFACE_REQ/CNF – Issue a List Interface Request................................. 191
EIP_ENCAP_LISTINTERFACE_IND/RES – Indicate a List Interface Answer .............................. 196
The TCP_IP-Task ......................................................................................................................200
Status/Error Codes Overview............................................................................................................201
6.1 Status/Error Codes EipObject-Task...........................................................................................201
6.1.1 Diagnostic Codes EipObject-Task ............................................................................................. 202
6.2
Status/Error Codes EipEncap-Task ...........................................................................................203
6.2.1 Diagnostic Codes EipEncap-Task ............................................................................................... 205
6.3
Status/Error Codes APM-Task...................................................................................................207
6.3.1 Diagnostic Codes APM-Task......................................................................................................... 208
6.4
6.5
7
Status/Error Codes Eip_DLR-Task..........................................................................................209
CIP General Error Codes ...........................................................................................................210
Appendix .............................................................................................................................................213
7.1 List of Tables..............................................................................................................................213
7.2 List of Figures.............................................................................................................................215
7.3 Contact .......................................................................................................................................216
EtherNet/IP Scanner |
DOC050702API10EN | Revision 10 | English | 2010-12 | Released | Public
© Hilscher, 2006-2010