RIWA Clusters
Overview
- v1.20.0 and Later
- v1.0.0 to v1.19.0
In the RIWA Cluster section, users can manage their system’s RIWA Clusters. A RIWA Cluster is a group of multiple Weld Analyzers that are organized together. Each cluster provides an application that allows users to manage all of its Weld Analyzers.
Users can also configure individual Weld Analyzers directly within the RIWA Hub through this section.
On the main page users will see the RIWA Clusters currently initialized. Furthermore, there will be additional details included such as the Name and Last Modified date. Additionally, users have the options to add and or remove RIWA Clusters.

Creating a RIWA Cluster
When a user presses the Add RIWA Cluster button, a menu will appear that will take the user through a three step process to create a new RIWA Cluster. The user will be required to enter some information about the new RIWA Cluster, for further information about each setting please refer to the Configuring Weld Analyzers Inside of RIWA Clusters documentation.
1. General
In this section, users will be asked to enter the Name, MAC Address, TF Bridge, Redis IP, and Redis Port of their new RIWA Cluster.

2. PLC Communication
In this section, users will be asked to choose a Network Type that is used to communicate with the RIWA Cluster. The currently supported connection types include Ethernet, Profinet, and Devicenet. After selecting a connection type the user will be prompted to enter some additional information to help with connection parameters.
For more information regarding this setting, please refer to the PLC Communication section.

3. PLC Layout
In this section, users will be asked to add the Input and Output memory size of their PLC to ensure there is a match of communication between the PLC and the new RIWA Cluster. The user can complete the process of creating their new RIWA Cluster by pressing the Submit button.
The input and output size is to be filled with the expected memory value from the PLC. If the RIWA Cluster is to receive more or less bits than expected from the PLC, the system will fail.

In the RIWA Configurations section, users can manage their system’s RIWA Clusters. A RIWA Cluster is a group of multiple Weld Analyzers that are organized together. Each cluster provides an application that allows users to manage all of its Weld Analyzers.
Users can also configure individual Weld Analyzers directly within the RIWA Hub through this section.
On the main page users will see the RIWA Clusters currently initialized. On this page there will be additional details included such as the Name and time Updated. Additionally, users have the options to add and or remove RIWA Clusters.

Adding a New RIWA Cluster
When a user presses the Add New RIWA Cluster button, a menu will appear that will take the user through a four step process to create a new RIWA Cluster. The user will be required to enter some information about the new RIWA Cluster as seen in the images below:
On the first page, the user will be asked to enter the Name, MAC Address, Software Version, PLC Communication IP, and PLC Communication Port of their new RIWA Cluster.

On the second page, the user will be asked to connect a TF Bridge to their new cluster. This can be done by clicking on the TF Bridge button which will present the user with a list of currently configured TF Bridges available to be connected to the new RIWA Cluster.
On the third page, the user will be asked to choose a PLC Communication protocol that is used to communicate with the RIWA Cluster. The currently supported connection types include Ethernet, Profinet, and Devicenet. After selecting a connection type the user will be prompted to enter some additional information to help with connection parameters.

On the fourth page, the user will be asked to add the Input and Output memory size of their PLC to ensure their is a match of communication between the PLC and the new RIWA Cluster. The user can complete the process of creating their new RIWA Cluster by pressing the Complete button.
The input and output size is to be filled with the expected memory value from the PLC. If the RIWA Cluster is to receive more or less bits than expected from the PLC, the system will fail.

Configuring RIWA Clusters
- v1.20.0 and Later
- v1.0.0 to v1.19.0
If a user clicks on a RIWA Cluster, they will be brought to a page that allows them to modify the Name by clicking the bolded name at the top of the page.
Users will also be presented with 5 other modifiable sections through this page, including the selected clusters Weld Analyzers, PLC Communication, and PLC Configuration.
General
On the General page, users will be able to modify the MAC Address, TF Bridge, Redis IP, and Redis Port of the selected RIWA Cluster.

Weld Analyzers
On the Weld Analyzer page, users can view a list of all the Weld Analyzers that belong to the RIWA Cluster along with additional details such as their Last Modified date. Additionally, users are given the option to add or remove Weld Analyzers.

Creating a Weld Analyzer
When a user clicks the Add Weld Analyzer button, they will be taken through a two step process to help them set up their new Weld Analyzer. The user is required to enter some information about the new analyzer as seen in the images below:
On the first page, the user will be required to enter the Name of their new Weld Analyzer.

On the second page, the user will be asked to enter the Timeout, Standard Deviation Threshold, Threshold Duration, Small Window Size, Large Window Size, and Weld End Threshold of their new Weld Analyzer. The following terms are defined more thoroughly for the purpose of documentation:
- Std Dev Threshold: the value indicates the number of standard deviations the two windows need to differ by to detect an event confidently.
- Threshold Duration: The duration for which the hall effect sensor needs to exceed the standard deviation threshold to determine current on (CON) and current off (COFF) in milliseconds (ms).
- Weld End Threshold: The duration for which the hall effect sensor needs to stay below the set standard deviation threshold to determine a weld has finished. This setting is expecting a duration in milliseconds (ms).
STD Dev Threshold, Threshold Duration, Weld End Threshold, Small Window Size, and Large Window Size are parameters the RIWA uses to detect the impulse train of the welding gun in real time.

PLC Communication
On the PLC Communications page, users can configure the PLC communication protocol used to interact with the RIWA Cluster.
Currently supported connection types include Ethernet, Profinet, and Devicenet. After selecting a connection type, the corresponding connection parameters, such as enabling Big Endian can be configured. Available settings may vary depending on the selected network type.
Example Ethernet

Example Profinet

Example DeviceNet

Once the user has clicked on a RIWA Cluster they will be shown a tab that allows them to modify the Name and other settings associated with the selected RIWA Cluster. Other modifiable sections on this page include the selected clusters Weld Analyzers and PLC Config. To modify the selected clusters name, the user must press on its bolded name at the top of the window.
Config
When a user clicks on the name of a RIWA Cluster, they will initially be brought to a Config section contains general information about the RIWA Cluster which is modifiable, including its Name, MAC Address, Software Version, PLC Communication IP, and PLC Communication Port.

TF Bridge
Just below the General settings, there will be a section to modify the connected TF Bridge configuration which determines which weld will be annotated by the correct AI.
Please refer the TF Bridge documentation for a more detailed explanation.
Changing TF Bridge Layout
When a user clicks on the TF Bridge button, the user will be prompted with a list of existing TF Bridges. The user will also be given the options to both search existing TF Bridges and Select a TF Bridge.

PLC Communication
The PLC Communications section, located below the TF Bridge settings, allows configuration of the PLC communication protocol used to interact with the RIWA Cluster.
Currently supported connection types include Ethernet, Profinet, and Devicenet. After selecting a connection type, the corresponding connection parameters, such as enabling Big Endian can be configured. Available settings may vary depending on the selected network type.
Example Ethernet Tab:

Example Profinet Tab:

Example Devicenet Tab:

Weld Analyzers
The Weld Analyzer section contains a list of all the Weld Analyzers that belong to the RIWA Cluster. Additionally, users are given the option to add and or remove Weld Analyzers.

Creating a New Weld Analyzer
When a user clicks the Add New Weld Analyzer button, they will be taken through a two step process to help them set up their new Weld Analyzer. The user is required to enter some information about the new analyzer as seen in the images below: that require input some required information seen in the images below:
On the first page, the user will be required to enter the Name and MAC Address of their new Weld Analyzer.

On the second page, the user will be required to enter the Timeout(ms), Std Dev Threshold, Threshold Duration, Small Window Size, Large Window Size, and Weld End Threshold of their new Weld Analyzer. The user will be able to complete the creation of the analyzer by pressing the Complete button. The following terms are defined more thoroughly for the purpose of documentation:
- Std Dev Threshold: the value indicates the number of standard deviations the two windows need to differ by to detect an event confidently.
- Threshold Duration: The duration for which the hall effect sensor needs to exceed the standard deviation threshold to determine current on (CON) and current off (COFF) in milliseconds (ms).
- Weld End Threshold: The duration for which the hall effect sensor needs to stay below the set standard deviation threshold to determine a weld has finished. This setting is expecting a duration in milliseconds (ms).
STD Dev Threshold, Threshold Duration, Weld End Threshold, Small Window Size, and Large Window Size are parameters the RIWA uses to detect the impulse train of the welding gun in real time.

PLC Configuration
- v1.20.0 and Later
- v1.0.0 to v1.19.0
In the PLC Input and PLC Output sections of the RIWA Hub, users will be able to configure plc input and output layouts, commands, and segments used for communication sent from the PLC to the RIWA Cluster.
At the top of each section, the user will first be shown the Memory Sizes settings that allows the user to adjust the respective memory sizes (in bits) to match what is being sent by their respective PLC.
The input and output size is to be filled with the expected memory value from the PLC. If the RIWA Cluster is to receive more or less bits than expected from the PLC, the system will fail.
Just below the Memory Sizes settings, the user will be shown the segmented timeline that allows the user to configure the segments used for communication sent from the PLC to the RIWA Cluster by dragging and dropping segments.
Lastly, found just below the segmented timeline, the user will be shown the PLC Commands section that sorts commands by weld analyzer. The user will be able to configure the commands and segments for each weld analyzer. For further details on configuring PLC commands and segments, see the Modifying PLC Commands section.
Example PLC Input

Example PLC Output

Adding PLC Commands
When a user clicks on the Add Command button, the user must enter some basic information such as the Command Type and Segments to be added to the new command.
Both the Command Type and Segment fields are drop-down menus that will show all the available command types and segments that can be added to the new command.
Please also note that each command type can only be added once per weld analyzer.

Modifying PLC Commands
The Commands configuration allows communication segments to be adjusted to match the signals sent from the PLC to the RIWA Cluster.
Within the Input and Output sections, the associated commands are listed. Pressing on command name expands the selected command to display its segments. From this screen, users are able to modify each segments Start and End point (in bits), along with being shown the Size of the segment (in bits).
Users can add segments to a command by pressing the Add Segment button; this will prompt the user with a side panel with a dropdown menu of available segments to add.
Commands can be added, edited, or removed as needed to match the PLC configuration. To edit, delete, or clone a command, select the three vertical dots (⋮) next to the desired command.
Editing a command will present the user with a page similar to the Add Command screen, allowing them to modify the command's segments and settings.

In the PLC Config section of the RIWA Hub, users will be able to configure layouts, commands, and segments used for communication sent from the PLC to the RIWA Cluster.
The user will first be shown the Memory Sizes settings that allows the user to adjust the Input and Output memory sizes (in bits) to match what is being sent by their respective PLC.
The input and output size is to be filled with the expected memory value from the PLC. If the RIWA Cluster is to receive more or less bits than expected from the PLC, the system will fail.

Input & Output
Below the general settings, there will be an Input section and Output section respectively. These sections allows users to view and visually edit the segments assigned to the selected layout by dragging and dropping the segments into the desired order. To configure PLC commands and segments, please refer to Configuring Commands.
Example Input Section:

Example Output Section:

Configuring PLC Commands
The Commands configuration allows communication segments to be adjusted to match the signals sent from the PLC to the RIWA Cluster.
Within the Input and Output sections below the visual display, the associated commands are listed. Pressing on command name expands the selected command to display its segments. From this screen, users are able to view each of the segments in the selected command along with their Offsets, Sizes, and Bit Ranges as well.
Commands can be added, edited, or removed as needed to match the PLC configuration. To edit, delete, or clone a command, select the three vertical dots (⋮) next to the desired command.

Creating a New Command
When a user clicks on the + Add Input Command or + Add Output Command button, the user must enter some basic information such as the Name, a Description, connect a Weld Analyzer, and select the Segments to add to the new command.
Both the Weld Analyzer and Segment fields are drop down menus that will show all the available analyzers and segments that can be added to the new command.

Editing an Existing Command
In the Edit Command section, the user will have the option to edit the Name, Description, connected Weld Analyzer, and connected Segments of the selected command. The user will also be able to remove segments by clicking the x beside the name of each segment they wish to remove. To confirm changes, the user must press the Update button.

Configuring Weld Analyzers Inside of RIWA Clusters
- v1.20.0 and Later
- v1.0.0 to v1.19.0
Inside of the General settings of a Weld Analyzer, there will be a list of configuration options that are modifiable. Users can modify the selected weld analyzer's Timeout, Standard Deviation Threshold, Threshold Duration, Small Window Size, Large Window Size, and Weld End Threshold. For more information on these parameters, see the Creating a Weld Analyzer section.
The impulse detection algorithm (also known as the current detection algorithm) uses a sliding window approach to detect Current ON (CON) and Current OFF (COFF) events within the impulse train. At each time step two windows that are separated by the sample being tested, the size of these windows are small window and large window as parameterized below. Small window should be equal to or less than the large window.
When the standard deviation of the small window differs significantly from the large window for a set number of samples then a change in welding state (Current On (CON) to Current Off (COFF) or vice versa) is detected.

Inside of the General settings of a Weld Analyzer, there will be a list of basic configuration options that are modifiable.
The impulse detection algorithm (also known as the current detection algorithm) uses a sliding window approach to detect Current ON (CON) and Current OFF (COFF) events within the impulse train. At each time step two windows that are separated by the sample being tested, the size of these windows are small window and large window as parameterized below. Small window should be equal to or less than the large window.
When the the standard deviation of the small window differs significantly from the large window for a set number of samples then a change in welding state (Current On (CON) to Current Off (COFF) or vice versa) is detected.

Description of Essential Commands
Weld Start Message
The weld_start_message is how the PLC will indicate to RIWA that the weld is about to begin. We ask that the weld_start_message be sent atleast 100ms before the weld current is activated.
The weld_start_message contains 3 segmens, local_weld_type_id, part_id and plc_part_instance_code.
local_weld_type_idis an integer (size can be configured by user), denoting the weld numberpart_idis an integer (size can be configured by user), denoting the part number, this is optional and can be sent as 0.plc_part_instance_codethis is an integer sent by the PLC that is required for part tracking in the RIWA Browser. Without this parameter you welds cannot be associated with parts and part instances cannot be discerned.
Weld Quality Feedback Command
The weld quality feedback command is sent by the RIWA Hub to the PLC to provide feedback on the weld quality. The command can be configured to include a timestamp via the hour, minute, and second which will be the time the weld occured relative to the RIWA system clock. It can also be configured to echo back the local_weld_type_id value. However the most essential segment is the 1-Byte quality segment. Which is described below.
The Quality segment is a single byte of the form 0bXXXYZZZZ
The most significant 3 bits (the X bits) form a 3 bit integer identifying the feedback type:
1 for pass
2 for fail
3 for uncertain
4 for error
Bit 4 (the Y bit) is a flag which indicates the presences of an expulsion.
The remaining 4 bits (the Z bits) form a 4 bit integer which will indicate context information, via status codes.
For Example, Quality byte vaule with: 0b01010010 indicates that the weld is a fail, and an expulsion occurred with context code 2, meaning "Bottom Sheet Max Penetration Below Acceptable Spec".
The list of status codes are listed below:
| Status Code | Pass | Fail | Uncertain | Error |
|---|---|---|---|---|
| 0 0b0000 | Nominal Weld | |||
| 1 0b0001 | Top Sheet Max Penetration Below Nominal Spec | Top Sheet Max Penetration Below Acceptable Spec | Gates not found. (Ultrasonic failure) | |
| 2 0b0010 | Bottom Sheet Max Penetration Below Nominal Spec | Bottom Sheet Max Penetration Below Acceptable Spec | Remote Module Communication Failure | |
| 3 0b0011 | Code 1 and 2 simultaneously (bit mask) | Code 1 and 2 simultaneously (bit mask) | Cannot interpret weld code. RIWA Webserver communication failure or invalid weld code received | |
| 4 0b0100 | Top Sheet penetration exceeded threshold too briefly based on nominal spec | Top Sheet penetration exceeded threshold too briefly based on acceptable spec | Current Events not detected. Did not detect the weld start | |
| 5 0b0101 | Code 1 and 4 simultaneously (bit mask) | Code 1 and 4 simultaneously (bit mask) | ||
| 6 0b0110 | Code 2 and 4 simultaneously (bit mask) | Code 2 and 4 simultaneously (bit mask) | ||
| 7 0b0111 | Code 1 and 2 and 4 simultaneously (bit mask) | Code 1 and 2 and 4 simultaneously (bit mask) | ||
| 8 0b1000 | Bottom Sheet penetration exceeded threshold too briefly based on nominal spec | Bottom Sheet penetration exceeded threshold too briefly based on acceptable spec | ||
| 9 0b1001 | Code 1 and 8 simultaneously (bit mask) | Code 1 and 8 simultaneously (bit mask) | ||
| 10 0b1010 | Code 2 and 8 simultaneously (bit mask) | Code 2 and 8 simultaneously (bit mask) | ||
| 11 0b1011 | Code 1 and 2 and 8 simultaneously (bit mask) | Code 1 and 2 and 8 simultaneously (bit mask) | ||
| 12 0b1100 | Code 4 and 8 simultaneously (bit mask) | Code 4 and 8 simultaneously (bit mask) | ||
| 13 0b1101 | Code 1 and 4 and 8 simultaneously (bit mask) | Code 1 and 4 and 8 simultaneously (bit mask) | ||
| 14 0b1110 | Code 2 and 4 and 8 simultaneously (bit mask) | Code 2 and 4 and 8 simultaneously (bit mask) | ||
| 15 0b1111 | Code 1 and 2 and 4 and 8 simultaneously (bit mask) | Code 1 and 2 and 4 and 8 simultaneously (bit mask) |