Date Code 20010518 “Job Done” Examples - (Example 8) 4-65
SEL-2020 Instruction Manual
Notes:
Set MSG_CNT=1 to add a new message trigger and message.
Set ISSUE1=P00:00:30 to periodically trigger MESG1 every 30 seconds.
!
Set MESG1=$1RD\00D to send the command $1RD to request temperature data from
the DGH 1000. The carriage return, \00D, is required to complete the command
sequence.
"
Select PARSE=2 to select the ASCII_FLOAT parsing method because you know the
temperature is in floating-point format.
#
Set NUM1=1 to accept one item because you know only one number is returned from the
DGH1000.
$
Since we know only one data item is coming in, we could set DELAY1 to OFF. If we
wanted to collect data more often than every 5 seconds, we would need to set it OFF to
avoid the idle time check. Since we are only collecting the data every 30 seconds, the
value of the setting does not matter.
TEST THE OPERATION
1. Test the operation by forcing a data collection and viewing the results.
*>>TOGGLE 12:D1<ENTER>
TOGGLE 12:D1<ENTER>TOGGLE 12:D1<ENTER>
TOGGLE 12:D1<ENTER>
Bit toggled
*>>VIEW 12:D1<ENTER>
VIEW 12:D1<ENTER>VIEW 12:D1<ENTER>
VIEW 12:D1<ENTER>
Port 12, Data Region FLOAT Data
_YEAR = 1995 DAY_OF_YEAR = 65 (03/06) TIME = 18:53:18.857
FLOAT = 27.000
*>>
Notes:
Use the TOGGLE command to assert the D1 bit on Port 12. The D1 message (MESG1)
is sent when the D1 bit is asserted. This should result in one data collection operation.
Use the VIEW command to view the data collected from the DGH 1000. The data are
parsed and stored in the D1 data region on Port 12 in floating-point format. The data are
time-tagged at the time the SEL-2020 begins to receive the data.