Siemens S7CommPlus
6 min
Review the following information for setting up and configuring the Siemens S7CommPlus driver.
BHDO Edge Compatible Series
Compatibility parameter | Compatible items |
|---|---|
Driver type | Ethernet |
Validated devices/series |
To set up and configure this device in BHDO, you will need to do the following:
- Step 1: Set up and Configure the PLC Device
- Step 2: Set up the PLC Device in BHDO DeviceHub
- Step 3: Configure the List of Registers
Step 1: Set up and Configure the PLC Device
If the device is configured for Ethernet access, find its network parameters. Otherwise, use PLC software on your computer to configure your device for Ethernet access.
- Open your TIA Portal project.
- In the project tree, right-click your PLC and select Properties… from the popup menu. The Properties window opens.
- To obtain the device’s IP address (if you do not already have it):
- From the left pane, select PROFINET interface > Ethernet addresses.
- In the right pane, go to Internet protocol version 4 (IPv4), find the IP address of the PLC, and copy it aside.
- From the left pane, select PROFINET interface > Advanced options > Port [X1 P1] > Port interconnection.
- In the right pane, enter “Any partner” in the Partner port field.
- From the left pane, select Protection & Security > Access level.
Step 2: Set up the PLC Device in BHDO DeviceHub
Parameter | Value |
|---|---|
Type | Siemens |
Driver | Siemens S7CommPlus |
Network Address | The device address you defined during Step 1 |
Network Port | 102 |
PLC Type | Auto |
Firmware Version | Auto |
Read Timeout (ms) | 1000 |
Retry Count Read Retries | 0 |
Keep Alive TCP Keep-Alive | 60 |
Note: The following data types are available for BHDO version 3.11.4 and later.
- dt
- dtl
- wchar
- bool
- byte
- word
- dword
- lword
- usint
- uint
- udint
- ulint
- sint
- int
- dint
- lint
- real
- lreal
- s5time
- dt
- dtl
- time
- ltime
- tod
- ltod
- ldt
- date
- char
- wchar
- string
- wstring
- bool[]
- byte[]
- word[]
- dword[]
- lword[]
- usint[]
- uint[]
- udint[]
- ulint[]
- sint[]
- int[]
- dint[]
- lint[]
- real[]
- lreal[]
- s5time[]
- time[]
- ltime[]
- tod[]
- ltod[]
- ldt[]
- date[]
Tag Parameters
- Name: Select a register name from the drop-down list. The available options depend on the names in the register table.
- Value Type: Select a data type from the drop-down list. The available options depend on the register name selected.
- Polling Interval: Enter a value in seconds. This determines how often the tag should poll the register for data.
- Tag Name: Enter a name for the tag.
- Description (Optional): Enter a description for the tag.
- Address: Enter a tag address. The value must in the decimal format, within the allowed min/max range. Omit the leading zeros. The device might use the decimal (D), hexadecimal (H), or octal (O) address format. For Bit tags, append the bit address without the bit separator. The lowercase letters in the address format indicate how many digits you should enter in the Bit address.
- Count: Enter the number of register values to read. A count higher than 1 will generate an array of values from the address value configured and respective subsequent address values.
- Length: Available for ASCII Data Files. Enter the number of characters for tag values.
- Tag Formula: Enter a formula for the tag to process the generated data. Two variables are permitted: value (current tag value) and timestamp (current tag UNIX time in milliseconds). The following math functions are available:
- sin
- cos
- sqrt
- tan
- power
- log
- exp
- Only Publish on Change of Value: Select the checkbox to customize NATS messages to be published only when the value parameter changes from a previous value to a new one. Change of Value only applies to boolean, numeric (such as int or float), and simple string data types. It does not apply to complex types, such as JSON or array. Poll-once topics will not be affected by Change of Value settings. These topics will still only see a single message.
- Meta Data: Metadata summarizes basic information about data. This feature allows you to define key-value pair data for the device output payload later on. It can then be used to find, use, and reuse particular instances of data.