ProSoft Technology MVI56-BAS User Manual
Page 187

MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 187 of 234
December 13, 2011
CALL 23: Transfer Data from CLX to a Serial Port
Use CALL 23 to set up the data transfer configuration from the CLX directly to a
MVI56-BAS serial port (PRT1 or PRT2). The low byte of the first word of the
source data file determines the byte count to be transferred. The high byte of the
first word is not used.
For more information about CALL 23 usage (including ladder logic) refer to the
section "Data Transfer from CLX to MVI56-BAS Serial Port"
Syntax:
PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
PUSH [E]
CALL 23
POP [F]
Where:
A = destination serial port
0 = disable CALL 23
1 = internal string
2 = serial PRT1
3 = serial PRT1 and internal string
4 = serial PRT2
5 = serial PRT2 and internal string
Note: A string is structured in the following way:
B = source file
0 = CLX output image file
1 = CLX MSG instruction
The first word of the source file must contain the byte count.
C = word offset within the source file
If the CLX output image file is chosen as the source file it must have the offset as
1 or more, because word 0 is reserved for handshaking.
D = internal string number (if the destination file is not a string this value is
ignored)
E = byte swap (0 = do not swap bytes , 1 = swap bytes)