Rockwell-automation 1746-BAS BASIC LANGUAGE User Manual Page 195

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 194
Publication 1746-RM001A-US-P
Input Functions 13-5
The third input argument is the decimal value of the ASCII character delimiter.
Any valid ASCII character can be chosen. If no delimiter is desired, enter a NULL
value (0 decimal). The data will be transferred to the destination buffer when the
delimiter is received from the selected port regardless of the number of characters
received.
The fourth input argument is the selection of the destination CPU input image file
with or without the internal string, the CPU M1 file with or without the internal
string, or the internal string alone:
0 - CPU input image file
1 - CPU M1 file
2 - CPU input image file and internal string
3 - CPU M1 file and internal string
4 - Internal string only
When transferring data to the internal string of the module, check your transaction
number for string updates because there is no indication that data has been placed
in the internal string. Your BASIC program must check the transaction number to
verify that the data was updated.
The fifth input argument is the word offset within the destination CPU file. If the
CPU input data file is chosen, this offset must not be 0 or 1, since word 0 and 1 are
reserved. Zero is reserved for data transfer handshaking bits and word 1 is reserved
for the transaction status. A 0 or 1 will cause a CALL status of 2 to be POPped.
This offset points to the buffer location of the byte count. If the M1 file is chosen,
the offset can be zero. If the internal string is chosen, data placement always begins
with the third character of the string. (The first character contains the byte count
and the second character contains the transaction number.) Therefore, the offset
value has no effect on string data placement, only on input image file and M1 file
data placement.
The sixth input argument is the string number. If the fourth input argument does
not select internal string usage, the value of this input argument is ignored but
must still be PUSHed.
The seventh input argument is the byte swap selection. It has the following values:
0 - Data bytes transferred from the BASIC port are not swapped when passed
to the destination. The data packing order is low byte first, then high byte per
word. The low byte of the first word in the destination file contains the byte
count.
1 - Data bytes transferred from the BASIC port are swapped when passed to
the destination. The data packing order is high byte first, then low byte per
word. Swapping does not affect the first word. The low byte of the first word
still contains the byte count.
Page view 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 279 280

Comments to this Manuals

No comments