ProSoft Technology MVI56-BAS User Manual
Page 10

Contents
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 10 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 27: Read Remote DH-485 SLC Data File ....................................................................... 156
CALL 28: Write to Remote DH-485 SLC Data File ................................................................... 158
CALL 83: Display DH-485 Port Parameters .............................................................................. 160
CALL 84: Transfer DH-485 Interface File to MVI56-BAS Input Buffer ...................................... 161
CALL 85: Transfer MVI56-BAS Output Buffer to DH-485 Interface File ................................... 162
CALL 86: Check DH-485 Interface File Remote Write Status .................................................. 163
CALL 87: Check DH-485 Interface File Remote Read Status .................................................. 164
CALL 90: Read Remote DH-485 Data File to MVI56-BAS Input Buffer ................................... 165
CALL 91: Write MVI56-BAS Output Buffer to Remote DH-485 Data File ................................. 167
CALL 92: Read Remote DH-485 Common Interface File to MVI56-BAS Input Buffer ............. 169
CALL 93: Write From BAS Output Buffer to Remote DH-485 CIF ............................................ 170
9.7
DF1 CALLs ........................................................................................................... 171
CALL 108: Enable DF1 Driver to PRT2 .................................................................................... 171
CALL 113: Disable PRT2 DF1 Driver ........................................................................................ 173
CALL 114: Transmit DF1 Packet............................................................................................... 174
CALL 115: Check DF1 XMIT Status ......................................................................................... 175
CALL 117: Get DF1 Packet Length ........................................................................................... 176
9.8
BASIC Program Flow Control CALLs ................................................................... 176
CALL 0: Reset BASIC ............................................................................................................... 176
CALL 16: Enable DF1 Packet Interrupt ..................................................................................... 177
CALL 17: Disable DF1 Packet Interrupt .................................................................................... 178
CALL 20: Enable Processor Interrupt ....................................................................................... 179
CALL 21: Disable Processor Interrupt ....................................................................................... 180
CALL 29: Read/Write To/From Internal String (DF1 or DH-485) .............................................. 181
CALL 70: ROM to RAM Program Transfer ................................................................................ 182
CALL 71: ROM/RAM to ROM Program Transfer ...................................................................... 183
CALL 72: ROM/RAM Return ..................................................................................................... 184
9.9
Background CALLs ............................................................................................... 185
9.9.1
ASCII Background CALLs .................................................................................... 185
CALL 22: Transfer Data from a Serial Port to CLX ................................................................... 185
CALL 23: Transfer Data from CLX to a Serial Port ................................................................... 187
9.9.2
DH-485 Background CALLs ................................................................................. 188
CALL 118: Receive DF1 or DH-485 Unsolicited Write .............................................................. 188
9.9.3
DF1 Background CALLs ....................................................................................... 189
CALL 118: Receive DF1 or DH-485 Unsolicited Write .............................................................. 189
CALL 122: Read Remote DF1 PLC Data File ........................................................................... 192
CALL 123: Write Remote DF1 PLC Data File ........................................................................... 194
9.10
Miscellaneous CALLs ........................................................................................... 196
CALL 18: Enable ^C Check ....................................................................................................... 196
CALL 19: Disable ^C Check ...................................................................................................... 197
CALL 80: Check Battery Condition ........................................................................................... 198
CALL 81: EPROM Check .......................................................................................................... 199
CALL 109: Print Argument Stack .............................................................................................. 200
9.11
LED Status Indicators ........................................................................................... 201
9.11.1
Clearing a Fault Condition .................................................................................... 202
9.11.2
Troubleshooting .................................................................................................... 202
10
BASIC-52 Implementation
203
10.1
Operators and Statements .................................................................................... 204
10.2
Control Expressions .............................................................................................. 210
10.2.1
IF-THEN-ELSE ..................................................................................................... 210
10.2.2
DO-UNTIL ............................................................................................................. 210