ProSoft Technology MVI56-BAS User Manual
Page 220

Reference
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 220 of 234
ProSoft Technology, Inc.
December 13, 2011
Port:
DH485
Module Node Address:
1 to 31
Maximum Node Address:
1 to 31
Storage type:
E (store information in user ROM and RAM) ,
R (store information in battery backed RAM)
The following CALLs have the same effect as using the MODE command for
PRT1 and PRT2:
CALL 30: Set PRT2 parameters
CALL 78: Set Program Baud Rate
The user can also display the current port configuration for PRT1 and PRT2
using the following CALLs:
CALL 31: Display Current PRT2 Port Setup
CALL 94: Display Current PRT1 Port Setup
For example, in order to change the DH-485 port parameters to 9600 baud, Host
Address = 5, Module Address = 1, Maximum Address = 10; the user would enter:
Ready
>MODE(DH485,9600,5,1,10,,R)
Further, parameters can be omitted if the user does not want to change them.
For example, if the user only wanted to change the baud rate to 1200 baud for
PRT1:
Ready
>MODE(PRT1,1200,,,,,)
For example, running CALL 31 displays:
After changing the PORT communication parameters using the MODE
command, the user can reset the communication parameters to their default
values using the following CALLs:
CALL 105: Reset PRT1 to Default Settings
CALL 119: Reset PRT2 to Default Settings
Refer to BASIC CALLs Syntax (page 105) for more information about CALL 30,
78, 105 and 119.
MVI56-BAS Internal Real Time Clock
The MVI56-BAS has an internal real-time clock that allows date and time
information to be used in the BASIC programs.