FB_IOlSlave
Function block for the readout of IO-Link parameters.
Sample
VAR
bInitDone : BOOL;
sTerm3AmsNetId AT%I* : AMSNETID;
nTerm2EPI2328 : E_IoLPort := E_IolPort.Port2;
fbIOLSlave : FB_IolSlave;
END_VAR
IF NOT bInitDone THEN
bInitDone := TRUE; //Assigns it only once
fbIolSlave.MasterAoeNetId := F_CreateAmsNetId(sTerm3AmsNetId) //Creates NETID String
fbIolSlave.Port := nTerm2EPI2328; //Assigns Port
fbIolSlave.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.3.0 |