XADAM.tlk Driver Reference
Advantech Adam Series 4000 Data Acquisition Modules Driver
This driver requires that you have TAS-HMITalk 8.04 installed.
The XADAM driver allows you to connect with ADVANTECH ADAM 4000 Series
Data Acquisition Modules.
An RS-232/485 converter such as ADAM-4520 or a RS-485 PC-bus board
such as PCL-743/745 must be used in the PC side.
When using a PC-bus RS-485 board (old models), it may be neccessary
to set the property HMITalk1.CommSetRTSWhileTransmitting = True.
ADVANTECH ADAM-4510 Repeater Module
ADVANTECH ADAM-4520 Isolated RS-232/RS-485 Converter Module
DAQ Modules
ADVANTECH ADAM 4011 Analog Input Module
ADVANTECH ADAM 4011D Analog Input Module
ADVANTECH ADAM 4012 Analog Input Module
ADVANTECH ADAM 4013 Analog Input Module
ADVANTECH ADAM 4014D Analog Input Module
ADVANTECH ADAM 4015 Analog Input Module
ADVANTECH ADAM 4016 Analog Input/Output Module
ADVANTECH ADAM 4017 8-Channel Analog Input Module
ADVANTECH ADAM 4017+ 8-Channel Analog Input Module
ADVANTECH ADAM 4018 8-Channel Analog Input Module
ADVANTECH ADAM 4018M 8-Channel Analog Input Module
ADVANTECH ADAM 4018+ 8-Channel Analog Input Module
ADVANTECH ADAM 4019 Universal Analog Input Module
ADVANTECH ADAM 4021 Analog Output Module
ADVANTECH ADAM 4050 Digital I/O Module
ADVANTECH ADAM 4051 Digital I/O Module
ADVANTECH ADAM 4052 Digital I/O Module
ADVANTECH ADAM 4053 Digital I/O Module
ADVANTECH ADAM 4055 Digital I/O Module
ADVANTECH ADAM 4060 Relay Output Module
ADVANTECH ADAM 4068 Relay Output Module
ADVANTECH ADAM 4080 Counter/Frequency Input Module
ADVANTECH ADAM 4080D Counter/Frequency Input Module
Analog Input Modules Command Set:
Set Configuration (4011/4011D/4012/4013/4015/4016/4017/4018/4018M/4019)
Configuration Status (4011/4011D/4012/4013/4015/4016/4017/4018/4018M/4019)
Analog Data In (4011/4011D/4012/4013/4015/4016/4017/4018/4018M/4019)
Read Analog Input from Channel N (4015/4017/4018/4018M/4019)
Enable/Disable Channels for Multiplexing (4015/4017/4018/4018M/4019)
Read Enabled/Disabled Channel Status (4015/4017/4018/4018M/4019)
Span Calibration (4011/4011D/4012/4013/4016/4017/4018/4018M)
Offset Calibration (4011/4011D/4012/4013/4016/4017/4018/4018M)
Synchronized Sampling (4011/4011D/4012/4013/4015/4016/4019)
Read Synchronized Data (4011/4011D/4012/4013/4015/4016/4019)
Read CJC Status (4011/4011D/4018/4018M/4019)
CJC Offset Calibration (4011/4011D/4018/4018M/4019)
Read Digital I/O and Alarm Status (4011/4011D/4012/4014D/4016)
Set Digital Output Values (4011/4011D/4012/4014D/4016)
Enable Alarm (4011/4011D/4012/4014D/4016)
Set High Alarm Value (4011/4011D/4012/4014D/4016)
Set Low Alarm Value (4011/4011D/4012/4014D/4016)
Disable Alarm (4011/4011D/4012/4014D/4016)
Clear Latched Alarm (4011/4011D/4012/4014D/4016)
Read High Alarm Value (4011/4011D/4012/4014D/4016)
Read Low Alarm Value (4011/4011D/4012/4014D/4016)
Read Event Counter (4011/4011D/4012/4014D)
Clear Event Counter (4011/4011D/4012/4014D)
Analog Output Modules Command Set:
Start-up Output Current/Voltage Configuration (4021)
Digital I/O and Relay Output Modules Command Set:
Set Configuration (4050,4051,4052,4053,4055,4060,4068)
Read Digital Data In as Bytes (4050,4051,4052,4053,4055,4060,4068)
Read Digital Data In as Bits (4050,4051,4052,4053,4055,4060,4068)
Digital Data Out (4050,4055,4060,4068)
Synchronized Sampling (4050,4051,4052,4053,4055,4060,4068)
Read Synchronized Data (4050,4051,4052,4053,4055,4060,4068)
Configuration Status (4050,4051,4052,4053,4055,4060,4068)
Counter/Frequency Modules Command Set:
Read Counter or Frequency Value (4080/4080D)
Set Maximum Counter Value (4080/4080D)
Read Maximum Counter Value (4080/4080D)
Start/Stop Counter (4080/4080D)
COMMAND DESCRIPTION:
Sets the address, input range, baud rate, data format, checksum
status and/or integration time for a specified analog input module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 6
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 20
WHERE:
- HMITalk1.PointValue(0) = Defines the baud rate to be used (3-8).
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(1) = Defines the new address (0-255).
- HMITalk1.PointValue(2) = Defines the integration time type, where:
- 0 = 50 ms Integration Time.
- 1 = 60 ms Integration Time.
- HMITalk1.PointValue(3) = Defines if messages must include checksum
- 0 = No checksum in messages
- 1 = Use checksum in messages
- HMITalk1.PointValue(4) = Defines the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
- 3 = Ohms.
- HMITalk1.PointValue(5) = Defines the type input range code.
- 0 = +/- 15 mV
- 1 = +/- 50 mV
- 2 = +/- 100 mV
- 3 = +/- 500 mV
- 4 = +/- 1 V
- 5 = +/- 2.5 V
- 6 = +/- 20 mA
- 8 = +/- 10 V
- 9 = +/- 5 V
- 10 = +/- 1 V
- 11 = +/- 500 mV
- 12 = +/- 150 mV
- 13 = +/- 20 mA
- 14 = Type J Thermocuple 0 to 760 C degrees
- 15 = Type K Thermocuple 0 to 1370 C degrees
- 16 = Type T Thermocuple -100 to 400 C degrees
- 17 = Type E Thermocuple 0 to 1370 C degrees
- 18 = Type R Thermocuple 500 to 1750 C degrees
- 19 = Type S Thermocuple 500 to 1750 C degrees
- 20 = Type B Thermocuple 500 to 1800 C degrees
- 32 = Platinum -100 to 100 C degrees, alfa=0.00385
- 33 = Platinum 0 to 100 C degrees, alfa=0.00385
- 34 = Platinum 0 to 200 C degrees, alfa=0.00385
- 35 = Platinum 0 to 600 C degrees, alfa=0.00385
- 36 = Platinum -100 to 100 C degrees, alfa=0.003916
- 37 = Platinum 0 to 100 C degrees, alfa=0.003916
- 38 = Platinum 0 to 200 C degrees, alfa=0.003916
- 39 = Platinum 0 to 600 C degrees, alfa=0.003916
- 40 = Nickel -80 to 100 C degrees
- 41 = Nickel 0 to 100 C degrees
- 42 = Cooper (10 ohms @ 25 C degrees) 0 to 120 C degrees.
- 43 = Cooper (10 ohms @ 0 C degrees) 0 to 120 C degrees.
IMPORTANT NOTE:
An analog input module requires a maximum of seven
seconds to perform auto calibration and ranging after
it is reconfigured. During this time span, the module
cannot be addressed to perform any other actions.
COMMAND DESCRIPTION:
Returns the configuration parameters for the specified analog
input module (address, input range, baud rate, data format,
checksum status and integration time).
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-5
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 1
RETURNS:
- HMITalk1.PointValue(0) = Indicates the input range type, where:
- 0 = +/- 15 mV
- 1 = +/- 50 mV
- 2 = +/- 100 mV
- 3 = +/- 500 mV
- 4 = +/- 1 V
- 5 = +/- 2.5 V
- 6 = +/- 20 mA
- 8 = +/- 10 V
- 9 = +/- 5 V
- 10 = +/- 1 V
- 11 = +/- 500 mV
- 12 = +/- 150 mV
- 13 = +/- 20 mA
- 14 = Type J Thermocuple 0 to 760 C degrees
- 15 = Type K Thermocuple 0 to 1370 C degrees
- 16 = Type T Thermocuple -100 to 400 C degrees
- 17 = Type E Thermocuple 0 to 1370 C degrees
- 18 = Type R Thermocuple 500 to 1750 C degrees
- 19 = Type S Thermocuple 500 to 1750 C degrees
- 20 = Type B Thermocuple 500 to 1800 C degrees
- 32 = Platinum -100 to 100 C degrees, alfa=0.00385
- 33 = Platinum 0 to 100 C degrees, alfa=0.00385
- 34 = Platinum 0 to 200 C degrees, alfa=0.00385
- 35 = Platinum 0 to 600 C degrees, alfa=0.00385
- 36 = Platinum -100 to 100 C degrees, alfa=0.003916
- 37 = Platinum 0 to 100 C degrees, alfa=0.003916
- 38 = Platinum 0 to 200 C degrees, alfa=0.003916
- 39 = Platinum 0 to 600 C degrees, alfa=0.003916
- 40 = Nickel -80 to 100 C degrees
- 41 = Nickel 0 to 100 C degrees
- 42 = Cooper (10 ohms @ 25 C degrees) 0 to 120 C degrees.
- 43 = Cooper (10 ohms @ 0 C degrees) 0 to 120 C degrees.
- HMITalk1.PointValue(1) = Indicates the baud rate code, where:
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(2) = Indicates the configured data format, where:
- 0 = Engineering Units.
- 1 = % of FSR.
- 2 = 2's complement.
- 3 = Ohms.
- HMITalk1.PointValue(3) = Indicates if the module uses checksum in messages
- 0 = No checksum in messages
- 1 = Use checksum in messages
- HMITalk1.PointValue(4) = Indicates the integration time type, where:
- 0 = Integration Time 50 ms
- 1 = Integration Time 60 ms
COMMAND DESCRIPTION:
Returns the input value from a specified analog input module
in the currently configured data format.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 0
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
- 3 = Ohms.
RETURNS:
- HMITalk1.PointValue(0) = Input value
COMMAND DESCRIPTION:
Returns the input value from channel number N of the
specified analog input module in the currently
configured data format.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 17
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
- 3 = Ohms.
HMITalk1.DriverP4 = Identifies the channel you want to read (0-7).
RETURNS:
- HMITalk1.PointValue(0) = Input value from channel N
COMMAND DESCRIPTION:
Enables/disables multiplexing simultaneously for
separate channels of the specified input module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Digital Output
HMITalk1.DriverNumPoints = 8
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 39
WHERE:
- HMITalk1.PointValue(0) = 0/1 to enable/disable first channel
.
.
- HMITalk1.PointValue(n-1) = 0/1 to enable/disable last channel
NOTE:
- 0 = Disabled
- 1 = Enabled
COMMAND DESCRIPTION:
Asks the specified input module to return the status
of its channels (enabled or disabled).
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Digital Input
HMITalk1.DriverNumPoints = 1-8
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 18
HMITalk1.DriverP3 = Indicates the first channel to be read (0-7).
RETURNS:
- HMITalk1.PointValue(0) = Status of first channel read
.
.
- HMITalk1.PointValue(n-1) = Status of last channel read
COMMAND DESCRIPTION:
Calibrates the analog input module to correct for gain errors.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 21
WHERE:
- HMITalk1.PointValue(0) = New gain value
IMPORTANT NOTE:
An analog input module requires a maximum of seven
seconds to perform auto calibration and ranging after
it is reconfigured. During this time span, the module
cannot be addressed to perform any other actions.
COMMAND DESCRIPTION:
Calibrates the analog input module to correct for offset errors.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 22
WHERE:
- HMITalk1.PointValue(0) = New offset value
IMPORTANT NOTE:
An analog input module requires a maximum of seven
seconds to perform auto calibration and ranging after
it is reconfigured. During this time span, the module
cannot be addressed to perform any other actions.
COMMAND DESCRIPTION:
Orders all analog input modules to sample their input values
and store them in special registers.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 40
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Returns the value that was stored in the specified module's
register after the #** command.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-2
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 3
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
- 3 = Ohms.
RETURNS:
- HMITalk1.PointValue(0) = Read value stored in a special register.
- HMITalk1.PointValue(1) = Status.
NOTE:
If Status = 1, then the data has been sent for the
first time since a Sinchronized Sampling command
was issued. If status = 0, then the data has been
sent at least once before.
COMMAND DESCRIPTION:
Returns the value of the CJC (cold junction compensation) for a
specified analog input module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 2
RETURNS:
- HMITalk1.PointValue(0) = Value of the CJC
COMMAND DESCRIPTION:
Calibrates to adjust for offset errors of its CJC sensors.
The variable value indicates the "count" value. Each count
equals approximately 0.009 C degrees.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 23
COMMAND DESCRIPTION:
Returns the current state of digital I/O and alarm status.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-4
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 4
RETURNS:
- HMITalk1.PointValue(0) = Digital input.
- HMITalk1.PointValue(1) = Digital Output 0.
- HMITalk1.PointValue(2) = Digital Output 1.
- HMITalk1.PointValue(3) = Alarm state:
- 0 = Disabled.
- 1 = Momentary mode enabled.
- 2 = Latch mode enabled.
COMMAND DESCRIPTION:
Sets the values of the module's digital outputs (ON or OFF).
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 2 (or 4 for 4016)
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 24
WHERE:
- HMITalk1.PointValue(0) = New status of digital output 0
.
.
- HMITalk1.PointValue(n-1) = New status of last digital output
COMMAND DESCRIPTION:
Enables the alarm in either latching or momentary mode.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 25
HMITalk1.DriverP3 = Indicates the mode to enable.
- 0 = Momentary mode
- 1 = Latching mode
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Sets the high alarm limit value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 26
WHERE:
- HMITalk1.PointValue(0) = New high alarm limit value
COMMAND DESCRIPTION:
Sets the low alarm limit value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 27
WHERE:
- HMITalk1.PointValue(0) = New low alarm limit value
COMMAND DESCRIPTION:
Disables all alarm functions.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 28
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Resets the module's latch alarm to zero.
Both alarm states are set to OFF, no alarm.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 29
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Obtains the current high alarm limit value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 5
RETURNS:
- HMITalk1.PointValue(0) = High alarm limit value.
COMMAND DESCRIPTION:
Obtains the current low alarm limit value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 6
RETURNS:
- HMITalk1.PointValue(0) = Low alarm limit value.
COMMAND DESCRIPTION:
Obtains the current event counter value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 7
RETURNS:
- HMITalk1.PointValue(0) = Event counter value.
COMMAND DESCRIPTION:
Resets the module's event counter to zero.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 30
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Sets address, output range, baud rate, data format, checksum
status and slew rate.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 5
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 31
WHERE:
- HMITalk1.PointValue(0) = Defines the baud rate to be used (0-4).
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(1) = Defines the new address (0-255).
- HMITalk1.PointValue(2) = Defines the output range type, where:
- 0 = 0 .. 20 mA
- 1 = 4 .. 20 mA
- 2 = 0 .. 10 mV
- HMITalk1.PointValue(3) = Defines if messages must include checksum
- 0 = No checksum in messages
- 1 = Use checksum in messages
- HMITalk1.PointValue(4) = Defines the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
- HMITalk1.PointValue(5) = Defines the slew rate type.
- 0 = inmediate change
- 1 = 0.0625 V/sec 0.125 mA/sec
- 2 = 0.125 V/sec 0.250 mA/sec
- 3 = 0.250 V/sec 0.500 mA/sec
- 4 = 0.500 V/sec 1 mA/sec
- 5 = 1 V/sec 2 mA/sec
- 6 = 2 V/sec 4 mA/sec
- 7 = 4 V/sec 8 mA/sec
- 8 = 8 V/sec 16 mA/sec
- 9 = 16 V/sec 32 mA/sec
- 10 = 32 V/sec 64 mA/sec
- 11 = 64 V/sec 128 mA/sec
COMMAND DESCRIPTION:
Sets the analog output value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 32
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
WHERE:
- HMITalk1.PointValue(0) = New analog output value
COMMAND DESCRIPTION:
Stores the present value of an analog output in the module's
non-volatile register. The output value will take effect upon
start-up or after a brownout.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digitaltput/DO
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 36
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Trims the analog output a specified number of units up or
down. The variable value indicates the "count" value. Each count
equals approximately 1.5 uA.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 35
WHERE:
- HMITalk1.PointValue(0) = Number of units
COMMAND DESCRIPTION:
Store the current output value as 4 mA reference.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 33
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Store the current output value as 20 mA reference.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 34
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Reads the following parameters: address, output range, baud rate,
data format, checksum status, and slew rate.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-5
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 8
RETURNS:
- HMITalk1.PointValue(0) = Indicates the output range type, where:
- 0 = 0 .. 20 mA
- 1 = 4 .. 20 mA
- 2 = 0 .. 10 mV
- HMITalk1.PointValue(1) = Indicates the baud rate code, where:
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(2) = Indicates the configured data format, where:
- 0 = Engineering Units.
- 1 = % of FSR.
- 2 = 2's complement.
- HMITalk1.PointValue(3) = Indicates if the module Use checksum in messages
- 0 = No checksum in messages
- 1 = Use checksum in messages
- HMITalk1.PointValue(4) = Indicates the slew rate type, where:
- 0 = inmediate change
- 1 = 0.0625 V/sec 0.125 mA/sec
- 2 = 0.125 V/sec 0.250 mA/sec
- 3 = 0.250 V/sec 0.500 mA/sec
- 4 = 0.500 V/sec 1 mA/sec
- 5 = 1 V/sec 2 mA/sec
- 6 = 2 V/sec 4 mA/sec
- 7 = 4 V/sec 8 mA/sec
- 8 = 8 V/sec 16 mA/sec
- 9 = 16 V/sec 32 mA/sec
-10 = 32 V/sec 64 mA/sec
-11 = 64 V/sec 128 mA/sec
COMMAND DESCRIPTION:
Return the latest output value it received from an analog data
out command. If the module hasn't received an analog data out
command since startup, it will return its startup output value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 9
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
RETURNS:
- HMITalk1.PointValue(0) = Latest output value
COMMAND DESCRIPTION:
Return the measured data in the module's configured data format.
The value returned may be a rough estimate of the real value.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 10
HMITalk1.DriverP3 = Indicates the data format to be used.
- 0 = Engineering Units
- 1 = % of FSR
- 2 = 2's complement
RETURNS:
- HMITalk1.PointValue(0) = Measured data
COMMAND DESCRIPTION:
Obtains the current reset status.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 11
RETURNS:
- HMITalk1.PointValue(0) = Reset status
COMMAND DESCRIPTION:
Sets address, baud rate and checksum status.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 3
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 37
WHERE:
- HMITalk1.PointValue(0) = Defines the baud rate to be used (0-4).
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(1) = Defines the new address (0-255).
- HMITalk1.PointValue(2) = Defines if messages must include checksum
- 0 = No checksum in messages
- 1 = Use checksum in messages
COMMAND DESCRIPTION:
Returns the status of its digital input channels and a
readback value of its digital output channels.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input
HMITalk1.DriverNumPoints = 1-2
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 14
RETURNS:
- HMITalk1.PointValue(0) = Indicates the outputs value in byte mode.
- HMITalk1.PointValue(1) = Indicates the inputs value in byte mode.
COMMAND DESCRIPTION:
Returns the status of its digital input channels and a
readback value of its digital output channels.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Digital Input
HMITalk1.DriverNumPoints = 1-16
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 16
HMITalk1.DriverP3 = Indicates the first group to be read.
- 0 = Outputs
- 1 = Inputs
HMITalk1.DriverP4 = Indicates the first bit to be read (0-7).
RETURNS:
- HMITalk1.PointValue(0) = First bit read
.
.
- HMITalk1.PointValue(n-1) = Last bit read
COMMAND DESCRIPTION:
Sets a single digital output channel or all digital output
channels simultaneously.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 38
HMITalk1.DriverP3 = Indicates write type.
- 0 = Write all channels simultaneously.
- 1 = Write single channel.
HMITalk1.DriverP4 = If HMITalk1.DriverP3 = 1, indicates the output number to be written (0-7).
WHERE:
- HMITalk1.PointValue(0) = New digital output status
COMMAND DESCRIPTION:
Orders all analog input modules to sample their input values
and store the values in special registers.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 40
WHERE:
- HMITalk1.PointValue(0) = Not used
COMMAND DESCRIPTION:
Obtains the value that was stored in its register by a
sinchronized sampling command.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-3
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 13
RETURNS:
- HMITalk1.PointValue(0) = Indicates the outputs value in byte mode.
- HMITalk1.PointValue(1) = Indicates the inputs value in byte mode.
- HMITalk1.PointValue(2) = Indicates the status value.
COMMAND DESCRIPTION:
Reads the following parameters: baud rate and checksum status.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1-2
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 12
RETURNS:
- HMITalk1.PointValue(0) = Indicates the baud rate code, where:
- 3 = 1200 Bauds
- 4 = 2400 Bauds
- 5 = 4800 Bauds
- 6 = 9600 Bauds
- 7 = 19200 Bauds
- 8 = 38400 Bauds
- HMITalk1.PointValue(1) = Indicates the configured data format, where:
- 0 = ADAM 4050 module.
- 1 = ADAM 4060 module.
- HMITalk1.PointValue(2) = Indicates if the module Use checksum in messages
- 0 = No checksum in messages
- 1 = Use checksum in messages
COMMAND DESCRIPTION:
Obtains the current reset status information.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input / Digital Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 15
RETURNS:
- HMITalk1.PointValue(0) = Reset status
COMMAND DESCRIPTION:
Returns the value of counter 0 or counter 1 from a specified
counter/frequency module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 19
HMITalk1.DriverP3 = Counter to be read (0 or 1)
RETURNS:
- HMITalk1.PointValue(0) = Counter value
COMMAND DESCRIPTION:
Sets the maximum value of counter 0 or counter 1
from a specified counter/frequency module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 41
HMITalk1.DriverP3 = Counter to be set (0 or 1)
WHERE:
- HMITalk1.PointValue(0) = New maximum counter value
COMMAND DESCRIPTION:
Returns the maximum value of counter 0 or counter 1
from a specified counter/frequency module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Input
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 20
HMITalk1.DriverP3 = Counter to be read (0 or 1)
RETURNS:
- HMITalk1.PointValue(0) = Maximum counter value
COMMAND DESCRIPTION:
Orders the specified counter counter/frequency module to
start or stop counting.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 42
HMITalk1.DriverP3 = Counter to be started/stopped (0 or 1)
WHERE:
- HMITalk1.PointValue(0) = 0 to Stop, 1 to Start.
COMMAND DESCRIPTION:
Clears counter 0 or counter 1 of the specified counter module.
PROPERTY SETTINGS REQUIRED:
HMITalk1.DriverDataType = Analog Output / Digital Output
HMITalk1.DriverNumPoints = 1
HMITalk1.DriverP0 = Module Address (0-255).
HMITalk1.DriverP1 = Indicates if messages must include checksum
- 0 = Use checksum in messages
- 1 = No checksum in messages
HMITalk1.DriverP2 = 43
HMITalk1.DriverP3 = Counter to be cleared (0 or 1)
WHERE:
- HMITalk1.PointValue(0) = Not used.
[1005] DRIVER (Internal): Invalid driver stage
[1300] PROTOCOL (Timeout): No answer
[1410] PROTOCOL (Format): Invalid device id in response
[1433] PROTOCOL (Format): Validation error in device response
[2106] CONFIG (NumValues): Invalid number of channels (max=4)
[2107] CONFIG (NumValues): Invalid number of channels (min=2)
[2109] CONFIG (NumValues): Invalid number of channels (must be 3)
[2111] CONFIG (NumValues): Invalid number of channels (must be 6)
[2112] CONFIG (NumValues): Invalid number of channels (must be 8)
[2147] CONFIG (NumValues): Only one value can be read or written
[2189] CONFIG (NumValues): Too many values (max=16)
[2194] CONFIG (NumValues): Too many values (max=2)
[2206] CONFIG (NumValues): Too many values (max=3)
[2216] CONFIG (NumValues): Too many values (max=4)
[2223] CONFIG (NumValues): Too many values (max=5)
[2235] CONFIG (NumValues): Too many values (max=8)
[3014] CONFIG (P0): Invalid device address (0-255)
[3023] CONFIG (P0): Invalid device address (-1-255)
[4030] CONFIG (P2): Invalid command
[4528] CONFIG (P3): Invalid counter number (0 or 1)
[4530] CONFIG (P3): Invalid data format
[4539] CONFIG (P3): Invalid first channel number (0-7)
[4540] CONFIG (P3): Invalid first group (0-1)
[4543] CONFIG (P3): Invalid mode
[4584] CONFIG (P3): Invalid write mode
[5004] CONFIG (P4): Invalid channel number (0-7)
[5011] CONFIG (P4): Invalid first channel (0-7)
[5012] CONFIG (P4): Invalid first output
[8060] CONFIG (Remote): Command is invalid or not supported
[8248] CONFIG (Remote): Operation is not supported
This driver requires that you have TAS-HMITalk 8.04 installed.
Driver Source Code Last Update: 03/15/2004 10:05:28
Driver Reference Last Update: 10/30/2008 17:31:55
© 1990-2008, CPKSoft Engineering. All rights reserved.