ProSoft Technology MVI56-BAS User Manual
Page 156

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 156 of 234
ProSoft Technology, Inc.
December 13, 2011
9.6
DH-485 CALLs
CALL 27: Read Remote DH-485 SLC Data File
CALL 27 reads up to 99 words from a remote DH-485 node data file to the CLX
or a string within the MVI56-BAS module. The DH-485 section in this User
Manual explains how to implement this BASIC CALL in detail.
Note: If using an internal string as the destination file, you may use CALL 29 to initiate the data
transfer without ladder logic.
Syntax:
PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
PUSH [E]
PUSH [F]
PUSH [G]
PUSH [H]
PUSH [I]
PUSH [J]
CALL 27
POP [S]
Where:
A = Type of DH-485 SLC Read Command to be issued. The following types are
supported:
Code
Command
0
Disable the previously executed CALL 27
1
Common Interface File Read
2
SLC Type Read
B = Node address of the SLC remote device (0 through 31)
C = File Number on the SLC remote device (0 through 255)
D = File type of the to be read from the remote device. The following types are
supported:
File Type Code
File Type Name
Words/Elements
Valid Range
ASC(N)
Integer File
1 word/element
1 to 99
ASC(C)
Counter File
3 words/element
1 to 33
ASC(T)
Timer File
3 words/element
1 to 33
ASC(B)
Bit File
1 word/element
1 to 99
ASC(R)
Control File
3 words/element
1 to 33
E = The word offset on the remote device file (0 through 32767)
F = Number of word to be transferred. Refer to the previous table for possible
values. If using the Common Interface File, use a value between 1 to 64.