Formal parameters and actual parameters, Mbs basics – Pilz PSS SB NOT, Basic license User Manual

Page 30

Advertising
background image

5-2

MBS Basics

Modular Block System: Emergency Stop Circuits

Formal parameters and actual parameters

Parameters can be set on the MBS standard function blocks. Formal
parameters are established in the block header. The user must assign a
corresponding actual parameter to each formal parameter. When the
standard function block is called up in the user program, the formal
parameters will be replaced by the user-specific actual parameters.

INFORMATION
Depending on the programming language selected on PSS WIN-PRO,
designations for formal parameters and operands may differ from those
found on PSS SW PG. Any designations that are different will
automatically be replaced by PSS WIN-PRO.

Further information is available in the programming manual for “PSS SW-
PG” or “PSS WIN-PRO”.

Formal parameter
PSS SW PG
PSS WIN-PRO: Pilz IL

X

B

W

D

Z

Actual parameter
PSS SW PG
PSS WIN-PRO: Pilz IL

Input bit E
Output bit A
Flag bit M

Input byte EB
Output byte AB
Flag byte MB
Constant KB

Input word EW
Output word AW
Flag byte MW
Constant KW

Data block DB

Timer or counter

Advertising