Skip to main content

RIWA Clusters

Overview​

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.

da_cluster-v1.20

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.

cluster1-v1.20

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.

tip

For more information regarding this setting, please refer to the PLC Communication section.

cluster2-v1.20

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.

danger

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.

cluster3-v1.20

Configuring RIWA Clusters​

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.

cluster_general-v1.20

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.

cluster_analyzer-v1.20

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.

analyzer_add1-v1.20

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).
note

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.

analyzer_add2-v1.20

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​

cluster_ethernet-v1.20

Example Profinet​

cluster_profinet-v1.20

Example DeviceNet​

cluster_devicenet-v1.20

PLC Configuration​

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.

danger

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​

plc_input-v1.20

Example PLC Output​

plc_output-v1.20

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.

note

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.

plc_add-v1.20

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.

tip

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.

plc_command-v1.20

Configuring Weld Analyzers Inside of RIWA Clusters​

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.

note

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.

analyzer_general-v1.20

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_id is an integer (size can be configured by user), denoting the weld number
  • part_id is an integer (size can be configured by user), denoting the part number, this is optional and can be sent as 0.
  • plc_part_instance_code this 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 CodePassFailUncertainError
0 0b0000Nominal Weld
1 0b0001Top Sheet Max Penetration Below Nominal SpecTop Sheet Max Penetration Below Acceptable SpecGates not found. (Ultrasonic failure)
2 0b0010Bottom Sheet Max Penetration Below Nominal SpecBottom Sheet Max Penetration Below Acceptable SpecRemote Module Communication Failure
3 0b0011Code 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 0b0100Top Sheet penetration exceeded threshold too briefly based on nominal specTop Sheet penetration exceeded threshold too briefly based on acceptable specCurrent Events not detected. Did not detect the weld start
5 0b0101Code 1 and 4 simultaneously (bit mask)Code 1 and 4 simultaneously (bit mask)
6 0b0110Code 2 and 4 simultaneously (bit mask)Code 2 and 4 simultaneously (bit mask)
7 0b0111Code 1 and 2 and 4 simultaneously (bit mask)Code 1 and 2 and 4 simultaneously (bit mask)
8 0b1000Bottom Sheet penetration exceeded threshold too briefly based on nominal specBottom Sheet penetration exceeded threshold too briefly based on acceptable spec
9 0b1001Code 1 and 8 simultaneously (bit mask)Code 1 and 8 simultaneously (bit mask)
10 0b1010Code 2 and 8 simultaneously (bit mask)Code 2 and 8 simultaneously (bit mask)
11 0b1011Code 1 and 2 and 8 simultaneously (bit mask)Code 1 and 2 and 8 simultaneously (bit mask)
12 0b1100Code 4 and 8 simultaneously (bit mask)Code 4 and 8 simultaneously (bit mask)
13 0b1101Code 1 and 4 and 8 simultaneously (bit mask)Code 1 and 4 and 8 simultaneously (bit mask)
14 0b1110Code 2 and 4 and 8 simultaneously (bit mask)Code 2 and 4 and 8 simultaneously (bit mask)
15 0b1111Code 1 and 2 and 4 and 8 simultaneously (bit mask)Code 1 and 2 and 4 and 8 simultaneously (bit mask)