![background image](http://html1.mh-extra.com/html/ifm/compactmodule-metal-cr2031/compactmodule-metal-cr2031_device-manual_3908905017.webp)
UK
CompactModule Metall CR2031
17
9.3.2
Data structure CR2031 ConfigStruct
Data
structure:
CR2031 ConfigStruct
TYPE CR2031 ConfigStruct
STRUCT
GUARDTIME: TIME;
LIFETIME: BYTE;
Ch1: BYTE;
(*2000/1*)
(*0,2,4,5*)
Ch2: BYTE;
(*2000/2*)
(*0,2,4,5*)
Ch3: BYTE;
(*2000/3*)
(*0,2,4,5*)
Ch4: BYTE;
(*2000/4*)
(*0,2,4,5*)
Ch5: BYTE;
(*2000/5*)
(*0,2,4,5*)
Ch6: BYTE;
(*2000/6*)
(*0,2,4,5*)
Ch7: BYTE;
(*2000/7*)
(*0,2,4,5*)
Ch8: BYTE;
(*2000/8*)
(*0,2,4,5*)
PwmFrq: BYTE;
(*2001/0*)
P_Value1_2: BYTE;
(*2004/1*)
I_Value1_2: BYTE;
(*2004/2*)
Max_Current1_2: WORD;
(*2004/3*)
:
P_Value7_8: BYTE;
(*2007/1*)
I_Value7_8: BYTE;
(*2007/2*)
Max_Current7_8: WORD;
(*2007/3*)
END_STRUCT
END_TYPE
Purpose:
Parameter and configuration
data can be written or read� The
data structure is assigned to the
function input "CFG_DATA" via
the ADR operator�
Structure components:
Name
Data type
Description
GUARDTIME
TIME
Guarding time of the module [ms]
LIFETIME
BYTE
Lifetime of the module
Ch1
BYTE
Config� channel 1
0 = disabled (OFF)
2 = binary output *
4 = analogue output (PWM)
5 = analogue output (PWM; current-controlled)
Ch2
BYTE
Config� channel 2
0 = disabled (OFF)
2 = binary output *
4 = analogue output (PWM)
5 = analogue output (PWM; current-controlled)
Ch3
BYTE
Config� channel 3
0 = disabled (OFF)
2 = binary output *
4 = analogue output (PWM)
5 = analogue output (PWM; current-controlled)
:
:
:
:
:
:
:
:
:
Ch8
BYTE
Config� channel 8
0 = disabled (OFF)
2 = binary output *
4 = analogue output (PWM)
5 = analogue output (PWM; current-controlled)
PwmFrq
BYTE
PWM frequency in Hz; 20 to 250 Hz (default 100 Hz)
P_Value1_2
BYTE
P value of the current control function channel pair 1/2
value in % referred to the preset-actual value difference (default 50)