TwinCAT library and programming
EL6631-0010 57Version: 3.4.0
6 TwinCAT library and programming
6.1 Functions
6.1.1 FUNCTION_BLOCK FB_Write_IuM_EL6631_0010
Fig.44: FUNCTION_BLOCK FB_Write_IuM_EL6631_0010
This function block writes I&M1, I&M2, I&M3 and I&M4 (Identification & Maintenance) data according to
ProfiNET specification over EtherCAT as a string to the ProfiNET device.
VAR_INPUT
VAR_INPUT
bWrite:BOOL;
NETID:STRING;(*AMSNETIDEtherCATMaster*)
PORT:WORD;(*EtherCATSlaveaddress*)
byState:BYTE;(*Bit0->I&M1||Bit1->I&M2||Bit2->I&M3||Bit3-
>I&M4*)
iNumber:INT:=0;(*"0"=EL6631-0010or"1"=vitualEL6631-0010*)
st_IM_TagFunction:STRING;(*I&M1byState.0=TRUE*)
st_IM_TagLocation:STRING;(*I&M1byState.0=TRUE*)
st_IM_Date:STRING;(*I&M2byState.1=TRUE*)
st_IM_Descriptor:STRING;(*I&M3byState.2=TRUE*)
st_IM_Signature:STRING;(*I&M4byState.3=TRUE*)END_VAR
bWrite: A rising edge on this input activates the function block and the I&M data is written to the ProfiNET
device.
NETID: AMS Net ID of the controller
PORT: Port via which the controller communicates with the device (port = Device ID + 1000
hex
)
byState: This byte can be used to select which I&M data is to be written.
iNumber: 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 written.
st_IM_TagFunction: Label for the function of the device is written to the device.
st_IM_Taglocation: Label for the installation site of the device is written to the device.
st_IM_Date: Date of the installation of the device is written to the device.
st_IM_Descriptor: Description of the manufacturer is written to the device.
st_IM_Signature: Description of the manufacturer is written to the device.