P_KL3204

IO template for parameterizing a KL3204: 4-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_KL320xConfig. This function block configures only one channel of the KL3204. The corresponding number of function blocks is automatically declared via the Project Builder.

Interface

P_KL3204 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

PT100

1

NI100

2

PT1000

3

PT500

4

PT500

5

NI1000

6

NI120

7

Output 10.0 Ω – 5000.0 Ω

8

Output 10.0 Ω – 1200.0 Ω

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