Building and Debugging Source Code
117
NetLinx Studio - Instruction Manual
7. CALL 'SEND 131 BYTE PACKETS TO MASTER' (sSTRING[])
Strings sent to the master will be truncated if they are longer than 131 bytes. This call breaks the strings up if they
are longer than 131 bytes. Otherwise, it does not modify the string.
Use with master v2.10.81 or higher "MSG ON 2" mode to see only the data in the sSTRING.
8. CALL 'SEND 7BIT 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 > $7E (~) are formatted as hex and separated by
commas. Note that a space ($20) is not 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. Note that a space ($20) is not 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. Note that a space ($20) is not 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. Note that a space
($20) is not 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.
12. CALL 'SEND DEVICE_INFO TO DEBUG' (dvDEBUG,dvDEV)
dvDEBUG is the destination device for the strings. It could be the local master, a virtual device on the local
system (see TN435), an IP device, serial device, etc.…
dvDEV is the device from which to get the info.