FC_SetCommunicationParameter - General Information
Type: |
Function |
Available as of: |
SystemInterface_1.50.0.14 |
Versions: |
Current version |
Write communication parameter.
This function sets the communication parameters of the controller. The communication parameters are IP address, subnet mask, and gateway.
The communication parameters can be saved permanently on the controller. If the communication parameters are not saved permanently, they are set to the value before calling the function when a restart of the controller is executed.
NOTE: The processing time of this function is a few hundred milliseconds. This is why the times for the cycle check of the task in which this function is performed should be increased one-time. For example FC_CycleCheckTimeSet(500, 2).
Input |
Data type |
Description |
---|---|---|
i_sIpAddress |
STRING[15] |
IP address to be set |
i_sSubnetmask |
STRING[15] |
Subnet mask to be set |
i_sGateway |
STRING[15] |
Gateway to be set |
i_xSaveIpAddress |
BOOL |
TRUE: IP address is saved permanently |
i_xSaveSubnetmask |
BOOL |
TRUE: Subnet mask is saved permanently |
i_xSaveGateway |
BOOL |
TRUE: Gateway is saved permanently |
Data type |
Description |
---|---|
BOOL |
0: An error is detected when the communication parameters were set. 1: Setting the communication parameters was successfully. |