FB_PROFINET_SET_NAME

The function block FB_PROFINET_SET_NAME can be used to change the PROFINET name of the respective PROFINET device. PROFINET driver version 06 (V00.34) or higher, TF6270, CCAT PN Interface(B930) required
Inputs
VAR_INPUT
bStart : BOOL;
NETID : T_AmsNetId;
PORT : T_AmsPort;
sProfinetName : STRING(240);
bNotChangeable : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | The function block is enabled by a positive edge at this input. |
NETID | T_AmsNetId | AMS NET ID of the PROFINET device |
PORT | T_AmsPort | ADS port number of the PROFINET device; default = 0xFFFF |
sProfinetName | STRING(240) | PROFINET device name. Max. 240 characters and the following characters permitted "a..z", "0..9", ".", "-" |
bNotChangeable | BOOL | If "TRUE", the PROFINET controller cannot change the PROFINET name. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorID : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | When the function block is enabled, this output is set and remains set until a feedback is received. While Busy = TRUE, no new command will be accepted at the inputs. |
bError | BOOL | If an error occurs during the transmission of the command, this output is set after the bBusy output is reset. |
nErrorId | UDINT | Returns an ADS error number if bError output is set. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86, ARM) | Tc2_ProfinetDiag (>= v1.5.1.0) |