Chapter
2
Chapter 2 installation Guideline 2-
17
Program Source Codes:
OPEN Command Button:
Private Sub Command1_Click()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input
' is used.
MSComm1.InputLen = 0
' Open the port.
MSComm1.PortOpen = True
End Sub
SEND Command Button:
Private Sub Command2_Click()
' Send Get AI command to ADAM-4011 Module at address 01H.
MSComm1.Output = "#01" & Chr$(13)
' Wait for data to come back to the serial port.
Do
DoEvents
Buffer$ = Buffer$ & MSComm1.Input
Loop Until InStr(Buffer$, vbCr)
' Read the response till the carriage return character.
Text1.Text = Buffer$
' Display the reading.
End Sub
CLOSE Command Button
Private Sub Command3_Click()
' Close the serial port.
MSComm1.PortOpen = False
End Sub
Summary of Contents for Data Acquisition Modules ADAM 4000
Page 1: ...ADAM 4000 Data Acquisition Modules User s Manual ...
Page 7: ...Introduction 1 ...
Page 11: ...Installation Guideline 2 ...
Page 28: ...I O Modules 3 ...
Page 98: ...Chapter 3 Chapter 3 I O Modules 3 71 Figure 3 69 ADAM 4069 Form A Relay Output ...
Page 104: ...Command Set 4 ...
Page 147: ...Analog Input Module Command Set 5 ...
Page 215: ...Analog Output Module Command Set 6 ...
Page 236: ...Digital I O Relay ouput and Counter Frequency Command Set 7 ...
Page 313: ...Calibration 8 ...
Page 329: ...Technical Specifications A ...
Page 335: ...Appendix A Appendix A Technical Specification A 7 Figure A 2 ADAM 4011D Function Diagram ...
Page 337: ...Appendix A Appendix A Technical Specification A 9 Figure A 3 ADAM 4012 Function Diagram ...
Page 339: ...Appendix A Appendix A Technical Specification A 11 Figure A 4 ADAM 4013 Function Diagram ...
Page 341: ...Appendix A Appendix A Technical Specification A 13 Figure A 5 ADAM 4016 Function Diagram ...
Page 343: ...Appendix A Appendix A Technical Specification A 15 Figure A 6 ADAM 4017 4017 Function Diagram ...
Page 349: ...Appendix A Appendix A Technical Specification A 21 Figure A 8 ADAM 4018M Function Diagram ...
Page 351: ...Appendix A Appendix A Technical Specification A 23 Figure A 9 ADAM 4019 Function Diagram ...
Page 355: ...Appendix A Appendix A Technical Specification A 27 Figure A 11 ADAM 4024 Function Diagram ...
Page 357: ...Appendix A Appendix A Technical Specification A 29 Figure A 12 ADAM 4050 Function Diagram ...
Page 377: ...Data Formats and I O Ranges B ...
Page 389: ...Technical Diagrams C ...
Page 392: ...Technical Diagrams C 4 ADAM 4000 Series User s Manual Figure C 3 DIN Rail Mounting ...
Page 394: ...Technical Diagrams C 6 ADAM 4000 Series User s Manual Figure C 5 Panel Mounting ...
Page 395: ...Appendix C Appendix C Technical Diagrams C 7 C 2 3 Piggyback Stack Figure C 6 Piggyback Stack ...
Page 396: ...Utility Software D ...
Page 404: ...RS 485 Network E ...
Page 411: ...How to use the Checksum feature F ...
Page 415: ...ADAM 4000 I O Modbus Mapping Table G ...
Page 428: ...Changing Configuration to Modbus Protocol H ...