FB_PN_ReadCompleteInfoOfDevices

The function block FB_PN_ReadCompleteInfoOfDevices creates a list with the complete information of the configured devices (in TwinCAT). For PROFINET RT controllers such as TF6271 or CCAT M930 interface or EL6631 v11(v.024).
Inputs
VAR_INPUT
bExecute : BOOL;
sControllerName : T_Maxstring
tTimeout : TIME;
END_VAR
Name | Type | Description |
---|---|---|
bExecute | BOOL | The function block is enabled by a positive edge at this input. |
sControllerName | T_MaxString | Name of the PROFINET RT controller in the TwinCAT tree. |
tTimeout | TIME | Timeout for the complete read process |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorID : UDINT;
nDevices : UINT;
aInfoOfDevices : ARRAY [1..255] OF st_PN_DeviceInfo;
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. |
nDevices | UINT | Number of PROFINET devices in the configuration. |
aInfoOfDevices | ST_PN_DeviceInfo | Settings information of the configured PROFINET devices. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.54 | PC or CX (x64, x86, ARM) | Tc2_ProfinetDiag (>= v1.4.1.0) |