PutA2 channel, array, byteLength, stopChar
channel | RS-232 channel (1 to 3) |
data | Data to send (up to Long type value) |
byteLength | Number of bytes to send (1 to 65535) |
stopChar | Stop character ASCII code |
Same as the PutA command, except it will stop transmission when the specified stop character in encountered in the array (stopChar will be the last character to be sent).
Dim A(10) As Byte OpenCom 1,19200,0,50,10 PutA2 1,A,10,32 ' Send 10 Bytes of Array A. Stop at space character.