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