MVI56-BAS ♦ ControlLogix Platform Contents
BASIC Module (DB/BAS Compatible) User Manual
ProSoft Technology, Inc. Page 9 of 234
December 13, 2011
CALL 15: Convert 16-Bit Unsigned to Float Point ..................................................................... 108
CALL 89: CLX Floating Point to BASIC Float Point ................................................................... 109
9.1.2
Output CALLs ........................................................................................................ 109
CALL 24: Convert Floating Point Data to 16-Bit Signed Integer ............................................... 109
CALL 25: Convert Floating Point Data to 16-Bit Binary ............................................................. 111
CALL 88: Convert BASIC Floating Point Data to CLX Floating Point ....................................... 112
9.2
Backplane CALLs .................................................................................................. 113
CALL 51: Check CLX Output Image .......................................................................................... 113
CALL 53: Transfer CLX Output Image to BASIC Input Buffer ................................................... 114
CALL 54: Transfer Data from BASIC Output Buffer to CLX Input Image .................................. 115
CALL 55: Check CLX Input Image ............................................................................................. 116
CALL 56: Transfer Data from CLX to BASIC Input Buffer using MSG ...................................... 117
CALL 57: Transfer BASIC Output Buffer to CLX using MSG .................................................... 118
CALL 58: Check CLX MSG ....................................................................................................... 119
CALL 59: Check CLX MSG ....................................................................................................... 120
CALL 75: Check CLX Status ..................................................................................................... 121
CALL 120: Clear Module Input and Output Buffers ................................................................... 122
9.3
Serial Port CALLs .................................................................................................. 123
CALL 30: Set PRT2 Port Parameters ........................................................................................ 123
CALL 31: Display PRT2 Port Setup ........................................................................................... 124
CALL 35: Get Input Character From PRT2................................................................................ 125
CALL 36: Get Number of Characters in PRT2 Buffer ................................................................ 126
CALL 37: Clear PRT2 Buffers .................................................................................................... 127
CALL 78: Set Program Port Baud Rate ..................................................................................... 128
CALL 94: Display PRT1 Port Setup ........................................................................................... 129
CALL 95: Get Number of Characters in PRT1 Buffer ................................................................ 130
CALL 96: Clear PRT1 Buffers .................................................................................................... 131
CALL 97: Set PRT2 DTR Signal ................................................................................................ 132
CALL 98: Clear PRT2 DTR Signal ............................................................................................. 133
CALL 99: Reset Print Head Pointer ........................................................................................... 134
CALL 105: Reset PRT1 to Default Parameters ......................................................................... 135
CALL 119: Reset PRT2 to Default Parameters ......................................................................... 136
9.4
Wall Clock CALLs .................................................................................................. 137
CALL 40: Set Clock Time .......................................................................................................... 137
CALL 41: Set Calendar Date ..................................................................................................... 138
CALL 42: Set Day of the Week .................................................................................................. 139
CALL 43: Retrieve Date and Time String .................................................................................. 140
CALL 44: Retrieve Date Numeric .............................................................................................. 141
CALL 45: Retrieve Date String .................................................................................................. 142
CALL 46: Retrieve Time Numeric .............................................................................................. 143
CALL 47: Retrieve Day of Week String ..................................................................................... 144
CALL 48: Retrieve Day of Week Numeric ................................................................................. 145
CALL 52: Retrieve Date String .................................................................................................. 146
9.5
String CALLs ......................................................................................................... 147
CALL 60: Repeating a Character ............................................................................................... 147
CALL 61: Concatenating a String .............................................................................................. 148
CALL 62: Converting from Numeric Format to String Format ................................................... 149
CALL 63: Converting from String Format to Numeric Format ................................................... 150
CALL 64: Finding a String within Another String ....................................................................... 151
CALL 65: Replacing a String in Another String ......................................................................... 152
CALL 66: Inserting a String in Another String ............................................................................ 153
CALL 67: Deleting a String in Another String ............................................................................ 154
CALL 68: Determining the Length of a String ............................................................................ 155
9.6
DH-485 CALLs ...................................................................................................... 156