Advantech Advantech Modem ADAM-4550 Manual de usuario Pagina 6

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 18
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 5
ADAM 4000 Series
3-6
ADAM
Programming and Software
ADAM Setup/Utility software
Simple Configuration
Easy Programming
Supported by Major
DA&C Software
Packages
You can use any high-level language
with ASCII-based string functions
(such as C, Pascal or BASIC) to
communicate with ADAM modules or
process their data. For example, the
command and response for an analog
input module would be:
Command:
#05 <CR>
Response: >+4.834 <CR>
This command requests the data stored
by the module with address 05 (Hex).
The module responds with the value
+4.834 V.
Standard Command Set
The ADAM-4011 utilizes a standard
command set for configuration, shown
below (AA is the module's address in
hex):
%AANNTTCCFF Configuration: Sets the
module's address, input range, baud
rate, data format and checksum status
for analog input modules
#AA: Read analog input data
$AA0: Span calibration
$AA1: Offset calibration
$AA2: Read configuration status
@AADI: Read alarm/digital inputs
@AADO: Set digital inputs
@AAHI: Set high alarm limit
@AALO: Set low alarm limit
@AAEAT: Enable alarms
@AARE: Read event counter
Setup/Utility Software (included)
Easy-to-use, menu-driven utility software
makes configuration and calibration a
snap. Its terminal emulation program lets
you easily read from and write to ADAM
modules. Writing application programs
with this software is simple, and you can
learn the basics in just a few minutes.
Rich Application Software Support
Most popular industrial process control
and SCADA software packages support
ADAM, including Labview, InTouch, FIX,
Citect, and GENIE. With these ready-to-
go application software packages,
remote data acquisition, process control,
historical trending and data analysis
require only a few keystrokes. No
programming is necessary.
Error Checking with Checksum
ADAM's built-in checksum feature
ensures data integrity by detecting
communication errors. This feature adds
two checksum characters to every
command or response string, thus
enabling you to verify that the message
received is exactly the same as the
message sent.
Programming Example
The following BASIC program
demonstrates how to communicate with
an ADAM-4011 Analog Input Module
through an ADAM-4520 RS-232 to
RS-485 Converter Module. The program
instructs an ADAM-4011 to measure a
T-Type thermocouple and then display
the result on screen.
10 OPEN “COM1: 9600, N, 8,
1, RS, CS, CD, DS” AS # 1
20 CMD $=”%2324100600"
30 PRINT #1, CMD$ ‘ADAM-4011
is configured to address
24H,T-type TC input, baud
rate of 9600, engineering
unit data format’
40 CMD$=”#24"
50 PRINT #1, CMD$ ‘Read
analog input data’
60 RESULT$=INPUT$ (5, #1)
70 PRINT “Temperature=”;
Result$
80 CLOSE: END
Vista de pagina 5
1 2 3 4 5 6 7 8 9 10 11 ... 17 18

Comentarios a estos manuales

Sin comentarios