Configuring the PROFIBUS Group
- Updated2025-10-31
- 9 minute(s) read
Configure a PROFIBUS master and PROFIBUS slaves to make your data available to an external controller.
- Profibus Master—Configure the PROFIBUS master group when the card that you installed in the PXI is configured as a master.
- Profibus Slave—Configure the PROFIBUS slave group when the card that you installed in the PXI is configured as a slave.
Configuring the PROFIBUS Master
Configure the PROFIBUS master group.
- Refer to Configuring PROFIBUS to configure PROFIBUS in PAtools PCU Configuration.
- Refer to Creating Objects to add a new PROFIBUS group to the
desired location in the database. When adding a new object, you can use the
search bar to find the PROFIBUS group.
Alternatively, you can use the following menu sequence to add the PROFIBUS group: .
-
Double-click Profibus<type>
from the list of objects where you added the group.
The PROFIBUS group appears in a new configuration tab.
- Enter a unique name for the PROFIBUS group.
-
Configure the PROFIBUSMaster.
- Click + New Device.
- In the Device Number column, select the same device number that you selected for the PROFIBUS card in PAtools PCU Configuration.
- Optional: In the Dynamic Device Number column, click … to select a constant variable that overwrites the Device Number.
- Optional:
In the Status column, click
… and select the status variable where the
fieldbus status code is written.
The fieldbus status is written into the Status variable at runtime. The fieldbus status provides consistent values for the status of a message.
- Optional:
In the Cyclic Duration column, enter the cycle
time of the bus communication of the PROFIBUS master in seconds.
If two runtime systems or components connect to the same PROFIBUS, the shorter cycle of duration is used. If you do not select a cycle duration, the cycle duration you configured in PAtools PCU Configuration or 1 kHz is used.
- Optional: Enter a Description of the device.
-
Configure the station of the device.
- Click + New Station.
- In the Station column, select the station number.
- Optional: In the Dynamic Station Number column, click ... to select a constant variable that overwrites the Station.
- Select the Active State Msgs.
-
In the Status column, click
… and select the status variable where the
fieldbus status code is written.
The fieldbus status is written into the Status variable at runtime. The fieldbus status provides consistent values for the status of a message.
- Optional: Enter a Description of the station.
-
Configure the channel of the station.
- Click + New Channel.
- In the Input/Output Variable column, click … and select the name of the input variable or output variable.
- Optional: Select the physical Units of the variable.
- Optional:
Select the Data Type of the input variables or
output variables.
When you select Text, the following statements apply:
- The data format distinguishes between Intel and Motorola formats.
- If the text variable is longer than the configured channel length, the text is truncated. Otherwise, the channel is filled with '\0'.
- Text can only be set at byte limits.
- The offset of the channel must be a multiple of 8.
- Text is generally transferred in and out.
- Optional: In the Decimal Places column, enter the number of decimal places for the input or output variable.
- Optional:
In the Fixed Formula column, select the rule to
convert the channel variable into the input variable.
You can also select the rule to convert the output variable into the channel variable.
The first parameter equals the variable in the applicable column as indicated in the following table.
Table 27. Converting Channel Variables Input (x or x1) Applied from Column Output (y) Assigned to the Column If the channel type equals the input channel: defined by Offset and No. of Bytes If the object type equals the send object: Name If the object type equals the send object: Name If the channel type equals the input channel: defined by Offset and No. of Bytes -
In the Formula Parameters column, click
… and select the parameters for the fixed
formula.
The Formula Parameters are required if you selected a fixed formula. However, if you do not select a fixed formula, Formula Parameters is disabled. Formula Parameters is also disabled if the formula does not have parameters
- In the Name column, enter the variable to which the signal is assigned.
- Enter the preassigned Initialization Value of the variable when the test loads.
- Optional: In the Units column, enter the physical variable of the Name variable.
- Optional:
In the Data Type column, select the data type of
the Name variable.
When you select Text, the following statements apply:
- The data format distinguishes between Intel and Motorola formats.
- If the text variable is longer than the configured channel length, the text is truncated. Otherwise, the channel is filled with '\0'.
- Text can only be set at byte limits.
- The offset of the channel must be a multiple of 8.
- Text is generally transferred in and out.
- Optional: In the Decimal Places column, enter the number of decimal places for the Name variable.
- Optional: In the Fixed Formula column, select the rule to convert the signal into the Name variable.
-
In the Formula Parameters column, click
… and select the parameters for the fixed
formula.
The Formula Parameters are required if you selected a fixed formula. However, if you do not select a fixed formula, Formula Parameters is disabled. Formula Parameters is also disabled if the formula does not have parameters
-
In the Operation Group column, click
… specify how the status and the operation
channel are updated.
The Update Channels operation controls the conversion of input variables or output variables. If you use an additional conversion formula, you must also use the Compute Formulas operation.
In an Operation Tables group, both operations must have the same operation group. Use this operation in the Operation Group column. If you do not specify an operation group, the Operation Group column must also be empty.
- In the Channel Type column, select whether the channel is an input channel or output channel.
- Enter the Byte Offset.
- In the Data Width in Bytes column, enter the number of bits used for the channel.
- In the Data Formats column, select the format that the signal uses to read or send data.
- In the Status column, click … and select whether the status of the message is written into the variable.
-
In the Reaction column, select how the channel
responds to errors.
The reaction executes when an error is detected.
If you configure a channel variable, the reaction effects the channel variable. The reaction does not effect the input variable. Therefore, a configured standard value is converted when errors occur.
- Optional: In the Standard Value column, select the definition of the standard value.
- Optional: In the Description column, enter a description of the channel
- Click Save.
Configuring the PROFIBUS Slave
Configure the PROFIBUS slave group.
- Refer to Configuring PROFIBUS to configure PROFIBUS in PAtools PCU Configuration.
- Refer to Creating Objects to add a new PROFIBUS group to the
desired location in the database. When adding a new object, you can use the
search bar to find the PROFIBUS group.
Alternatively, you can use the following menu sequence to add the PROFIBUS group: .
-
Double-click Profibus<type>
from the list of objects where you added the group.
The PROFIBUS group appears in a new configuration tab.
- Enter a unique name for the PROFIBUS group.
-
Configure the PROFIBUSSlave.
- Click + New Device.
- In the Device Number column, select the same device number that you selected for the PROFIBUS card in PAtools PCU Configuration.
- Optional: In the Dynamic Device Number column, click … to select a constant variable that overwrites the Device Number.
-
Select the Station Number.
The Station Number is the unique identification number for the PROFIBUS slave.
- Optional: Select the Dynamic Station Number to select a constant variable that overwrites the Station Number.
- Select the Active State Msgs.
- Optional:
In the Status column, click
… and select the status variable where the
fieldbus status code is written.
The fieldbus status is written into the Status variable at runtime. The fieldbus status provides consistent values for the status of a message.
- Optional:
In the Cyclic Duration column, enter the cycle
time of the bus communication of the PROFIBUS slave in seconds.
If two runtime systems or components connect to the same PROFIBUS, the shorter cycle of duration is used. If you do not select a cycle duration, the cycle duration you configured in PAtools PCU Configuration or 1 kHz is used.
- Optional: Enter a Description of the device.
-
Configure the channel of the device.
- Click + New Channel.
- In the Input/Output Variable column, click … and select the name of the input variable or output variable.
- Optional: Select the physical Units of the variable.
- Optional:
Select the Data Type of the input variables or
output variables.
When you select Text, the following statements apply:
- The data format distinguishes between Intel and Motorola formats.
- If the text variable is longer than the configured channel length, the text is truncated. Otherwise, the channel is filled with '\0'.
- Text can only be set at byte limits.
- The offset of the channel must be a multiple of 8.
- Text is generally transferred in and out.
- Optional: In the Decimal Places column, enter the number of decimal places for the input or output variable.
- Optional:
In the Fixed Formula column, select the rule to
convert the channel variable into the input variable.
You can also select the rule to convert the output variable into the channel variable.
The first parameter equals the variable in the applicable column as indicated in the following table.
Table 28. Converting Channel Variables Input (x or x1) Applied from Column Output (y) Assigned to the Column If the channel type equals the input channel: defined by Offset and No. of Bytes If the object type equals the send object: Name If the object type equals the send object: Name If the channel type equals the input channel: defined by Offset and No. of Bytes -
In the Formula Parameters column, click
… and select the parameters for the fixed
formula.
The Formula Parameters are required if you selected a fixed formula. However, if you do not select a fixed formula, Formula Parameters is disabled. Formula Parameters is also disabled if the formula does not have parameters
- In the Name column, enter the variable to which the signal is assigned.
- Enter the preassigned Initialization Value of the variable when the test loads.
- Optional: In the Units column, enter the physical variable of the Name variable.
- Optional:
In the Data Type column, select the data type of
the Name variable.
When you select Text, the following statements apply:
- The data format distinguishes between Intel and Motorola formats.
- If the text variable is longer than the configured channel length, the text is truncated. Otherwise, the channel is filled with '\0'.
- Text can only be set at byte limits.
- The offset of the channel must be a multiple of 8.
- Text is generally transferred in and out.
- Optional: In the Decimal Places column, enter the number of decimal places for the Name variable.
- Optional: In the Fixed Formula column, select the rule to convert the signal into the Name variable.
-
In the Formula Parameters column, click
… and select the parameters for the fixed
formula.
The Formula Parameters are required if you selected a fixed formula. However, if you do not select a fixed formula, Formula Parameters is disabled. Formula Parameters is also disabled if the formula does not have parameters
-
In the Operation Group column, click
… specify how the status and the operation
channel are updated.
The Update Channels operation controls the conversion of input variables or output variables. If you use an additional conversion formula, you must also use the Compute Formulas operation.
In an Operation Tables group, both operations must have the same operation group. Use this operation in the Operation Group column. If you do not specify an operation group, the Operation Group column must also be empty.
- In the Channel Type column, select whether the channel is an input channel or output channel.
- Enter the Byte Offset.
- In the Data Width in Bytes column, enter the number of bits used for the channel.
- In the Data Formats column, select the format that the signal uses to read or send data.
- In the Status column, click … and select whether the status of the message is written into the variable.
-
In the Reaction column, select how the channel
responds to errors.
The reaction executes when an error is detected.
If you configure a channel variable, the reaction effects the channel variable. The reaction does not effect the input variable. Therefore, a configured standard value is converted when errors occur.
- Optional: In the Standard Value column, select the definition of the standard value.
- Optional: In the Description column, enter a description of the channel
- Click Save.
Related Information
- Configuring PROFIBUS
Configure PROFIBUS for standard fieldbus communication.
- Creating Objects