FB_IolExtIdentSlave
FB_IoLExtSlave inherits from the function block FB_IolSlave.
Only IO-Link devices with the profile: 0x8100 have these parameters.
Sample
VAR
bInitDone : BOOL;
sTerm3AmsNetId AT%I* : AMSNETID;
nTerm2EPI2328 : E_IoLPort := E_IolPort.Port2;
fbIOLExtIdentSlave : FB_IolExtIdentSlave;
END_VAR
IF NOT bInitDone THEN
bInitDone := TRUE; //Assigns it only once
fbIOLExtIdentSlave.MasterAoeNetId := F_CreateAmsNetId(sTerm3AmsNetId) //Creates NETID String
fbIOLExtIdentSlave.Port := nTerm2EPI2328; //Assigns Port
fbIOLExtIdentSlave.Name := 'EPI2328'; //Gives device a name
END_IF
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.25 | Tc3_IoLink from v3.3.4.0 |