P_KL3228

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

Interface

P_KL3228 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.

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