Previous | Contents | Index |
Before using the DAS for Modicon programmable controllers you must perform the following postinstallation tasks:
Configuration scripts, /usr/var/opt/doumod311/etc/ods_mod_config.template and /usr/var/opt/doumod311/etc/bstr_mod_config.template, are supplied with the DAS for Modicon programmable controllers. The ODS configuration file contains OMNI Directory Services (ODS) registration commands for Modicon specific classes and attributes. The BASEstar Open configuration file contains definitions for sample Modicon VMDs and protocol profile(s).
Copy the template files and edit them to include site-specific directory, VMD and protocol profile definitions. When you complete your edits, execute the files to create the ODS and BASEstar Open Device Services definitions.
The following sections provide examples of ODS and BASEstar Open
definitions from the configuration files, and indicate which attributes
can be modified. For more information about creating VMD and protocol
profile definitions, refer to the BASEstar Open for Tru64 UNIX Command Language Interface. For more information
about registering ODS definitions, refer to the Compaq OMNI for Tru64 UNIX Guide to Using Omni Directory Services.
2.3.1.1 Editing ODS Registrations
ODS registrations allow the DAS software to locate a particular device on an Modicon Modbus network. Example 2-1 shows the configuration file commands that create the ODS registrations.
Example 2-1 ODS Registration |
---|
REGISTER DIRECTORY NAME "/LINE=MODBUS" ATTRIBUTES "OC=MODBUS_LINE/PORT=tty06 /RETRIES=3/SPEED=9600/PARITY=none/MODEM=0/TIMEOUT=3/TRACE=0" REGISTER DIRECTORY NAME "/PATH=MOD984_PATH" ATTRIBUTES "OC=MODBUS_PATH /LINE_NAME=(/LINE=MODBUS)/SLAVE_ADDRESS=20/TRACE=0" REGISTER DIRECTORY NAME "/PATH=MOD884_PATH" ATTRIBUTES "OC=MODBUS_PATH /LINE_NAME=(/LINE=MODBUS)/SLAVE_ADDRESS=21/TRACE=0" REGISTER DIRECTORY NAME "/PATH=MOD584_PATH" ATTRIBUTES "OC=MODBUS_PATH /LINE_NAME=(/LINE=MODBUS)/SLAVE_ADDRESS=22/TRACE=0" REGISTER DIRECTORY NAME "/PATH=MOD484_PATH" ATTRIBUTES "OC=MODBUS_PATH /LINE_NAME=(/LINE=MODBUS)/SLAVE_ADDRESS=23/TRACE=0" REGISTER DIRECTORY NAME "/PATH=MODTCP984_PATH" ATTRIBUTES "OC=MODTCP_PATH /IP_ADDRESS=19.20.20.5" |
You can modify the commands for your site configuration. The following tables show ODS classes and attributes supportes by the DAS. Attribute values are not checked until a connection is initiated with the VMD.
Table 2-3 lists the classes and attributes that are supported for Modicon devices using Modbus over an RS-232 connection.
Class | Attribute | Default | Value(s) |
---|---|---|---|
MODBUS_LINE | PORT | tty06, tty07, etc. 1 | |
SPEED | 110 - 9600 | ||
PARITY | NONE, EVEN, ODD | ||
MODEM | NO | TRUE, ON, YES, 1 or FALSE, OFF, NO, 0 | |
TIMEOUT | 3 | 2-10 2 | |
RETRIES | 3 | 0-20 | |
TRACE 3 | NO | TRUE, ON, YES, 1 or FALSE, OFF, NO, 0 | |
MODBUS_TELNET | IP_ADDRESS | xx.xx.xx.xx 4 | |
PORT_NUMBER 5 | |||
TIMEOUT | 3 | 2-10 2 | |
RETRIES | 3 | 0-20 | |
TRACE 3 | NO | TRUE, ON, YES, 1 or FALSE, OFF, NO, 0 | |
MODBUS_PATH | LINE_NAME | /LINE=xxx 6 | |
SLAVE_ADDRESS | 1-247 | ||
TRACE 3 | NO | TRUE, ON, YES, 1 or FALSE, OFF, NO, 0 |
Table 2-4 lists the classes and attributes that are supported for Modicon devices using Modbus over a TCP/IP connection.
Class | Attribute | Default | Value(s) |
---|---|---|---|
MODTCP_PATH | IP_ADDRESS | xx.xx.xx.xx 1 | |
PROBE_TIME 2 | 10 | ||
DROP_TIME 3 | 30 | ||
TIMEOUT | 3 | 1-10 4 | |
TRACE 5 | NO | TRUE, ON, YES, 1 or FALSE, OFF, NO, 0 |
2.3.1.2 Editing BASEstar Open Protocol Profile Definitions
The BASEstar Open protocol profile is used to associate a device with
the correct DAS. Example 2-2 shows the configuration file commands
that create protocol profile definitions.
Example 2-2 BASEstar Open Protocol Profile Configuration |
---|
CREATE PROTOCOL_PROFILE mod_m84 \ -APPLPROFID 101 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_184 \ -APPLPROFID 102 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_384 \ -APPLPROFID 103 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_484 \ -APPLPROFID 104 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_584 \ -APPLPROFID 105 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_884 \ -APPLPROFID 106 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE mod_984 \ -APPLPROFID 107 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG CREATE PROTOCOL_PROFILE modtcp_984 \ -APPLPROFID 109 -MAXPDUSIZE 1024 -SMA_MODE ENABLED -LOG |
The DAS for Modicon programmable controllers uses a different Application Profile ID for each programmable controller family that it supports. When defining a VMD, be sure to specify the proper protocol profile for the family of programmable controller being defined.
The Modicon 984 family of devices uses different protocol profiles depending on the communication method used to communicate to the programmable controller.
Use the mod_984 protocol profile for Modbus connections and modtcp_984 protocol profile for Modbus TCP/IP connections.
The Modicon 984 protocol profiles should be used when communicating with Quantum Automation Series programmable controllers.
The MAXPDUSIZE should be greater than or equal to the largest total
packet sent by the device. If a packet is segmented into several
smaller packets use the total packet size for this number.
2.3.1.3 Editing VMD Definitions
The VMD definition represents a Modicon device and references previously defined ODS and protocol profile definitions. Example 2-3 shows the configuration file commands that create VMD definitions.
Example 2-3 VMD Configuration |
---|
CREATE VMD mod_984 -MODEL "Modicon_984" \ -VENDOR "Modicon" \ -DVM_ACCESS_POINT "/PATH=MOD984_PATH":mod_984 \ -DESCRIPTION "Modicon 984 programmable controller" \ -LOG CREATE VMD modtcp_984 -MODEL "Modicon_984" \ -VENDOR "Modicon" \ -DVM_ACCESS_POINT "/PATH=MODTCP984_PATH":modtcp_984 \ -DESCRIPTION "Quantum Automation Series" \ -LOG CREATE VMD mod_884 -MODEL "Modicon_884" \ -VENDOR "Modicon" \ -DVM_ACCESS_POINT "/PATH=MOD884_PATH":mod_884 \ -DESCRIPTION "Modicon 884 programmable controller" \ -LOG CREATE VMD mod_584 -MODEL "Modicon_584" \ -VENDOR "Modicon" \ -DVM_ACCESS_POINT "/PATH=MOD584_PATH":mod_584 \ -DESCRIPTION "Modicon 584 programmable controller" \ -LOG CREATE VMD mod_484 -MODEL "Modicon_484" \ -VENDOR "Modicon" \ -DVM_ACCESS_POINT "/PATH=MOD484_PATH":mod_484 \ -DESCRIPTION "Modicon 484 programmable controller" \ -LOG |
An access point is created using the following syntax: APPLICATION_SIMPLE_NAME:PROTOCOL_PROFILE_NAME . The APPLICATION_SIMPLE_NAME is the definition registered in ODS. The PROTOCOL_PROFILE_NAME is defined using the BASEstar Open CLI as described in Section 2.3.1.2.
An access point tells the BASEstar Open software how to access the VMD. For more information on specifying client and DVM access points, refer to BASEstar Open for Tru64 UNIX Command Language Interface.
Modify the command for your site configuration. Table 2-5 lists the modifiable device attributes.
Parameter | Value(s) |
---|---|
MODEL 1 | Programmable controller model |
VENDOR 1 | Modicon |
REVISION 1 | |
CLIENT_ACCESS_POINT 2 | |
DVM_ACCESS_POINT 2 | |
DESCRIPTION 1 | Descriptive text |
Previous | Next | Contents | Index |