P_KL3208

IO template for parameterizing a KL3208-0010: 8-channel input terminal for resistance sensors. On PLC restart this template configures the terminal with the parameters entered in the Project Builder and then switches to process data mode. This template is based on the function block FB_KL3208Config. This function block configures only one channel of the KL3208. The corresponding number of function blocks is automatically declared via the Project Builder.

Interface

P_KL3208 1:

VAR_OUTPUT

iDataIn     : INT;
usiState    : USINT;
udiErrorId  : UDINT;

iDataIn: Corresponds to the data variable of the input process data. This output is suitable for direct processing in process data mode of the terminal.

usiState: Corresponds to the status variable of the input process data. This output is suitable for status assessment in process data mode of the terminal.

udiErrorId: contains the command-specific error code of the most recently executed command. See Error codes.

Parameter

iSetSensorType  : INT;

iSetSensorType: This input is used to set the sensor. The setting is based on the table below.

iSetSensorType

Element

0

PT1000

1

NI1000

2

NI1000 according to Landis&Staefa characteristic: 1000Ω at 0°C and 1500Ω at 100°C.

3

NTC1K8

4

NTC1K8_TK

5

NTC2K2

6

NTC3K

7

NTC5K

8

NTC10K

9

NTC10KPRE

10

NTC10K_3204

11

NTC10KTYP2

12

NTC10KTYP3

13

NTC10KDALE

14

NTC10K3A221

15

NTC20K

16

Potentiometer, resolution 0.1 Ω

17

Potentiometer, resolution 1 Ω

18

NTC100K

Development information

Development environment

BACnet Revision

Target system

required supplement

TwinCAT 2.11 R3/x64 from build 2254

n/a

PC/CX

TS8040 | TwinCAT Building Automation from V1.1.0

Version history

Version number

Comments

1.0.0.0

First release