KP_MD15_MOD_N_HE_EASY

KP_MD15_MOD_N_HE_EASY (FB)

FUNCTION_BLOCK KP_MD15_MOD_N_HE_EASY

Representation

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication (TRUE = enable)

Input

byUnitId

BYTE

0

Device address (1… 247, default = factory setting)

Input

xUpdateActual

BOOL

FALSE

Update of actual values (on every rising edge )

Input

xUpdateSetp

BOOL

FALSE

Update of setpoints (on every rising edge )

Input

xResError

BOOL

FALSE

Reinitialization of the outputs eErrorCodeCom or sErrorCodeDev to the fault-free state (on every rising edge)

Input

rSetpPos

REAL

0.0

Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle extended)

Inout

ModbusClient

ModbusClientBase

Client of the device

Output

rSetpPositionFb

REAL

Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle extended) — feedback

Output

rPosition

REAL

Current position in % (0.0 - 100.0 %) (0.0% = spindle extended)

Output

xAlarm

BOOL

FALSE

Collective fault (TRUE = fault)

Output

xAlarmCom

BOOL

FALSE

Collective fault - communication (TRUE = fault)

Output

eErrorCodeCom

ModbusErrorCode

Error code - communication (0 = no error)

Output

sErrorCodeDev

STRING

String with the numbers of the active device errors (Bit 0 = number 1, Bit 1 = number 2, etc.)

Output

xBusy

BOOL

Communication indicator (TRUE = communication)

Input Const

eOpMode

KP_MD15_MOD_N_HE_OP_MODE

KP_MD15_MOD_N_HE_OP_MODE.SETPOINT

Current operating mode 0 = control via setpoint 1 = Open 2 = Close 3 = Parameter rMinPos 5 = Parameter rMaxPos 6 = room temperature control loop

Input Const

rBusFailPos

REAL

100.0

Current position in % (0.0 - 100.0 %) (0.0% = spindle extended) in the event of a bus error (120 s)

Input Const

eBusFailMode

KP_MD15_MOD_N_HE_BUS_FAIL_MODE

KP_MD15_MOD_N_HE_BUS_FAIL_MODE.NO_DETECTION

Current operating mode in the event of a bus error 0 = no monitoring 1 = Close after 120s without communication 2 = Open after 120s without communication 3 = Parameter rBusFailPos after 120s without communication

Input Const

tTimeUpdateSetp

TIME

TIME#45s0ms

Update interval for the processes influenced by the input xUpdateSetp influenced

Input Const

tTimeUpdateActual

TIME

TIME#3s0ms

Update interval for the processes influenced by the input xUpdateActual influenced

Last updated