4-12
PACSystems* RX3i
PROFINET Controller Manual
– December 2011
GFK-2571A
4
Unlinked PNIO_DEVICE_REF variables can be passed to the IN and Q parameters of the
MOVE_DATA function block. Linked PNIO_DEVICE_REF variables can only be passed to the IN
parameter of the MOVE_DATA function block.
The PNIO_DEV_COMM Function Block
The PNIO_DEV_COMM function block monitors communications between a specified PNC and a
specified IO-Device.
PNIO_DEV_COMM can be used by the application logic to take a corrective action or turn on an
indicator if a specific device fails. It might also be used by a custom HMI to show which PROFINET
IO-Device connections are currently established.
It is recommended that the
All Devices Connected
status bit be checked first to determine whether
all devices belonging to the PNC are functioning. If this bit is 0, indicating that one or more devices is
not OK, the PNIO_DEV_COMM function block can then be used to determine which specific devices
are not communicating. For details on this status bit, refer to
“Status Reporting” in chapter 5.
Parameters and Outputs of PNIO_DEV_COMM
PNIO_DEV_COMM returns a Boolean indication of whether or not a given PNC is currently
communicating with a specified IO-Device. The PNC is identified by the IOController input
parameter, which is a PNIO_CONTROLLER_REF data type. The IO-Device is identified by the
IODevice input parameter, which is a PNIO_DEVICE_REF data type.
PNIO_DEV_COMM has two Boolean outputs (in addition to ENO) labeled OK and Primary. OK is
set ON/true if the PNC is successfully communicating with the IO-Device, otherwise it is OFF/false.
The application logic must identify the PNC and the IO-Device in a symbolic manner, passing
appropriate Reference ID Variables (see the following section) to the corresponding input
parameters.