
Block variables and data types for FB501
Block variable
Data type
Comment
ADR_IN
HW_IO
Hardware ID of the module from which the data is to be read. The
hardware ID can be found in the properties of the module in the
device view or system constants (
PLC tags
→
Default tag table
→
System constants
).
DP-V0: Hardware ID of the module must be provided and
DPV_Mode
flag should be
False
in FB500 block.
DP-V1 (or PROFINET): Hardware ID or 0 and
DPV_Mode
flag must be
True
in FB500 block.
ADR_OUT
HW_IO
Hardware ID of the module to which the data is to be written. The
hardware ID can be found in the properties of the module in the
device view or system constants (
PLC tags
→
Default tag table
→
System constants
).
DP-V0: Hardware ID of the module must be provided and
DPV_Mode
flag should be
False
in FB500 block.
DP-V1 (or PROFINET): Hardware ID or 0 and
DPV_Mode
flag must be
True
in FB500 block
READ
BOOL
Read the parameter value 0
→ 1 (executed on positive edge).
WRITE
BOOL
Write the parameter value 0
→ 1 (executed on positive edge).
PARAM_NUM
DINT
Read/written parameter: 3 numbers = group, 2 numbers =
Index. For example, Par 20.06 = 2006.
VALUE_IN
DINT
Parameter value to be written.
DRIVE
DB_ANY
Instance Data Block. The drive variable is used for identifying to
which drive FB501
ACS_DRIVE_PARA
belongs. The Instance
Data Block of FB500
ABB_DRIVE_CONTROL_FB
must
correspond to the variable FB501 ACS_DRIVE_PARA.
THIS_BLOCK_DB
DB_ANY
Instance data block of FB501.
Note:
POKE (FC1) and POKE_BLK (FC2) are used in FB501 block
logic to exchange data between FB500 and FB501.
DONE
BOOL
FALSE=Block execution not finished, TRUE=Block execution
finished.
ERR
BOOL
FALSE=No error, TRUE=Error occurred during block execution.
ERNO
WORD
Error code when ERR=TRUE.
BUSY
BOOL
FALSE=No operation active, TRUE=Operation active.
PARAM_NUM_OUT
DINT
Handled parameter number: 3 numbers = group, 2 numbers =
index; for example, Par 20.06 = 2006.
VALUE_OUT
DINT
Read parameter value.