ProSoft Technology MVI56-BAS User Manual

Page 158

Advertising
background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 158 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 28: Write to Remote DH-485 SLC Data File

CALL 28 writes up to 99 words of data from the ControlLogix processor (or

MVI56-BAS string) to a remote DH-485 node data file. 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 Write Command to be issued. The following types are

supported:

Code

Command

0

Disable the previously executed CALL 28

1

Common Interface File Write

2

SLC Type Write

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 to be written to 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 and 64.
G = Message Time out (1 through 255 For example, 1 = 100ms, 25 = 250 ms,

and so on.)

Advertising