ProSoft Technology MVI69-ADM User Manual
Page 10

Contents
MVI-ADM ♦ 'C' Programmable
Developer's Guide
'C' Programmable Application Development Module
Page 10 of 342
ProSoft Technology, Inc.
February 20, 2013
10.5
CIPConnect
®
Data Transfer .................................................................................. 275
MVIcip_WriteConnected ............................................................................................................ 275
MVIcip_ReadConnected ........................................................................................................... 276
10.6
CIP Callback Functions ........................................................................................ 278
connect_proc ............................................................................................................................. 278
service_proc .............................................................................................................................. 282
rxdata_proc................................................................................................................................ 284
fatalfault_proc ............................................................................................................................ 286
flashupdate_proc ....................................................................................................................... 287
resetrequest_proc ..................................................................................................................... 288
10.7
CIP Special Callback Registration ........................................................................ 289
MVIcip_RegisterFatalFaultRtn .................................................................................................. 289
MVIcip_RegisterResetReqRtn .................................................................................................. 290
MVIcip_RegisterFlashUpdateRtn .............................................................................................. 291
10.8
CIP Miscellaneous Functions ............................................................................... 292
MVIcip_GetIdObject .................................................................................................................. 292
MVIcip_GetVersionInfo ............................................................................................................. 293
MVIcip_SetUserLED ................................................................................................................. 294
MVIcip_SetModuleStatus .......................................................................................................... 295
MVIcip_ErrorString .................................................................................................................... 296
MVIcip_GetSetupMode ............................................................................................................. 297
MVIcip_GetConsoleMode ......................................................................................................... 298
MVIcip_Sleep ............................................................................................................................ 299
11
Side-Connect API Library Functions
301
11.1
Initialization ........................................................................................................... 302
11.1.1
PLC Data Table Access ........................................................................................ 302
11.1.2
Synchronization .................................................................................................... 302
11.2
PLC Message Handling ........................................................................................ 303
11.2.1
Block Transfer ....................................................................................................... 303
11.2.2
PLC Status and Control ........................................................................................ 303
11.2.3
Miscellaneous ....................................................................................................... 303
11.3
Side-connect API Initialization Functions ............................................................. 304
MVIsc_Open .............................................................................................................................. 304
MVIsc_Close ............................................................................................................................. 305
11.4
Side-connect API PLC Data Table Access Functions .......................................... 306
MVIsc_GetPLCFileInfo .............................................................................................................. 306
MVIsc_WritePLC ....................................................................................................................... 308
MVIsc_ReadPLC ....................................................................................................................... 310
MVIsc_RMWPLC ...................................................................................................................... 312
11.5
Side-connect API Synchronization Functions ....................................................... 314
MVIsc_WaitForEos .................................................................................................................... 314
11.6
Side-connect API PLC Message Handling Functions .......................................... 315
MVIsc_PLCMsgRead ................................................................................................................ 315
MVIsc_PLCMsgWrite ................................................................................................................ 316
MVIsc_PLCMsgWait ................................................................................................................. 317
11.7
Side-connect API Block Transfer Functions ......................................................... 318
MVIsc_PLCBTRead .................................................................................................................. 318
MVIsc_PLCBTWrite .................................................................................................................. 319
11.8
Side-connect API PLC Status and Control Functions .......................................... 320
MVIsc_GetPLCStatus ............................................................................................................... 320
MVIsc_GetPLCClock ................................................................................................................. 322