FB_IolStdVarSlave

FB_IolStdVarSlave 1:

This function block inherits from the FB_IOlSlave. It is intended for writing and reading standardized IO-Link parameters.

Sample

VAR
  bInitDone               : BOOL;
  sTerm3AmsNetId AT%I*    : AMSNETID;
  nTerm2EPI2328           : E_IoLPort := E_IolPort.Port2;
  fbIOLStdVarSlave              : FB_IolStdVarSlave;
END_VAR
IF NOT bInitDone THEN
  bInitDone                 := TRUE;           //Assigns it only once
  fbIOLStdVarSlave.MasterAoeNetId := F_CreateAmsNetId(sTerm3AmsNetId);    //Creates NETID String
  fbIOLStdVarSlave.Port           := nTerm2EPI2328;  //Assigns Port
  fbIOLStdVarSlave.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