For information on the latest version, please have a look at GL013301.
CONFIG_DIGITAL_WELDING_IF_MAPPING_DATA
This structure defines the mapping configuration for digital welding interfaces, used to interpret and convert between digital I/O signals and analog welding parameters. It specifies data format, scaling, and bit/byte offsets for the controller’s digital communication.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
0 or 1 |
Enable flag |
1 |
|
|
0 or 1 |
Data interpretation type |
2 |
|
|
0~2 |
Decimal position |
3 |
|
|
Minimum mapped data value |
|
7 |
|
|
Maximum mapped data value |
|
11 |
|
|
0~255 |
Byte offset within the digital frame |
12 |
|
|
0~7 |
Bit offset within the specified byte |
13 |
|
|
0~7 |
Communication data type |
14 |
|
|
Maximum digital range value allowed for conversion |
Total size: 15 bytes
Defined in: DRFS.h
typedef struct _CONFIG_DIGITAL_WELDING_IF_MAPPING_DATA
{
/* Enable: 0 = Disabled, 1 = Enabled */
unsigned char _bEnable;
/* Data type: 0 = On/Off, 1 = Value */
unsigned char _nDataType;
/* Decimal position factor: 0 = ×1, 1 = ×0.1, 2 = ×0.001 */
unsigned char _nPositionalNumber;
/* Minimum mapped data value */
float _fMinData;
/* Maximum mapped data value */
float _fMaxData;
/* Byte offset within communication frame */
unsigned char _nByteOffset;
/* Bit offset within the byte */
unsigned char _nBitOffset;
/* Communication data type (1~32 bit mapping) */
unsigned char _nComnDataType;
/* Maximum digital range value */
unsigned char _nMaxDigitSize;
} CONFIG_DIGITAL_WELDING_IF_MAPPING_DATA, *LPCONFIG_DIGITAL_WELDING_IF_MAPPING_DATA;
Note
Used to map welding parameters (voltage, current, etc.) to digital protocol bits.
Supports diverse data types (bit, byte, word, dword).
_nPositionalNumberadjusts for scaling precision in numeric values.Enables integration with PLC-based welding controllers or digital fieldbus interfaces.