onlinecomponents.com
UM EN ILC 1XX
2-20
PHOENIX CONTACT 7805_en_02
2.13 Serial PRG interface
This interface can be used for the following:
– Assignment of the IP address or working with Diag+
– Communication with I/O devices via function blocks
Once the RS232_INIT function block has been activated (ENABLE input set), the interface
is parameterized accordingly so that it is only possible to communicate with the connected
I/O devices.
Deactivating the RS232_INIT function block (ENABLE input not set) or performing another
cold restart or warm start enables the IP address to be assigned and the controller to be
accessed with Diag+.
I/O devices that can be connected
Various I/O devices (e.g., modem, printer, barcode scanner) can be connected to the Inline
Controller via the serial PRG interface. The connected devices are addressed from the
application program using function blocks.
2.13.1 Function blocks for devices connected to PRG
Function blocks are not communication blocks according to IEC 61131-5.
Communication blocks according to IEC 61131-5 require communication to be
established between two partners. The RS232 blocks listed in the following only establish
a connection to the serial interface.
Table 2-2 Function block overview
Function block Short description
RS232_INIT Serial interface parameterization
RS232_RECEIVE Reading the internal receive buffer of the serial interface
RS232_SEND Data transmission to the internal transmit buffer of the serial
interface
The function blocks cannot be instantiated. The second and all subsequent instances
return a corresponding error code.