PoolExtender.ExtendPool (METH)

METHOD ExtendPool : ERROR

This method delegates the job of expanding the specified pool to the background task
If the return value is “ERROR.PENDING,” the job is still running
Please repeat the call until a different return value is shown
InOut:

Scope

Name

Type

Initial

Comment

Return

ExtendPool

ERROR

Input

udiNumElements

UDINT

This is the number of elements by which the pool should be expanded

hPool

HANDLE

0

The handle the related pool
hPool = 0 => Extend the pool of this PoolExtender instance

ePoolType

POOL_TYPE

POOL_TYPE.BLOCK_POOL

The type of the related pool

Inout

hJob

MBM.HANDLE

Provides a helper variable for handling internal states