Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 222

Advertising
background image

Chapter
Call Routines 0–68

12

12 -32

Input Argument Two
The second input argument is always 0.

Input Argument Three
The third input argument is always 1.

Input Argument Four
The fourth input argument is the internal string number. If the second
input argument does not select internal string usage, the value of this input
argument is ignored (but you must still PUSH it). If the data exceeds the
string length, the remaining data is truncated.

Input Argument Five
The fifth input argument is the byte swap selection:

0 = data bytes transferred from the BTW buffer are not swapped when

passed to the BASIC module port or string. The data transfer order is
low byte first, then high byte per word. The low byte of the first word
in the source buffer contains the byte count.

1 = data bytes transferred from the BTW buffer are swapped when

passed to the BASIC module port or string. The data transfer 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.

The last CALL 34 you executed determines the byte swap option for all
active CALL 34 and CALL 33 commands you previously executed.

Output Argument One
The output argument is the status of the call. It has these values:

0 = successful
1 = disabled
2 = bad input parameter
3 = PRT2 is chosen but it is enabled for DF1 protocol–call not executed
4 = string is too small
5 = string is not dimensioned
6 = JW5 not in 16-point position

Advertising