Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 181

Advertising
background image

Publication 1746-RM001A-US-P

Output Functions 12-31

The seventh input argument is the message time-out value. This value (1 through
255) corresponds to the number of hundreds of milliseconds that are allowed to
receive the write response (0.1 through 25.5 seconds). If the write response is not
received within this time, the message aborts with the status equal to 55 in the
input file word 1, bits 0-7. If the time-out value is not within the range (1 through
255), the POPped status equals 2 and the transfer does not take place.

The eighth input argument is the selection of the source CPU output image file,
CPU M0 file, or the internal string:

0 - CPU output image file

1 - CPU M0 file

2 - Internal string

If you chose internal string (2), CALL 29 can be executed to initiate each data
transfer without requiring SLC processor interaction. The output file word 0, bit
11 will also initiate a string transaction.

The ninth input argument is the word offset within the CPU file. This offset
points to the first word of the data. If you chose the CPU output image file (0), the
offset cannot be 0 since this word is reserved for the data transfer handshaking bits.
The offset for the internal string is always one. The first character of the string
(transaction number at location 0) is incremented on every successful transfer to
inform the module that the data was transferred. The value of the transaction
number wraps around from 255 to 0.

The tenth input argument is the string number. If the eighth input argument does
not select internal string usage, the value of this input argument is ignored but
must still be PUSHed.

The output argument is the validation of the CALL. It has the following values:

0 - Successful

1 - Disabled

2 - Bad input parameter

3 - DF1 not enabled

4 - String too small

5 - String is not dimensioned

To disable this CALL, a zero must be PUSHed into the first input parameter. All
other parameters are ignored but must still be PUSHed.

Whenever an attempt is made to write to a remote packet, the module places the
status of the write into the input word 0, bits 0-7. The possible status codes are
shown below. This status is valid when the module sets the input file word 0, bit
11.

Advertising