Description of the formal parameters

Name

Type

Data Type

Description

REQ_DB

IN

BLOCK_DB

DB of the ibaPDA communication interface ibaREQ_DB

RESET

IN

BOOL

FALSE: No reset (default) TRUE: Block reset

INP_RANGE

IN

INT

Number of input bytes (evaluation only during initialization),0: automatic detection (recommended)

OUT_RANGE

IN

INT

Number of output bytes (evaluation only during initialization),0: automatic detection (recommended)

MARKER_RANGE

IN

INT

Number of marker bytes (evaluation only during initialization),0: automatic detection (recommended)

ERROR_STATUS

OUT

DWORD

Internal error code

The following SFCs are used internally:

  • SFC 20 (BLKMOV)

  • SFC 21 (FILL)

  • SFC 24 (TEST_DB)

  • SFC 51 (RDSYSST)

Detailed description

REQ_DB

The DB is used for data exchange with ibaPDA. For all related Request blocks, configure the identical DB.

Length: 5280 Bytes: up to 128 Pointers (min.) 9120 Bytes: up to 512 Pointers 14240 Bytes: up to 1024 Pointers (max.)

Any other length within these limits is permitted. The number of usable pointers are evaluated according to the length.

RESET

Used to manually reset the Request blocks. All Request blocks of a combination are automatically reset together. Usually, the parameter does not have to be connected.

INP_RANGE

Limits the number of input bytes to be measured. If INP_RANGE = 0, the size of the available processor image of the inputs is determined by the Request FB itself (recommended). Evaluation is done only during the initialization phase of the module.

OUT_RANGE

Limits the number of output bytes to be measured. With OUT_RANGE = 0, the size of the available processor image of the outputs is determined by the Request FB itself (recommended). Evaluation is done only during the initialization phase of the module

MARKER_RANGE

Limits the number of marker bytes to be measured. With MARKER_RANGE = 0, the number of available markers is determined by the Request FB itself (recommended). Evaluation is done only during the initialization phase of the module.

ERROR_STATUS

Internal error of the block. If there is no error, the value 0 is output.

Error codes

Decimal value ERROR_STATUS

Description

1

datablock ibaREQ_DB is write protected

2

datablock ibaREQ_DB invalid (DB = 0 or > limit of CPU)

3

datablock ibaREQ_DB does not exist

4

datablock ibaREQ_DB undefined error

5

datablock ibaREQ_DB too short

6

datablock ibaREQ_DB too short for ibaREQ_UDP

9

internal error (RD_SINFO)

10

no access to datablock ibaREQ_DB (read)

11

no access to datablock ibaREQ_DB (write)

20

initialization not finished

21

insufficient memory for SZL

22

wrong SZL_ID

23

wrong or invalid index of SZL

24

error while reading I&M data from CPU

25

error while reading PLC data

31

initialization canceled with error

32

initialization not completed

41

too many pointers (ibaREQ_DB too small)

42

too many pointers in one command (>128)

44

invalid command id

45

operand invalid (not defined)

46

operand invalid (datatype)

47

operand invalid (memory area)

200

no connection to PN device / DP slave

300

version of ibaREQ_UDPact does not match with ibaREQ_M (ID)

301

version of ibaREQ_UDPact does not match with ibaREQ_M (FB)

302

version of ibaREQ_UDPact does not match with ibaREQ_M (DB)

303

type of transmit agent does not match with configured request type in ibaPDA

305

PROFIBUS DP slave hardware configuration is invalid

306

configured peripheral address is invalid

310

no access to datablock ibaREQ_DB (read)

311

no access to datablock ibaREQ_DB (write)

315

error while masking of synchronous faults

316

error while demasking of synchronous faults

320

operand invalid (datatype)

321

operand invalid (pointer)

401

ADR_SLOT/ADR_SLOT_0 invalid hw-id

402

ADR_SLOT/ADR_SLOT_0 invalid hw-id, no IO-Device or DP-Slave

403

ADR_SLOT/ADR_SLOT_0 invalid hw-id, is no PROFIBUS or PROFINET

406

ADR_SLOT/ADR_SLOT_0 invalid configuration slot (0)

407

ADR_SLOT/ADR_SLOT_0 invalid configuration slot (0)

409

ADR_SLOT_1 invalid configuration slot 1

410

no connection to PN device/DP-Slave or error

411

ADR_SLOT_1 invalid hw-id

412

ADR_SLOT_1 invalid hw-id, no IO-Device or DP-Slave

413

ADR_SLOT_1 invalid hw-id, is no PROFIBUS

416

ADR_SLOT_1 invalid configuration slot 1

0x8yyy

error code of inner TUSEND/AG_SEND/AG_LSEND