Specifications
sigmadue - IEC 61131-3 Function Block Library
168
5-3-36 PROFIBUS PORT
FB Prototype
PROFIBUS_PORT
Input parameters
Output parameters
Description
This function block has been designed to setup the parameters needed to establish
the communication with Profibus DP Master device. It includes also all the functional-
ities in order to verify the status of the communication and the data exchange.
Default Values Table
Reference Table
Label Type Description Range
ENABLE BOOL
Command to enable/disable the
PROFIBUS DP port operations [bit]
FALSE = disable,
TRUE = enable
ADDR USINT
Profibus DP slave node address, evaluated
ONLY on the ENABLE rising edge [num]
0... 255
IN_BYTES USINT
Amount of bytes used by the Profibus DP
Master INPUT telegram, evaluated ONLY
on the ENABLE rising edge [bytes]
0... 244)
OUT_BYTES USINT
Amount of bytes used by the Profibus DP
Master OUTPUT telegram, evaluated
ONLY on the ENABLE rising edge [bytes]
0... 244
PAGE_MODE BOOL
Paging mode management, evaluated
ONLY on the ENABLE rising edge [bit]
FALSE = disable,
TRUE = enable
PAGE_OUT USINT
Page to be sent to the Profibus DP
Master [num]
1... 4
Output Type Description Range
ERROR BOOL Error status
ERR_CODE USINT Error code. [bit mask]
16#00 00 00 00 … 16#FF FF FF FF
PAGE_ACT USINT Actual page of data in use
ENABLE
ADDR
IN_BYTES
OUT_BYTES
PAGE_MODE
PAGE_OUT
BOOL
USINT
USINT
USINT
BOOL
USINT
¡
¡
¡
¡
¡
¡
BOOL
DWORD
USINT
ERROR
ERR_CODE
PAGE _AC T
¡
¡
¡
Input Default Value
ENABLE FALSE
ADDR 10
IN_BYTES 140
OUT_BYTES 210
PAGE_MODE FALSE
PAGE _OUT 1
Output Description
ERR_CODE.0 Initialization Error
ERR_CODE.1 Telegram Size Error
ERR_CODE.2 Hardware Error
ERR_CODE.3 Profibus agent not activated