The function FC_OpenSlcCommunication activates the required port rules for the controller firewall. This allows communication of the programming software with the SLC (Safety Logic Controller) via the controller.
After a restart, the firewall is configured according to the default configuration file. Refer to How to Configure the Firewall for PacDrive LMC Controllers User Guide.
It is a good practice to keep the port rules activated only as long as needed. Use the FC_CloseSlcCommunication to deactivate the port rules after your communication to the SLC (Safety Logic Controller) is no longer needed.
| WARNING | |
|---|---|
|
Input |
Data type |
Description |
|---|---|---|
|
i_ifSafeLogic |
SystemConfigurationItf.IF_SafeLogic |
Specifies the SLC (Safety Logic Controller) for which the communication should be enabled. |
|
Output |
Data type |
Description |
|---|---|---|
|
q_etResult |
Provides diagnostic and status information as an enumeration value. |
|
|
q_sResultMsg |
STRING [80] |
Provides additional diagnostic and status information as a text message. |
|
Data type |
Description |
|---|---|
|
BOOL |
TRUE = SLC connection settings were adapted successfully. FALSE = SLC connecting settings cannot be set. |
The following elements of ET_Result are used for q_etResult.
|
Name |
Data type |
Value |
Description |
|---|---|---|---|
|
Ok |
UDINT |
0 |
Operation completed successfully. |
|
FunctionNotSupported |
UDINT |
100 |
Function not available for this controller. |
|
InvalidIfSafeLogic |
UDINT |
200 |
The interface assigned to i_ifSafeLogic must be provided by an instance of the Safety Logic Controller in the tree of the project. |