BASEstartm Open DAS
for Allen-Bradley Data Highwaytm
on Tru64tm UNIX
Installation and User's Guide


Previous Contents Index

2.3.1.4 Configuration Files

Example 2_4 and Example 2-5 are samples of the ODS and BSTR configuration files for the DAS for Allen-Bradley Data Highway.

Example 2-4 ODS Configuration File

#! /bin/csh 
# 
#  Copyright 1994 Compaq Computer Corporation. 
# 
#  COMPAQ Registered in U.S. Patent and Trademark Office. 
# 
#  Confidential computer software.  Valid license from Compaq or authorized 
#  sulicensor required for possession, use or copying.  Consistent with 
#  FAR 12.211 and 12.212, Commercial Computer Software, Computer Software 
#  Documentation, and Technical Data for Commercial Items are licensed to 
#  the U.S. Government under vendor's standard commercial license. 
# 
#********************************************************************! 
#                                                                    ! 
#    This is a template for the Allen-Bradley-specific               ! 
#    ODS configuration command file.  Rename and edit this command   ! 
#    procedure template to reflect your site-specific                ! 
#    configuration.  You must manually execute this command          ! 
#    procedure to configure ODS to provide line configuration        ! 
#    information for your devices.                                   ! 
#                                                                    ! 
#    Add comments to the site-specific changes here.                 ! 
#                                                                    ! 
#********************************************************************! 
# 
setenv ODSCL /usr/bin/odscl 
# 
#  Register the ODS definitions. 
# 
$ODSCL << _register_end_ 
REGISTER DIRECTORY NAME "/LINE=DATA_HIGHWAY" ATTRIBUTES "OC=DH_LINE 
/PORT=tty16/ENQ_RETRIES=10/NAK_RETRIES=3/KE_TIMEOUT=128/SPEED=9600/PARITY=none 
/MODEM=0/KE_STATION=12/TIMEOUT=3" 
REGISTER DIRECTORY NAME "/LINE=DATA_HIGHWAY_PLUS" ATTRIBUTES "OC=DH_LINE 
/PORT=tty17/ENQ_RETRIES=3/NAK_RETRIES=3/KE_TIMEOUT=128/SPEED=9600/PARITY=none 
/MODEM=0/KE_STATION=10/TIMEOUT=3" 
REGISTER DIRECTORY NAME "/LINE=DH485" ATTRIBUTES "OC=DH_LINE 
/PORT=tty18/ENQ_RETRIES=10/NAK_RETRIES=3/SPEED=9600/PARITY=none 
/MODEM=0/TIMEOUT=3" 
 
REGISTER DIRECTORY NAME "/PATH=PLC_2_15" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DATA_HIGHWAY)/STATION=20" 
REGISTER DIRECTORY NAME "/PATH=PLC_2_30" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DATA_HIGHWAY)/STATION=21" 
REGISTER DIRECTORY NAME "/PATH=PLC_3" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DATA_HIGHWAY)/STATION=22" 
REGISTER DIRECTORY NAME "/PATH=PLC_5_40" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DATA_HIGHWAY_PLUS)/STATION=20" 
REGISTER DIRECTORY NAME "/PATH=PLC_5_250" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DATA_HIGHWAY_PLUS)/STATION=21" 
REGISTER DIRECTORY NAME "/PATH=SLC_5_04" ATTRIBUTES "OC=DH_PATH 
/LINE_NAME=(/LINE=DH485)/STATION=1" 
EXIT 
_register_end_ 

To execute the ODS command file, enter the following command at the user prompt:


/ods/scripts/ods_ab_config.template 

Example 2-5 BSTR Configuration File

! 
!  Copyright 1994 Compaq Computer Corporation 
! 
!  COMPAQ Registered in U.S. Patent and Trademark Office. 
! 
!  Confidential computer software.  Valid license from Compaq or authorized 
!  sulicensor required for possession, use or copying.  Consistent with 
!  FAR 12.211 and 12.212, Commercial Computer Software, Computer Software 
!  Documentation, and Technical Data for Commercial Items are licensed to 
!  the U.S. Government under vendor's standard commercial license. 
!  
!  Create the protocol profile definitions for the PLC-2, 
!  PLC-3, PLC-5 and SLC family of PLCs. 
!  Protocol profile IDs uniquely identify protocol support to OMNI. 
! 
CREATE PROTOCOL_PROFILE ab_plc2 \
      -APPLPROFID 51 \
      -MAXPDUSIZE 1024 \
      -SMA_MODE ENABLED \
      -LOG 
CREATE PROTOCOL_PROFILE ab_plc3 \
      -APPLPROFID 52 \
      -MAXPDUSIZE 1024 \
      -SMA_MODE ENABLED \
      -LOG 
CREATE PROTOCOL_PROFILE ab_plc5 \
      -APPLPROFID 53 \
      -MAXPDUSIZE 1024 \
      -SMA_MODE ENABLED \
      -LOG 
CREATE PROTOCOL_PROFILE ab_slc \
      -APPLPROFID 54 \
      -MAXPDUSIZE 1024 \
      -SMA_MODE ENABLED \
      -LOG 
! 
!  Create VMD definitions. 
!  Use the ODS entries and protocol profile names created earlier. 
! 
CREATE VMD plc_2_15 -MODEL "PLC_2_15" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=PLC_2_15_PATH":ab_plc2 \
                    -DESCRIPTION "PLC 2/15" \
                    -LOG 
CREATE VMD plc_2_30 -MODEL "PLC_2_30" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=PLC_2_30_PATH":ab_plc2 \
                    -DESCRIPTION "PLC 2/30" \
                    -LOG 
CREATE VMD plc_3 -MODEL "PLC_3" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=PLC_3_PATH":ab_plc3 \
                    -DESCRIPTION "PLC 3" \
                    -LOG 
CREATE VMD plc_5_40 -MODEL "PLC_5_40" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=PLC_5_40_PATH":ab_plc5 \
                    -DESCRIPTION "PLC 5/40" \
                    -LOG 
CREATE VMD plc_5_250 -MODEL "PLC_5_250" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=PLC_5_250_PATH":ab_plc5 \
                    -DESCRIPTION "PLC 5/250" \
                    -LOG 
CREATE VMD slc_5_04 -MODEL "SLC_5_04" \
                    -VENDOR "AB" \
                    -DVM_ACCESS_POINT "/PATH=SLC_5_04_PATH":ab_slc \
                    -DESCRIPTION "SLC 5/04" \
                    -LOG 
! 
!  Create actors/activities for the VMDs 
! 
CREATE NODE ab_node -PHYSICAL "your_node" -LOG 
CREATE DOMAIN /plc_2_15 
CREATE DOMAIN /plc_2_30 
CREATE DOMAIN /plc_3 
CREATE DOMAIN /plc_5_40 
CREATE DOMAIN /plc_5_250 
CREATE DOMAIN /slc_5_04 
CREATE ACTOR /AB -LOG 
SET CONTEXT /AB 
CREATE PROGRAM ab_server -PROGRAM_KIND DATADEV -LOG 
CREATE ACTIVITY plc_2_15 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/plc_2_15) \
                    -VMDS (plc_2_15) \
                    -LOG 
CREATE ACTIVITY plc_2_30 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/plc_2_30) \
                    -VMDS (plc_2_30) \
                    -LOG 
CREATE ACTIVITY plc_3 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/plc_3) \
                    -VMDS (plc_3) \
                    -LOG 
CREATE ACTIVITY plc_5_40 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/plc_5_40) \
                    -VMDS (plc_5_40) \
                    -LOG 
CREATE ACTIVITY plc_5_250 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/plc_5_250) \
                    -VMDS (plc_5_250) \
                    -LOG 
CREATE ACTIVITY slc_5_04 -PROGRAM ab_server \
                    -NODES (ab_node) \
                    -DOMAINS (/slc_5_04) \
                    -VMDS (slc_5_04) \
                    -LOG 

To execute the BASEstar Open command file, enter the following command at the user prompt:


cli_bstr -f $BSTR_ETC/bstr_ab_config.template 

For more information about maintaining protocol profile and device definitions, refer to the BASEstar Open for Tru64 UNIX Command Language Interface. For more information about maintaining ODS definitions, refer to the Compaq OMNI for Tru64 UNIX Guide to Using Omni Directory Services.


Previous Next Contents Index