
Chapter
Call Routines 69–127
13
13 -22
Use CALL 91 to write up to 40 words starting at word 100 of the BASIC
module output buffer to the remote DH-485 data file at the designated node
address, file number, file type, and element offset.
Input and Output Arguments
This routine has six input arguments and one output argument.
Argument Description Page
input 1
node address of the remote device (0–31) 13 -22
input 2 file number on the remote device (0–255) 13 -22
input 3 file type written to the remote device 13 -22
input 4 starting element offset within the file on the remote
device (0 to 32767)
13 -23
input 5 number of elements to be transferred 13 -23
input 6 message time-out value 13 -23
output 1 call status 13 -24
Input Argument One
The first input argument is the node address of the remote device (1 to 31).
If the number is not within the range 1 to 31, then the output argument
equals 10, and the write message does not take place.
Input Argument Two
The second input argument is the file number on the remote device (0 to
255). If the number is not within the range 0 to 255, then the output
argument equals 11, and the write message does not take place.
Input Argument Three
The third input argument is the file type written to the remote device.
If the file type is not one of the valid types listed in the table, then the
output argument equals 241, and the write message does not take place.
File type File type code Words/Element
integer file
ASC(N) 1 word/element
status file ASC(S) 1 word/element
counter file ASC(C) 3 words/element
timer file ASC(T) 3 words/element
bit file ASC(B) 1 word/element
control file ASC(R) 3 words/element
CALL
91: W
rite BASIC
Output Buffer to Remote
DH-485 Data File
Kommentare zu diesen Handbüchern