FB_Read_IuM_EL6631_0010

The function block FB_Read_IuM_EL6631_0010 reads I&M1, I&M2, I&M3 and I&M4 (Identification & Maintenance) data from a PROFINET device via EtherCAT as a string. The I&M0 data is read for a PROFINET device with EtherCAT via CoE (CAN over EtherCAT).
Inputs
VAR_INPUT
bRead : BOOL;;
NETID : T_AmsNetId;
PORT : T_AmsPort;
iNumber : INT:=0;
END_VAR
Name | Type | Description |
---|---|---|
bRead | BOOL | A positive edge at this input enables the function block and the I&M data is read from the PROFINET device. |
NETID | T_AmsNetId | AMS Net ID of the controller |
PORT | T-AmsPort | Port via which the controller communicates with the device (port = Device ID + 1000hex). |
iNumber | INT | Two PROFINET devices can be mapped with one terminal. iNumber ("0" or "1") is used to select the device for which the I&M data is to be read. |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
iErrorID : UDINT;
st_IM_TagFunction : STRING; (* I&M1 *)
st_IM_TagLocation : STRING; (* I&M1 *)
st_IM_Date : STRING; (* I&M2 *)
st_IM_Descriptor : STRING; (* I&M3 *)
st_IM_Signature : STRING; (* I&M4 *)
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. |
iErrorID | UDINT | Returns an ADS error number if bError output is set. |
st_IM_TagFunction | STRING | Label read for function of the device. |
st_IM_Taglocation | STRING | Label read for the installation location of the device. |
st_IM_Date | STRING | Returns the device installation date in the format. |
st_IM_Descriptor | STRING | Returns the vendor description stored for the device. |
st_IM_Signature | STRING | Returns the vendor signature stored for the device. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4018 | PC or CX (x64, x86, ARM) | Tc2_ProfinetDiag |