Working With Online Devices
125
etLinx Studio (v2.4 or higher)
 STR1 is a header sent with each line - this is a good place to use DEV_TO_STRING.
 STR2 is data. Data bytes < $20 (ASCII control codes) and > $7E (~) are formatted as hex
and separated by commas.
As of v2.01, a space (
$20) is no longer added between STR1 and STR2.
 nLine is the line length. This may need to be changed if a terminal with a line length
other than the typical 80 characters is being used. If not, just leave it as 0 for the defaults.
If
nMode is 2, nLine defaults to 80, else nLine defaults to 67 to allow 13 characters for
the tic time.
 nMode is the mode, if "MSG ON 2" mode is being used to set it to 2; otherwise, use 0 for
the defaults.
9.
CALL 'SEND ASCII TO DEBUG' (dvDEBUG,STR1[],STR2[],nLine,nMode)
This call is similar to 'SEND ASCII TO MASTER' but with a little more flexibility: dvDEBUG is
the destination device for the string. It could be the local master, a virtual device on the local
system (see TN435), an IP device, serial device, etc.…
 STR1 is a header sent with each line - this is a good place to use DEV_TO_STRING.
 STR2 is data. Data bytes < $20 (ASCII control codes) and $7F (DEL) are formatted as
hex and separated by commas.
As of v2.01, a space (
$20) is no longer added between STR1 and STR2.
 nLine is the line length. This may need to be changed if a terminal with a line length
other than the typical 80 characters is being used. If not, just leave it as 0 for the defaults.
If
nMode is 2, nLine defaults to 80, else nLine defaults to 67 to allow 13 characters for
the tic time.
 nMode is the mode, if "MSG ON 2" mode is being used to set it to 2; otherwise, use 0 for
the defaults.
10.
CALL 'SEND ASCII TO MASTER' (STR1[],STR2[])
SEND_STRING 0
's are formatted into 67 character lines. Since the tic time sent with MSG ON
mode 1(default) and mode 3 prepend 13 characters to the string, each line fills the typical 80
character line (67 + 183 = 80).
 STR1 is a header sent with each line - this is a good place to use DEV_TO_STRING.
 STR2 is data. Data bytes < $20 (ASCII control codes) and $7F (DEL) are formatted as
hex and separated by commas.
As of v2.01, a space (
$20) is no longer added between STR1 and STR2.
11.
CALL 'SEND DECIMAL TO DEBUG' (dvDEBUG,STR1[],STR2[],nLine,nMode)
dvDEBUG
is the destination device for the string. It could be the local master, a virtual device
on the local system (see TN435), an IP device, serial device, etc.…
 STR1 is a header sent with each line - this is a good place to use DEV_TO_STRING.
 STR2 is data. All data bytes are formatted as 3 digit decimal and separated by commas.
As of v2.01, a space (
$20) is no longer added between STR1 and STR2.