EasyManua.ls Logo

Beckhoff EL6631-0010 - FUNCTION_BLOCK Fb_Read_Ium_El6631_0010

Beckhoff EL6631-0010
82 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TwinCAT library and programming
EL6631-001058 Version: 3.4.0
VAR_OUTPUT
VAR_OUTPUT
bBusy:BOOL;
bError:BOOL;
iErrorID:DINT;
END_VAR
bBusy: When the function block is activated this output is set. It remains set until a feedback is received.
While Busy = TRUE, no new command will be accepted at the inputs.
bError: In the event of an error during the command transfer, this output is set once the bBusy output has
been reset.
iErrorID: Supplies an ADS error number when the output bError is set.
Development environment Target platform PLC libraries to be linked
TwinCAT v2.11.0 R3 PC or CX (x86, ARM) TcProfinetDiag.Lib
6.1.2 FUNCTION_BLOCK FB_Read_IuM_EL6631_0010
Fig.45: FUNCTION_BLOCK FB_Read_IuM_EL6631_0010
This function block reads I&M1, I&M2, I&M3 and I&M4 (Identification & Maintenance) data over EtherCAT as
a string from a ProfiNET device. The reading of the I&M0 data takes place in the case of a ProfiNET device
with EtherCAT via CoE (CAN over EtherCAT).
VAR_INPUT
VAR_INPUT
bRead:BOOL;
NETID:STRING;(*AMSNETIDEtherCATMaster*)
PORT:WORD;(*EtherCATSlaveaddress*)
iNumber:INT;(*"0"=EL6631-0010or"1"=vitualEL6631-0010*)END_VAR
bRead: A rising edge on this input activates the function block and the I&M data is read from 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
)
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 read out.
VAR_OUTPUT
VAR_OUTPUT
bBusy:BOOL;
bError:BOOL;
iErrorID:DINT;
st_IM_TagFunction:STRING;(*I&M1*)
st_IM_TagLocation:STRING;(*I&M1*)
st_IM_Date:STRING;(*I&M2*)

Table of Contents

Related product manuals