app_weld_set_interface_eip_m2r_process2
Features
This function configures the communication interface for using a welder that supports EtherNet/IP communication. It allows you to set up the interface for interlocking signals between the controller and the welder for welding execution, specifically for "Process 2". This configuration involves communication data that is sent from the welder to the robot controller.
Refer to the communication signal datasheet of the corresponding welder for details related to the settings below.
Note:
To properly use the welding function with an EtherNet/IP communication-capable welder, all 8 types of interface setting commands must be configured:
app_weld_set_interface_eip_r2m_process()app_weld_set_interface_eip_r2m_mode()app_weld_set_interface_eip_r2m_test()app_weld_set_interface_eip_r2m_condition()app_weld_set_interface_eip_r2m_option()app_weld_set_interface_eip_m2r_process()app_weld_set_interface_eip_m2r_monitoring()app_weld_set_interface_eip_m2r_other()
Robot motion start is interlocked with the
current_flowsignal from the welder, but when themain_currentitem is set, it is interlocked with that signal.Robot motion end is interlocked with the
current_flowsignal from the welder, but when theprocess_activeitem is set, it is interlocked with that signal.
Arguments
Argument Name | Data Type | Default Value | Description |
|---|---|---|---|
|
| None | Digital welding interface "Process 2" settings structure |
The data type, default value, and description of the arguments within the structure are the same as below:
Argument Name | Data Type | Default Value | Description |
|---|---|---|---|
| unsigned char | None | Unused: 0 <br> Used: 1 |
| unsigned char | None | Data type (on/off: 0, selection: 1, value: 2) |
| unsigned char | None | Data digit (1: 0, 0.1: 1, 0.01: 2) |
| float | None | Minimum data value |
| float | None | Maximum data value |
| unsigned char | None | Communication data location (byte): 1~255 |
| unsigned char | None | Communication data location (bit): 1~255 |
| unsigned char | None | Data size <br> 1-bit (disable Low): 0 <br> 1-bit (disable High): 1 <br> 2-bit: 2 <br> 4-bit: 3 <br> 8-bit (byte): 4 <br> 15-bit: 5 <br> 16-bit (short): 6 <br> 32-bit (int): 7 |
| unsigned char | None | Effective data size <br> Value (bit) |
Return
Value | Description |
|---|---|
0 | Error |
1 | Success |
Example
CODE
|