Supported platforms: CODESYS 3.5
|
|
Based on selections made, MultiTool Creator automatically generates variables and configurations for I/O pins along with internal diagnostics to the CODESYS code template. |
The following variables are needed in programming if you do not use MultiTool Creator for creating code template.
The variables are also shown on CODESYS IDE > Device > Internal I/O Mapping.
|
PIN |
Channel |
Default Mapping |
Unit |
Type |
Product |
|
X1.11 |
DI |
DEV_DSC_DI_X1_11 |
FALSE: Input is low. TRUE: Input is high. |
BIT |
|
|
X1.12 |
DI |
DEV_DSC_DI_X1_12 |
FALSE: Input is low. TRUE: Input is high. |
BIT |
|
|
X1.16 |
VREF Level |
DEV_DSC_REF_5V |
Raw value from AD converter. |
WORD |
|
|
VREF Error |
DEV_DSC_REF_OUT_5V_ERROR |
FALSE: VREF is OK. TRUE: VREF error situation. |
BIT |
||
|
VREF Enable |
DEV_DSC_REF_OUT_5V_Enable |
FALSE: VREF disabled. TRUE: VREF enabled. |
BIT |
||
|
X1.17 |
AI |
DEV_DSC_AI_RAW_X1_17 |
Raw value from AD converter. |
WORD |
|
|
DI/ Overvoltage |
DEV_DSC_OVP_STATE_X1_17 |
FALSE: Input is low. TRUE: Input is high. |
BIT |
||
|
Overvoltage Recovery |
DEV_DSC_OVP_RESET_X1_17 |
FALSE: Recovery pin inactive. TRUE: Recovery pin active. |
BIT |
||
|
Measurement Type |
DEV_DSC_AI_SET_mA_X1_17 |
FALSE: Voltage measurement. TRUE: Current measurement. |
BIT |
||
|
Pull-up |
DEV_DSC_AI_SET_PU_X1_17 |
FALSE: Pull-up disabled. TRUE: Pull-up enabled. |
BIT |
||
|
X1.20 |
DI |
DEV_DSC_DI_X1_20 |
FALSE: Input is low. TRUE: Input is high. |
BIT |
|
|
Status |
DEV_DSC_FET_ST_X1_20 |
FET status. Can be used for diagnostics. |
BIT |
||
|
DO |
DEV_DSC_DO_X1_20 |
FALSE: Output is low. TRUE: Output is high. |
BIT |
||
|
Pull-up |
DEV_DSC_SET_PU_X1_20 |
FALSE: Pull-up disabled. TRUE: Pull-up enabled. |
BIT |
||
|
PWM Frequency* |
DEV_DSC_PWFM_FREQ_X1_20* |
PWM frequency in Hz* |
WORD |
||
|
PWM Value* |
DEV_DSC_PWFM_RATIO_X1_20* |
PWM duty cycle. 0-1000* (1000 = 100%) |
WORD |
||
|
X1.21 |
DI |
DEV_DSC_DI_X1_21 |
FALSE: Input is low. TRUE: Input is low. |
BIT |
|
|
Status |
DEV_DSC_FET_ST_X1_21 |
FET status. Can be used for diagnostics. |
BIT |
||
|
DO |
DEV_DSC_DO_X1_21 |
FALSE: Output is low. TRUE: Output is high. |
BIT |
||
|
Pull-up |
DEV_DSC_SET_PU_X1_21 |
FALSE: Pull-up disabled. TRUE: Pull-up enabled. |
BIT |
||
|
PWM Frequency* |
DEV_DSC_PWFM_FREQ_X1_21* |
PWM frequency in Hz* |
WORD |
||
|
PWM Value* |
DEV_DSC_PWFM_RATIO_X1_21* |
PWM duty cycle. 0-1000* (1000 = 100%) |
WORD |
||
|
Internal Diagnostics |
Input Voltage |
DEV_DSC_SUPPLY_Volt |
Raw value from AD converter. |
WORD |
|
|
Internal Diagnostics |
Temperature Sensor |
DEV_DSC_TEMP_PCB |
Raw value from AD converter. |
WORD |
|
|
Internal Diagnostics |
CPU Temperature |
DEV_DSC_TEMP_CPU |
Temperature in celcius degrees |
DINT |
|
|
Accelerometer |
AccelerometerX |
DEV_DSC_ACCELEROMETER_X |
Accelerometer x value |
DINT |
If Accelerometer is included |
|
Accelerometer |
AccelerometerY |
DEV_DSC_ACCELEROMETER_Y |
Accelerometer y value |
DINT |
If Accelerometer is included |
|
Accelerometer |
AccelerometerZ |
DEV_DSC_ACCELEROMETER_Z |
Accelerometer z value |
DINT |
If Accelerometer is included |
|
LEDs |
LED1 |
DEV_DSC_LED1 |
Controls each led color: 0x0 = off 0x1 = red 0x2 = green 0x4 = blue |
BYTE |
If LEDs are included |
|
LEDs |
LED2 |
DEV_DSC_LED2 |
Controls each led color: 0x0 = off 0x1 = red 0x2 = green 0x4 = blue |
BYTE |
If LEDs are included |
|
LEDs |
LED3 |
DEV_DSC_LED3 |
Controls each led color: 0x0 = off 0x1 = red 0x2 = green 0x4 = blue |
BYTE |
If LEDs are included |
|
Buzzer |
Buzzer |
DEV_DSC_BUZZER |
FALSE: buzzer is off TRUE: buzzer is on |
BIT |
If Buzzer is included |
* Not supported in first release version
Source file topic000812.htm
Last updated 4-Sep-2025