Previous | Contents | Index |
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 |
---|
$! $! $! 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. ! $! ! $!********************************************************************! $! $ODSCL := $ODS:[EXEC]ODSCL $! $! Register the ODS definitions. $! $ODSCL REGISTER DIRECTORY NAME "/LINE=DATA_HIGHWAY" ATTRIBUTES "OC=DH_LINE /PORT=LTA201:/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=LTA202:/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=LTA203:/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 |
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_AB_CONFIG.TEMPLATE |
For more information about maintaining protocol profile and device definitions, refer to the BASEstar Open for OpenVMS Command Language Interface. For more information about maintaining ODS definitions, refer to the Compaq OMNI for OpenVMS Guide to Using Omni Directory Services.
Previous | Next | Contents | Index |