Contents ControlLogix® Platform ♦ "C" Programmable
Developer's Guide Linux Application Development Module
Page 6 of 192 ProSoft Technology, Inc.
4.10.2 Client ENet Sample ......................................................................................... 51
4.11 Serial Sample................................................................................................... 52
4.12 Led_Sample ..................................................................................................... 53
4.13 Backplane_Sample .......................................................................................... 54
4.14 Tag_Sample..................................................................................................... 56
4.15 Ethernet Communications Sample .................................................................. 58
4.15.1 Initiating External Client Communication ......................................................... 60
4.16 Serial Application Sample ................................................................................ 65
5 CIP API Functions 73
5.1 CIP API Initialization Functions ........................................................................ 75
OCXcip_Open ...................................................................................................................... 75
OCXcip_OpenNB ................................................................................................................. 76
OCXcip_Close ...................................................................................................................... 77
5.2 Object Registration .......................................................................................... 78
OCXcip_RegisterAssemblyObj ............................................................................................ 78
OCXcip_UnregisterAssemblyObj ......................................................................................... 80
5.3 Special Callback Registration .......................................................................... 81
OCXcip_RegisterFatalFaultRtn ............................................................................................ 81
OCXcip_RegisterResetReqRtn ............................................................................................ 82
5.4 CIP Callback Functions ................................................................................... 83
connect_proc ........................................................................................................................ 83
service_proc ......................................................................................................................... 87
fatalfault_proc ....................................................................................................................... 89
5.5 Connected Data Transfer ................................................................................ 90
OCXcip_WriteConnected ..................................................................................................... 90
OCXcip_ReadConnected ..................................................................................................... 91
OCXcip_ImmediateOutput ................................................................................................... 92
OCXcip_WaitForRxData ...................................................................................................... 93
OCXcip_WriteConnectedComplete ...................................................................................... 94
5.6 Tag Access Functions ..................................................................................... 96
OCXcip_AccessTagData ...................................................................................................... 96
OCXcip_AccessTagDataAbortable ...................................................................................... 99
OCXcip_CreateTagDbHandle ............................................................................................ 100
OCXcip_DeleteTagDbHandle ............................................................................................ 101
OCXcip_SetTagDbOptions ................................................................................................ 102
OCXcip_BuildTagDb .......................................................................................................... 104
OCXcip_TestTagDbVer ...................................................................................................... 105
OCXcip_GetSymbolInfo ..................................................................................................... 106
OCXcip_GetStructInfo ........................................................................................................ 108
OCXcip_GetStructMbrInfo .................................................................................................. 110
OCXcip_GetTagDbTagInfo ................................................................................................ 112
OCXcip_AccessTagDataDb ............................................................................................... 114
5.7 Messaging ...................................................................................................... 116
OCXcip_GetDeviceICPObject ............................................................................................ 118
OCXcip_GetDeviceIdStatus ............................................................................................... 120
OCXcip_GetExDeviceObject.............................................................................................. 123
OCXcip_GetWCTime ......................................................................................................... 125
OCXcip_SetWCTime .......................................................................................................... 128
OCXcip_GetWCTimeUTC .................................................................................................. 130
OCXcip_SetWCTimeUTC .................................................................................................. 133
5.8 Miscellaneous Functions OCXcip_GetIdObject ............................................ 135