KP_MD15_MOD_N_HE_FULL

KP_MD15_MOD_N_HE_FULL (FB)

FUNCTION_BLOCK KP_MD15_MOD_N_HE_FULL

InOut:

Scope
Name
Type
Initial
Comment

Input

xEn

BOOL

TRUE

Enable / disable communication ( TRUE = enabled )

Input

byUnitId

BYTE

0

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

Input

xUpdateActual

BOOL

FALSE

Update of actual values (on every rising edge )

Input

xUpdateInfo

BOOL

FALSE

Update of the information ( on every rising edge )

Input

xUpdateSetp

BOOL

FALSE

Update of setpoint values (on every rising edge )

Input

xResError

BOOL

FALSE

Reinitialization of the outputs ‘eErrorCodeCom’ and ‘sErrorCodeDev’ to the error-free state (on each 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

sSerialNumber

STRING

Device serial number

Output

wFirmwareVer

WORD

Firmware version of the device

Output

wHardwareVer

WORD

Hardware version 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

eCommandFb

KP_MD15_MOD_N_HE_COMMAND_MODE

Current drive status — feedback

Output

eOpModeFb

KP_MD15_MOD_N_HE_OP_MODE

Current operating mode of the drive — feedback

Output

xAlarm

BOOL

FALSE

General fault ( TRUE = fault )

Output

xAlarmCom

BOOL

FALSE

General 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

rMaxPos

REAL

100.0

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

Input Const

rMinPos

REAL

0.0

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

Input Const

eOpMode

KP_MD15_MOD_N_HE_OP_MODE

KP_MD15_MOD_N_HE_OP_MODE.SETPOINT

Current operating mode 0 = Control by setpoint 1 = Open 2 = Closed 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 case of a bus failure (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 case of a bus failure 0 = no monitoring 1 = Closed after 120s without communication 2 = Open after 120s without communication 3 = Parameter ‘rBusFailPos’ after 120s without communication

Input Const

eCommand

KP_MD15_MOD_N_HE_COMMAND_MODE

KP_MD15_MOD_N_HE_COMMAND_MODE.NORMAL_MODE

Current drive status 0 = Normal operation 1 = Adaption / Initialization 2 = Test run = Manual flushing function (one-time full opening) 3 = Synchronization = Manual synchronization of the end position 4 = Reset errors = reset all errors in register 318 5 = Baud rate change = adoption of the parameters in registers 105 - 107

Input Const

tTimeUpdateSetp

TIME

TIME#45s0ms

Update interval for operations influenced by the input 'xUpdateSetp'

Input Const

tTimeUpdateInfo

TIME

TIME#0ms

Update interval for the processes influenced by the input ‘xUpdateInfo’

Input Const

tTimeUpdateActual

TIME

TIME#3s0ms

Update interval for operations influenced by the input 'xUpdateActual'

Last updated