ProSoft Technology MVI69E-LDM User Manual
Page 6

Contents
MVI69E-LDM ♦ "C" Programmable
Developer's Manual
Linux Application Development Module
Page 6 of 130
ProSoft Technology, Inc.
August 21, 2014
4.2.1
Ethernet Sample ..................................................................................................... 46
4.2.2
Serial Sample.......................................................................................................... 49
4.2.3
LED Sample ............................................................................................................ 50
4.2.4
Backplane Sample .................................................................................................. 51
4.3
Application Tutorials ............................................................................................... 52
4.3.1
Ethernet Application ................................................................................................ 52
4.3.2
Serial Application .................................................................................................... 58
5
API Functions
67
5.1
CIP API Initialization Functions ............................................................................... 68
MVI69_Open ............................................................................................................................... 68
MVI69_OpenNB .......................................................................................................................... 69
MVI69_Close ............................................................................................................................... 70
MVI69_GetIOConfig .................................................................................................................... 71
MVI69_SetIOConfig .................................................................................................................... 72
5.2
Direct I/O Access .................................................................................................... 73
MVI69_ReadOutputImage ........................................................................................................... 73
MVI69_WriteInputImage .............................................................................................................. 74
5.3
Messaging ............................................................................................................... 75
MVI69_GetMsgRequestFromBp ................................................................................................. 75
MVI69_SendMsgResponseToBp ................................................................................................ 77
5.4
Synchronization ...................................................................................................... 79
MVI69_WaitForInputScan ........................................................................................................... 79
MVI69_WaitForOutputScan ........................................................................................................ 80
5.5
Serial Ports ............................................................................................................. 81
MVI69_GetSerialConfig ............................................................................................................... 81
MVI69_SetSerialConfig ............................................................................................................... 83
5.6
Miscellaneous Functions ........................................................................................ 84
MVI69_GetVersionInfo ................................................................................................................ 84
MVI69_GetModuleInfo ................................................................................................................ 85
MVI69_SetModuleInfo ................................................................................................................. 86
MVI69_GetScanMode ................................................................................................................. 87
MVI69_GetScanCounter ............................................................................................................. 88
MVI69_SetLED ............................................................................................................................ 89
MVI69_GetSetupJumper ............................................................................................................. 90
6
Cable Connections
91
6.1
RS-232 Configuration/Debug Port .......................................................................... 91
6.2
RS-232 Application Port(s) .................................................................................... 92
6.2.1
RS-232: Modem Connection (Hardware Handshaking Required) ......................... 92
6.2.2
RS-232: Null Modem Connection (Hardware Handshaking) .................................. 93
6.2.3
RS-232: Null Modem Connection (No Hardware Handshaking) ............................ 93
6.3
RS-422 .................................................................................................................... 94
6.4
RS-485 Application Port(s) ..................................................................................... 94
6.4.1
RS-485 and RS-422 Tip ......................................................................................... 95
6.5
DB9 to RJ45 Adaptor (Cable 14) ............................................................................ 95
7
Open Source Licensing
97
7.1
GNU Public License ................................................................................................ 98
7.2
Eclipse Public License .......................................................................................... 111