Professional Documents
Culture Documents
RS485 422 Init
RS485 422 Init
RS485_422_INIT
The RS485_422_INIT function block is used to parameterize the local serial RS485/422 interface of the
controller. The initialization parameters for the interface are specified in the data structure that is applied
at the PARAMETER input of the function block (see the description of the data structure ). Successful
parameterization is indicated at the VALID output.
Following successful parameterization, you can use the RS485_422_RECEIVE function block to receive
data from the receive buffer of the serial interface and the RS485_422_SEND function block to send data
via the interface.
Input parameters
ENABLE BOOL A rising edge at the ENABLE input executes the function block. The
local serial RS485/422 interface is parameterized with the values
set at the PARAMETER input.
PARAMETER T_RS485_422 Initialization parameters for the local serial RS485/422 interface
(see the description of the T_RS485_422 data structure below this
table).
Output parameters
ERROR BOOL Indicates whether an error occurred when executing the function
block.
TRUE: Error occurred. The corresponding error code is output at
the STATUS output.
FALSE: No error occurred.
mk:@MSITStore:C:\Program%20Files%20(x86)\PHOENIX%20CONTACT\Softwar... 22.06.2023
RS485_422_INIT Page 2 of 3
STATUS WORD This output provides the error code in the event of an error (see
List of error codes ). Only valid for ERROR = TRUE.
The T_RS485_422 data structure at the PARAMETER input contains the following elements:
TYPE T_RS485_422 :
STRUCT
END_STRUCT;
END_TYPE
STATUS Meaning
mk:@MSITStore:C:\Program%20Files%20(x86)\PHOENIX%20CONTACT\Softwar... 22.06.2023
RS485_422_INIT Page 3 of 3
mk:@MSITStore:C:\Program%20Files%20(x86)\PHOENIX%20CONTACT\Softwar... 22.06.2023